anyone who can help me with some code example of writing a sql query in web.xml or property file. as i am developing a application with a variable sql query which may change any time.
Select query Update query Insert Query
Sun Certified Java Programmer<br />Sun Certified Web Component Developer <br />National Stock Exchange Certification in Financial Market
Joined: Mar 22, 2005
I would put it into a properties file. That way you can write code to reload the file contents at runtime when a particular URL is hit. That's not possible if you put it into web.xml (for which you'd need to reload the whole web application).