struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <davelnew...@gmail.com>
Subject Re: No tag "" defined in tag library imported with prefix "html"
Date Fri, 17 Dec 2010 18:33:24 GMT
I'm randomly bitten by funky input files, too, like when people
cut-and-paste from something like Word.

I don't think that's it, but when it's something weird, you never know.
Also, which line is that? It's impossible to tell where the lines are in
your file.

Dave

On Fri, Dec 17, 2010 at 1:24 PM, Maurizio Cucchiara <
maurizio.cucchiara@gmail.com> wrote:

> It smells like missing dependency?
>
>
> 2010/12/17 Amit Oberoi <aoberoi@techmahindra.com>:
> > Maurizio,
> >
> > Thanks for your prompt response. It doesn't works, still getting the same
> set of exceptions.
> >
> > Amit Oberoi
> >
> >
> > -----Original Message-----
> > From: Maurizio Cucchiara [mailto:maurizio.cucchiara@gmail.com]
> > Sent: Friday, December 17, 2010 11:11 PM
> > To: Struts Users Mailing List
> > Subject: Re: No tag "" defined in tag library imported with prefix "html"
> >
> > Probably I'm wrong, but you should try to declare html struts library
> > in the following way:
> >  <%@ taglib prefix="html" uri="http://struts.apache.org/tags-html" %>
> >
> >
> > 2010/12/17 Amit Oberoi <aoberoi@techmahindra.com>:
> >> Hi, This may sound a dumb question; however, I am new to struts & JSP
> >> and this indeed is my first code to do a login. I am using Netbeans 7.0
> >> Beta as the IDE and while executing I am getting the below error
> >> message. Please can anyone help me in sorting this out.
> >>
> >>
> >>
> >> org.apache.jasper.JasperException: /access.jsp(31,16) No tag "" defined
> >> in tag library imported with prefix "html"
> >>
> >>        at
> >> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand
> >> ler.java:40)
> >>
> >>        at
> >> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java
> >> :407)
> >>
> >>        at
> >> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java
> >> :198)
> >>
> >>        at
> >> org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1231)
> >>
> >>        at
> >> org.apache.jasper.compiler.Parser.parseElements(Parser.java:1467)
> >>
> >>        at org.apache.jasper.compiler.Parser.parse(Parser.java:138)
> >>
> >>        at
> >> org.apache.jasper.compiler.ParserController.doParse(ParserController.jav
> >> a:216)
> >>
> >>        at
> >> org.apache.jasper.compiler.ParserController.parse(ParserController.java:
> >> 103)
> >>
> >>        at
> >> org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:154)
> >>
> >>        at
> >> org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
> >>
> >>        at
> >> org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
> >>
> >>        at
> >> org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
> >>
> >>        at
> >> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
> >> va:586)
> >>
> >>        at
> >> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
> >> va:317)
> >>
> >>        at
> >> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
> >>
> >>        at
> >> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
> >>
> >>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> >>
> >>        at
> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> >> tionFilterChain.java:290)
> >>
> >>        at
> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> >> erChain.java:206)
> >>
> >>        at
> >> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi
> >> lter.java:393)
> >>
> >>        at
> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> >> tionFilterChain.java:235)
> >>
> >>        at
> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> >> erChain.java:206)
> >>
> >>        at
> >> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
> >> her.java:630)
> >>
> >>        at
> >> org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio
> >> nDispatcher.java:436)
> >>
> >>        at
> >> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
> >> atcher.java:374)
> >>
> >>        at
> >> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
> >> cher.java:302)
> >>
> >>        at
> >> org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
> >> a:1078)
> >>
> >>        at
> >> org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProc
> >> essor.java:295)
> >>
> >>        at
> >> org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(
> >> RequestProcessor.java:1022)
> >>
> >>        at
> >> org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForw
> >> ard(TilesRequestProcessor.java:374)
> >>
> >>        at
> >> org.apache.struts.action.RequestProcessor.processForward(RequestProcesso
> >> r.java:566)
> >>
> >>        at
> >> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
> >> 212)
> >>
> >>        at
> >> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
> >>
> >>        at
> >> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
> >>
> >>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> >>
> >>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> >>
> >>        at
> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> >> tionFilterChain.java:290)
> >>
> >>        at
> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> >> erChain.java:206)
> >>
> >>        at
> >> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi
> >> lter.java:393)
> >>
> >>        at
> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> >> tionFilterChain.java:235)
> >>
> >>        at
> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> >> erChain.java:206)
> >>
> >>        at
> >> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
> >> her.java:630)
> >>
> >>        at
> >> org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio
> >> nDispatcher.java:436)
> >>
> >>        at
> >> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
> >> atcher.java:374)
> >>
> >>        at
> >> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
> >> cher.java:302)
> >>
> >>        at
> >> org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java
> >> :696)
> >>
> >>        at
> >> org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:6
> >> 67)
> >>
> >>        at org.apache.jsp.index_jsp._jspService(index_jsp.java:57)
> >>
> >>        at
> >> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> >>
> >>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> >>
> >>        at
> >> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
> >> va:374)
> >>
> >>        at
> >> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
> >>
> >>        at
> >> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
> >>
> >>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> >>
> >>        at
> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> >> tionFilterChain.java:290)
> >>
> >>        at
> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> >> erChain.java:206)
> >>
> >>        at
> >> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi
> >> lter.java:393)
> >>
> >>        at
> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> >> tionFilterChain.java:235)
> >>
> >>        at
> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> >> erChain.java:206)
> >>
> >>        at
> >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
> >> e.java:233)
> >>
> >>        at
> >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
> >> e.java:191)
> >>
> >>        at
> >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> >> :128)
> >>
> >>        at
> >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> >> :102)
> >>
> >>        at
> >> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
> >> java:109)
> >>
> >>        at
> >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2
> >> 86)
> >>
> >>        at
> >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84
> >> 5)
> >>
> >>        at
> >> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
> >> Http11Protocol.java:583)
> >>
> >>        at
> >> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> >>
> >>        at java.lang.Thread.run(Thread.java:619)
> >>
> >>
> >>
> >> My struts-config file is as below
> >>
> >>
> >>
> >> <?xml version="1.0" encoding="UTF-8" ?>
> >>
> >>
> >>
> >> <!DOCTYPE struts-config PUBLIC
> >>
> >>          "-//Apache Software Foundation//DTD Struts Configuration
> >> 1.3//EN"
> >>
> >>          "http://jakarta.apache.org/struts/dtds/struts-config_1_3.dtd">
> >>
> >>
> >>
> >>
> >>
> >> <struts-config>
> >>
> >>    <form-beans>
> >>
> >>        <form-bean name="loginForm" type="com.btw.form.loginForm"/>
> >>
> >>    </form-beans>
> >>
> >>
> >>
> >>    <global-exceptions>
> >>
> >>
> >>
> >>    </global-exceptions>
> >>
> >>
> >>
> >>    <global-forwards>
> >>
> >>
> >>
> >>    </global-forwards>
> >>
> >>
> >>
> >>    <action-mappings>
> >>
> >>        <action path="/access" forward="/access.jsp"/>
> >>
> >>        <action path="/login" validate="true" name="loginForm"
> >> type="com.btw.action.LoginAction">
> >>
> >>            <forward name="success" path="/welcome"/>
> >>
> >>        </action>
> >>
> >>        <action path="/welcome" forward="/welcomeStruts.jsp"/>
> >>
> >>    </action-mappings>
> >>
> >>
> >>
> >>    <controller
> >> processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>
> >>
> >>
> >>
> >>    <message-resources parameter="com/btw/ApplicationResource"/>
> >>
> >>
> >>
> >>    <!-- ========================= Tiles plugin
> >> ===============================-->
> >>
> >>        <plug-in className="org.apache.struts.tiles.TilesPlugin" >
> >>
> >>        <set-property property="definitions-config"
> >> value="/WEB-INF/tiles-defs.xml" />
> >>
> >>        <set-property property="moduleAware" value="true" />
> >>
> >>    </plug-in>
> >>
> >>
> >>
> >>    <!-- ========================= Validator plugin
> >> ================================= -->
> >>
> >>    <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
> >>
> >>        <set-property
> >>
> >>            property="pathnames"
> >>
> >>
> >> value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
> >>
> >>    </plug-in>
> >>
> >>
> >>
> >> </struts-config>
> >>
> >>
> >>
> >> My JSP containing the loginForm is as below
> >>
> >>
> >>
> >> <%--
> >>
> >>    Document   : Login
> >>
> >>    Created on : Dec 12, 2010, 2:37:02 PM
> >>
> >>    Author     : ao0022515
> >>
> >> --%>
> >>
> >>
> >>
> >> <%@page contentType="text/xhtml"%>
> >>
> >> <%@page pageEncoding="UTF-8"%>
> >>
> >> <%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
> >>
> >>
> >>
> >> <html:html xhtml="true">
> >>
> >>    <head>
> >>
> >>        <title>Portal -- Login</title>
> >>
> >>        <link rel="stylesheet" type="text/css" href="style.css"/>
> >>
> >>    </head>
> >>
> >>    <body>
> >>
> >>        <div class="container">
> >>
> >>            <div class="titleblock">
> >>
> >>                <h1>Portal</h1>
> >>
> >>            </div>
> >>
> >>            <div>
> >>
> >>                <ul class="navbar">
> >>
> >>                    <li><a href="#" class="style5 nav style1">Link
> >> 1</a></li>
> >>
> >>                    <li><a href="#" class="style5 nav style1">Link
> >> 2</a></li>
> >>
> >>                    <li><a href="#" class="style5 nav style1">Link
> >> 3</a></li>
> >>
> >>                    <li><a href="#" class="style5 nav style1">Link
> >> 4</a></li>
> >>
> >>                </ul>
> >>
> >>            </div>
> >>
> >>            <div class="content">
> >>
> >>                <html:errors/>
> >>
> >>                <h3>Login</h3>
> >>
> >>                <html:form action="login.do">
> >>
> >>                    <table border="1" style="border-color: #1E1F1A;"
> >> align="center">
> >>
> >>                        <tr>
> >>
> >>                            <td style="background-color: #1E1F1A;"><b
> >> style="color: #FFFFFF;">User Id</b></td>
> >>
> >>                            <td><html:text property="user"/></td>
> >>
> >>                        </tr>
> >>
> >>                        <tr>
> >>
> >>                            <td style="background-color: #1E1F1A;"><b
> >> style="color: #FFFFFF;">Password</b></td>
> >>
> >>                            <td><html:password property="passwd"
> >> redisplay="false"/></td>
> >>
> >>                        </tr>
> >>
> >>                        <tr>
> >>
> >>                            <td style="background-color: #1E1F1A;"
> >> align="center" colspan="2"><html:submit>Login</html:submit></td>
> >>
> >>                        </tr>
> >>
> >>                    </table>
> >>
> >>                </html:form>
> >>
> >>            </div>
> >>
> >>            <div class="footer">
> >>
> >>                <div class="right style11">
> >>
> >>                    <p class="style14">&copy; 2010 &nbsp<a
> >> href="http://www.mydomain.com">XXXXXXX.</a></p>
> >>
> >>                    <p>&nbsp;</p>
> >>
> >>                </div>
> >>
> >>                <p>&nbsp;</p>
> >>
> >>            </div>
> >>
> >>        </div>
> >>
> >>    </body>
> >>
> >> </html:html>
> >>
> >>
> >>
> >>
> >>
> >> Regards
> >>
> >>
> >>
> >> Amit Oberoi
> >>
> >>
> >>
> ============================================================================================================================Disclaimer:
>  This message and the information contained herein is proprietary and
> confidential and subject to the Tech Mahindra policy statement, you may
> review the policy at <a href="http://www.techmahindra.com/Disclaimer.html
> ">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="
> http://tim.techmahindra.com/Disclaimer.html">
> http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech
> Mahindra.============================================================================================================================
> >>
> >
> >
> >
> > --
> > Maurizio Cucchiara
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> >
> ============================================================================================================================Disclaimer:
>  This message and the information contained herein is proprietary and
> confidential and subject to the Tech Mahindra policy statement, you may
> review the policy at <a href="http://www.techmahindra.com/Disclaimer.html
> ">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="
> http://tim.techmahindra.com/Disclaimer.html">
> http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech
> Mahindra.============================================================================================================================
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>
>
> --
> Maurizio Cucchiara
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message