Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
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
Forum:
Struts
bean:message on java class or servlet
Quince bise
Greenhorn
Posts: 8
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi!
I'm just new to
Java
Struts
.
I would like to know if it is possible to use <bean:message key="" /> (for my internationalization) inside a
servlet
or in an action java class? If it is, how do i use or include it? any help would be great. Thanks.
Quince bise
Greenhorn
Posts: 8
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I already figured out the answer to my questions. Thanks anyway
ResourceBundle res =
ResourceBundle.getBundle("MyResource");
// we get text in the same way
String
strHello = res.getString(
"HELLO_TEXT");
Sun Java
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
unable to use more than 2 <bean:message. tags in jsp
Multiple Message Resource File Problem
message resource bundles question
Show property from resource file in Action class
struts 1 supports in using <bean:message> multiple times
More...