[jboss-dev-forums] [Design of JBoss Portal] - Should portlet and servlet from same web app be able to shar

mchan_98 do-not-reply at jboss.com
Fri Mar 16 15:26:02 EDT 2007


Hi everyone,

My portlet has a link to a servlet within the same web application. However, since portlet is deployed by the JBoss portal web app and my servlet has its own web context, the user credential is not shared between the two.

e.g. In my portlet code,
I have:
request.getRemoteUser() == "myuserId"

but in my servlet code,
request.getRemoteUser() == null

Note that both the portlet and the servlet are from the same WAR file.

Here is my portlet link:
https://www.obeliskfinancial.com/portal/authsec/portal/Sundial/Reporting

Within the portlet page, I have a link to my servlet in the same war (note the different context path)
https://www.obeliskfinancial.com/sundial-web/ReportingServlet?designFile=somefile

Is that an expected behavior or a bug in Jboss? I dig through the JSR 168 spec and cannot find anything. Have anyone experience this?

environment:

jboss-portal-2.4.0 [bundle download]
OS Platform [Redhat Linux/Windows XP]

Thanks,

Michael Chan
Director of Development

Obelisk Financial
http://www.obeliskfinancial.com

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028934#4028934

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028934



More information about the jboss-dev-forums mailing list