web.xml « Tomcat « JSP-Servlet Q&A





1. TomCat 6: can welcome page be inside WEB-INF?    stackoverflow.com

I'm following this example to get Spring up & running: http://static.springsource.org/docs/Spring-MVC-step-by-step/part2.html What they do is move all .jsp files inside the WEB-INF, to stop users accessing them directly... so far ...

2. Error code mappings in web.xml not working    stackoverflow.com

I have created a simple web application, for which I want all responses with 404 status code to be redirected to an error page within my web-app. I have included the following ...

3. How to make my first servlet work?    stackoverflow.com

I'm trying to make my first servlet to run in eclipse for j2ee with tomcat 7.0, but I can't figure it out what i am doing wrong. I run the whole ...

4. java tomcat: only a type can be imported. com.a.B resolves to a package    stackoverflow.com

i have the following project structure:

./WEB-INF/web.xml
./WEB-INF/lib
./WEB-INF/classes/com/a/B.class
./index.jsp
when i try to put this project in tomcat webapp and try to execute index.jsp i get the error:
org.apache.jasper.JasperException: Unable to compile class for JSP: 

An ...

5. How to invoke a servlet without mapping in web.xml?    stackoverflow.com

How to invoke a simple servlet using the following URL: http://localhost:8080/servlet/MyServlet I placed it in the folder: tomcat\webapps\ROOT\WEB-INF\classes I've read there is no need to mention the servlet in web.xml. I did ...

6. Error page in web.xml    stackoverflow.com

I have a such problem: i've set the dafault error page in web.xml on java.lang.Exception type, thus it has to be shown on all exceptions in servlets and jsp. But ...

7. Problem in understanding the significance of xml file in web application    stackoverflow.com


I am using jsp to develop a web application...using tomcat server... I am facing a bit problem in creating the web.xml file....what confusion i am having is that can an application have ...

8. Tomcat 7 Web.xml    stackoverflow.com

This is probably obvious, but I can't find any details on it. After watching a video on tomcat 7, it was mentioned that it was possible to log the final web.xml ...

9. Servlet Mapping fails    stackoverflow.com

Now I have the following problem: I am trying to create a website using Tomcat 7 and JSP. But I am not capable of configurating the server properly. I want a website that shows ...





10. Tomcat/jsp/servlet /web.xml issue    stackoverflow.com

I am working on a project for school and am completely frustrated. The project is to get a simple JSP/Servlet demo working on our personal websites and after probably 20+ ...

11. My own personal environment config file in addition to web.xml. Possible?    stackoverflow.com

Simple question really. Can a webapp access a config file I define and put at the Tomcat->Conf sort of level, or am I restricted to web.xml environment variables alone? I suspect ...

12. auto invoke main servlet through welcome file list    stackoverflow.com

The following web.xml doesn't seem to work:

<servlet-mapping>
    <servlet-name>MyServlet</servlet-name>
    <url-pattern>*.wfn</url-pattern>
</servlet-mapping>

<welcome-file-list>
    <welcome-file>SelectSessionServer.wfn</welcome-file>
</welcome-file-list>
Instead, a directory listing is shown. I have an index.html file in ...

14. JSP- Tomcat-web.xml jsp-config    forums.oracle.com