Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head></head>
- <body>
- <%@ page language="java" %>
- <jsp:useBean id="stringbean" class="beanPack.myBeannet"></jsp:useBean>
- <jsp:getProperty name="stringbean" property="message"/><BR>
- <%= stringbean.getMessage() %>
- <jsp:setProperty name="stringbean" property="message" value="best string bean" />
- <I><jsp:getProperty name="stringbean" property="message" /></I>
- <I><% stringbean.setMessage("My favorite: Kentucky Wonder"); %>
- Value after setting property with scriptlet:
- <I><%= stringbean.getMessage() %></I>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement