wood burning stoves 2.0*
The moose likes Struts and the fly likes ApplicationResources Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "ApplicationResources" Watch "ApplicationResources" New topic
Author

ApplicationResources

Raj Kum
Greenhorn

Joined: Oct 06, 2003
Posts: 3
Hi!
Could any body tell me how to concatenate variables inside an ApplicationResources.properties file.
For example
key1=value1
key2=key1+value2
I mean just concatenating like the strings
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4446
    
    5

You can't. You'd have to do that with code or by simply juxtaposing two bean:message tags in your JSP


Junilu - [How to Ask Questions] [How to Answer Questions]
Raj Kum
Greenhorn

Joined: Oct 06, 2003
Posts: 3
Thanks for answering my question. I don't want to concatenate it with <bean:message...> tags. But how can I do it with in the code? Which class do I need to reimplement?
I appreciate your answers.
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4446
    
    5

check out the JavaDocs for org.apache.struts.validator.Resources
Raj Kum
Greenhorn

Joined: Oct 06, 2003
Posts: 3
Thanks a Lot
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: ApplicationResources
 
Similar Threads
Read duplicate keys from properties file
Tomcat with [] and . operator
c:set problem
adding value to a map present in a scriplet in a jsp page
Editing Application Resources.properties at runtime