aspose file tools*
The moose likes Struts and the fly likes Accessing form class properties in a jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Accessing form class properties in a jsp" Watch "Accessing form class properties in a jsp" New topic
Author

Accessing form class properties in a jsp

M Burke
Ranch Hand

Joined: Jun 25, 2004
Posts: 388
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

Joined: Jun 19, 2003
Posts: 40
it might help:

http://www.jguru.com/faq/view.jsp?EID=1023589
M Burke
Ranch Hand

Joined: Jun 25, 2004
Posts: 388
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.
 
 
subject: Accessing form class properties in a jsp