WDD_lec_30 - Servlets 4 Lec 30 Web Design and Development...

Info iconThis preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
Servlets 4 Lec 30 Web Design and Development
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Looking Back… Response Redirection Sending a standard redirect Sending a redirect to an error page Request Dispatching Forward Include
Background image of page 2
Include Diagram
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Example Code Request Dispatching: include
Background image of page 4
Forward Diagram
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Example Code Request Dispatching: forward
Background image of page 6
HTTPServletRequest methods
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
More HttpServletRequest methods setAttribute (String, Object) / getAttribute(String) Stores an attribute in this request as key-value pair form Attributes are set/reset between requests Often used in conjunction with RequestDispatcher
Background image of page 8
More HttpServletRequest methods cont. getMethod() getRequestURL() Returns the part of this request’s URL Query string is not included getProtocol() Returns the name & version of the protocol used
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
More HttpServletRequest methods cont. getHeaderNames()
Background image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.
  • Spring '10
  • MR. UMAIR JAVED
  • World Wide Web, HTTP cookie, Hypertext Transfer Protocol, URI scheme, Query string, URL redirection

{[ snackBarMessage ]}

Page1 / 17

WDD_lec_30 - Servlets 4 Lec 30 Web Design and Development...

This preview shows document pages 1 - 11. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online