Jsp page issue

I am using the reddish swap tags .B But that gives me a pontinter exception error. the first page is displayed correctly. But when I click further it gives an error

 tutorials = (Set) request.getAttribute ("tut_lst"); request.setAttribute ("tut_lst", tutorials); i = tutorials.iterator (); // occus error here%>

    

                   
">       

<pg:first>
  <a href="<%= pageUrl %>">[ (<%= pageNumber %>) |&lt; Previous ]</a>
</pg:first>

<pg:prev>
  <a href="<%= pageUrl %>">[ (<%= pageNumber %>) &lt;&lt; Previous ]</a>
</pg:prev>

<pg:pages>
   <a href="<%= pageUrl %>"><%= pageNumber %></a>
</pg:pages>

<pg:next>
  <a href="<%= pageUrl %>">[ Next &gt;&gt; (<%= pageNumber %>) ]</a>
</pg:next>

<pg:last>
  <a href="<%= pageUrl %>">[ Last &gt;| (<%= pageNumber %>) ]</a>
</pg:last>

      

+1


a source to share


1 answer


It looks like the new request is not getting the tut_lst attribute.

Are you getting a null pointer exception?



edit: Usually the attribute is set on the session scope. Is there a reason you don't want to do this?

+1


a source







All Articles