You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ferran Parra <fe...@mubimedia.com> on 2003/02/21 16:49:26 UTC
error in the attribute input of actionmapping when accesing a globalforward
Hi all,
I have the globalforward in the property input of the one action in action-mapping, i configure this in the controller in the struts-config.xml file in the struts1.1b3
in the struts-config.xml i have:
<controller
inputForward="true"
nocache="true"
locale="true"/>
and in one actionmapping in the input attribute i refer a global forward:
<global-forwards>
...
<forward name="adminCreateUser" path="/do/admin/AdminPreCreateUserentity=rol&action=find&reference=rol" />
...
</global-forwards>
<action-mappings>
...
<!-- AdminCreateUser -->
<action path="/admin/AdminCreateUser"
type="com.mubimedia.project.struts.action.AdminAction"
input="adminCreateUser"
name="userForm"
scope="request"
validate="true"
>
<forward name="success" path=".admin.index.page" />
</action>
...
</action-mappings>
then the error ocurr when i have redirect to input attribute of AdminCreateUser actionmapping. the tomcat says:
type Status report
message /adminCreateUser
description The requested resource (/adminCreateUser) is not available.
any idea??? thanks
Ferran Parra
Departament de Noves Tecnologies
MUBIMEDIA S.L.
----------------------
ferran_p@mubimedia.com
Mallorca, 275, 1r 2a
08008 BARCELONA
T. (+34) 93 215 21 91
F. (+34) 93 215 41 21
Re: error in the attribute input of actionmapping when accesing a globalforward
Posted by Ferran Parra <fe...@mubimedia.com>.
----- Original Message -----
From: "James Mitchell" <jm...@apache.org>
To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
Sent: Friday, February 21, 2003 4:55 PM
Subject: RE: error in the attribute input of actionmapping when accesing a
globalforward
> Is this part correct?
> > path="/do/admin/AdminPreCreateUserentity=rol&...
> ^^^
>
> Perhaps you forgot the '?'
No, is in my struts-config.xml, is a error while write a message:
..path="/do/admin/AdminPreCreateUser?entity=rol&...
>
>
>
> --
> James Mitchell
> Software Engineer/Struts Evangelist
> http://www.open-tools.org/
>
> "The man who does not read good books has no advantage over the man who
> cannot read them."
> - Mark Twain (1835-1910)
>
>
>
> > -----Original Message-----
> > From: Ferran Parra [mailto:ferran_p@mubimedia.com]
> > Sent: Friday, February 21, 2003 10:49 AM
> > To: Struts Users Mailing List
> > Subject: error in the attribute input of actionmapping when
> > accesing a globalforward
> >
> >
> > Hi all,
> > I have the globalforward in the property input of the one
> > action in action-mapping, i configure this in the controller
> > in the struts-config.xml file in the struts1.1b3
> >
> > in the struts-config.xml i have:
> > <controller
> > inputForward="true"
> > nocache="true"
> > locale="true"/>
> >
> > and in one actionmapping in the input attribute i refer a
> > global forward:
> >
> > <global-forwards>
> > ...
> > <forward name="adminCreateUser"
> > path="/do/admin/AdminPreCreateUserentity=rol&action=find&a
> > mp;reference=rol" />
> > ...
> > </global-forwards>
> >
> > <action-mappings>
> > ...
> > <!-- AdminCreateUser -->
> > <action path="/admin/AdminCreateUser"
> > type="com.mubimedia.project.struts.action.AdminAction"
> > input="adminCreateUser"
> > name="userForm"
> > scope="request"
> > validate="true"
> > >
> > <forward name="success" path=".admin.index.page" />
> > </action>
> > ...
> > </action-mappings>
> >
> > then the error ocurr when i have redirect to input attribute
> > of AdminCreateUser actionmapping. the tomcat says:
> >
> > type Status report
> > message /adminCreateUser
> > description The requested resource (/adminCreateUser) is not
> > available.
> >
> > any idea??? thanks
> > Ferran Parra
> >
> > Departament de Noves Tecnologies
> > MUBIMEDIA S.L.
> > ----------------------
> > ferran_p@mubimedia.com
> > Mallorca, 275, 1r 2a
> > 08008 BARCELONA
> > T. (+34) 93 215 21 91
> > F. (+34) 93 215 41 21
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: error in the attribute input of actionmapping when accesing a globalforward
Posted by James Mitchell <jm...@apache.org>.
Is this part correct?
> path="/do/admin/AdminPreCreateUserentity=rol&...
^^^
Perhaps you forgot the '?'
--
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org/
"The man who does not read good books has no advantage over the man who
cannot read them."
- Mark Twain (1835-1910)
> -----Original Message-----
> From: Ferran Parra [mailto:ferran_p@mubimedia.com]
> Sent: Friday, February 21, 2003 10:49 AM
> To: Struts Users Mailing List
> Subject: error in the attribute input of actionmapping when
> accesing a globalforward
>
>
> Hi all,
> I have the globalforward in the property input of the one
> action in action-mapping, i configure this in the controller
> in the struts-config.xml file in the struts1.1b3
>
> in the struts-config.xml i have:
> <controller
> inputForward="true"
> nocache="true"
> locale="true"/>
>
> and in one actionmapping in the input attribute i refer a
> global forward:
>
> <global-forwards>
> ...
> <forward name="adminCreateUser"
> path="/do/admin/AdminPreCreateUserentity=rol&action=find&a
> mp;reference=rol" />
> ...
> </global-forwards>
>
> <action-mappings>
> ...
> <!-- AdminCreateUser -->
> <action path="/admin/AdminCreateUser"
> type="com.mubimedia.project.struts.action.AdminAction"
> input="adminCreateUser"
> name="userForm"
> scope="request"
> validate="true"
> >
> <forward name="success" path=".admin.index.page" />
> </action>
> ...
> </action-mappings>
>
> then the error ocurr when i have redirect to input attribute
> of AdminCreateUser actionmapping. the tomcat says:
>
> type Status report
> message /adminCreateUser
> description The requested resource (/adminCreateUser) is not
> available.
>
> any idea??? thanks
> Ferran Parra
>
> Departament de Noves Tecnologies
> MUBIMEDIA S.L.
> ----------------------
> ferran_p@mubimedia.com
> Mallorca, 275, 1r 2a
> 08008 BARCELONA
> T. (+34) 93 215 21 91
> F. (+34) 93 215 41 21
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org