Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
10.2 JSP Expressions
237
Listing 10.1 Expressions.jsp 
JSP Expressions
      CONTENT="JSP,expressions,JavaServer,Pages,servlets">
      CONTENT="A quick example of JSP expressions.">
      HREF="JSP Styles.css"
      TYPE="text/css">

JSP Expressions

  
  • Current time: <%= new java.util.Date() %>
  •   
  • Your hostname: <%= request.getRemoteHost() %>
  •   
  • Your session ID: <%= session.getId() %>
  •   
  • The testParam form parameter:
  •       <%= request.getParameter("testParam") %>
    Figure 10 1 Typical result of Expressions.jsp.
    Second edition of this book: www.coreservlets.com; Sequel: www.moreservlets.com.
    Servlet and JSP training courses by book's author: courses.coreservlets.com.
    
    
    
    
    
    
    footer
    
    
    
    
    

     

     

     

     

     Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

    jsp web hosting

     

    Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Jsp Web Hosting Cheapest Web Hosting

    Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved