Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

OCPJWCD - Doubt on c: set [RESOLVED]

 
Greenhorn
Posts: 16
  • 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
  • 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
 
Creator of Enthuware JWS+ V6
Posts: 3341
303
Android Eclipse IDE Chrome
  • 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
  • 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
 
Listen. That's my theme music. That's how I know I'm a super hero. That, and this tiny ad told me:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic