• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts 2 - nested resource messages - best way?

 
Stefaan Dutry
Ranch Hand
Posts: 32
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic