This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Similar Threads
JSP Redirect/Refresh Options
HTML -> Servlet -> java bean -> JSP
Action Form Problem
Cannot compile servlet
How to retrieve a single Object or object property from pre-populate List...