You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Richards, Devin N (Devin)" <de...@lucent.com> on 2002/08/14 19:01:34 UTC

can you have 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?

TIA

-Devin

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: can you have in your ApplicationResources.properties?

Posted by "Craig R. McClanahan" <cr...@apache.org>.

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

> Date: Wed, 14 Aug 2002 13:01:34 -0400
> From: "Richards, Devin N (Devin)" <de...@lucent.com>
> Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
> To: "Users Mailing List Struts (E-mail)" <st...@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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>