Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Specifying Request Parameter in [html:link]

 
Alec Lee
Ranch Hand
Posts: 569
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to attach a single parameter with a literal value to html:link. But it seems that I need to create a bean to store the value and give the name of that bean to the paramName attribute. Can we just simply type a literal String value in the html:link tag? It doesn't make sense to go through a big circle in order to do such a simple task?
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could simply specify the parameter like this:

<html:link page="/myAction.do?parm1=foo" >click here</html:link>

If you still want to use the other method, it really isn't that hard:

<bean:define id="fooString" value="foo" />
<html:link action="myAction" paramId="parm1" paramName="fooString" >click here</html:link>
[ October 07, 2006: Message edited by: Merrill Higginson ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic