求教struts问题
启动tomcat服务器之后,访问struts-app/core/login.jsp时报异常 异常信息:Cannot retrieve definition for form bean LoginForm on action /core/login
我的struts-config.xml文件内容如下
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.
<struts-config>
<form-beans>
<form-bean name="loginForm" type="day20090921.core.action.LoginForm">
</form-bean>
</form-beans>
<global-exceptions />
<global-forwards />
<action-mappings>
<action path="/grammar/second" type="day20090921.grammar.SimpleAction">
<forward name="success" path="/second.jsp" redirect="false" />
</action>
<action path="/core/login" name="LoginForm" input="/core/login.jsp"
scope="request" attribute="loginForm" type="day20090921.core.action.LoginAction">
<forward name="success" path="/core/success.jsp" />
<forward name="fail" path="/core/fail.jsp"/>
</action>
</action-mappings>
<message-resources parameter="ApplicationResources" />
</struts-config>
异常信息说:无法重新得到LoginForm的定义,百度后的解答大都是说未将
<form-bean name="loginForm" type="day20090921.core.action.LoginForm">
</form-bean>
添加到 <form-beans> </form-beans>里面,
但是我这里明明添加过了,为什么还报这个异常呢?如何解决呢?
求高手解答,不知我这里把问题描述清楚没......