Hello, I have this in my struts-config.xml file
<action path="/manageAssets" type="com.skp.action.LoginAction" forward="/jsp/admin/manageAssets.jsp" redirect="true" />
When I call the container with "/action/manageAssets" it just forwards to the jsp page and does not use the type? I put a bunch of println statements in com.skp.action.LoginAction but it is not called? Could I be missing something?
using "forward" in an action element "trumps" the "type".
If your intention is to execute the action and then go to the forward, use this:
<action
path="/manageAssets"
type="com.skp.action.LoginAction">
<forward name="default" path="/jsp/admin/manageAssets.jsp" redirect="true" />
</action>
and then in your action, finish with return mapping.findForward("default");
In Struts 1.3 (not yet released), it is possible to use commons-chain to define a command which is executed "on the way" to handling a forward, which may be more the model you had in mind when you wrote that configuration.
Joe
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]