the <html:link> is within a <logic:iterate> and therefore the url is within a collection
is there also an easy way to access it in this circumstances? > -----Original Message----- > From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] > Sent: Mittwoch, 31. Juli 2002 18:04 > To: Struts Users Mailing List > Subject: Re: html:link > > > > > On Wed, 31 Jul 2002, Ren� Eigenheer wrote: > > > Date: Wed, 31 Jul 2002 09:35:17 +0200 > > From: Ren� Eigenheer <[EMAIL PROTECTED]> > > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > > To: [EMAIL PROTECTED] > > Subject: html:link > > > > I guess this question was asked several times ago, but I > don't find the > > solution - sorry to ask again: > > > > I have an URL stored within a database and would like to generate <a > > href="xyz">. > > > > Therefore I try to use <html:link> but this tag does not > accept form bean > > properties. As a work around I used an idea I've read in > another post using > > <bean:define> to store the url value in a variable and use > this one with <%= > > variable %>. > > > > You don't even have to use <bean:define> if the value you looked up is > already in session scope or request scope -- you can just say > something > like: > > <html:link href="<%= (String) session.getAttribute("url") > %>">Link</html:link> > > > Does anybod know where there is a more struts like solution > using the value > > out of the form bean? > > > > In JSP 2.0, you'll be able to use the new expression language > anywhere, > not just on tags that understand it. Until then, runtime > expressions are > probably the best way to go. > > > TIA > > Rene > > > > Craig > > > -- > 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]>

