wood burning stoves*
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
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: 250
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: 2 actions, same form class different instance?