wood burning stoves 2.0*
The moose likes Servlets and the fly likes Externalizing Properties in web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Externalizing Properties in web.xml" Watch "Externalizing Properties in web.xml" New topic
Author

Externalizing Properties in web.xml

J.C. Bustamante
Greenhorn

Joined: Jul 20, 2009
Posts: 22
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
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 684


Hi,

can you please make your question with more description. we didn't get idea about question.

Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
J.C. Bustamante
Greenhorn

Joined: Jul 20, 2009
Posts: 22
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Externalizing Properties in web.xml
 
Similar Threads
WEB.XML assistance...
How to Externalize properties outside WAR file
Choice of book
reading a csv file in ant
Multiple properties files