struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Defining a forward path- not to a JSP, but to another Action
Date Wed, 13 Mar 2002 17:37:17 GMT

In the examples I've seen - any forwards that are defined (whether
global-forwards or action-specific) seem to point to JSP pages, i.e.

      <forward name="login" path="/login.jsp"/>
      <forward name="success" path="/home.jsp"/>

However I'd like for my user to login (handled by LoginAction) and then not
just be sent straight to home.jsp.  Instead, I'd like to forward to
HomeAction which will prepare the necessary beans for use by home.jsp.

How do I go about defining this in structs-config.xml?  I'm a bit lost
because I keep seeing elements called "path" but some look like "/login.jsp"
and some look like "/login".  Why is this?  Can you put "/" as a
forward path and it will forward to HomeAction?  Or is this done simply by
putting "/home" as the forward path.

I'm sure this is very simple, but I really need to figure it out before my
boss realises how little progress I've made this week!  =o(



To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message