Hi,

I have a question concerning the Struts-HTML-Tag <html:link>. I want to generate a link to an action with one parameter which is a hardcoded String (not a value of a bean property which is present in a scope). And I don't want to use the url-Attribut but the action-Attribut to generate the link to the action. One example link could be: http://mydomain/setLocale.do?lang="de";.

What I'm doing now is: create a HashMap with one entry and use the name-Attribut:

<jsp:useBean id="langParamMap" class="java.util.HashMap"/>
<c:set target="${langParamMap}" property="lang" value="de"/>
<html-el:link action="setLocale" name="langParamMap">
  lang
</html:el>

That works fine, but just out of curiosity: Is there really no possibility to just provide a string via an attribute of html:link which then is appended literally to the generated URL as a parameter. And if not is there a special reason for it?

Regards
Franz


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to