This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to assign request.getParameterValues to bean object?

 
Arulmozhi Govindaraju
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
String Proj[]=request.getParameterValues("Project");

this value how to assign this claimMainDtlsObj.setAssinproject(request.getParameterValues("Project")==null ?"" : request.getParameter("Project"));
 
Saif Asif
Ranch Hand
Posts: 440
Eclipse IDE Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this value how to assign this claimMainDtlsObj.setAssinproject(request.getParameterValues("Project")==null ?"" : request.getParameter("Project"));

I am unable to understand your question here .
 
Arulmozhi Govindaraju
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Saif Asif wrote:
this value how to assign this claimMainDtlsObj.setAssinproject(request.getParameterValues("Project")==null ?"" : request.getParameter("Project"));

I am unable to understand your question here .




actually i asking
how to write String Proj[]=request.getParameterValues("Project"); instead of claimMainDtlsObj.setAssinproject(request.getParameter("Project")==null ?"" : request.getParameter("Project"));
 
Saif Asif
Ranch Hand
Posts: 440
Eclipse IDE Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just a null value check ? whats wrong with the code snippet you have written ? Isn't that doing the job for you ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic