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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "c:remove does not remove from all scopes" Watch "c:remove does not remove from all scopes" New topic
Author

c:remove does not remove from all scopes

Ivan Mora
Greenhorn

Joined: Jul 24, 2009
Posts: 10
Hello ranchers !

I'm experiencing an strange behavior in the following code:



Checking the specs, it should output "no var" as c:remove should delete the attribute from all scopes.

The output I get is "request".

Duplicating the <c:remove var='myvar /> line, the output is "session".

So, it looks like after finding the first occurence of the attribute, it stops removing.

Is this a correct behavior ?

Thanks in advance
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Funny that it worked fine with Tomcat5.5.
Which container are you using ?


[My Blog]
All roads lead to JavaRanch
Ivan Mora
Greenhorn

Joined: Jul 24, 2009
Posts: 10
Hi Christophe !

Thanks for your fast answer !

I'm using Oracle Container for Java (oc4j).

Regards
 
 
subject: c:remove does not remove from all scopes
 
Similar Threads
c:out,c:set
JSTL: remove object from scope
How does c:remove scope=... work?
c:remove
Confusion about "scope" attribute