What is the difference between <%# and <%= in ASPX inline code?
Difference between JSP Scriptlet tag and Declaration tagThe jsp scriptlet tag can only declare variables not methods. The jsp declaration tag can declare variables as well as methods. The declaration of scriptlet tag is placed inside the _jspService() method.
The scriptlet is everything inside the <% %> tags. Between these the user can add any valid Scriptlet i.e. any valid Java Code. In AppleScript, a scriptlet is a small script. In Windows, a scriptlet is COM component including a HTML code and a script which may be written in a variety of scripting languages.
A JSP expression is used to insert the value of a scripting language expression, converted into a string, into the data stream returned to the client.
A scriptlet tag is used to execute java source code in JSP. Syntax is as follows: <% java source code %>
<%= is shorthand for Response.Write()
<%# is used to render data in databound controls
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