Hi Ted,

sorry to ask for clarification again and it's probably completely obvious
but I've overlooked it.  How can I specify the link from within a custom tag
(since the struts <html:link forward="xyz" /> tag) can only be used within a
JSP page and not in the body of doStartTag()/doEndTag()?  or can it?

Thanks for the quick reply before I appreciate it

rob
----- Original Message -----
From: "Ted Husted" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, February 04, 2002 3:14 PM
Subject: Re: global forwards (Struts Catalog)


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


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


Reply via email to