aspose file tools*
The moose likes JSP and the fly likes JSP in WSAD 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 » Java » JSP
Bookmark "JSP in WSAD" Watch "JSP in WSAD" New topic
Author

JSP in WSAD

Thomas Thomas
Greenhorn

Joined: Jun 17, 2003
Posts: 28
i am doing a JSP in WSAD using xml files. I am using electric xml.I am not able to configure the jar file of Electric XML so that
<% @page import="electric.xml.*" %>
<% Document document= new Document
(new File("path to the xml document")) %>
My Error is
Error 500: Unable to compile class for JSP C:\Thomas\IBM\wsad\workspace\.metadata\.plugins\com.ibm.etools.server.core\tmp1\cache\localhost\server1\DefaultEAR\JavaQuiz.war\_index.java:5: Package electric.xml not found in import. import electric.xml.*; ^ 1 error
the imported the library and i can run from a java class. and do all the manipulations on the xml file with electric XML.
any tips
Thomas C Thomas
David Hibbs
Ranch Hand

Joined: Dec 19, 2002
Posts: 374
I'm not sure what "electric XML" is, but it looks like it's not on your class path--build or runtime. Drop it in your .lib file, then add it to the Java Build Path on the project properties. After a rebuild, it should work ok.


"Write beautiful code; then profile that beautiful code and make little bits of it uglier but faster." --The JavaPerformanceTuning.com team, Newsletter 039.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

You'll have to either put the electric xml jar in the web-inf/lib directory for your web app, or put the jar in the EAR that the web app is associated with, then put this jar on the web app build path using.
If this doesn't help, I'll get this question moved to the IBM/Websphere forum for you.
Dave
Thomas Thomas
Greenhorn

Joined: Jun 17, 2003
Posts: 28
That was the error .thanks a lot . My prob was i was putting the jar file in the classes folder.
Thomas
Thomas Thomas
Greenhorn

Joined: Jun 17, 2003
Posts: 28
Hi David O'Meara
can i know more about the IBM/Wensphere forum.
Thanks
Thomas
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

It's a bit lower down the page in the JavaRanch Saloon.
Here's a link to make it easy:
http://www.coderanch.com/forums/f-46/Websphere
Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP in WSAD