站内搜索: 请输入搜索关键词

当前页面: 开发资料首页Eclipse 专题在地址栏里输入http://localhost:8088/StrutsLoginDemo/userLogin.jsp出现异常,大家帮忙看看是什么问题,要怎么改,谢谢!

在地址栏里输入http://localhost:8088/StrutsLoginDemo/userLogin.jsp出现异常,大家帮忙看看是什么问题,要怎么改,谢谢!

摘要: 在地址栏里输入http://localhost:8088/StrutsLoginDemo/userLogin.jsp出现异常,大家帮忙看看是什么问题,要怎么改,谢谢!


type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

我的userLogin.jsp代码:
<%@ page language="java"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>



<head>
JSP for userLoginForm form
</head>
<body>

password :

userName :



</body>


我的代码有什么问题吗?要怎么改呢?

感激不尽!!


后台的代码呢?


如果不是路径错误的话,还要保证truts-html.tld已经导入到项目中。


没有错误消息怎么看呢?

可能是action="/userLogin" 这个地方在配置文件没设置好吧


最近在搞这个,也出现过类似问题,请确定你的struts-config.xml中form bean、form mapping中相关内容是否设置好,还有,你在JSP页面中写的
password :

userName :
中用到的这两个property,也就是password、userName是否在对应的Form中已经定义了?或者定义了你写错了?如果是向导自动生成定义的话,很可能你后面的那个userName就是你自己改错了的,因为我看到向导自动生成的一般好像都是小写的E文子目,中间没怎么有大些E文字母


↑返回目录
前一篇: 在BIRT使用脚本数据源提示错误?
后一篇: cvs的安装问题