tomcat « URL « JSP-Servlet Q&A





1. Accessing a servlet's mapping from Tomcat?    stackoverflow.com

The following code accesses a servlet's name: servletConfig.getServletName(). Can I access a servlet's URL pattern in a similar way? An excerpt from web.xml:

<servlet-mapping>
  <servlet-name>This is the servlet's name</servlet-name>
  <url-pattern>/this-is-its-url-pattern/*</url-pattern>
</servlet-mapping>

2. HTTP method GET is not supported by this URL    stackoverflow.com

I'm calling servlets which has implemented CometProcessor interface, and whenever I try to call the servlets with get request, I'm getting the above error. May I know the reason?

public class ChatServlets ...

3. Get full servlet URL during startup under Tomcat 7    stackoverflow.com

I have a web application written using Tomcat 6 and I'm trying to make it work with Tomcat 7. During its startup the application, besides other things, registers its web service ...

4. jaxcent url mapping to JSP    stackoverflow.com

i have an index.jsp that makes calls to other JSPs, like header.jsp, footer.jsp, etc. These jsps in turn return html to display their respective portions of the page. i'm trying to ...

5. requestURI is truncating my url    stackoverflow.com

I'm running Tomcat6, no struts or any other add-ons. A custom dispatcher calls the appropriate method in the application. I'm hitting an issue where a particular url is getting truncated. My ...

6. Tomcat 6 not recognizing     stackoverflow.com

I have what I think is the simplest possible hello world example (see below). But when asking for "http://localhost:8080/hello" thru firefox, it gives me the "The requested resource (/hello/) is not available" error. Environment: newly installed ...

7. is setting tomcat application url to http:// hostname/application/ possible?    stackoverflow.com

I have a setup, with tomcat running on port 8080 and apache webserver running on port 80. So if I access http://localhost:8080/myapplication/ , it works. But I need to be able ...

8. In Tomcat 7, can I use regular expressions in ?    stackoverflow.com

Does Tomcat 7 have such a facility? Although I could write a filter to parse regular expression in url, it would make another project. I think such a facility ...

9. Tomcat selecting wrong servlet occassionally    stackoverflow.com

I have a Java web application that serves up VXML pages to a VXML interpreter. Under sustained traffic conditions in a test lab, Tomcat (6.0.32) appears to be occassionally selecting the ...





10. How to protect a URL(iFrame) with Tomcat against inline linking?    stackoverflow.com

I have a iFrame represented by a JSP page that I want to protect against inline linking. Apache has a mechanism to restrict/allow domains. Is there something similar for Tomcat and how can ...

11. Can someone pls give me the URL for Tomcat    coderanch.com

Hi there, Which version of Tomcat do I need for Windows? The version I have installed at the moment is 4.1.12 which came zipped-up. I've probably got the right one, but I would really like to double check, as I'm having problems running Tomcat. I keep getting the error: The JAVA_HOME enviroment variable is not defined. I find this strange because ...

12. Tomcat JSP URL Mapping    coderanch.com

13. Servlet URL Aliasing (Apache + TomCat)    coderanch.com

14. JSP URL pattern problem in Tomcat    coderanch.com