• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 440
Hibernate Eclipse IDE Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Hibernate Eclipse IDE Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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&.....
 
reply
    Bookmark Topic Watch Topic
  • New Topic