I am just starting to build a web application using java, and as I do not have much experience while working with JSP or servlets, I wonder if I can have a Web.config file like when working with asp.net, where I can put all the configurations for my application. I don't think Java has this kind of thing, but I think the same result can be archieve if using JAXP. Is it what you guys normally do, for your xml configuration files.
Yes, For building web application using JSP/Servlet, there is something called web.xml(also called as Deployment Descriptor). Using this you can do lot of stuffs. Some are like mapping different URL to different servlet, adding welcome file for application etc.,
Try deploying an sample application in Tomcat webserver.
Maybe I am not really getting what the web.xml is?? Is it just a deployment description file that "says" how a set of files should be deployed?? I dont have that kind of knowledge because I have never worked with servlets, but I tought that this file was the same as the web.config file in .net, apparently it is, but in the web.config file I could set for eg the connection string for a database, and use that info in any C# class.
That is what I am looking for. I could implement that using JAXB, but if there iis that already then I should concentrate my efforts in other functionalities.