• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Valid JSP Parameters

 
Steve Dyke
Ranch Hand
Posts: 1643
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am tring to use the value of a checkbox from my JSP in my servlet as a parameter. I am having trouble with it and need help.

The following code is used in my servlet and wheather or not the checkbox is checked or not I get a blank value.

 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would you be more specific? Please provide the JSP code and the Servlet code to retrieve the parameter.

Thank you
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you really name your request object "arg0"?
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ben Souther:
Did you really name your request object "arg0"?
That's how my IDE generates the parameter names when I tell it to create a servlet. But I always rename the parameters to "request" and "response" before I do anything else.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following code is used in my servlet and wheather or not the checkbox is checked or not I get a blank value.

Is the value of the checkbox set ? Please post the HTML code of your checkbox.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic