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!
author & internet detective
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.
OCA 8 book
How To Ask Questions The Smart Way
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Forward from Servlet to Action class?
Struts + Applet issue
how to call servlet from struts application
why do we need Application Controller?
request dispatcher forward to struts 2 action
get blank page for "Struts IN Action" first example ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015