aspose file tools*
The moose likes Struts and the fly likes should i use formbean for output only jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "should i use formbean for output only jsp" Watch "should i use formbean for output only jsp" New topic
Author

should i use formbean for output only jsp

cb poo
Ranch Hand

Joined: Oct 02, 2002
Posts: 67
Guys, I have a jsp(display.jsp) which will be called after user click on the menu. This jsp will display resultset formated by my displayAction. Currently the way i do is
1) after menu click, perform displayAction
2) In displayAction, create bean to hold the resultset
3) In displayAction, assign bean to request attribute and forward to display.jsp
4) In display.jsp, show the bean property according.

In the above scenario, i did not use formbean at all. Is this the correct way? or I use assign resultset to formbean instead of my own bean.
Nicola Guy
Ranch Hand

Joined: Jun 23, 2004
Posts: 91
Im quite new to this but from what i've read that is an ok way to do output
 
jQuery in Action, 2nd edition
 
subject: should i use formbean for output only jsp