This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Arulmozhi Govindaraju
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 440
Eclipse IDE Hibernate Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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()
 
Arulmozhi Govindaraju
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 440
Eclipse IDE Hibernate Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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&.....
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic