struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Viva Chu" <viva....@transplay.com>
Subject RE: Multiple query params for global forwards
Date Thu, 12 Dec 2002 23:42:06 GMT
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 &amp;).

  <global-forwards>

    <forward   name="stores"
path="list.servlet?bean=Store&amp;type=STORE"/>
    <forward   name="stores"
path="list.servlet?bean=Store&amp;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:
<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>



--
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