Problem with Tomcat/Struts
Hi all,
I am new to Tomcat and have written a simple Struts application that presents the user with a login page (from a JSP), takes their userid and password and validates it against a MySQL database. The action of the login form created by the JSP is a Struts ActionServlet (logon.do), which validates the user information, and logs debug messages to the console window and a log file. If the login is successful, the servlet forwards to another JSP with a success message. The logon form displays without a problem, but when I enter the username/password and submit the form, a blank page appears in the browser and no messages appear in the console and the log file. The source of the returned page is:
<html><body></body></html>
This output does not come from any of my servlets, so I'm guessing that the default servlet is generating this output. I am not sure if this is a Struts or Tomcat issue. Does anyone have any ideas as to what can be wrong?
If I enter the URL of the form action in the browser, the servlet processes the request and forwards me to an error page (because there was no username/password supplied). Even though the servlet works as expected, I do not see any output in my log or the console window. Where does standard output go?
I'm running Tomcat 5.0.28 on WinXP in standalone mode, and I'm using Struts 1.2. Thanks in advance for any help you can give.
|