Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

[14:45:19 CDT(-0500)] <EricDalquist> ok

[14:46:35 CDT(-0500)] <cwaymire> i've got a portlet that I added a Spring MVC controller into. I noticed that when calls come into that controller they have neither an active HttpSession nor does the request object contain a remote username.

[14:46:49 CDT(-0500)] <EricDalquist> this is a servlet controller?

[14:46:53 CDT(-0500)] <cwaymire> in this instance its important that I be able to get the user name

[14:46:59 CDT(-0500)] <cwaymire> yeah. standard spring mvc controller

[14:47:17 CDT(-0500)] <EricDalquist> so for the session to exist you need to make sure that the tomcat instance has emptySessionPath set to true

[14:47:24 CDT(-0500)] <EricDalquist> or whatever the TC7 version of that is

[14:47:31 CDT(-0500)] <EricDalquist> there will never be a remoteUser though

[14:47:33 CDT(-0500)] <cwaymire> let me double check my setting