Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing form class properties in a jsp

 
M Burke
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to print out some values on a jsp that where populated in the action class.

So lalalaAction populates lalalaForm.setLala()
Now I want to print out lalalaForm.getLala() (html:message?, <%= %>? ) on the jsp.
I am not sure what name to give the output tag so it can find the form bean.
 
Paul W Lee
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it might help:

http://www.jguru.com/faq/view.jsp?EID=1023589
 
M Burke
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, not really.

Ok,

I have a form class, TestForm.java that has a property lineNum.

I am forwarding to test.jsp and I want to write lineNum to it.

So I do something like this <bean:write name="" property="lineNumber"/>

What do I put in as name? The form class is bound to the session by Struts, so I don't know what name they use.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic