I am using struts1.1 and the taglib's URI is mapped to "/web-inf/struts-html.tld" in web.xml
I am wondering when the struts blank tutorial with the same syntaxes is working then why not this application. NullPointerException indicates that something is missing. What is it ? -----Original Message----- From: Murray Collingwood [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 21, 2005 11:38 AM To: Struts Users Mailing List Subject: Re: Null Pointer exception when using struts html tag library in jsp file I'm using Struts 1.2.x and the taglib entries I ALWAYS use are: <[EMAIL PROTECTED] uri="http://struts.apache.org/tags-bean" prefix="bean" %> <[EMAIL PROTECTED] uri="http://struts.apache.org/tags-html" prefix="html" %> <[EMAIL PROTECTED] uri="http://struts.apache.org/tags-logic" prefix="logic" %> Which version of Struts are you using? Kind regards mc On 21 Sep 2005 at 11:39, Archana Soni wrote: > Hello. > > I am getting the following NullPointerException (error details pasted below) > when I include the struts html tag library thru page directive > (<%@ taglib uri="/tags/struts-html" prefix="html" %>) in any jsp of the web > application. Whereas after removing it and using simple HTML tags in the > jsp page, the page is properly displayed. > > Also when I am running the struts example application (struts-blank), it is > working fine even after using struts html tag library. My application is > also simple and I am doing the same thing as the example application does, > but still it is giving this error. > > I am using jetty server ver 5.1 > > Can anyone help me out. > > > > 11:15:30.855 WARN!! [P1-19] > org.mortbay.jetty.servlet.ServletHandler.handle(Serv > letHandler.java:589) >11> /TryExample/FPWelcome: > java.lang.NullPointerException > at > org.apache.jsp.pages.FPWelcome_jsp._jspx_meth_html_html_0(FPWelcome_j > sp.java:86) > at > org.apache.jsp.pages.FPWelcome_jsp._jspService(FPWelcome_jsp.java:64) > > at > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > at > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper > .java:324) > at > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2 > 92) > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > at > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427 > ) > at > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati > onHandler.java:473) > at > org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:262) > at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:170) > at > org.apache.struts.action.RequestProcessor.doForward(RequestProcessor. > java:1056) > at > org.apache.struts.action.RequestProcessor.internalModuleRelativeForwa > rd(RequestProcessor.java:994) > at > org.apache.struts.action.RequestProcessor.processForward(RequestProce > ssor.java:553) > at > org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja > va:211) > at > org.apache.struts.action.ActionServlet.process(ActionServlet.java:116 > 4) > at > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:596) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > at > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427 > ) > at > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati > onHandler.java:473) > at > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5 > 68) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1565) > at > org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication > Context.java:635) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1517) > at org.mortbay.http.HttpServer.service(HttpServer.java:954) > at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) > at > org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983) > at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) > at > org.mortbay.http.SocketListener.handleConnection(SocketListener.java: > 244) > at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) > at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.344 / Virus Database: 267.11.3/107 - Release Date: 20/09/2005 > FOCUS Computing Mob: 0415 24 26 24 [EMAIL PROTECTED] http://www.focus-computing.com.au -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.3/107 - Release Date: 20/09/2005 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]