struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: can you have <html:link> in your ApplicationResources.properties?
Date Wed, 14 Aug 2002 17:17:58 GMT


On Wed, 14 Aug 2002, Richards, Devin N (Devin) wrote:

> Date: Wed, 14 Aug 2002 13:01:34 -0400
> From: "Richards, Devin N (Devin)" <devin@lucent.com>
> Reply-To: Struts Users Mailing List <struts-user@jakarta.apache.org>
> To: "Users Mailing List Struts (E-mail)" <struts-user@jakarta.apache.org>
> Subject: can you have <html:link> in your ApplicationResources.properties?
>
> I have the following using 1.1-b2
>
> Ack.jsp
> <bean:message key="com.myco.myapp.sig" />
>
> ApplicatoinResources.properties:
> com.myco.myapp.sig=Thank you for your inquiry. You may <html:link
> forward="question">submit</html:link> another question
>
> When the action displays the Tiles definition that contains Ack.jsp all of the text appears
on the page, but the <html:link> was not "processed" and thus the link is not active.
>
> Any ideas on how to get this to work, with out having to put the <html:link> in
the JSP?
>

You cannot embed general JSP stuff into a message and expect it to be
"compiled" at run time.  This is a general JSP rule, not something unique
to Struts.

One simple solution is to embed a <bean:message> call for each of the two
staic parts of the message, and leave a real <html:link> tag in your page
in between.

> TIA
>
> -Devin
>

Craig


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message