Scriptlets are small blocks of source code contained within the <% and %> delimiters that can be used to provide programming-style language functionality around a page's content, thus making their output dynamic.
For example:
<%
User user = (User)request.getAttribute("User");
if (user != null) {
%>
Welcome, you have successfully logged in!
<%
}
%>
For example:
<%
User user = (User)request.getAttribute("User");
if (user != null) {
%>
Welcome, you have successfully logged in!
<%
}
%>
No comments:
Post a Comment