我调试一个jsp+tomcat5.0+sqlsever2000程序 出现login.do后显示空白 在线等
我调试一个jsp+tomcat5.0+sqlsever2000程序 出现login.do后显示空白 刚学习jsp 不知道那里出错了请大虾帮忙
再线===========
web.xml
<?xml version= "1.0 " encoding= "ISO-8859-1 "?>
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN "
"http://java.sun.com/dtd/web-app_2_3.dtd ">
<web-app>
<display-name> MediaStore </display-name>
<description> MediaStore </description>
<context-param>
<param-name> dburl </param-name>
<param-value> jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=mediastore </param-value>
</context-param>
<context-param>
<param-name> user </param-name>
<param-value> sa </param-value>
</context-param>
<context-param>
<param-name> password </param-name>
<param-value> 123456 </param-value>
</context-param>
<servlet>
<servlet-name> action </servlet-name>
<servlet-class> org.apache.struts.action.ActionServlet </servlet-class>
<init-param>
<param-name> config </param-name>
<param-value> /WEB-INF/struts-config.xml </param-value>
</init-param>
<load-on-startup> 1 </load-on-startup>
</servlet>
<!-- Standard Action Servlet Mapping -->
<servlet-mapping>
<servlet-name> action </servlet-name>
<url-pattern> *.do </url-pattern>
</servlet-mapping>
<session-config>
<session-timeout> 60 </session-timeout>
</session-config>
<!-- The Usual Welcome File List -->
<welcome-file-list>
<welcome-file> index.htm </welcome-file>
</welcome-file-list>
</web-app>
tomcat日志
username:admin password:
ConnStr:jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=mediastore;user=sa;password=123456;
---new DBConnection---
---conn = dbc.getDBConnection();---
strSQL:SELECT * FROM TabUserInfo WHERE UserName = 'admin ' and Password = ' ';
用户名和密码正确
strSQL:UPDATE TabUserInfo SET Status = 1, StatusChangeTime = getdate(), LastLoginTime = getdate() WHERE UserID = 0;
---End: LoginAction::execute(actionContext)---
---Start: LoginSuccessPage::show(actionContext)---
ConnStr:jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=mediastore;user=sa;password=123456;
ConnStr:jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=mediastore;user=sa;password=123456;
lastNumOfMiSecon:1169568000000
curNumOfMiSecon:1169613423953
---End: LoginSuccessPage::show(actionContext)---
forward.getPath:/template/LoginSuccess.jsp
forward.getName:LoginSuccess
ConnStr:jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=mediastore;user=sa;password=123456;
ConnStr:jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=mediastore;user=sa;password=123456;
ConnStr:jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=mediastore;user=sa;password=123456;
---End: AbstractAction::execute(mapping,form,request,response)---
[解决办法]
你要看看你的/template/LoginSuccess.jsp存在不,如果存在看看里面的内容是不是空
[解决办法]
把struts-config.xml貼上來。
最有可能的是:你的execute方法返回的ActionForward對象是null值