Tag: form预览模式: 普通 | 列表
08-07
31

ERROR - Error creating form bean of class com.blur

javax.servlet.jsp.JspException: Exception creating bean of class com.blur.myStruts.form.productForm: {1}

struts-config.xml配置文件中的<form-bean>没有定义正确,

本次我是写成了这样

   <form-bean name="productForm"
            type="com.blur.myStruts.form.productForm" />

查看更多...

Tags: creating form

分类:Struts | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 1713
08-03
06

Cannot retrieve definition for form bean null on action XXX.do

错误原因:虽然是表单提交,但是ActionMapping中却没有指定name, 也就是说form中的抽象名没有被指定。

Tags: form

分类:Struts | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 1954
06-11
29

关于FORM取值中文乱码问题新解

     其实网上也说过很多这样的文章了,那就说说我自己觉得容易出问题的地方。

1.JSP页面必须写明<%@ page contentType="text/html; charset=GB2312" %>,这点没得说,除非是国际化用UTF-8

2.在FORM表单的提交中, method应是"POST",如GET也会出现乱码问题。

查看更多...

Tags: 中文乱码 乱码 form

分类:Struts | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 782
06-11
13

struts的form表单

      在写struts的form表单时,注意以下几点:

1.单独写出组件(如文本框<html:text property="departmentvo.description"/>)时,表单不予显示且报错,原因 formaction没有指明要传给哪一个.do

2.如果本文框中有要显示的数据,如values=变量,这种情况下,struts标签不能套入式使用。但有两种方式可以帮助其显示:

查看更多...

Tags: form

分类:Struts | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 900