• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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.
 
You guys wanna see my fabulous new place? Or do you wanna look at this tiny ad?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic