Thursday, 11 September 2014

WebSphere commerce wcf:url returns an empty string

Problem

In a simple JSP, the code fragment below was always returning var GenericErrorViewPage as an empty string.

<wcf:url var="GenericErrorViewPage" value="GenericApplicationError">
     <wcf:param name="page" value="FileNotFound"/>
 </wcf:url>

Fix

Make sure the JSP includes EnvironmentSetup.jspf and not just JSTLEnvironmentSetup.jsp, if environment is not properly initialized, wcf:url doesn't work properly

No comments:

Post a Comment