How to store checkbox value to database in JSP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • selvasoft
    New Member
    • Mar 2010
    • 34

    How to store checkbox value to database in JSP

    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 Files
  • rythmic
    New Member
    • Feb 2010
    • 29

    #2
    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.

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      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:
      Code:
      theCheckboxValue = request.getParameterValues("checkBoxID");
      -Frinny

      Comment

      • selvasoft
        New Member
        • Mar 2010
        • 34

        #4
        Rythmic

        Thanks for your advise.. sorry for my fault because am newbie in forums so that am made mistake in asking question.

        Comment

        • selvasoft
          New Member
          • Mar 2010
          • 34

          #5
          Dear Frinavale

          Very thanks for your help.Please forgive me because of my mistake on asking question.

          Comment

          • selvasoft
            New Member
            • Mar 2010
            • 34

            #6
            Insert image to database using JSP

            hi Frinavale

            Am stored that check box value successfully.Th ank you..

            Comment

            • Frinavale
              Recognized Expert Expert
              • Oct 2006
              • 9749

              #7
              I'm glad you solved your problem :)

              -Frinny

              Comment

              Working...