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 2 actions, same form class different instance? 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 "2 actions, same form class different instance?" Watch "2 actions, same form class different instance?" New topic
Author

2 actions, same form class different instance?

mark smith
Ranch Hand

Joined: Apr 05, 2005
Posts: 246
hi

i have actions in struts-config.xml

first one


the second


for the form-bean



so both the same class


if i use same form name (projetForm) in the action

does both action will use the same instance of the class?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

No; you've scoped them as request.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 2 actions, same form class different instance?
 
Similar Threads
problem in getting data from request
Different INPUT.jsp in DispatchAction
Godaddy - Struts Tiles Problems
Doubt regarding action class
Server-side validation causing bean data to vanish.