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
When and how to customize the ActionServlet
Vijay jai Singh
Greenhorn
Posts: 26
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
In which situation we should consider the customization of ActionServlet and how we will customize the ActionServlet.
Vijay
David Newton
Author
Posts: 12617
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Almost never. 99.9% of the time it's not what you want to do.
Sagar Rohankar
Ranch Hand
Posts: 2908
1
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
When:
When you wants some common processing for all request, like session check, any other message, etc..
How:
By extending org.apache.struts.action.ActionServlet. Make sure that you put the reference of this customized action
servlet
into DD.
[LEARNING bLOG]
|
[Freelance Web Designer]
|
[and "Rohan" is part of my surname]
David Newton
Author
Posts: 12617
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
That kind of behavior should go into a custom request processor, almost all the time.
Sagar Rohankar
Ranch Hand
Posts: 2908
1
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Yes, that's more correct. ActionSerlvet delegates the request processing logic to RequestProcessor. So there is nothing you "really" need to extend it ;)
[LEARNING bLOG]
|
[Freelance Web Designer]
|
[and "Rohan" is part of my surname]
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
overriding ActionServlet in struts
Servletcontext object to actionservlet in struts
Best practice
can we extend ActionServlet
how to override action servlet in struts
More...