信息太少了,什么环境,jsp还是Struts,代码怎么写的

解决方案 »

  1.   

    struts 环境
    <html:form method="post" action="account" type="com.ss.web.account.AccountForm" name="AccountForm">
    <html:hidden property="action" value="add" />
    提交的时候出错。
    struts-config:
        <action input="accountinfo.jsp" name="AccountForm" path="/account" type="com.ss.web.account.AccountForm">
          <forward name="accountinfo" path="/accountinfo.jsp" />
        </action>
      

  2.   

    我感到楼主现在对struts的使用还很混乱呀。
    1 在jsp页上,<html:form action="/account">
      就可以了,干嘛要加上type="....",只有配置文件里才用指明FormBean的类名呀。2 在配置文件里, <action>元素的定义更是错误,type=""不是用来定义formbean的类名,而是Action的呀。