This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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: 14688
    
  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
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: c:remove does not remove from all scopes
 
It's not a secret anymore!