Win a copy of Machine Learning with R: Expert techniques for predictive modeling this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Import an Ontology into JSP with Jesstaglib

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,nice to meet you.
I would like to import an ontology into JSP with Jesstaglib and apply
facts and rules of Ontology on JSP. first of all , I attempt to
download Jesstaglib software from Sourceforge website and use ant tool
trying install Jesstaglib. but the command line shows plenty of mistakes.
I don't know how to install Jesstaglib and import Ontology into JSP.
Who could help me solve this problem? thanks.

Sincerely,
 
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What errors are you seeing? Please TellTheDetails
 
Stanley Lin
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Martijn Verburg
Thank for replying message. I attempt to install jesstaglib with ant tool. and the error is as follow:
how can I do for next step? thanks.


questParamsTag.java:70: cannot find symbol
[javac] symbol : variable Tag
[javac] location: class net.sf.jesstaglib.AssertRequestParamsTag
[javac] return Tag.SKIP_BODY;
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\AssertRe
questParamsTag.java:81: cannot find symbol
[javac] symbol : variable pageContext
[javac] location: class net.sf.jesstaglib.AssertRequestParamsTag
[javac] Map paramMap = this.pageContext.getRequest().getParameterMap
();
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\AssertRe
questParamsTag.java:85: cannot find symbol
[javac] symbol : class Fact
[javac] location: class net.sf.jesstaglib.AssertRequestParamsTag
[javac] Fact fact = null;
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\AssertRe
questParamsTag.java:98: cannot find symbol
[javac] symbol : class Fact
[javac] location: class net.sf.jesstaglib.AssertRequestParamsTag
[javac] fact = new Fact(paramTemplate);
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\AssertRe
questParamsTag.java:100: cannot find symbol
[javac] symbol : class Value
[javac] location: class net.sf.jesstaglib.AssertRequestParamsTag
[javac] new Value(paramName, RU.STRING));
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\AssertRe
questParamsTag.java:100: cannot find symbol
[javac] symbol : variable RU
[javac] location: class net.sf.jesstaglib.AssertRequestParamsTag
[javac] new Value(paramName, RU.STRING));
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\AssertRe
questParamsTag.java:102: cannot find symbol
[javac] symbol : class Value
[javac] location: class net.sf.jesstaglib.AssertRequestParamsTag
[javac] new Value(paramVals[i], RU.STRING));
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\AssertRe
questParamsTag.java:102: cannot find symbol
[javac] symbol : variable RU
[javac] location: class net.sf.jesstaglib.AssertRequestParamsTag
[javac] new Value(paramVals[i], RU.STRING));
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\AssertRe
questParamsTag.java:105: cannot find symbol
[javac] symbol : class JessException
[javac] location: class net.sf.jesstaglib.AssertRequestParamsTag
[javac] catch (JessException e)
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\AssertRe
questParamsTag.java:107: cannot find symbol
[javac] symbol : class JspException
[javac] location: class net.sf.jesstaglib.AssertRequestParamsTag
[javac] throw new JspException("Error asserting fact: "
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\AssertRe
questParamsTag.java:114: cannot find symbol
[javac] symbol : variable Tag
[javac] location: class net.sf.jesstaglib.AssertRequestParamsTag
[javac] return Tag.EVAL_PAGE;
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\FetchTag
.java:71: cannot find symbol
[javac] symbol : variable super
[javac] location: class net.sf.jesstaglib.FetchTag
[javac] super.doTag();
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\FetchTag
.java:72: cannot find symbol
[javac] symbol : class JspContext
[javac] location: class net.sf.jesstaglib.FetchTag
[javac] JspContext jspContext = getJspContext();
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\FetchTag
.java:72: cannot find symbol
[javac] symbol : method getJspContext()
[javac] location: class net.sf.jesstaglib.FetchTag
[javac] JspContext jspContext = getJspContext();
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\FetchTag
.java:73: cannot find symbol
[javac] symbol : class JspTag
[javac] location: class net.sf.jesstaglib.FetchTag
[javac] JspTag parent = getParent();
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\FetchTag
.java:73: cannot find symbol
[javac] symbol : method getParent()
[javac] location: class net.sf.jesstaglib.FetchTag
[javac] JspTag parent = getParent();
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\FetchTag
.java:76: cannot find symbol
[javac] symbol : class JspException
[javac] location: class net.sf.jesstaglib.FetchTag
[javac] throw new JspException("FetchTags must have a Je
ssTag as a parent");
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\FetchTag
.java:79: cannot find symbol
[javac] symbol : class Rete
[javac] location: class net.sf.jesstaglib.FetchTag
[javac] Rete rete = jessTag.getEngine();
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\FetchTag
.java:80: cannot find symbol
[javac] symbol : class Value
[javac] location: class net.sf.jesstaglib.FetchTag
[javac] Value value = rete.fetch(storeName);
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\FetchTag
.java:86: cannot find symbol
[javac] symbol : class JessException
[javac] location: class net.sf.jesstaglib.FetchTag
[javac] catch (JessException e)
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\FetchTag
.java:88: cannot find symbol
[javac] symbol : class JspException
[javac] location: class net.sf.jesstaglib.FetchTag
[javac] throw new JspException("Error retrieving stored
value");
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\JessTag.
java:80: cannot find symbol
[javac] symbol : class Rete
[javac] location: class net.sf.jesstaglib.JessTag
[javac] engine = new Rete();
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\JessTag.
java:85: cannot find symbol
[javac] symbol : class JessException
[javac] location: class net.sf.jesstaglib.JessTag
[javac] catch (JessException e)
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\JessTag.
java:88: cannot find symbol
[javac] symbol : class JspTagException
[javac] location: class net.sf.jesstaglib.JessTag
[javac] throw new JspTagException("Error loading
scriptlib.clp",e);
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\JessTag.
java:94: cannot find symbol
[javac] symbol : class JessException
[javac] location: class net.sf.jesstaglib.JessTag
[javac] catch (JessException e1)
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\JessTag.
java:97: cannot find symbol
[javac] symbol : class JspTagException
[javac] location: class net.sf.jesstaglib.JessTag
[javac] throw new JspTagException("Error during (reset)",e1)
;
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\JessTag.
java:101: cannot find symbol
[javac] symbol : method getPreviousOut()
[javac] location: class net.sf.jesstaglib.JessTag
[javac] engine.addOutputRouter(JSP_OUT, this.getPreviousOut());
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\JessTag.
java:108: cannot find symbol
[javac] symbol : class Defglobal
[javac] location: class net.sf.jesstaglib.JessTag
[javac] new Defglobal(PAGE_CONTEXT,
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\JessTag.
java:109: cannot find symbol
[javac] symbol : class Value
[javac] location: class net.sf.jesstaglib.JessTag
[javac] new Value(pageCo
ntext)));
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\JessTag.
java:109: cannot find symbol
[javac] symbol : variable pageContext
[javac] location: class net.sf.jesstaglib.JessTag
[javac] new Value(pageCo
ntext)));
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\JessTag.
java:111: cannot find symbol
[javac] symbol : class JessException
[javac] location: class net.sf.jesstaglib.JessTag
[javac] catch (JessException e)
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\JessTag.
java:114: cannot find symbol
[javac] symbol : class JspTagException
[javac] location: class net.sf.jesstaglib.JessTag
[javac] throw new JspTagException("Error setting PageCon
text variable",e);
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\JessTag.
java:132: cannot find symbol
[javac] symbol : class JessException
[javac] location: class net.sf.jesstaglib.JessTag
[javac] catch (JessException e)
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\JessTag.
java:135: cannot find symbol
[javac] symbol : class JspException
[javac] location: class net.sf.jesstaglib.JessTag
[javac] throw new JspException("An error occurred while trying t
o (run)",e);
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\JessTag.
java:144: cannot find symbol
[javac] symbol : variable super
[javac] location: class net.sf.jesstaglib.JessTag
[javac] return super.doAfterBody();
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\ScriptTa
g.java:48: cannot find symbol
[javac] symbol : class Tag
[javac] location: class net.sf.jesstaglib.ScriptTag
[javac] Tag tag = this.getParent();
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\ScriptTa
g.java:48: cannot find symbol
[javac] symbol : method getParent()
[javac] location: class net.sf.jesstaglib.ScriptTag
[javac] Tag tag = this.getParent();
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\ScriptTa
g.java:51: cannot find symbol
[javac] symbol : class JspException
[javac] location: class net.sf.jesstaglib.ScriptTag
[javac] throw new JspException("ScriptTag must be nested
in a JessTag");
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\ScriptTa
g.java:58: cannot find symbol
[javac] symbol : variable BodyTagSupport
[javac] location: class net.sf.jesstaglib.ScriptTag
[javac] return BodyTagSupport.EVAL_BODY_BUFFERED;
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\ScriptTa
g.java:89: cannot find symbol
[javac] symbol : class BodyContent
[javac] location: class net.sf.jesstaglib.ScriptTag
[javac] BodyContent bc = this.getBodyContent();
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\ScriptTa
g.java:89: cannot find symbol
[javac] symbol : method getBodyContent()
[javac] location: class net.sf.jesstaglib.ScriptTag
[javac] BodyContent bc = this.getBodyContent();
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\ScriptTa
g.java:99: cannot find symbol
[javac] symbol : method getClass()
[javac] location: class net.sf.jesstaglib.ScriptTag
[javac] this.getClass().getResourceAsStr
eam(resource);
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\ScriptTa
g.java:102: cannot find symbol
[javac] symbol : class JspException
[javac] location: class net.sf.jesstaglib.ScriptTag
[javac] throw new JspException(
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\ScriptTa
g.java:116: cannot find symbol
[javac] symbol : class JspException
[javac] location: class net.sf.jesstaglib.ScriptTag
[javac] throw new JspException(
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\ScriptTa
g.java:144: cannot find symbol
[javac] symbol : class JessException
[javac] location: class net.sf.jesstaglib.ScriptTag
[javac] catch (JessException e)
[javac] ^
[javac] C:\Program Files\Java\jesstaglib\src\java\net\sf\jesstaglib\ScriptTa
g.java:147: cannot find symbol
[javac] symbol : class JspException
[javac] location: class net.sf.jesstaglib.ScriptTag
[javac] throw new JspException("Error executing ScriptTa
g body", e);
[javac] ^
[javac] 100 errors

BUILD FAILED
C:\Program Files\Java\jesstaglib\build.xml:59: Compile failed; see the compiler
error output for details.

Total time: 12 seconds
 
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That looks like you're trying to build the tag lib - is that really necessary? Don't you have jar files that make up the taglib? In any case, in order to compile it you need to have the JSP libraries in your classpath - search for a file called jsp-api.jar. It's part of your servlet container; in Tomcat it's in TOMCAT_HOME/common/lib.
 
Stanley Lin
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all
Thank for your solution. I've been built the Jesstaglib program successfully and try some examples within Jesstaglib directory.
but I still don't know how to import plenty of instances of Ontology into JSP with Jesstaglib. Can everyone provide some
example code or give me some guide documents to me? Thanks.

Sincerely,
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, I'm mystified - Ontology as a general term I am familiar with - you appear to be dealing with some very specific implementation. It would be a really big help if you could point to a good source on this implementation.

"Import an Ontology" is just gibberish without details on the tools you are trying to use.

Bill
 
Stanley Lin
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To Dear Friends
I am so sorry using the wrong word "import" . as a matter of fact , I would like to embed
the Ontology into JSP with Jesstaglib pattern. but I don't know how to embed.
Can anyone teach me how to do for next step or give me some code samples.
Thanks.
Sincerely,
 
Tick check! Okay, I guess that was just an itch. Oh wait! Just a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!