This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JSP and the fly likes fmt bundle help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "fmt bundle help" Watch "fmt bundle help" New topic
Author

fmt bundle help

Tina Desai
Ranch Hand

Joined: Mar 13, 2003
Posts: 365
Friends,

I need some help on using the fmt tag for messages.

From the material I read, the fmt tag in a directive should be included at the start of the page.

What I am not sure of is, how should I specify the properties file in which I will be writing the error or success messages key value pairs?
1. Will I need to write any ResourceBundle class that loads properties from this property file?

2. Or specifying the .properties file in the setBundle tag is enough?

Thanks in advance!

Regards,
Tina


Alongwith being a good coder, try to be a good professional as well!
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

You're not talking about JSTL, are you ?
What fmt tag are you talking about ?


[My Blog]
All roads lead to JavaRanch
Tina Desai
Ranch Hand

Joined: Mar 13, 2003
Posts: 365
I need help for JSTL fmt tag only.

Regards,
Tina
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42047
    
  64
This article may help you get going.


Ping & DNS - my free Android networking tools app
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Oh sorry, I was looking at the wrong thing.
You don't need a class, just property files.
There's a tutorial here:
http://www-128.ibm.com/developerworks/java/library/j-jstl0415/
Tina Desai
Ranch Hand

Joined: Mar 13, 2003
Posts: 365
Thank you all!

I got the right information.

Regards,
Tina
 
GeeCON Prague 2014
 
subject: fmt bundle help