I have this code below, which suppose to perform paging to lists of data retrieved from a bean. However, when i run it i received this exceptions below. Anyone can give me any hint? it will be fully appreciated
Thank's a lot for the reference However, i changed my tag to get the bean size like this <bean:size id="pb_list" name="PositionBean" collection="posisi_list"/> "posisi_list" is the name of the List type of data which stored in request scope. When i run the program it's still display the same exceptions, is it allowed to use List as the value for the collection?
Joined: Feb 15, 2005
Here is the link to the documentation on the <bean:size> tag. As you will read, "collection" should only be used if you're using a scriptlet that evaluates to a collection. Use name to refer to the bean and optionally property to refer to the getter to be called to retrieve the collection.
So, if you specify name="PositionBean" and property="posisi_list", Struts will find PositionBean in some scope and call the getPosisi_list() method on it to get the collection.
If you have a collection in a scope with the name "posisi_list", you should simply specify:
Thanks a lot for the feedback, my lists are finally shown at the page However, when i click the next page it shows an exceptions like this below
type Status report
description The requested resource (/posisilihat.jsp) is not available.
I have set c:url value="posisilihat.do"> but it's not working and when I tried to change it to "posisilihat.do?action=POSISI_LIHAT" it result an error, any clue? it will be fully appreciated
here is my code once again
Joined: Feb 15, 2005
Try adding a "/" to the value in your <c:url> tags, making them:
This is a clue to the c:url tag that it needs to append the context path to your url.
Joined: Sep 03, 2004
Thanks a bunch my lists are finally paged correctly Anyway, I've tried to explore Display Tag and I have this code below which intended to export data displayed in my page into Excel and Pdf format. When i run the web, the excel files i've downloaded only show the table header, the fields are empty. Could you tell me is there any mistake on my code? thanks in advance