I am happy for joining this group. I am testing JRun 2.3 Apache 1.3.4. I want session management like the Java Developer Connection (http://developer.javasoft.com/). I have the directory '/sales' with all the site content, which requires logging in before you view it. I want this part of the web server's document tree be handled by the 'SessionServlet'. (/sales/* ---> /servlet/SessionServlet) So, I added a mapping (/sales/ --> /SessionServlet) in a jse mapping configuration. ------------------------- Source of SessionServlet ----------------------------- public void service (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { ..................... fileServlet = (FileServlet)context.getServlet ("file"); RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/servlet/file"); dispatcher.forward(req, res); // Case 1 //dispatcher.include(req.res); // Case 2 //fileServlet.service(req, res); // Case 3 ........................ } ------------------------------------------------------------------------------------- <result> Case 1 : dispatcher.forward(req, res) - *.html --> doesn't work("Not Found Error 403") - *.jsp --> doesn't work("Not Found Error 403") - *.git --> doesn't work("Not Found Error 403") Case 2 : dispatcher.include(req.res) - *.html --> doesn't work("Not Found Error 403") - *.jsp --> doesn't work("Not Found Error 403") - *.git --> work fine Case 2 : fileServlet.service(req. res) - *.html --> doesn't work("display a plain text", not Html doc) - *.jsp --> doesn't work("display a plain text", not jsp doc) - *.git --> work fine ---------------------------------------------------------------------------------------------- I want to know how to do it. ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
