File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide 1Z0-808
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!
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
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
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