I agree with John. The conditional processing should be the "Action" class.
For example, the action class goes to the database to retrieve some data and
based on certain properties of the data you make decision to froward to
a.jsp or b.jsp etc.
The ActionServlet should be left alone in general. If a feature should be
added to the ActionServlet, one should propose it to struts-dev.
-----Original Message-----
From: John Raley [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 11:49 AM
To: [EMAIL PROTECTED]
Subject: Re: [Q] ActionServlet Forwarding
Ken,
Are you subclassing ActionServlet solely to perform this conditional
forwarding? If so I would recommend putting this logic into an Action
subclass called something like ActionBase (instead of putting it in
ActionServlet) and making your actions subclasses of your custom
ActionBase class. I don't think ActionServlet was really meant to be
subclassed.
[EMAIL PROTECTED] wrote:
>I looked through the JavaDoc and tried to find an example in the User Guide
>was unable to find one. I also looked through the samples. I did find
>example of forwarding from the ActionClass but not from ActionServlet. Can
>you point me to where you were able to find the example?
>
>Thanks!
>Ken
>