While working with JSP
files and servlets , I came across <% … %>
and <%= … %>
.
What's the difference between both cases ?
Thanks
<%= … %>
will echo out a variable, where as <% … %>
denotes a script or some code that is executed.
Here are the links to the jsp documentation:
<%= … %>
) : http://java.sun.com/products/jsp/tags/11/syntaxref11.fm4.html
<% … %>
) : http://java.sun.com/products/jsp/tags/11/syntaxref11.fm5.html
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