Sure, just add a field to your bean (the one you specified for this jsp in
the struts-config.xml) called someURL with getSomeURL() and
setSomeURL(String url), then
change your html:link tag to:
<html:link property="someURL">
click me
</html:link>

anyway, this might not be exact, but you get this idea

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://struts-atlanta.open-tools.org
ICQ: 27651409
AOLIM: jmitchtx (and NO I don't use AOL;)


> -----Original Message-----
> From: Noah Levitt [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 05, 2002 8:49 PM
> To: [EMAIL PROTECTED]
> Subject: [EMAIL PROTECTED]
>
>
> Hello struts-user,
>
> I would like html:link to retrieve a url (forward, href, or
> page, whatever) from a bean. That is, I want to do the
> equivalent of
>
> <html:link href="<%= request.getParameter("someURL") %>">
> click me
> </html:link>
>
> without the ugliness. Can it be done?
>
> Noah
>
>
>
>
> P.S. I noticed that
>
> http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-struts/src/sh
are/org/apache/struts/taglib/html/package.html?rev=1.12

says

  So, a tag like

     <html:link paramId="target"
       paramName="linkParams"
       paramProperty="target"
       paramScope="request"
     >detail.html</html:link>

  would correspond to something like

    <A HREF="detail.html?<%=
      request.getParameter("linkParams").getTarget()
    %>"></A>

That's not right, is it?

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