This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Problem in Retrieving Data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem in Retrieving Data" Watch "Problem in Retrieving Data" New topic

Problem in Retrieving Data

N Nanda
Ranch Hand

Joined: Feb 09, 2004
Posts: 62

i am using MySQL database which is residing on another server and my development (struts stuffs) are on a separate machine. I have configured datasource in struts-config.xml file. I am trying to retrieve data from a table with following codes...

In my UserDAO class I have a method getAllUsers() which returns an ArrayList containing all users (I have a User bean). In my UserAction class I have called that method getAllUsers() and set its returning ArralyList in request scope. In my jsp page I am using display-tag to display the collected data. But it doesn't show any data.. The display-tag shows its default error message "Nothing Found To Display". Can anyone tell what could be the problem. Please.

Thank you all in advance

N. Nanda
Deli Dumrul

Joined: Jul 06, 2004
Posts: 9
I have a similar problem. The only difference is i don't get any error message but no display either.

I am not sure whether i installed display-tag properly. I don't include
<%@ taglib uri="/WEB-INF/displaytag-12.tld" prefix="display" %> in my jsp.. because when i include it, it causes an exception.. can you help me installing display tag.
Deli Dumrul

Joined: Jul 06, 2004
Posts: 9
Well, now i am having exactly the same problem, nothing found to display.
I agree. Here's the link:
subject: Problem in Retrieving Data
Similar Threads
how do do this? -> depending on the query, returns different objects
problem with struts application
Trouble in displaying error message using html:errors tag
Want to display result on the page
Jsp and database using the logic:iterate tag