Don Zorro
|
Posted: 04/08/2004, 9:42 AM |
|
Hello,
How can I import external java packages? I added the "csv.jar" to the project ("Runtime libraries"), but where should I place the "import com.csv.*" directive? The code using this package is in xxxHandler.jsp.
Thanks,
-stefan
|
|
|
miko
Posts: 50
|
Posted: 04/09/2004, 12:17 AM |
|
Stefan,
you can use full class name(with package), for example
com.cvs.MyClass myClass = new com.cvs.MyClass();
or you can add com.cvs.* to page import directive to xxx.jsp file
<@page import="......;com.cvs.*"%>
_________________
Regards,
Michael |
|
|
Don Zorro
|
Posted: 04/10/2004, 6:02 PM |
|
miko,
Thanks for your reply. I ended up adding the import directive to the <@ page import=...%> section, but I was hoping there is a better solution, one which doesn't require editing the generated code (at one point the file may be re-created by the CCS, and my changes will be lost.). Using full class names is a solution, but... well very inconvinient :/
-zorro
|
|
|
|