配置文件中<form-beans >和<action-mappings >分别如下填写
<form-bean name="manageForM" type="com.yourcompany.struts.form.manageForm" /><action
      attribute="manageForm"
      input="/manage.jsp"
      name="manageForm"
      path="/manage"
      scope="request"
      type="com.yourcompany.struts.action.manageAction" />页面<html:form action="/manage">出现如下错误:
org.apache.jasper.JasperException: An exception occurred processing JSP page /manage.jsp at line 356
355:   <div id="part1" style="left: 304px; width: 732px; top: 177px;">
356:  <html:form action="/manage">
357:      <p><b> 网站标题</b></p>
358:    <html:text property="textTitle" value="<%=title %>"/><html:errors property="textTitle"/>
359:    <html:submit value="提交"/>之前用struts自动生成了几个都能用,现在自己写的的格式与之前完全一样,但form标签的action属性老是出错,怎么回事呢

解决方案 »

  1.   

    你的form的名字不一样呀
    上面的:
    name="manageForM" 下面的:
    name="manageForm" 
      

  2.   

    其他的都可以没有
    method="post" 这个不能少 <html:form action="/manage"> method="post"
      

  3.   

    <html:form action="/manage" method="post" > 
      

  4.   

    <form-bean name="manageForM" type="com.yourcompany.struts.form.manageForm" /> <action 
          attribute="manageForm" 
          input="/manage.jsp" 
          name="manageForm
          path="/manage" 
          scope="request" 
    type="com.yourcompany.struts.action.manageAction" /> 
    写错了!!!
      

  5.   

    跟这个没关系的,get和post提交就是地址栏有区别其他没什么区别的!!!