jsp:useBean

G

gk

while using JSTL i found

<jsp:useBean id="now" class="java.util.Date"/>


Page loaded at: ${now}

this prints the current date.


Question : is NOT <jsp:useBean tag only exclusive for javabeans only
......see, there is "Bean" in the tag...so, i think...it only should be
used for JAVABEANS only but as such Date is a class not JAVABEAN(which
has setter and getter).

i am confused.

is this tag <jsp:useBean can be used for any class ? is this be used
for the classes which does not have getter and setter methods ?

thank you
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top