wood burning stoves*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes About c:remove Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "About c:remove" Watch "About c:remove" New topic
Author

About c:remove

Fu Dong Jia
Ranch Hand

Joined: May 23, 2007
Posts: 131
Hi all!


Given that a scoped attribute cart exists only in a user's session,which two,taken independently ensure the scoped attribute cart no longer exists?(choose two)
A,${cart=null}
B,<c:remove var="cart"/>
C,<c:remove var="${cart}"/>
D,<c:remove var="cart" scope="session"/>
E,<c:remove scope="session">cart</c:remove>
F,<c:remove var="${cart}" scope="session"/>
G,<c:remove scope="session">${cart}</c:remove>

the answer is D,E

but I think the answer is B,D, am I wrong?

thanks in advance!


who dare win!<br />SCJP5(94%)|SCWCD5(86%)|SCBCD(100%)|SCEA in progress
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

am I wrong?

I think you're right. E cannot be true, as the c:remove tag has no body.


[My Blog]
All roads lead to JavaRanch
Fu Dong Jia
Ranch Hand

Joined: May 23, 2007
Posts: 131
Thanks Christophe!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: About c:remove