aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes OCPJWCD - Doubt on c: set [RESOLVED] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "OCPJWCD - Doubt on c: set [RESOLVED]" Watch "OCPJWCD - Doubt on c: set [RESOLVED]" New topic
Author

OCPJWCD - Doubt on c: set [RESOLVED]

Erick Macedo
Greenhorn

Joined: Feb 17, 2013
Posts: 14
Good afternoon folks, I here studying for certification and arose some doubts.

1 Doubt
On page 457 of the book First Heard - Servlet and Jsp (2nd edition) it says the following.

If the attribute named by "var" does not exist, it is created, more only if value is not null


Not what the tests say, see:


Another person sso displays, ie, even if there is an attribute it is created, why? the book is wrong?

2nd Doubt

On page 455 of the book First Heard - Servlet and Jsp (2nd edition) it says the following.

If the value of c: set evaluates to null, the attribute is removed, if you do not specify a scope, he will begin looking at the page, request, session, application


tests



jsp the result is blank, the value will not appear Fulano 2

That is not how I put the value, it evaluates to null, ie it removes the attribute person, starting from the scope of the search page to the application.
He should just remove the request, should not also remove the session, anyone know why this happens?

thank you

Erick Macedo
Greenhorn

Joined: Feb 17, 2013
Posts: 14
my problem was resolved here : http://www.guj.com.br/java/294699-ocpjwcd---duvida-sobre-cset-#1564684
Frits Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1529
    
  22

Hi Erick,

It would be nice if you could share the answer on this website as many readers would like to read it as well.

Regards,
Frits
Erick Macedo
Greenhorn

Joined: Feb 17, 2013
Posts: 14
Hi Frits, Good morning.

The GUJ is a very strong community of java in Brazil.

Whenever you get an answer here, or in response GUJ, I'll leave the links to the java community in very entire query.

I really enjoyed the excellent coderanch.

grateful
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: OCPJWCD - Doubt on c: set [RESOLVED]
 
Similar Threads
clarification with c:set
doubt in scriptless JSPs
useBean doubt
JSTL: remove object from scope
setting attribute using EL