This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JSP and the fly likes how to get more values (request.getparameter( Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how to get more values (request.getparameter("Project")==null ?"" : request.getParameter("Project") " Watch "how to get more values (request.getparameter("Project")==null ?"" : request.getParameter("Project") " New topic
Author

how to get more values (request.getparameter("Project")==null ?"" : request.getParameter("Project")

Arulmozhi Govindaraju
Greenhorn

Joined: Feb 20, 2013
Posts: 17
how to get more values claimMainDtlsObj.setAssinproject(request.getParameter("Project")==null ?"" : request.getParameter("Project")); in java?


pass to more then values claimMainDtlsObj.setAssinproject(request.getParameter("Project")==null ?"" : request.getParameter("Project"));

for example
asd fgh jkh but (request.getParameter("Project") i got only one value that is asd only
Saif Asif
Ranch Hand

Joined: Aug 11, 2011
Posts: 440

Do you mean that you have a list of values and you want to retrieve the list with the parameter name "project" ? Use the method request.getParameterValues()


Muhammad Saif Asif Mirza
OCJA(5/6) OCJP(6) OCJWCD(6)
Arulmozhi Govindaraju
Greenhorn

Joined: Feb 20, 2013
Posts: 17
Saif Asif wrote:Do you mean that you have a list of values and you want to retrieve the list with the parameter name "project" ? Use the method request.getParameterValues()



i am using this method,not getting all values .only one value store the db table
Arulmozhi Govindaraju
Greenhorn

Joined: Feb 20, 2013
Posts: 17
Arulmozhi Govindaraju wrote:
Saif Asif wrote:Do you mean that you have a list of values and you want to retrieve the list with the parameter name "project" ? Use the method request.getParameterValues()



i am using this method,not getting all values .only one value store the db table
this only claimMainDtlsObj.setAssinproject(request.getParameterValues("Project")==null ?"" : request.getParameter("Project"));
Saif Asif
Ranch Hand

Joined: Aug 11, 2011
Posts: 440

Arulmozhi Govindaraju wrote:
Saif Asif wrote:Do you mean that you have a list of values and you want to retrieve the list with the parameter name "project" ? Use the method request.getParameterValues()



i am using this method,not getting all values .only one value store the db table


How are the values in your URL ? Remember that to send a list of values , the values in the param need to be comma separated like e.g ....&rollNumbers=123,345,678&.....
 
 
subject: how to get more values (request.getparameter("Project")==null ?"" : request.getParameter("Project")