Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to dynamically convert XML to HTML using JSP?

 
Faxin Zhao
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a problem.
I can search an account using a servlet and a jsp file, and show the results using XML.
Now I need to minitor those output and show it using HTML.
I run the following jsp, but got error:
<%@taglib uri="http://jakarta.apache.org/taglibs/xsl-1.0" prefix="xslt" %>
<html>
<head>
<title>Account Monitor</title>
</head>
<body>
<center>
Minitor
<p></p>
<xslt:apply xml="http://localhost/servlet/acctMonitor?acctKey=1234678&branch=BIC" xsl="bic.xsl"/>
</center>
</body>
</html>

What's wrong?
Thanks in advance.

Exception in jsp:
org.apache.jasper.JasperException: Could not locate TLD META-INF/taglib.tld at
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:217) at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:648) at
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:110) at
org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:194) at
org.apache.jasper.compiler.Parser.parse(Parser.java:984) at
org.apache.jasper.compiler.Parser.parse(Parser.java:959) at
org.apache.jasper.compiler.Parser.parse(Parser.java:955) at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:140) at
org.apache.jasper.runtime.JspLoader.loadJSP(JspLoader.java:226) at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:142) at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:153) at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:245) at
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:350) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:868) at
com.gefionsoftware.server.ServletContextImpl$ServletHandler.call(ServletContextImpl.java) at
com.gefionsoftware.server.ServletContextImpl.executeServlet(ServletContextImpl.java) at
com.gefionsoftware.server.ServletContextImpl.execute(ServletContextImpl.java) at
com.gefionsoftware.server.GenericServer.execute(GenericServer.java) at
com.gefionsoftware.server.lws.LiteWebServer$RequestHandler.run(LiteWebServer.java) at
se.pureit.util.ThreadPool$WorkThread.startRunnable(ThreadPool.java) at
se.pureit.util.ThreadPool$WorkThread.run(ThreadPool.java)
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have only one rule at the ranch and that is the naming policy....please change you screen name by clicking on the my profile link above.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic