A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Using form properties in an html:link tag
Joined: Sep 12, 2005
Nov 10, 2005 14:23:00
Is there any easy/desirable way to use a form property within an html:link tag?
Background: I'm storing a file on my server and want to link to it. Say its called test.pdf, I would like the final anchor tag to be something like
What I would like to do is something like
<html:link page="/files/pdf/" <insert location property here somehow> >PDF</html:link>
I tried the jsp accessor route but it didn't work.
<html:link page='<%= "/files/pdf/" + location %>'>PDF</html:link>
Any ideas (or am I being dense and can't read the taglibs provided on the Struts site
I agree. Here's the link:
subject: Using form properties in an html:link tag
Bean-based hyperlink not working
Problem showing html:link in jsp
HTML:link tag with dynamic page attribute?
html:link passing multiple parameters
How can this be done better (html:link)
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013