This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi, I would like to know whether its possible to compare 2 variables in struts. I have 2 variables say strName1, strName2 in the page context. How can i compare them in struts to be of the same value using logic:equal <logic:equal name="strName1" value="???" > .... .... </logic:equal> Any idea... Please help.
The API documentation states that value is a constant value. It can, however, be a runtime expression so you can compare it would be to do something like so: <logic:equal name='var1' value='<%= pageContext.getAttribute("var2") %>' >