Hello!
   The project is great!

The problem is when browser accept no cookies from the server tomcat switch to URL rewriting and for each client the location of Item must be recalculated.
source:
<Menu name="TabbedInbox" title="menu.inbox" action="/secure/menu.do?target=packet-list"/>


rendered:
http://localhost:8080/secure/menu.do;jsessionid=0F3390682FFC92FAAA6118297EB19022?target=config

but the location after the first access is always the same.

I changed two classes:
net.sf.navigator.taglib.el.DisplayMenuTag net.sf.navigator.taglib.DisplayMenuTag


protected void setPageLocation(MenuComponent menu)
throws MalformedURLException, JspException {
HttpServletRequest request =
(HttpServletRequest) pageContext.getRequest();
//--> if (menu.getLocation() == null) {
if (menu.getPage() != null) {
// are we sure we'll get an HttpServletRequest?
menu.setLocation(request.getContextPath() +
getPage(menu.getPage()));
} else if (menu.getForward() != null) {
String fwd =
RequestUtils.computeURL(pageContext, menu.getForward(),
null, null, null, null, null, false);
menu.setLocation(fwd);
} else if (menu.getAction() != null) {
// generate Struts Action URL,
// this will append Context Path (if any),
// Servlet Mapping (path mapping or extension mapping)
// Module Prefix (if any) & Session ID (if any)
String action =
RequestUtils.computeURL(pageContext, null, null, null,
menu.getAction(), null, null, false);
menu.setLocation(action);
}
//--> }


those generate a new location each time.
May be you find this helpfull in your work.

Thanks!


------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ struts-menu-devel mailing list [EMAIL PROTECTED] https://lists.sf.net/lists/listinfo/struts-menu-devel

Reply via email to