I need to append 2 String class variables using Struts 2
I tried like this
<s:set var="Name" value="#variable1+#variable2"/>
but no result.
Use OGNL to force evaluation of concatenation operation
<s:set var="Name" value="%{#variable1 + #variable2}"/>
it is also working.
<s:set var="Name" value="#variable1+''+#variable2"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With