A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Android Security Essentials Live Lessons
this week in the
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
It is sorta covered in the
JavaRanch Style Guide
subject: Forward from Servlet to Action class?
how to call servlet from struts application
request dispatcher forward to struts 2 action
why do we need Application Controller?
get blank page for "Struts IN Action" first example ?
Struts + Applet issue
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014