aspose file tools
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 Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "About c:remove" Watch "About c:remove" New topic

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)
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é

Joined: Nov 24, 2005
Posts: 14688

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!
Don't get me started about those stupid light bulbs.
subject: About c:remove