<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>How to get nested request object from HttpServletRequest</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120839097" />
  <subtitle>How to get nested request object from HttpServletRequest</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120839097</id>
  <updated>2026-04-04T22:30:28Z</updated>
  <dc:date>2026-04-04T22:30:28Z</dc:date>
  <entry>
    <title>RE: RE: How to get nested request object from HttpServletRequest</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121058878" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121058878</id>
    <updated>2021-08-19T08:39:16Z</updated>
    <published>2021-08-19T08:39:15Z</published>
    <summary type="html">&lt;p&gt;Posting text as image guarantees that it's hard to read. Please don't
  do that.&lt;/p&gt;
&lt;p&gt;There are two different methods that reveal a HttpServlerRequests.
  I've &lt;a href="https://stackoverflow.com/a/9030658/13447"&gt;described
    both options in the past on stackoverflow&lt;/a&gt;. Please check that answer&lt;/p&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2021-08-19T08:39:15Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to get nested request object from HttpServletRequest</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120838662" />
    <author>
      <name>Brijesh Desai</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120838662</id>
    <updated>2021-06-21T18:21:19Z</updated>
    <published>2021-06-21T18:21:19Z</published>
    <summary type="html">&lt;p&gt;Hi Olaf,&lt;/p&gt;
&lt;p&gt;Thanks for details here. Appreciate quick response..!!&lt;/p&gt;
&lt;p&gt;We have created custom Spring login portlet in Liferay 6.2 with Jboss.&lt;/p&gt;
&lt;p&gt;We are facing a blocker issue with Login after patch deployment, if
  we remove patch, same custom login portlet works successfully,&lt;/p&gt;
&lt;p&gt;Lifeary OOTB login portlet works with and without patch with both condition,&lt;/p&gt;
&lt;p&gt;When Investigating, Liferay login have 1 level less in nested request
  object compared to custom login request object, and due to that
  dispatcherType value are different, with OOTB login dispatcherType is
  2 and with custom login portlet dispatcherType value is 4, in Liferay
  Patch, We compared source code, and found some code difference in
  LoginUtil  &amp;gt; login method, in Patch src LoginUtil &amp;gt; login method
  have check with dispatcherType if 2 and executes some code when patch
  deployed in debug mode, and with custom login portlet, dispatcherType
  value comes 4 and it doesn't execute some part of code in debug mode.&lt;/p&gt;
&lt;p&gt;we have custom Login portlet and we are calling Liferay services to
  authenticate users by following code,&lt;/p&gt;
&lt;p&gt;
  &lt;img src="/documents/14/0/Liferay+Login+Auth+service.png/21b45167-27d3-97d2-55ab-6edc18ef25c6?t=1624298709676&amp;amp;imagePreview=1" /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Any thoughts or directions will really help us.. thanks in advance.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Brijesh&lt;/p&gt;</summary>
    <dc:creator>Brijesh Desai</dc:creator>
    <dc:date>2021-06-21T18:21:19Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to get nested request object from HttpServletRequest</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120840245" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120840245</id>
    <updated>2021-06-21T07:16:48Z</updated>
    <published>2021-06-21T07:16:48Z</published>
    <summary type="html">&lt;p&gt;No, you don't.&lt;/p&gt;
&lt;p&gt;This is an implementation detail that could change any time, with any
  minor update to either Liferay or your appserver.&lt;/p&gt;
&lt;p&gt;The follow-up question is: &lt;strong&gt;What&lt;/strong&gt; do you want to have
  it &lt;strong&gt;for&lt;/strong&gt;? &lt;em&gt;That&lt;/em&gt; would be a question that might
  be answerable. The data (e.g. parameters etc) should be in the request
  that you already have.&lt;/p&gt;
&lt;p&gt;Unless I know more about the underlying problem, this smells like a
  classic x-y-problem to me.&lt;/p&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2021-06-21T07:16:48Z</dc:date>
  </entry>
  <entry>
    <title>How to get nested request object from HttpServletRequest</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120839096" />
    <author>
      <name>Brijesh Desai</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120839096</id>
    <updated>2021-08-17T16:24:51Z</updated>
    <published>2021-06-19T12:36:27Z</published>
    <summary type="html">&lt;p&gt;Hello All,&lt;/p&gt;
&lt;p&gt;We have nested object in HttpServletRequest, we need to get child
  request object highlighted in following screenshot.&lt;/p&gt;
&lt;p&gt;Please help.&lt;/p&gt;
&lt;p&gt;
  &lt;img alt="" src="/documents/14/0/request_debug.png/4653ae90-53cd-d1bc-7052-462fe27ddc59?t=1624106064588&amp;amp;imagePreview=1" /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards, Brijesh&lt;/p&gt;</summary>
    <dc:creator>Brijesh Desai</dc:creator>
    <dc:date>2021-06-19T12:36:27Z</dc:date>
  </entry>
</feed>
