Subscribe to Java/SCJP        RSS Feed
-----

JSP usebeans facts

Icon Leave Comment
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.

0 Comments On This Entry

 

January 2022

S M T W T F S
      1
2345678
9101112131415
161718192021 22
23242526272829
3031     

Recent Entries

Recent Comments

Search My Blog

16 user(s) viewing

16 Guests
0 member(s)
0 anonymous member(s)