struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tommy Pham <>
Subject possible bug in v2.1.6 ??
Date Thu, 03 Sep 2009 13:27:04 GMT

I think I may have found a bug.  Here's the problem I've encountered.  The final UI is based
on this:

<!-- js & css -->
<body id="colsHdrFtr">
<div id="header"></div>
<div id="leftSidebar"></div>
<div id="rightSidebar"></div>
<div id="mainContent"></div>
<div id="footer"></div>

I'm currently testing both jquery & spry frameworks for ajax.  If the source is all in
one page, every thing works including the struts tags, specifically <s:url />.  However,
if I put each section in it's own jspf file, the struts tags break.  Here's my usage:


<jsp:include page="head.jspf" />
<body id="colsHdrFtr">
<jsp:include page="header.jspf" />
<jsp:include page="leftSidebar.jspf" />
<jsp:include page="rightSidebar.jspf />
<div id="mainContent"></div>
<jsp:include page="footer.jspf" />

I also tried using <%@ include /> directive also with the same undesirable results.
 I've included the <%@ taglib /> for any page that uses the struts tag(s).  The undesired
results, when I use <a href="<s:url value="/myPath" />">test</a>,  I see
this in the final UI (web page source code) which gives action not mapped 404 error:


The expected & desired result is http://localhost:8090/recipes/myPath

recipes is my app context.  Has anyone seen this problem before?  This works just fine in
Servlet+JSP+JSTL1.2+Hibernate with either <jsp:include /> or <%@include %>.


PS: Dev environment is Win08 x64, JDK 1.6u14 x64, TC6.0.20, Struts 2.1.6, Hibernate 3.3.2.GA.
 Both jquery (1.3.2 and jquery ui 1.7.2) & spry (1.6.1)  are on the same page.  (Spry
has something I like and jquery has the other parts I like better).

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message