请求的url: http://cdcccc.action?optype=edit
1.用Struts2取:
<s:if test="%{#parameters.optype[0] == 'edit'}">
</s:if>
2.用el表达式取:
${param.optype}
3.用java代码取值:
request.getParameter("optype");
请求的url: http://cdcccc.action?optype=edit
1.用Struts2取:
<s:if test="%{#parameters.optype[0] == 'edit'}">
</s:if>
2.用el表达式取:
${param.optype}
3.用java代码取值:
request.getParameter("optype");