This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes JSP and the fly likes how to assign request.getParameterValues to bean object? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how to assign request.getParameterValues to bean object?" Watch "how to assign request.getParameterValues to bean object?" New topic
Author

how to assign request.getParameterValues to bean object?

Arulmozhi Govindaraju
Greenhorn

Joined: Feb 20, 2013
Posts: 17
String Proj[]=request.getParameterValues("Project");

this value how to assign this claimMainDtlsObj.setAssinproject(request.getParameterValues("Project")==null ?"" : request.getParameter("Project"));
Saif Asif
Ranch Hand

Joined: Aug 11, 2011
Posts: 440

this value how to assign this claimMainDtlsObj.setAssinproject(request.getParameterValues("Project")==null ?"" : request.getParameter("Project"));

I am unable to understand your question here .


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

Joined: Feb 20, 2013
Posts: 17
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

Joined: Aug 11, 2011
Posts: 440

Just a null value check ? whats wrong with the code snippet you have written ? Isn't that doing the job for you ?
 
Consider Paul's rocket mass heater.
 
subject: how to assign request.getParameterValues to bean object?
 
It's not a secret anymore!