Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

having more than one application.properties for an application

 
Neela Sathesh
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Neela Sathesh
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 220
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Neela,
Struts is not a replacement for JSTL.struts is a framework and jstl can be used along with struts in jsp.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic