本帖最后由 qwe065560 于 2012-04-18 09:56:35 编辑

解决方案 »

  1.   

    表单名字为action是不允许的,把<input type="hidden" name="action"/>改成<input type="hidden" name="method"/> 或者其它。
    另:button那行的input写错了
      

  2.   

    名称尽量不要使用关键字
    <intput type="button" onclick="del('deleteMeetingInfo',${l.id},'${place}')" value="删除"/>
    input有问题
      

  3.   


    表单名字为action是不允许的?这个有什么依据么,据我了解action并不是预留关键字,改为method又有什么依据,我的struts里面根本就没配置method这个属性改了有什么用。另:button那行的input写错了呵呵。我刚刚提问的时候打错了。谢谢提醒
      

  4.   

    和input 没有关系。是我提问的时候打错了,在程序里面是对的。action并不是关键字
      

  5.   

    我使用action是因为我在struts里面配置parameter="action"其和配置parameter="method"或其他并没有什么区别。现在的关键是我如此提交的时候post状态取不到值。求解。
      

  6.   


    <action-mappings>
       <action attribute="meetingForm" input="/meeting/index.jsp"
    name="meetingForm" parameter="action" path="/meeting/index"
    scope="request"
    type="org.springframework.web.struts.DelegatingActionProxy">
               <forward .........../>
               <forward .........../>
               <forward .........../>
       </action></action-mappings>
    用get方式能接收到,我个人认为XML文件是没有错误的
      

  7.   


    你这个parameter设置为action就是不行的,参数传过来就是null,我让你改成method也没什么依据,只是纯粹换个名称而已。你把parameter的配置改下就ok啊
      

  8.   

    看看这篇  http://www.blogjava.net/webber/archive/2010/02/10/312530.html
      

  9.   


    只有这个系统出现了这个问题,我想问下为什么用get方式传过来的action能接收到而用post就变为null了?
    而且如果action传过来就是null那换个名称也不会接收到呀
      

  10.   


    我可以很负责的说那篇博客说如代码 "<input type='xxxx' name='action' >"在表单中是不允许出现的; 没有任何理由,而且我一直是这么用的没有任何问题,而且最关键的我的不是js错误,而且他的JS错误是吧button按钮定义为了submit,然后又用JS进行了submit提交所以出错。
    我的是post提交出问题。get是没有问题的。如果真是他说的那个问题无论任何提交方式都会有问题的
      

  11.   

    应该是配置出问题使request请求发布过去
      

  12.   


    不是404。。就是post的时候action的值取不到。然后路径就不对了本来正确路径应该是index.do?action=XXX
    post的时候就只是index.do了
      

  13.   

    我旁边的上次xml中类型用了redirct,也是get行post不行,你这个forward是不是没效果,request带参数发不过去
      

  14.   

    其他方法的forward是有效果的。我有点不太明白你的意思。能稍微说说解决方法吗
      

  15.   

    我那是这么用的 <action name="grade" type="net.zdsoft.etoh2.action.school.GradeAction" method="index">
                <target name="success" type="dispatch">gradeConfig.jsp</target>
            </action>
      

  16.   

    把表单加上ID document.operForm.elements["action"].value=at;
            document.operForm.elements["id"].value=id;
            document.operForm.elements["place"].value = place;改成byid获取
    试试