I've fixed through documents of display-tag.

The requestURL of the <display:table> should be the page which uses
Layout.jsp,not the content page using display-tag.

Sorry to trouble you all.


On 5/20/06, M.Liang Liu <[EMAIL PROTECTED]> wrote:

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!




--
 http://blog.csdn.net/patriotlml
   Drink       Drank         Drunk
http://my.donews.com/patriotlml/

Reply via email to