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