Menu

JSP error

Help
2007-07-30
2012-10-08
  • Donald D. Hook

    Donald D. Hook - 2007-07-30

    I am just starting to look at DisplayTag and am getting the following error:

    javax.servlet.jsp.JspException: ServletException in '/WEB-INF/views/recommendations.jsp': javax.servlet.jsp.JspTagException: You must specify one of the following: size

    The page source is listed below.

    <%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
    <%@taglib uri="/WEB-INF/tlds/c.tld" prefix="c"%>

    <% pageContext.setAttribute("resultSize",6); %>

    <display:table name="recommendations" sort="external" defaultsort="1" id="Stock" class="its" pagesize="2" partialList="true" size="resultSize">
    <display:column property="symbol" title="Symbol" sortable="true" sortName="symbol" />
    <display:column property="stockName" title="Name" sortable="true" sortName="stockName" />
    </display:table>

    Thanks for your help.

     
    • Harun

      Harun - 2007-07-31

      size='resultSize' is not the correct value i guess... give any integer number....

       
      • Donald D. Hook

        Donald D. Hook - 2007-07-31

        I did - that did not work either.

         
    • Harun

      Harun - 2007-08-01

      firstly, name='recommendations' will work only when some object (kind of collection/array) is present in request with name as 'recommendations'.....

      Which taglibrary version you are using..... In the EL version of the taglibrary this must be an EL expression which points to the source object.... else it should contain integer reference...

       
      • Donald D. Hook

        Donald D. Hook - 2007-08-01

        It is a list of objects. I appreciate your effort and time, but I am going to implement the paging myself rather than spending time trying to get this to work.

        Thank You!!

         

Log in to post a comment.