Skip to main content
xenoveritas.org

Main navigation

  • Categories
  • Home
  • Links
  • Name Generator
  • Scramble
User account menu
  • Log in

Breadcrumb

  1. Home

Some Helpful Java Servlet Attributes That Are Presumably Documented Somewhere

By Xenoveritas, 9 September, 2008
Topics
Web
Java
  • Add new comment

I'm assuming these are documented somewhere, but they certainly weren't listed in the documentation I have.

Anyhoo:

javax.servlet.forward.request_uri - the original value returned from request.getRequestURI()
javax.servlet.forward.context_path - the original value returned from request.getContextPath()
javax.servlet.forward.servlet_path - the original value returned from request.getServletPath() (who'd have guessed?)

These answer the question I've spent far too long trying to figure out, "how do you figure out the original request URI before the request was forwarded?"

Apparently these were added as of Java Servlets 2.4.

Current Games

I'm currently playing:

  • Final Fantasy XIV: Endwalker

I intend to maybe get around to finishing:

  • Literally anything else

Video Games Section

Thought for the Moment

I never have thoughts any more.

Old Thoughts

Has the LHC Destroyed the Earth?

  • Create new account
  • Reset your password
RSS feed
Powered by Drupal