• 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

Trapping data passed in query string in Form Bean

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello ,
I have an existing JSP page where I show a list of Employees
The Name of the emplyees appear as a link
I am passing the Primary Key as a query string on this link
I am trapping this data using Request.getParameter
Is there any way of defining a getter & setter in the formbean
Will struts take care of the data passed in the query string and populate the form bean ?
Is there no way out other than using request.getParameter ?
Thanks ,
-satish
 
Sheriff
Posts: 17644
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any request parameter that has a matching setter in the ActionForm associated with the Action invoked will be handled by Struts. Make sure your link is pointed to the appropriate Action class though.
 
reply
    Bookmark Topic Watch Topic
  • New Topic