dsp:JSP中等价的getvalueof

dsp:JSP中等价的getvalueof,jsp,jsp-tags,atg-dynamo,Jsp,Jsp Tags,Atg Dynamo,以下ATG DSP代码的等效代码是什么: <dsp:getvalueof var="age" param="customerAge" scope="request" /> 谢谢与请求属性不同,请求参数始终是字符串,因此技术上应该是: String age = request.getParameter("customerAge"); 但在JSP中,建议不要使用Scriptlet,因此使用EL可以像这样: <c:set var="age" value="${param.cust

以下ATG DSP代码的等效代码是什么:

<dsp:getvalueof var="age" param="customerAge" scope="request" />

谢谢

与请求属性不同,请求参数始终是字符串,因此技术上应该是:

String age = request.getParameter("customerAge");
但在JSP中,建议不要使用Scriptlet,因此使用EL可以像这样:

<c:set var="age" value="${param.customerAge}" scope="request" /> 

<c:set var="age" value="${param.customerAge}" scope="request" />