1<jsp:getProperty name="test" property="date"/> will print the value of property.
2<jsp:useBean id="test" class="com.Example">
<jsp:setProperty name="test" property="*"/>
</jsp:useBean>
3 <jsp:setProperty name="test" property="date" param="someParam"/> gets the value of property from request parameters
4 <jsp:setProperty name="test" property="date" value="12"/> sets the value of property explicitly
5 variables declared in declaration elements are instance variable and not global variable. They seem global because all JSP requests share same instance.
2<jsp:useBean id="test" class="com.Example">
<jsp:setProperty name="test" property="*"/>
</jsp:useBean>
3 <jsp:setProperty name="test" property="date" param="someParam"/> gets the value of property from request parameters
4 <jsp:setProperty name="test" property="date" value="12"/> sets the value of property explicitly
5 variables declared in declaration elements are instance variable and not global variable. They seem global because all JSP requests share same instance.
0 Comments On This Entry
← January 2022 →
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 | 31 |
My Blog Links
Recent Entries
-
SCJP Notes - Part 8on Apr 04 2008 01:22 AM
-
SCJP Notes - Part 7on Mar 31 2008 05:06 AM
-
SCJP Notes - Part 6on Mar 27 2008 08:19 AM
-
SCJP Notes - Part 5on Mar 27 2008 08:05 AM
-
SCJP Notes - Part 4on Mar 27 2008 07:31 AM
Recent Comments
Search My Blog
16 user(s) viewing
16 Guests
0 member(s)
0 anonymous member(s)
0 member(s)
0 anonymous member(s)



Leave Comment








|