Larry,

If you want the action to be called, you should forward to the action, not the
jsp eg

          <forward name="showLog" path="/ShowLog.do" />

hth,

Dave





"Larry Maturo" <[EMAIL PROTECTED]> on 08/15/2001
11:54:26 AM

Please respond to [EMAIL PROTECTED]; Please
      respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED],
      [EMAIL PROTECTED]
cc:    (bcc: David Hay/Lex/Lexmark)
Subject:  RE: action mapping not working




I have a similar problem.

I have 3 jsps, call them p1, p2, and p3. p2 repeats, so on success it
forwards to itself,
and this works fine.  Each time my action class gets called.  When I forward
to either
p1 or p3 the jsp gets called without the action class getting called.  My
struts-config.xml
file entry is:

    <action  path="/Question"
                type="com.athensgroup.eval.action.QuestionAction"
                name="QuestionForm"
                scope="request"
                input="/jsp/Question.jsp">
                <forward name="success" path="/jsp/Question.jsp"/>
                <forward name="instructions"
path="/jsp/ReviewInstructions.jsp"/>
                <forward name="summary" path="/jsp/ReviewSummary.jsp"/>
    </action>

   My forwards are:
             return mapping.findForward("instructions");
             return mapping.findForward("summary");
             return mapping.findForward("success");

It appears to me that all 3 case the same, Struts should handle them the
same, and
I should get the same results, yet only the success one works.  What am I
doing
wrong?

-- Larry Maturo



-----Original Message-----
From: Matt Raible [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 15, 2001 10:42 AM
To: [EMAIL PROTECTED]
Subject: action mapping not working



I have the following in my web.xml file:

  <servlet-mapping>

    <servlet-name>action</servlet-name>

    <url-pattern>*.do</url-pattern>

  </servlet-mapping>

And the following mapping in struts-config.xml

      <action

       path="/signIn"


type="us.co.douglas.application.timetracker.presentationlogic.SignInAction"

       name="signInForm"

       scope="request"

       validate="false"

       input="/signIn">

         <forward

          name="success"

          path="/mainMenu" />

      </action>

However, when I try to execute /signIn.do from the URL, I hit my signIn.jsp
page 


û and no action class 


û any ideas?

Thanks,

Matt


Title: action mapping not working
I have a similar problem.
 
I have 3 jsps, call them p1, p2, and p3. p2 repeats, so on success it forwards to itself,
and this works fine.  Each time my action class gets called.  When I forward to either
p1 or p3 the jsp gets called without the action class getting called.  My struts-config.xml
file entry is:
 
    <action  path="/Question"
                type="com.athensgroup.eval.action.QuestionAction" 
                name="QuestionForm"
                scope="request"
                input="/jsp/Question.jsp">
                <forward name="success" path="/jsp/Question.jsp"/>
                <forward name="instructions" path="/jsp/ReviewInstructions.jsp"/>
                <forward name="summary" path="/jsp/ReviewSummary.jsp"/>
    </action>
   
   My forwards are:
             return mapping.findForward("instructions");
             return mapping.findForward("summary");
             return mapping.findForward("success");
 
It appears to me that all 3 case the same, Struts should handle them the same, and
I should get the same results, yet only the success one works.  What am I doing
wrong?
 
-- Larry Maturo
 

-----Original Message-----
From: Matt Raible [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 15, 2001 10:42 AM
To: [EMAIL PROTECTED]
Subject: action mapping not working

I have the following in my web.xml file:

  <servlet-mapping>

    <servlet-name>action</servlet-name>

    <url-pattern>*.do</url-pattern>

  </servlet-mapping>

And the following mapping in struts-config.xml

      <action

       path="/signIn"

       type="us.co.douglas.application.timetracker.presentationlogic.SignInAction"

       name="signInForm"

       scope="request"

       validate="false"

       input="/signIn">

         <forward

          name="success"

          path="/mainMenu" />

      </action>

However, when I try to execute /signIn.do from the URL, I hit my signIn.jsp page and no action class any ideas?

Thanks,

Matt

Reply via email to