• 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

What is the best way to get all parameters in process action

 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

The JSp if I have input input parameters.

What is the best way to get all the parameters in process action , set in a bean and make the bean accessable in render.

Right now i have used getParamerMap, but i dont know how to set the values in the bean

Can anybody help me

I have posted this query in another forum
https://www.ibm.com/developerworks/forums/thread.jspa?threadID=388787
Thanks


 
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ravisha,
There are lot's of ways to accomplish this, but here is a sample of how to call your bean setters in a way that is reusable across all beans.






So in your servlet or portlet, you do something like...




In order for this to work...you'll need to set the name attribute on your input elements to the corresponding name of your bean..

For example, your JSP might look like...





Hope these few examples will give you some idea of what to do. Good luck!
Philip Thamaravelil




 
Philip Thamaravelil
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If your using a ORM solution, you might look through the API's of your specific ORM vendor. They often have solutions for your question. Hibernate works well in this scenario, and IMO it's also good to understand what's happining under the hood.
 
reply
    Bookmark Topic Watch Topic
  • New Topic