<forward name="view" path="/do/view"/>

<html:link forward="view"> ...

or 

<forward name="view/n" path="/do/view?item=n" />

<html:link forward="view/n"> ...


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Java Web Development with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/

rob wrote:
> 
> I was just reading Ted's Struts Catalog to improve the building of my struts
> based application and I misunderstand the section on 'Use Global Forwards
> for all entry points to application'
> 
> Also it says 'all links in the application should be to ActionMappings.
> Rather than embed the path to
> an ActionMapping in a JSP, a link should refer to a Global Forward instead.
> This is what I either
> misunderstand or can't get to work.
> 
> I have a global forward:
> <forward name="view" path="/do/view"/>
> 
> Now I have a custom tag that would typically generate links to /do/view but
> would like to instead use
> the global forward name view.
> 
> example where n is generated from some set (not using global forward):
> <a href="/do/view?item=n">item n</a>
> obviously this is the kind of link we're trying to avoid cause it's hard
> coded to /do/view
> 
> So how do I generate a link that will follow / use the Global Forward?
> 
> Thanks
> 
> rob
> 
> --
> 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]>

Reply via email to