日期:2014-05-16  浏览次数:20321 次

struts1.2 配置action时path和jsp页面action的url的比较【原创】

xml配置文件里面写:

<action
?? path="/business/pay/checkAdslAction"
?? scope="request"
?? input="/"
?? name=""
????? type="com.xxx.user.checkAdslAction">

那么在jsp的from的action里就要:

String action = "/projectName/business/pay/checkAdslAction.do";

记得两者的差别在于,jsp里面要写上项目名projectName和最后面加个.do。