Register / Login
Win a copy of
Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA)
this week in the
Using form properties in an html:link tag
posted 10 years ago
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
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
HTML:link tag with dynamic page attribute?
Bean-based hyperlink not working
Problem showing html:link in jsp
How can this be done better (html:link)
html:link passing multiple parameters