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
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Struts
Using ActionFormClass for multiple forms
Anurag Mishra
Ranch Hand
Posts: 121
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
Can anyone tell is there a way to Use same ActionForm Class from different forms(
JSP
pages).
I used the mapping's name property and tried to do this, But is there
any other Efficient way to do this?.
Plese write if you know.
thanks
Anurag
SCJP 1.2
Marc Peabody
pie sneak
Posts: 4727
I like...
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The mappings' name attribute is what you do.
A good workman is known by his tools.
Anurag Mishra
Ranch Hand
Posts: 121
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
yes, i just differentiate the logic based on mapping's name in such a way
String
formName = mapping.getName();
if(formName.equals("firstForm"))
{
}
SCJP 1.2
Anurag Mishra
Ranch Hand
Posts: 121
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
yes, i just differentiate the logic based on mapping's name in such a way
String formName = mapping.getName();
if(formName.equals("firstForm"))
{
//do something
}
else if(formName.equals("secondForm"))
{
//do somethig Extra
}
thanks
Anurag
SCJP 1.2
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Multiple forms using same radio button choice
DynaValidatorActionForm sublclass (specialization)
Forms in Java/Servlets
how to Evaluate the online exam question.
submit nested form ?
More...