• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Request attributes

 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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"]
     
    Author
    Posts: 836
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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.
     
    With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    reply
      Bookmark Topic Watch Topic
    • New Topic