View RSS Feed

Recent Blogs Posts

  1. Using Java Beans in JSP

    by , 05-24-2011 at 02:42 PM (My Java Tips)
    JavaBeans are classes written in the Java programming language conforming to a particular convention.

    Consider the scenario: you are writing a JSP and you wish to write pure Java code in it. You may use scriptlets within JSP.

    Java Code:
    <%
    // Java code goes here
    %>
    Using scriptlets means that your JSP will contains business logic as well which is not a good design approach. Ideally you would like to keep business logic separately ...
    Categories
    JSP