You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by dh...@lexmark.com on 2001/04/26 23:28:42 UTC

Re: #### Can someone pleeeeeeeeese elaborate on the rules regarding Action attribues "input" and "path" ....Please ####


Hi.

Have regular mapping in web.xml:
  <!-- Action Servlet Mapping -->
  <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
  </servlet-mapping>

and then in struts-config.xml, have the following path set up:

     <!-- Show Log filter -->
     <action
          path="/ShowLogFilter"
          type="beans.ShowLogFilterAction"
          name="LogFilterForm"
          input="/index.jsp"
          validate="false">
          <forward name="success" path="/logFilter.jsp" />
     </action>

I link to this through ShowLogFilter.do in my link.

HTH,

Dave






"Jonathan" <ja...@interlock.lexmark.com> on 04/26/2001 04:49:50 PM

Please respond to struts-user%jakarta.apache.org@interlock.lexmark.com; Please
      respond to "Jonathan" <ja...@interlock.lexmark.com>

To:   struts-user%jakarta.apache.org@interlock.lexmark.com
cc:    (bcc: David Hay/Lex/Lexmark)
Subject:  ####   Can someone pleeeeeeeeese elaborate on the rules regarding
      Action attribues "input" and "path" ....Please   ####



It is not clear to me exactly whatthese values could or should be.  I understand
that the ".do" is stripped of the request, so does that mean I only have to
match everything up to the ".do" ?  Why is a "/" used?  To me this means "root",
and in fact in the Login example the path changes from "/mysite/logon/logon.jsp"
to "/mysite/login".  I am aware of the side effects of forwarding on the url,
but I am confused as to how to employ the "input" and "path" values.