473,411 Members | 1,980 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

How to store checkbox value to database in JSP

selvasoft
Hi

Please help me i want to store all the details like orderno and shadeno and uploaded image file also. all are in one table.
Find my attachment , when am select that check box that order number only going to store with my uploaded image.
i want use JSP with oracle 10g to store that.
In my attachment that OrderNo is listed automatically from my Order table
Order table contain more than 10000 values.
But i want to store selected OrderNo to another table with uploaded image.
For example like this my another table field...

Id Order No Shade No Image


here i want store my OrderNo from order table.
Attached Images
File Type: jpg upload.jpg (9.3 KB, 915 views)
Mar 18 '10 #1
6 12591
rythmic
29
You will need a servlet to do that.

JSP is clientside only so what you need to do is hook your form up to a servlet, then from the servlet you store the data into the database through SQL

I think you will need to divide this question into smaller questions for anyone to have the time to give you a good answer.
Mar 18 '10 #2
Frinavale
9,735 Expert Mod 8TB
Rythmic, how can you say that JSP is client side only?
JSP stands for "Java Server Pages".
JSPs are compiled into servlets by a JSP compiler.

Selvasoft, Rythmic was correct about the fact that your question is too large for us to help you. Pick one thing to work on and we will help you with that. Once you're happy with getting it to work, then ask the next question.


Now, if you want to retrieve the value of a check box in JSP you need to access the checkbox value using the Request Object.

For Example:
Expand|Select|Wrap|Line Numbers
  1. theCheckboxValue = request.getParameterValues("checkBoxID");
  2.  
-Frinny
Mar 18 '10 #3
Rythmic

Thanks for your advise.. sorry for my fault because am newbie in forums so that am made mistake in asking question.
Mar 19 '10 #4
Dear Frinavale

Very thanks for your help.Please forgive me because of my mistake on asking question.
Mar 19 '10 #5
hi Frinavale

Am stored that check box value successfully.Thank you..
Mar 22 '10 #6
Frinavale
9,735 Expert Mod 8TB
I'm glad you solved your problem :)

-Frinny
Mar 22 '10 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Shufen | last post by:
Hi, I'm a newbie that just started to learn python, html and etc. I have some questions to ask and hope that someone can help me on. I'm trying to code a python script (with HTML) to get...
4
by: Christopher Brandsdal | last post by:
Hi! I have a delicatg problem.... I have made a registration form for adding my friends information in a database. The problem is that I want to connect the persons with companies in the same...
4
by: Jack | last post by:
Hi, I have a checkbox the value which goes to a database via a asp page that builds the sql string. In the front end asp page, the checkbox code is written as follows: <i><input...
2
by: LisaBigJax | last post by:
I am using a series of checkbox's in a repeater -- (not the checkboxlist) -- the problem I am encountering is that the checkbox does not have a value attribute. I tried to add it via the...
6
by: Daz | last post by:
Hi everyone. Firstly, I apologise if this i not what you would call a PHP problem. I get quite confused as to what lives in which realm, so if this shouldn't be posted here, please suggest where...
1
by: peck2000 | last post by:
Related to my earleir post ... this is the same project to re-purpose the Classifieds application in BEGINNING ASP 3.0 (Wrox) to a comicbook database ... This is a brainteaser that should have...
0
by: cyberdawg999 | last post by:
Greetings all in ASP land I have overcome one obstacle that took me 2 weeks to overcome and I did it!!!!! I am so elated!! thank you to all who invested their time and energy towards helping me...
0
by: TechnoAtif | last post by:
<?php include "dbconnect.php"; include "commonFunc.php"; ?> <!----------------------------------> <table width="80%" border="1" cellpadding="2" cellspacing="0"> <tr > <td...
17
by: shivasusan | last post by:
Hi! In my program, I have multiple check boxs.(more the 10) But i give rights to select 2 check boxs, If i select more then 2 check boxs, I want to display alert message. Please any one post...
9
by: raamay | last post by:
I have six checkboxes as shown below: <table> <tr> <td><input name="spec1" type="checkbox" value="0" tabindex="11" /><label id="label">Bridge Construction</label></td> </tr> <tr> <td><input...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.