Hello, i'm new to jsps and i have trouble running a jsp from an html file. when i try to run the jsp with tomcat i get the error shown below. Can anyone give me some hints? Thank you, Tiby Error: 500 Location: /search.jsp Internal Servlet Error: org.apache.jasper.compiler.ParseException: C:\Inetpub\wwwroot\search.jsp(5,16) Attribute import has no value at org.apache.jasper.compiler.JspReader.parseAttributeValue(JspReader.java:519) at org.apache.jasper.compiler.JspReader.parseTagAttributes(JspReader.java:635) at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:192) at org.apache.jasper.compiler.Parser.parse(Parser.java:1077) at org.apache.jasper.compiler.Parser.parse(Parser.java:1042) at org.apache.jasper.compiler.Parser.parse(Parser.java:1038) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:579)
well i too had it several times just chk the path where ur jsp files exist or check the bean (if u r using it does it compile without errors?) i would suggest u also to check the import statements if u r using one.
SCJP, SCWD <br />A farmer learns more from a bad harvest than a good one.
this is the code. this code has to be executed when i click on a submit button in a html file. also my iis stopes for no reason. i guess is the tomcat. i followed the installation and redirection by the book. thanks for your help guys. tiby <%-- when user click submit button. it goes this part --%> <%@ page errorPage="error.jsp"%> <%! String result=""; %> <%@ page import "java.util.*"%> <% if(request.getParameter("submit")!=null){ %> <jsp:useBean id="ClientBeans" scope="request" class="IDRClient.Functions" /> <% String name=request.getParameter("domain"); String ext=request.getParameter("extension"); name=name + ext; String lang=request.getParameter("language"); Hashtable info=new Hashtable(); info.put("domain",name); info.put("language",lang); synchronized(page) {ClientBeans.check(info);} result = ClientBeans.getMESSAGE(); } %> <%-- end --%> <%-- the following part is for --%> <%-- 1. first open this page --%> <%-- 2. display search result --%> <html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <meta name="Author" content="Ming Huang"> <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <title>DOMAIN SEARCH</title> <script> function checkinput(){ var domain=document.domainform.domain if(domain.value == "" | |domain.value.indexOf(".") != -1){ alert("Please input domain name and it can not have dot(.) !!!"); domain.focus(); return false; } } </script> </head> <body>