Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in Form Bean population

 
Hemanth Pallavajula
Ranch Hand
Posts: 38
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
sreenath reddy
Ranch Hand
Posts: 415
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try saying method="POST" in ur form tag .......
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic