How to get messages in a scriptlet?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Aarun_Jones
Posted On:   Wednesday, April 27, 2005 03:25 PM

In my struts application I can access a message as in my jsp page. That works fine. But, I need to use this message as an attribute to a tag as I cannot use text=" " as the tag library treats it as text. So, I need to store the message in a variable and use that as follows: <% String msg = how get the message; %> <%= msg%> Question is how to get the message in Java?    More>>

In my struts application I can access a message as


			


in my jsp page.
That works fine.


But, I need to use this message as an attribute to a tag as

			




I cannot use


			
text=" "

as the tag library treats it as text. So, I need to store the message in a variable and use that as follows:


			
<% String msg = how get the message;
%>


<%= msg%>




Question is how to get the message in Java?    <<Less

Re: How to get messages in a scriptlet?

Posted By:   Anonymous  
Posted On:   Thursday, April 28, 2005 08:41 AM

Hi,

you can use struts tags in html tags,
for example:

">


Best regards,

Rossi
About | Sitemap | Contact