aspose file tools*
The moose likes Struts and the fly likes struts 2 - nested resource messages - best way? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts 2 - nested resource messages - best way?" Watch "struts 2 - nested resource messages - best way?" New topic
Author

struts 2 - nested resource messages - best way?

Stefaan Dutry
Ranch Hand

Joined: Sep 17, 2010
Posts: 32

Hello,

I've been struggling to find a way to use nested resource messages in a jsp page.

I finaly managed to find one, but I was wondering if there were better ways.

in my resource file i have the following:


in my jsp i did the following:


it gives me the desired output:


The main reason i was wondering if there were better ways, is because i couldn't find any documentation on the web on how to do it, i basicaly just guessed since the <bean:message> tag is also able to use attributes arg0 to arg3.

If anyone could point me towards any documentation about this, i would be very grateful.


Regards,

Stefaan
Stefaan Dutry
Ranch Hand

Joined: Sep 17, 2010
Posts: 32

I just noticed i made a mistake there.
It's not required to name your parameter arg0 -> arg3.

It's just de first 4 parameters that are considered, regardless their name (if any).

Any hints towards any documentation are still welcome.

Regards,

Stefaan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts 2 - nested resource messages - best way?
 
Similar Threads
Freemarker Syntax for Accessing Messages in Resource Bundle
Format number problem
s:url and javascript onclick submit
struts 2 tags question, certain jsp code not being executed
Display Tag horizontal scroll bar issues