I have an issue I haven't been able to solve for some time and now the Strut-EL 
documentation states "Many of the non-porting decisions were based on the fact 
that the JSTL expression language itself provides the same functionality".
 
Scenario:  I have JSP pages that are dynamically included in many other JSP 
pages with differing forms.  I currently solve this by passing the form name as 
a parameter and using 'name="${param.formName}' in the following tag.
 
<logic:equal value="someValue" name="${param.formName}" property="someProp">
 
The Struts libraries are intelligent enough to take a dynamic form name and 
find the property.
 
I have not been able to get the same behavior to work using JSTL and EL.
For example the following fails (and I've tried a bunch of other guesses to no 
avail):
<c:if test="${param.formName.someProp}"> gives "unable to find value for 
someProp in object String"
 
Is there a way to get the same functionality without using the Struts tags?

Reply via email to