• 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

having more than one application.properties for an application

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I want my playground back. Here, I'll give you this tiny ad for it:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic