[jboss-user] [JBoss Portal] - Redirecting Portal
Gavin Lam
do-not-reply at jboss.com
Wed Jun 9 16:55:07 EDT 2010
Gavin Lam [http://community.jboss.org/people/gavinlam] created the discussion
"Redirecting Portal"
To view the discussion, visit: http://community.jboss.org/message/547219#547219
--------------------------------------------------------------
Hi,
I have two questions. I am using Portal 2.7.2 and JBoss AS 4.2.3
1) How do I redirect the default portal to my portal? For example, when I go to http://localhost:8080/portal http://localhost:8080/portal, I want it to redirect to http://localhost:8080/portal/auth/portal/MyPortal http://localhost:8080/portal/auth/portal/MyPortal. I do not want to replace the default portal. I just want to redirect the URL. I have tried changing the index.jsp in portal.sar/portal-core.war/layouts/generic but I can only do a javascript redirect, which I really don't want to do and I read that changing the index.jsp to redirect is not the best practice.
2) How do I redirect the page to my portal homepage after a session timeout and a successful login? For example, a user is on some page with URL http://localhost:8080/portal/auth/portal/MyPortal?something=blah http://localhost:8080/portal/auth/portal/MyPortal?something=blah, times out. They click a link and gets the login page, but when they log back in, they are brought back to http://localhost:8080/portal/auth/portal/MyPortal?something=blah http://localhost:8080/portal/auth/portal/MyPortal?something=blah which is a page from an expired session. Instead after the log in, I want the page to be http://localhost:8080/portal/auth/portal/MyPortal http://localhost:8080/portal/auth/portal/MyPortal not http://localhost:8080/portal/auth/portal/MyPortal?something=blah http://localhost:8080/portal/auth/portal/MyPortal?something=blah.
Thanks,
Gavin
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/547219#547219]
Start a new discussion in JBoss Portal at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2011]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100609/f7718bd3/attachment.html
More information about the jboss-user
mailing list