wellnwill

JSP

Expressions

  • Expression tags are used to print/write the expression values
  • Any expression will be put in out.print(exp) and then in _jspService()
  • Semicolons are not allowed inside expression tags

Syntax

<%= 
exp
%>

Example

<% String name = “Atul”; %>
<%= “Name” %>
<%= name %>

After translation _jspService()

_jspService(){
...
String name = “Atul”;
out.print(“Name”);
out.print(name);
...
}

Footer with Map