gregh3269 commented on PR #210: URL: https://github.com/apache/struts-site/pull/210#issuecomment-1784032920
It has: You can access such params without using JSTL, just use ${param.ParamName} notation in Struts tags. Its not very clear "in Strust tags". I don't think you can use ${param.ParamName} **inside** struts tags because its a runtime expression. I think its only between ><. eg ``` <s:include value="myJsp.jsp"> <s:param name="ParamName">world</s:param> </s:include> myJsp.jsp <s:set var="paramName" scope="page">${param.ParamName}</s:set> <s:if test='%{#attr.paramName == "world"}'> Hello World </s:if> You cannot do this as its an expression ("test" does not support runtime expressions) <s:if test='${param.ParamName} == "world"'> Hello World </s:if> ``` (Also the camel case could be better param.ParamName >> param.paramName) Possibly why they give up and use jstl as it just works ;-) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@struts.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org