This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
do you mean by message, that you have to print some dynamic text on the page?
if yes you could add the messages to an ArrayList in you controller and pass it to the JSP and in the JSP use a c:forEach tag to iterate over the list and print the "messages"
Omar Al Kababji - Electrical & Computer Engineer
[SCJP - 90% - Story] [SCWCD - 94% - Story] [SCBCD - 80% - Story] | My Blog
Omar Al Kababji
Ranch Hand
Joined: Jan 13, 2009
Posts: 357
posted
0
However if your application in internationalized (multiple languages) you can put the "keys" of your messages in the ArrayList, and use the <bean:message> to print the internationalized message.
yes im implementing internationalization, and also im using struts version 1.1 did struts version supports using of <bean: message> multiple times in a jsp.
for example :
lets think
there are 5 labels in my jsp which needs to be internationalization so that i want use <bean: message> five times in my jsp
did struts 1.1 supports using of <bean: message> 5 times in my jsp are there i any other alternate present
please suggest me.
Thanks & Regards,
Damodar.
Omar Al Kababji
Ranch Hand
Joined: Jan 13, 2009
Posts: 357
posted
0
if it accepts <bean:message> once it will accept it 100000 times
just try it and everything will be fine, but check out how to use it first
That doesn't make any sense--there's nothing in WL 8.1 that "doesn't support" mutliple <bean:message> tags; we had multiple S1 apps, all with many tags, running on 8.1.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: struts 1 supports in using <bean:message> multiple times