• 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

Doubt in Form Bean population

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

I have a doubt in regard to population of data into form beans by Struts. I know that Struts internally uses request.getParameter() to get the value of a parameter. What I am trying to do is that, I am putting the two attributes as part of the query string. Thse attributes data needs to get populated in the form bean. Is this possible..?

I tried and I am getting NULL values.

Here is the code in the JSP:-


The code within the Action class is:-


The output is:-
bean.getId() is NULL
bean.getName() is NULL
Parameter Names :


Please help me in this regard.
 
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
try saying method="POST" in ur form tag .......
 
reply
    Bookmark Topic Watch Topic
  • New Topic