Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

posting integer form variables

Status
Not open for further replies.

dndaughtery

Programmer
Jan 25, 2006
67
0
0
US
I have inherited a JSP application which needs a lot of cleaning up. Before I chuck the existing code and start from scratch I'd like to know if there is something special about passing integer form variables.

I have 2 html select drop boxes. One is populated in while loop with string value the other is populated in while loop with int value. My problem is that when I print the values on the other page (recieves the posted variables) I get the "value" for the string fine but the integer is always null.

Is there some special case with integer values being posted in a form or should I just chuck the code and start from scratch?
 
All form variables are passed as strings - there is no concept of an integer in the HTTP protocol.

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top