You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Viva Chu <vi...@transplay.com> on 2002/12/12 23:34:09 UTC
Multiple query params for global forwards
I'm trying to configure a global forward with multiple query parameters and
get a parse error from the Digester when my web app initializes. Is this
not allowed? If not, anyone know the reason why?
<global-forwards>
<forward name="stores" path="list.servlet?bean=Store&type=STORE"/>
<forward name="stores" path="list.servlet?bean=Store&type=AUCTION"/>
</global-forwards>
RE: Multiple query params for global forwards
Posted by Viva Chu <vi...@transplay.com>.
Here's the reason why for anyone else with a similar problem:
Since it is an xml file, you need to make sure to use entity references
where appropriate (i.e., changing & to &).
<global-forwards>
<forward name="stores"
path="list.servlet?bean=Store&type=STORE"/>
<forward name="stores"
path="list.servlet?bean=Store&type=AUCTION"/>
</global-forwards>
-----Original Message-----
From: Viva Chu [mailto:viva.chu@transplay.com]
Sent: Thursday, December 12, 2002 3:26 PM
To: Struts Users Mailing List
Subject: RE: Multiple query params for global forwards
Actually this was a typo only in my email when constructing my example.
Uniqueness of the forward name is not my problem. Here's the example again
written correctly:
<global-forwards>
<forward name="stores" path="list.servlet?bean=Store&type=STORE"/>
<forward name="auctions" path="list.servlet?bean=Store&type=AUCTION"/>
</global-forwards>
-----Original Message-----
From: Scott Dickson [mailto:scottd@objectif.com.au]
Sent: Thursday, December 12, 2002 3:21 PM
To: Struts Users Mailing List
Subject: RE: Multiple query params for global forwards
Forward names whether they are global or local have to be unique.
Just for clarification...
When you reference the name of the Forward in your action servlet struts
looks for a local Forward if it can't find one it will look for a Global
Forward.
Hope this helps.
Scott
-----Original Message-----
From: Viva Chu [mailto:viva.chu@transplay.com]
Sent: Friday, 13 December 2002 9:34
To: struts-user@jakarta.apache.org
Subject: Multiple query params for global forwards
I'm trying to configure a global forward with multiple query parameters and
get a parse error from the Digester when my web app initializes. Is this
not allowed? If not, anyone know the reason why?
<global-forwards>
<forward name="stores" path="list.servlet?bean=Store&type=STORE"/>
<forward name="stores" path="list.servlet?bean=Store&type=AUCTION"/>
</global-forwards>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Multiple query params for global forwards
Posted by Viva Chu <vi...@transplay.com>.
Actually this was a typo only in my email when constructing my example.
Uniqueness of the forward name is not my problem. Here's the example again
written correctly:
<global-forwards>
<forward name="stores" path="list.servlet?bean=Store&type=STORE"/>
<forward name="auctions" path="list.servlet?bean=Store&type=AUCTION"/>
</global-forwards>
-----Original Message-----
From: Scott Dickson [mailto:scottd@objectif.com.au]
Sent: Thursday, December 12, 2002 3:21 PM
To: Struts Users Mailing List
Subject: RE: Multiple query params for global forwards
Forward names whether they are global or local have to be unique.
Just for clarification...
When you reference the name of the Forward in your action servlet struts
looks for a local Forward if it can't find one it will look for a Global
Forward.
Hope this helps.
Scott
-----Original Message-----
From: Viva Chu [mailto:viva.chu@transplay.com]
Sent: Friday, 13 December 2002 9:34
To: struts-user@jakarta.apache.org
Subject: Multiple query params for global forwards
I'm trying to configure a global forward with multiple query parameters and
get a parse error from the Digester when my web app initializes. Is this
not allowed? If not, anyone know the reason why?
<global-forwards>
<forward name="stores" path="list.servlet?bean=Store&type=STORE"/>
<forward name="stores" path="list.servlet?bean=Store&type=AUCTION"/>
</global-forwards>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Multiple query params for global forwards
Posted by Scott Dickson <sc...@objectif.com.au>.
Forward names whether they are global or local have to be unique.
Just for clarification...
When you reference the name of the Forward in your action servlet struts
looks for a local Forward if it can't find one it will look for a Global
Forward.
Hope this helps.
Scott
-----Original Message-----
From: Viva Chu [mailto:viva.chu@transplay.com]
Sent: Friday, 13 December 2002 9:34
To: struts-user@jakarta.apache.org
Subject: Multiple query params for global forwards
I'm trying to configure a global forward with multiple query parameters and
get a parse error from the Digester when my web app initializes. Is this
not allowed? If not, anyone know the reason why?
<global-forwards>
<forward name="stores" path="list.servlet?bean=Store&type=STORE"/>
<forward name="stores" path="list.servlet?bean=Store&type=AUCTION"/>
</global-forwards>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>