Re: Using Variables with Messages in Struts

2008-02-20 Thread Asad Habib
Hello Nuwan. Doing it the way you proposed defeats the purpose since I have to place this string in a bean first. I would like to retrieve this string directly from message resources and display it with the html intact. Is there any to do this? Thank you for your suggestion. - Asad On Feb 20,

Re: Using Variables with Messages in Struts

2008-02-20 Thread Adam Hardy
If you bear in mind that it's usually best to seperate mark-up and content, then you would break the string down into smaller parts: fmt:message key=please.sign.in.part1/ a href=login.jspfmt:message key=please.sign.in.part2//a fmt:message key=please.sign.in.part3/ Then the problem is that in

Re: Using Variables with Messages in Struts

2008-02-19 Thread Jeromy Evans
You may be able to do it with s:property, disabling escaping of the html: s:property value=getText('some.key') escape=false/ Asad Habib wrote: Hello. How do I represent the following in a message resources file? Representing a string literal is easy but the following string contains a link.

Using Variables with Messages in Struts

2008-02-19 Thread Asad Habib
Hello. How do I represent the following in a message resources file? Representing a string literal is easy but the following string contains a link. Can this even be done? I have used variables with the validator before but there is no validator involved in this case. Thank you. Please a

Re: Using Variables with Messages in Struts

2008-02-19 Thread Asad Habib
Hello Jeromy. What tag library are you using for this? - Asad On Feb 19, 2008 11:19 PM, Jeromy Evans [EMAIL PROTECTED] wrote: You may be able to do it with s:property, disabling escaping of the html: s:property value=getText('some.key') escape=false/ Asad Habib wrote: Hello. How do I

Re: Using Variables with Messages in Struts

2008-02-19 Thread Jeromy Evans
Oh, sorry, I assumed you were using Struts 2. That's a feature of the default tag library. Sorry, I don't know the answer for Struts 1.x Asad Habib wrote: Hello Jeromy. What tag library are you using for this? - Asad On Feb 19, 2008 11:19 PM, Jeromy Evans [EMAIL PROTECTED] wrote: You

Re: Using Variables with Messages in Struts

2008-02-19 Thread Nuwan Chandrasoma
Hi, why dont you try the bean:write tag with filter attribute as false. Thanks, Nuwan Jeromy Evans wrote: Oh, sorry, I assumed you were using Struts 2. That's a feature of the default tag library. Sorry, I don't know the answer for Struts 1.x Asad Habib wrote: Hello Jeromy. What tag