struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gainty <mgai...@hotmail.com>
Subject RE: Hello Help please with Struts2
Date Sat, 19 Sep 2009 22:53:19 GMT

the struts-tags URL <%@ taglib uri="/struts-tags" prefix="s" %> lookups the uri in *.tld

(in this case /WEB-INF/classes/META-INF/struts-tags.tld)

<!-- struts-tags.tld contents displayed here -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
    <tlib-version>2.2.3</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>s</short-name>

    <uri>/struts-tags</uri>

<tag>
        <name>head</name>
        <tag-class>org.apache.struts2.views.jsp.ui.HeadTag</tag-class>

make sure the accompanying jar containing the classes such as HeadTag are located either on
WEB-INF/classes or WEB-INF/lib

.\WebappName\WEB-INF\lib\struts2-core-2.1.6.jar

Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten
wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist
unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet
keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen
wir keine Haftung fuer den Inhalt uebernehmen.






> From: Harasevich@yandex.ru
> To: user@struts.apache.org
> Subject: Hello Help please with Struts2
> Date: Sat, 19 Sep 2009 21:55:59 +0100
> 
> Hello
> 
> When running samples struts 2
> 
> Here is exception relative to this taglib in NetBeans7.1:
> <%@ taglib uri="/struts-tags" prefix="s" %>
> 
> 
> 
> org.apache.jasper.JasperException: /example/HelloWorld.jsp(2,41) PWC6117: 
> File "/struts-tags" not found
>         at 
> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:73)
>         at 
> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:359)
>         at 
> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:153)
> 
> 
> Do not now reason why this error appear , beacause struts2-core-2.0.11.jar 
> is on classpath ?
> 
> Thanks.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

_________________________________________________________________
Bing brings you health info from trusted sources.
http://www.bing.com/search?q=pet+allergy&form=MHEINA&publ=WLHMTAG&crea=TXT_MHEINA_Health_Health_PetAllergy_1x1
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message