• 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

Externalizing Properties in web.xml

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I wanted to know how do I externalize properties in web.xml? For example, if I wanted to set a login URL or a server name of sorts in the web.xml, is there a way that I could externalize that in a properties file? Please let me know.

Thanks,

Juan
 
Ranch Hand
Posts: 689
Scala Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi,

can you please make your question with more description. we didn't get idea about question.
 
J.C. Bustamante
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Nishan,

I wanted to know if it was possible to substitute values in the web.xml as variables in a properties file. For example, if I had a property in the web.xml that has the value http://localhost:7001/blah then I want that value to be read from a properties file and not hardcoded in the web.xml when building. I believe that it could be done using Maven. I am looking into it now.

Thanks,

Juan
reply
    Bookmark Topic Watch Topic
  • New Topic