Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
Struts
2 actions, same form class different instance?
mark smith
Ranch Hand
Posts: 264
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hi
i have actions in struts-config.xml
first one
<action path="projet" type="fr.demo.ProjetAction" validate="true" name="projetForm" input="page.demoProjet" parameter="method" scope="request"> <forward name="success" path="page.demoProjet"/> </action>
the second
<action path="dossier" type="fr.demo.DossierAction" validate="true" name="dossierForm" input="page.demoDossier" parameter="method" scope="request"> <forward name="success" path="page.demoDossier"/> </action>
for the form-bean
<form-bean name="projetForm" type="fr.demo.ProjetForm" /> <form-bean name="dossierForm" type="fr.demo.ProjetForm" />
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
Posts: 12617
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
No; you've scoped them as request.
Check your pockets for water buffalo. You might need to use this tiny ad until locate a water buffalo:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
problem in getting data from request
Doubt regarding action class
Server-side validation causing bean data to vanish.
Godaddy - Struts Tiles Problems
Different INPUT.jsp in DispatchAction
More...