Thanks so much! Can you tell me where I can get the org.displaytag.sample files? I only had the code for the wrapper because someone posted it on a help forum I had read. I really appreciate your help. I find the displaytag website documentation completely useless. The code that I do have working (to display the table) is nothing like their examples - I can't get anything from their examples to work - I always have to get online help from users to get anywhere.
I am using Resin instead of tomcat (my hosting company provides that).
I currently have the following jar files in my WEB-INF/lib directory:
commons-beanutils-bean-col
commons-beanutils.jar
commons-collections-3.2.ja
commons-lang-2.2.jar
commons-logging-1.1.jar
displaytag-1.1.jar
displaytag-export-poi-1.1.
itext-1.4.jar
I tried adding import org.displaytag.sample.*;
to my Wrapper.java class, but I get the following error message:
500 Servlet Exception
Note: sun.tools.javac.Main has been deprecated.
/home/teska/public_html/sa
Package org.displaytag.sample not found in import.
import org.displaytag.sample.*;
^
1 error, 1 warning
Resin 2.1.16 (built Tue Feb 15 11:12:27 PST 2005)
I'm assuming this is because I don't have the right jar loaded in my WEb-INF/lib directory. Ideally I could copy the files into my own package so I can modify them if needed - like I did to the Wrapper.java class.
Also, do you know if there is any documentation on the classes in the sample package? I haven't even seen where I can get the package let alone what is in it.
Thanks,
Courtenay
Main Topics
Browse All Topics





by: mrcoffee365Posted on 2007-01-24 at 10:55:43ID: 18388696
ListObject is in the original sample tag set of classes -- you need to include them in your classpath for the java file to compile. You need them available to Tomcat for the wrapper to run.
;
It looks as if you copied one file out of the org.displaytag.sample directory and renamed it to your package. That's fine, but now the sample file is expecting all of the classes it uses out of org.displaytag.sample. Either copy the rest of them to your teska.displaytag directory, or change the imports in your personal version of the wrapper to refer to the displaytag.sample classes from that other classpath.
Like:
import org.displaytag.sample.*;
I haven't used the displaytag decorator classes, so I'm not sure how you get the fields. You have code in your wrapper -- did you create this?:
String sfdid = (currRowObject.getSfdid())
That seems to get the sfdid, but I can't see in your code where getSfdid() is defined.