File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes 2 actions, same form class different instance? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply 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: 240
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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: 2 actions, same form class different instance?
 
Similar Threads
Doubt regarding action class
Server-side validation causing bean data to vanish.
Godaddy - Struts Tiles Problems
Different INPUT.jsp in DispatchAction
problem in getting data from request