|
Yes that's what we did, using a simple
BasicAction class extending ActionBase that always return
mapping.findForward("success") in the perform
method.
Thierry
Thierry Cools Senior Java Developer S1 Brussels
Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium Tel :
+32 2 200 43 82 Email : [EMAIL PROTECTED]
----- Original Message -----
Sent: Tuesday, March 06, 2001 11:48
AM
Subject: simple forward/redirect
Hi everybody!
There was a discussion about not calling
jsp pages directly, but to always go through an action instead. I agree
that this makes a lot of sense it quite a few cases.
Now my stupid
question is: What do I have to enter in struts-config.xml in order to do a
simple forward or redirect e. g. from logon.do to logon.jsp?
Normally I
would write something like this:
> <!--
Process a user logon --> >
<action
path="/logon" >
type="login.LogonAction" >
<forward name="success" path="/logon.jsp"
/> > </action>
But I don't need
to do something special in the action LogonAction before diplaying
logon.jsp. So how do I come around this? Write a dummy action which always
returns success and use it in each of these cases?
Thanks a
lot,
--- Matthias
|