• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP in WSAD

 
Thomas Thomas
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 374
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That was the error .thanks a lot . My prob was i was putting the jar file in the classes folder.
Thomas
 
Thomas Thomas
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi David O'Meara
can i know more about the IBM/Wensphere forum.
Thanks
Thomas
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic