struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alfors, Peter" <palf...@delphion.com>
Subject RE: Calling mapping from Action
Date Fri, 23 Aug 2002 14:39:04 GMT
if your path is "/cutOffInit.do" then you must have an action called "cutOffInit"
for example:

<action path="/cutOffInit" 
        type="com.myCompany.CutOffInitAction" 
        name="cutOffForm" 
        scope="session" 
        validate="false">
  <forward name="success" path="/next.jsp"/>
</action>

verify that the forward's path matches the action exactly...

HTH,
	pete

-----Original Message-----
From: avasey@za.safmarine.com [mailto:avasey@za.safmarine.com]
Sent: Friday, August 23, 2002 2:11 AM
To: struts-user@jakarta.apache.org; jcheng@johncheng.dhs.org
Subject: RE: Calling mapping from Action



Yes with no luck.



|--------+------------------------>
|        |          jcheng@johnche|
|        |          ng.dhs.org    |
|        |                        |
|        |          22/08/2002    |
|        |          07:37 PM      |
|        |          Please respond|
|        |          to            |
|        |          struts-user;  |
|        |          Please respond|
|        |          to jcheng     |
|        |                        |
|--------+------------------------>
  >----------------------------------------------------------------------------|
  |                                                                            |
  |       To:     struts-user@jakarta.apache.org                               |
  |       cc:     (bcc: Aisling Vasey/scs/Linernet)                            |
  |       Subject:     RE: Calling mapping from Action                         |
  |                                                                            |
  >----------------------------------------------------------------------------|




> From: avasey@za.safmarine.com [mailto:avasey@za.safmarine.com]
> Sent: Thursday, August 22, 2002 10:23 AM
> To: struts-user@jakarta.apache.org
> Subject: Calling mapping from Action
>
>
>
> Hi
> Excuse the silly question but how do I specify one of my
> Action mappings as a
> forward for another mapping using Struts 1.0.2 ?
> Currently I am trying <forward name="cutOffSearch"
> path="/cutOffInit.do" /> as a
> forward for my Action in my xml file but I just get file not found and
> variations of this produce invalid mapping errors.
> Is this possible ?
> thanks very much
> Aisling
>

Have you tried using "/cutOffInit" instead of "/cutOffInit.do?"

Example:

  <forward name="cutOffSearch" path="/cutOffInit" />



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>





--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message