File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes How to dynamically convert XML to HTML using JSP? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to dynamically convert XML to HTML using JSP?" Watch "How to dynamically convert XML to HTML using JSP?" New topic
Author

How to dynamically convert XML to HTML using JSP?

Faxin Zhao
Greenhorn

Joined: Jul 18, 2003
Posts: 16
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
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.
 
 
subject: How to dynamically convert XML to HTML using JSP?
 
Similar Threads
A Struts Internationalization Example Problem
How to dynamically convert XML to HTML using JSP?
jsp:include needs to have "flush=true"
Apache Tomcat Errors???
problem in TLD