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 form bean scope 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 "form bean scope" Watch "form bean scope" New topic

form bean scope

sudheer kiran
Ranch Hand

Joined: Jun 26, 2008
Posts: 237

is testbean available in the request only?
is test bean still available in next jsp file after mapping.forward from action file.
mapping.forward forwards the same request(which contains testbean).

thank you

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

yes. testbean is in request scope only ,in other words you are putting form bean inside a request scope. mapping.forward is nothing but forwarding request,response to the particular page , so obviously it is available on forwarded page
sudheer kiran
Ranch Hand

Joined: Jun 26, 2008
Posts: 237

thank you
I agree. Here's the link:
subject: form bean scope
Similar Threads
Extracting data from a bean
struts tags
Whizlabs Mock Question
JavaBean not instantiating
doubt on jsp:useBean tag