让人郁闷的stuts html标签问题
大家帮我看看,以下是我的代码<html:html>
<html:form action="/login.do">
<html:text property='name'></html:text>
<html:text property='age'></html:text>
</html:html>
stuts配置文件(部分):
<action-mappings >
<action name="stu" path="/login.do" type="cn.com.swg.struts.action.LoginAction">
<forward name="ok" path="/ok.jsp"/>
<forward name="no" path="/no.jsp"/>
</action>
一运行就说红字语句出错!郁闷啊。。。困扰一天了。。实在不知道怎么办
搜索更多相关主题的帖子:
stuts html
----------------解决方案--------------------------------------------------------
这段代码怎么没有 </html:form> 这个结束标签啊。如果不是的话,可能是 Action 类的 excute 方法没有实现,也可能是没有ActionForm.直接在浏览器中输入 XXX/login.do试一下。建议你去看一下 struts 的执行过程!
----------------解决方案--------------------------------------------------------
的确缺少</html:form>
----------------解决方案--------------------------------------------------------
找不出来问题在哪里。。删了。。重新建了。。ok!吐血!
----------------解决方案--------------------------------------------------------