wood burning stoves*
The moose likes Struts and the fly likes having more than one application.properties for an application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "having more than one application.properties for an application" Watch "having more than one application.properties for an application" New topic
Author

having more than one application.properties for an application

Neela Sathesh
Ranch Hand

Joined: Jan 19, 2004
Posts: 50
hi experts,

I m having more than one application.properties file

How would i refer that properties file to a particular Page.

for eg.,
For input.jsp i need application.prop files to be used
for inputanother.jsp i need application.anotherprop to be used

is it possible?
could u help me in that


With regards,<br />Neela.N
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

If you are using JSTL, you can use a bundle tag to specify what bundle to use for a page.

If you are using bean tags, there is a bundle attribute that can be added to each tag.


A good workman is known by his tools.
Neela Sathesh
Ranch Hand

Joined: Jan 19, 2004
Posts: 50
Hi ,
Thanks for ur reply.
But i have not used bundle in my bean.Could u say how it is possible ?
And u have mentioned JSTL in your reply.Wat is meant by that?i don't have any idea.

With rgds,
Neela Sathesh
Nikhil Menon
Ranch Hand

Joined: Nov 22, 2004
Posts: 70
Here it goes,


1. JSTL (JSP Standard Tag Library) is a collection of custom tags l
libraries.

2. It provides common functionality that many web applications need.

3. JSTL provides support for presentation logic, formatting, XML support,
and database access.

4. JSTL extends many of the concepts found in Struts logic tags.
(In many ways, JSTL is the natural successor to the Struts tag
libraries.)

5. JSTL tags take the place of many Struts tags.

Note: It is recommended that you use JSTL tags in place of Struts tags
when there is an overlap.

Do more research on JSTL. And for SCWCD exam it helps a lot too!!
Neela Sathesh
Ranch Hand

Joined: Jan 19, 2004
Posts: 50
hi,

JSTL is an replacement for struts.
We can either use any one of it.Is it correct??

How to include more than one application properties using bundle in my struts application.


With regards,
Neela Sathesh..
Rajendar Goud
Ranch Hand

Joined: Mar 06, 2002
Posts: 220
Neela,
Struts is not a replacement for JSTL.struts is a framework and jstl can be used along with struts in jsp.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: having more than one application.properties for an application