30 likes | 117 Views
JSP. JSP. Server-side application support Instead of a Java program write a page using HTML and add tags and scriptlets Separation of concerns application logic (in tag libraries or beans) page design/content. Example. <html> <jsp:useBean id=“clock” class=calendar.JSPCalendar”> <ul>
E N D
JSP • Server-side application support • Instead of a Java program write a page using HTML and add tags and scriptlets • Separation of concerns • application logic (in tag libraries or beans) • page design/content
Example <html> <jsp:useBean id=“clock” class=calendar.JSPCalendar”> <ul> <li>Day of month is <%=clock.getDayOfMonth() %> <li>Year is <%=clock.getYear()%> </ul> </html>