Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

possible variable type, a form parameter can have

 
pooja jain
greenhorn
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what are the possible variable type, a form parameter can have?

string, int, char, float and long. that's all. right.

request.getParameter() always returns string. and it can be converted to all possible variable types specified above.

any other variable type possible?

thanks in advance.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not an HTML/JavaScript question. I am moving it to JSP.

Eric
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Form parameters are always sent to the server as text.

The type used to represent it on the server, depends on the technology you're using on the server. With Servlets & JSP, the values will be of type java.lang.String or, if there is more than one with the same name, java.lang.String[]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic