<rule>
<from>^/sanmei.html</from>
<to>/user.do?op=login</to>
</rule>
urlrewrite我已经配置好了,并且可以用
但现在到提交表单时,由于<html:from action="user.do?op=login"></html:form>,这个action一改变内容就会报错,org.apache.jasper.JasperException: Exception in JSP: /login.jsp:147144: </TD>
145: <TD vAlign=top width=3 bgColor=#e8e8e8></TD>
146: <td valign="top" bgcolor="#ffffff" height="300">
147: <html:form action="sanmei.html" onsubmit="return subOk();">
148: <table width="399" border="0" align="center" cellpadding="0"
149: cellspacing="0" bordercolor="#EBEBEB">
150: <tr>
别的跳转什么的都可以,就是这边的action不能改变,在线等
<from>^/sanmei.html</from>
<to>/user.do?op=login</to>
</rule>
urlrewrite我已经配置好了,并且可以用
但现在到提交表单时,由于<html:from action="user.do?op=login"></html:form>,这个action一改变内容就会报错,org.apache.jasper.JasperException: Exception in JSP: /login.jsp:147144: </TD>
145: <TD vAlign=top width=3 bgColor=#e8e8e8></TD>
146: <td valign="top" bgcolor="#ffffff" height="300">
147: <html:form action="sanmei.html" onsubmit="return subOk();">
148: <table width="399" border="0" align="center" cellpadding="0"
149: cellspacing="0" bordercolor="#EBEBEB">
150: <tr>
别的跳转什么的都可以,就是这边的action不能改变,在线等
考虑直接用HTML的<form>(记得<html:form>会自动考虑contextPath等路径,而form需要手写),但是然后紧接着<bean:define id="org.apache.struts.taglib.html.BEAN" name="你actionForm的名字" />来模拟<html:form>