• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Request attributes

 
Łukasz Suchecki
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
What (if any) request attributes should I know for SCWCD exam ? I've noticed (in head first, or online mock questions) only few:
- javax.servlet.forward.query_string
- javax.servlet.forward.servlet_path
- javax.servlet.include.query_string
- javax.servlet.include.servlet_path

Are the knowledge of them (and others) needed on exam ?
And if everybody asks aoubt SCWCD Study Companion - if the knowledge is needed - is that topic covered in that book ?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should know about the forwarded request parameters:
  • javax.servlet.forward.request_uri
  • javax.servlet.forward.context_path
  • javax.servlet.forward.servlet_path
  • javax.servlet.forward.path_info
  • javax.servlet.forward.query_string

  • and the included request parameters:
  • javax.servlet.include.request_uri
  • javax.servlet.include.context_path
  • javax.servlet.include.servlet_path
  • javax.servlet.include.path_info
  • javax.servlet.include.query_string


  • I can't think of any others that you need to know. I'm not sure that you need to remember the error ones (javax.servlet.error.status_code, etc...)

    [edited : replaced "I'm sure" with "I'm not sure"]
     
    Charles Lyons
    Author
    Ranch Hand
    Posts: 836
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Łukasz Suchecki wrote:And if everybody asks aoubt SCWCD Study Companion - if the knowledge is needed - is that topic covered in that book ?

    It certainly is covered. There's a whole page dedicated to it (across pages 135-136 in Chapter 6 "RequestDispatcher & Wrappers"). The 10 mentioned by Christophe, above, form the complete set.

    As you'll have noticed, the 10 quickly reduce to 5 for learning purposes, by exchanging the "include" for "forward" in the stem. The names are also all lower case, using an underscore where the Java method name would capitalise. Just a couple of hints.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic