aspose file tools*
The moose likes Struts and the fly likes pagination problem + struts1.3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "pagination problem + struts1.3" Watch "pagination problem + struts1.3" New topic
Author

pagination problem + struts1.3

guthula lakshman
Greenhorn

Joined: Sep 24, 2007
Posts: 21
Hi

i am using struts.13 , in that i am using Display tag to display list of records in page wise and i placed all neccesary jar files,like displaytag-1.2.jar in lib folder and every thing working fine. what my problem is that not displaying the values from database it shows error


An error occurred while evaluating custom action attribute "value" with value "${applications.appName}": Unable to find a value for "appName" in object of class "com.xyz.ui.form.MyApplicationForm" using operator "." (null)

and i placed the the following code in the jsp page.


<jsp:useBean id="applications" class="com.xyz.ui.form.MyApplicationForm " />

<display:table id="vendors name="${applications.applicationList}" sort="list" pagesize="5" defaultsort="2">
<display:setProperty name="basic.show.header" value="true" />
<display:column property="appName" title="Name" sortable="true" />
<display:column property="appType" title="Type" sortable="true" />
<display:column property="totalDownloads" title="Total Downloaded" sortable="true" />
</display:table>


please give me the suggestion to display the list of records from the database. It's urgent to me.

Any other way is there to work on pagination concept using jsp or struts.


Thanks for you advance


with regards
lakshman


HL Shen
Greenhorn

Joined: Nov 29, 2007
Posts: 5
name attribute in the display:table tag takes the name of the variable that contains the list. You don't need the EL if the list is saved in the applications.appName.

guthula lakshman
Greenhorn

Joined: Sep 24, 2007
Posts: 21
Hi shen

thanks for your Response . what you suggested i tried but i didn't get it to me. i changed the some minute things then it's working to me.

i changed like this :-

<display:table name="myApplicationForm.applicationList"pagesize="5" defaultsort="2" class="com.xyz.domain.VendorValue" >

<display:column property="appName" title="Name" sortable="true" />
<display:column property="appType" title="Type" sortable="true" />
<display:column property="totalDownloads" title="Total Downloaded" sortable="true" />
<display:column property="displayPage" title="Display Page" sortable="true" />
</display:table>


myApplicationForm is the name of the form bean and i removed the use bean tag here.

and again i am getting some problem to me..

first page i am able to populating the record but when i used to click the next page the value is not populating to another " it showing me that "Nothing found to display" and i seen the server console it showing no error.


please suggest me the solution.


with Regards
G.Lakshman





 
 
subject: pagination problem + struts1.3