<FORM action="ELSample.jsp" method="GET">
<input type="text" name="A">
<input type="text" name="B">
<input type="submit" value="Submit Name">
</FORM>
The A is: ${param.A}
The B is: ${param.B}
Integer Testing
The Sum is: ${param.B} + ${param.A}
</BODY>
</HTML>
Result:
The A is: 2
The B is: 3
Integer Testing
The Sum is: 3 + 2
After updating the integers in the text boxes once i click submit button, i am getting the above result.
I understand that A & B are string variables , getting concatenated. How to do summation with EL. Can any one of you help me on this?
The Sum is: ${param.B} + ${param.A}
Sangeetha Raja wrote:Can you please provide me some link
Check your pockets for water buffalo. You might need to use this tiny ad until locate a water buffalo:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|