Hi

I'm working on custom context mapping for web-apps in Stratos application
server. In order to handle it, i want to redirect the user given url to the
actual (current) url without user knowing the redirection. So
RequestDispatcher is the possible one that i could use here. But when i
used RequestDispatcher, it is looping several times and finally ends up
with the login page.

I found CarbonSecuredHttpContext in org.wso2.carbon.ui is doing some
redirection for every secured request where after several looping only, one
url is redirected in the browser. When i send the requested URL without any
context (https://test.stratosapps.com:9446/), it is redirecting to
"response.sendRedirect("carbon")" in CarbonSecuredHttpContext . So that
login page finally ends up. When i login as a super tenant, i accessed
http://example.stratosapps.com:9763 through http, same issue happens there
as well.

Can somebody suggest me how could i possibly do a redirection here for a
url like https://example.stratosapps.com:9446/ to redirect
https://example.stratosapps.com:9446/t/testdev.com/webapps/example in case
"example" is the web-app?

FYI=>I have done the domain mapping in /etc/hosts.
The relervant code is:

RequestDispatcher requestDispatcher = request.getRequestDispatcher("/t/
testdev.com/webapps/example");
requestDispatcher.forward(request,response);


Regards,
Reka
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to