I have the following code inside my action class.
java.util.List al = fm.getFilesByUserName(conn,"SCOTT");
request.setAttribute("files.count", new Integer(al.size()) );
request.setAttribute("files.pageSize", new Integer(3) );
request.setAttribute("userFiles", al );
Now in my JSP page I can do
<H1> Files per page is <%= request.getAttribute("files.pageSize").toString
() %> </H1>
but when I try and use this value inside my logic iterate tag as below.
<logic:iterate id="element" name="userFiles" length="<%=
request.getAttribute("files.pageSize").toString() %>" >
<tr class="highlight">
.....
I get the following error.
org.apache.jasper.compiler.ParseException: /files.jsp(76,93) Attribute
files.pageSize has no value
at
org.apache.jasper.compiler.JspReader.parseAttributeValue(JspReader.java:563)
at
org.apache.jasper.compiler.JspReader.parseTagAttributes(JspReader.java:681)
Can someone point me in the right direction.
Searching the archives and looking on the internet didn't help me much as
that is where I got the code from.
Appologies if this is posted in HTML we are using Lotus Notes and I am not
sure how to subimt in plain text. (I miss outlook)
Thanks,
Scott.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>