File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

OCPJWCD - Doubt on c: set [RESOLVED]

 
Erick Macedo
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my problem was resolved here : http://www.guj.com.br/java/294699-ocpjwcd---duvida-sobre-cset-#1564684
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2164
57
Android Chrome Eclipse IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic