• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

struts 2 - nested resource messages - best way?

 
Ranch Hand
Posts: 33
VI Editor Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 33
VI Editor Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic