Just for troubleshooting purposes try to change the filename of the
included file to .jsp instead of .jspf... I have a theory, but I want
you to verify it first.

-Wes

On Thu, Sep 3, 2009 at 9:27 AM, Tommy Pham<tommy...@yahoo.com> wrote:
> Hi,
>
> I think I may have found a bug.  Here's the problem I've encountered.  The 
> final UI is based on this:
>
> <html>
> <head>
> <!-- js & css -->
> </head>
> <body id="colsHdrFtr">
> <div id="header"></div>
> <div id="leftSidebar"></div>
> <div id="rightSidebar"></div>
> <div id="mainContent"></div>
> <div id="footer"></div>
> </body>
> </html>
>
> 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:
>
> main.jsp:
>
> <html>
> <head>
> <jsp:include page="head.jspf" />
> </head>
> <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" />
> </body>
> </html>
>
> 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:
>
> http://localhost:8090/recipes/%3Cs:url%20value=
>
> 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 %>.
>
> TIA,
> Tommy
>
> 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: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to