Advertisement
naelah

Lab 7: userLogged.jsp

Apr 29th, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.89 KB | None | 0 0
  1. <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
  2. pageEncoding="ISO-8859-1" %>
  3.  
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  8. <title>Welcome</title>
  9. </head>
  10. <body>
  11. <center>
  12.  
  13.  
  14. <%@ page import="my.edu.iium.webprogramming.UserBean" %>
  15.  
  16. <!-- Using JSP Expression language %> -->
  17.  
  18. <% UserBean currentUser = (UserBean) session.getAttribute("currentSessionUser");%>
  19.  
  20. Welcome <%= currentUser.getFirstName()%> <%= currentUser.getLastName()%><br>
  21. You live at <%= currentUser.getAddress()%>
  22.  
  23.  
  24. <!-- Using JSP getproperty tag %> -->
  25. <jsp:useBean id="currentSessionUser" class="my.edu.iium.webprogramming.UserBean" scope="session" />
  26.  
  27. <!--<jsp:getProperty name="currentSessionUser" property="lastName" />-->
  28. </center>
  29. </body>
  30. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement