[gatein-issues] [JBoss JIRA] (GTNPORTAL-2767) Error Messages when using forward
Gregory SEBERT (JIRA)
jira-events at lists.jboss.org
Wed Feb 27 10:56:57 EST 2013
[ https://issues.jboss.org/browse/GTNPORTAL-2767?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gregory SEBERT updated GTNPORTAL-2767:
--------------------------------------
Attachment: demoportlet.war
Portlet test forward
> Error Messages when using forward
> ---------------------------------
>
> Key: GTNPORTAL-2767
> URL: https://issues.jboss.org/browse/GTNPORTAL-2767
> Project: GateIn Portal
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Common integration
> Affects Versions: 3.5.0.Beta02
> Environment: Gate In 3.5.0 Beta02 on top of EAP6
> Reporter: Frederic Hornain
> Attachments: demoportlet.war, error.log, porlets_src.zip
>
>
> Indeed, the customer portal team has an issue regarding the navigation in portal.
> They are currently trying navigation.
> They would to go to another page by using a forward:
> private void executeNavigation(String nodeURL) {
> PortalRequestContext requestContext = null;
> ServletRequest request = null;
> ServletResponse response = null;
> String requestContextPath = null;
> String trimmedNodeURL = null;
> RequestDispatcher dispatcher = null;
> requestContext = Util.getPortalRequestContext();
> request = requestContext.getRequest();
> response = requestContext.getResponse();
> requestContextPath = requestContext.getPortalContextPath();
> // Remove the portal context path from the nodeURL
> // e.g. if nodeURL = "/portal/hello", and portal context path = "/portal" then trimmedNodeURL = "/hello"
> trimmedNodeURL = nodeURL.substring(requestContextPath != null ? requestContextPath.length() : 0);
> dispatcher = request.getRequestDispatcher(trimmedNodeURL);
> try {
> dispatcher.forward(request, response);
> } catch (Exception e) {
> // TODO
> }
> }
> It works and they are well redirected to the corresponding page.
> However, customer receive an error (see attached log file).
> Then would it be possible to fix this issue ?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the gatein-issues
mailing list