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

1. Using Servlets and JSP together resulting in unexpected looping    stackoverflow.com

I'm trying to use Servlets as a controller layer and JSPs as a view layer. Many of the examples/tutorials I've read suggest doing somehting like this:

public void doGet(HttpServletRequest request, HttpServletResponse response) ...

2. How can I map a "root" Servlet so that other scripts are still runnable?    stackoverflow.com

I'm trying to build a Servlet that calls a JSP page similar to the following:

public void doGet(HttpServletRequest req, HttpServletResponse resp)
  throws IOException, ServletException {
 req.getRequestDispatcher("/WEB-INF/main.jsp").forward(req, resp);
I need this Servlet to ...

3. is there any way to map a servlet to */    stackoverflow.com

i want to map a servlet to URLs end with /. like /user/register/, /user/login/, but not any other resource under that path, not /*. i tried /*/, but it doesn't work. so ...

4. what is the role of in the web.xml?    stackoverflow.com

Possible Duplicate:
Can anyone explain servlet mapping?
i want above questions theory answer.

5. Servlet Mapping using web.xml    stackoverflow.com

I have a confusion regarding the structure of the web.xml for the servlet mapping, I don't have any problem by executing it but I am trying to figure it how why ...

6. mapping of web.xml for .jsp files    coderanch.com

7. Web.xml Question - Map Servlet    coderanch.com

10. Servlet mapping question (web.xml)    coderanch.com

OK thanks. I wanted to avoid using a prefix since masking all of that with rules, etc in mod_jk is a pain and I really want short seo urls coming off of my domain name. I ended up just moving all of my images, css, js, etc to a web server so now I can filter everything using /*.

11. Need for servlet mapping in web.xml    coderanch.com