This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Struts and the fly likes having more than one for an application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "having more than one for an application" Watch "having more than one for an application" New topic

having more than one for an application

Neela Sathesh
Ranch Hand

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

I m having more than one 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

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

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

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

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
Struts is not a replacement for JSTL.struts is a framework and jstl can be used along with struts in jsp.
Have you checked out Aspose?
subject: having more than one for an application
It's not a secret anymore!