473,387 Members | 1,497 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,387 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 12587
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...

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.