Thank you David G. Friedman . It is really an error about "next page" url.I fixed it by changing the requestURL of the display-tag table.
Thanks for your info and it works. Anyone pointing a better way? On 5/20/06, David G. Friedman <[EMAIL PROTECTED]> wrote:
Your errors suggests a tile error, not a displaytag error. How are you tiles defined and what is the 1st table page url and the "next page" url shown in your browser window? Regards, David -----Original Message----- From: M.Liang Liu [mailto:[EMAIL PROTECTED] Sent: Friday, May 19, 2006 12:25 PM To: Struts Users Mailing List Subject: Another problem of Tiles:the display-tag can NOT display using paging. I tried to use display-tag <http://displaytag.sf.net/> to show tables in my little project and it works well. However,a problem occured when I tried to make use of Auto-paging in my struts Tiles. I put one page displaying table using display-tag into my one of my Layout.jsp and the first page can display properly.The problem comes when I clicked the "next"-page-button. The exception is: > javax.servlet.ServletException: Error - tag.getAsString : component context is not defined. Check tag syntax > org.apache.jasper.runtime.PageContextImpl.doHandlePageException( PageContextImpl.java:848) > org.apache.jasper.runtime.PageContextImpl.handlePageException > (PageContextImpl.java:781) > org.apache.jsp.tiles.layouts.Layout_jsp._jspService( org.apache.jsp.tiles.layouts.Layout_jsp:107) > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) > javax.servlet.http.HttpServlet.service > (HttpServlet.java:802) > org.apache.jasper.servlet.JspServletWrapper.service( JspServletWrapper.java:322) > org.apache.jasper.servlet.JspServlet.serviceJspFile( JspServlet.java:291) > org.apache.jasper.servlet.JspServlet.service > (JspServlet.java:241) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > com.eam.filters.CharsetEncodingFilter.doFilter( CharsetEncodingFilter.java:27) > > And I am sure the CharsetEncodingFilter is right. Anyone familiar with display-tag?What should I do if I hold on struts 1.2and Tiles? Thanks a lot! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- http://blog.csdn.net/patriotlml Drink Drank Drunk http://my.donews.com/patriotlml/