Project

General

Profile

« Previous | Next » 

Revision 2332

Added by Duane Costa over 19 years ago

Modify value of redirect to match the servlet-mapping URL values in web.xml. The old value used the servlet class name. This worked in Tomcat 4 but seems to break in Tomcat 5 on Windows. The new value uses the servlet-mapping URL value. This should work in both Tomcat 4 and Tomcat 5.

View differences:

HarvesterRegistrationLogin.java
117 117
            httpSession = req.getSession(true);
118 118
            httpSession.setAttribute("username", user);
119 119
            httpSession.setAttribute("password", passwd);
120
            res.sendRedirect("HarvesterRegistration");
120
            res.sendRedirect("harvesterRegistration");
121 121
          }
122 122
          else {
123 123
            out.println("Invalid login");

Also available in: Unified diff