A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Forward from Servlet to Action class?
Joined: Jan 23, 2002
Mar 12, 2006 02:33:00
I have to use a
as part of my
is it possible to forward to a struts action class preserving the session object etc...?
Any sample code would be appreciated!
Joined: May 26, 2003
Mar 12, 2006 12:34:00
Yes. How to do that depends on what you are trying to accomplish.
If you want to just call the action class and get the results in the request/session, you can instantiate it and call the execute() method.
If you want to call the action class and the
it forwards to, you can have the servlet forward to the path the action uses in the struts config file.
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
I agree. Here's the link:
subject: Forward from Servlet to Action class?
Struts + Applet issue
get blank page for "Struts IN Action" first example ?
how to call servlet from struts application
why do we need Application Controller?
request dispatcher forward to struts 2 action
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013