Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
294
Chapter 13 Using JavaBeans with JSP
Listing 13.2 StringBean.jsp 
Using JavaBeans with JSP
      HREF="JSP Styles.css"
      TYPE="text/css">
  
      Using JavaBeans with JSP
  • Initial value (getProperty):
  •     
                            property="message" />
  • Initial value (JSP expression):
  •     <%= stringBean.getMessage() %>
  •                      property="message" 
                         value="Best string bean: Fortex" />
        Value after setting property with setProperty:
        
                            property="message" />
  • <% stringBean.setMessage("My favorite: Kentucky Wonder"); %>
  •     Value after setting property with scriptlet:
        <%= stringBean.getMessage() %>
                 
    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