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:[EMAIL PROTECTED]]
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:[EMAIL PROTECTED]]
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:[EMAIL PROTECTED]]
Sent: Friday, 13 December 2002 9:34
To: [EMAIL PROTECTED]
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:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>