P E N C I L
Login
JSP basics
  1. Good reference: http://beginnersbook.com/2013/05/jsp-tutorial-introduction
  2. <c:if test="${actionbean.class.name}"></>
  3. ${condition ? "some text when true" : "some text when false"}
  4. <%! String str = null; %>
  5. Prevent XSS attack
    1. <c:out value="${param.url}">
      ${fn:escapeXml(param.url)}
  6. JSP core tags
    1. <c:out value="${param.myparam}" default="abc/>
      <c:out> escape text to avoid xss attack
    2. <c:set var="str" value="aaa"/>
  7. EL
    1. http://beginnersbook.com/2013/11/jsp-expression-language-el
    2. <div>${myvar.var2}</div>