• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

pagination problem + struts1.3

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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


 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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





 
Then YOU must do the pig's work! Read this tiny ad. READ IT!
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic