Forums Register Login

Query reg . jsp:usebean

+Pie Number of slices to send: Send
Q)Name the default value of the scope atribute of <jsp:usebean>.

Answer they gave is page.


But I think it can take any of these page,request,session or application.

Correct me if I am wrong with proper explaination.

Thanks!!
+Pie Number of slices to send: Send
Hi chandu !!!
The default value means you don't precise any scope.

<jsp:usebean id="mybean"/> is the same as <jsp:usebean id="myBean" scope="page"/>

but if you write <jsp:usebean id="myBean" scope="request"/>, mybean will be founded in the request.

Hope it help.
+Pie Number of slices to send: Send
Note that it is <jsp:useBean> with a capital B. Also a class or type attribute must be present. This is not to be pedantic, but on the exam they do try to trick you into selecting an answer that has only such a "minor" mistake in it.
Rototillers convert rich soil into dirt. Please note that this tiny ad is not a rototiller:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1268 times.
Similar Threads
jsp:setProperty
what is the output??
HFS&J page 353
<jsp:useBean> in scriptless page
<jsp:useBean>
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 01:23:06.