[
https://issues.jboss.org/browse/GTNPORTAL-2767?page=com.atlassian.jira.pl...
]
Gregory SEBERT commented on GTNPORTAL-2767:
-------------------------------------------
Just add it.
Regards.
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: error.log
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