在 <a href="custService.do?operate=addService">跳转</a>能正常跳转      
但用<form action="custService.do?operate=addService" method="post">却不行
提交按钮及页面确定无误!这是怎么回事啊

解决方案 »

  1.   

    <form action="/custService.do?operate=addService" method="post">
    这样看看
      

  2.   

    <a href 。。默认是get方式请求
    <form action="custService.do?operate=addService" method="post">楼主明确指示以post方式提交,所以问题很可能出在这儿。
    楼主试试把method选项改成get,或是在后台添加doPost()方法吧。
      

  3.   

    是struts1,还是struts2.struts1的话.
    struts.xml文件中的Action中有没有配置parameter="operate"参数
      

  4.   

    用的struts1 operate配置了  改成get也试了 还是无法跳到那个action
      

  5.   

    哦,原来是struts1啊,execute是可以接收get和post请求的。不过我也感到疑惑了,href能到form就不能到?
    希望楼主在解决之后能告知问题所在,谢谢!
      

  6.   

    post 提交,看servlet里怎么做重定向的
      

  7.   

    <html:form action="custService.do?operate=addService" method="post"></html:form>看看
      

  8.   


    试一下这样看可以不 <form action="custService.do?operate=addService"> 不用提交方式