File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem in Retrieving Data" Watch "Problem in Retrieving Data" New topic
Author

Problem in Retrieving Data

N Nanda
Ranch Hand

Joined: Feb 09, 2004
Posts: 62
Hello..

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
Greenhorn

Joined: Jul 06, 2004
Posts: 9
Hi,
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
Greenhorn

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: http://aspose.com/file-tools
 
subject: Problem in Retrieving Data