Update of /cvsroot/struts-menu/navigator/src/java/net/sf/navigator/taglib
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv26264/src/java/net/sf/navigator/taglib
Modified Files:
DisplayMenuTag.java
Log Message:
Fixed issue with cookies when not using Struts (SM-64)
Index: DisplayMenuTag.java
===================================================================
RCS file: /cvsroot/struts-menu/navigator/src/java/net/sf/navigator/taglib/DisplayMenuTag.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** DisplayMenuTag.java 16 Oct 2006 22:09:43 -0000 1.22
--- DisplayMenuTag.java 22 Oct 2006 07:16:39 -0000 1.23
***************
*** 185,188 ****
--- 185,190 ----
HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();
menu.setLocation(request.getContextPath() + getPage(menu.getPage()));
+ HttpServletResponse response = (HttpServletResponse) pageContext.getResponse();
+ menu.setLocation(response.encodeURL(menu.getLocation()));
} else if (menu.getForward() != null) {
menu.setLocation(TagUtils.getInstance().computeURL(pageContext, menu.getForward(),
|