You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Konstantyn Harasevich <Ha...@yandex.ru> on 2009/09/26 20:04:55 UTC

Please Help with struts2




 Hello

 When running samples struts 2

 Here is exception relative to this taglib in NetBeans7.1:
 <%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>







org.apache.jasper.JasperException: /WEB-INF/decorators/main.jsp(26,72) PWC6188: The absolute uri: http://www.opensymphony.com/sitemesh/page cannot be resolved in either web.xml or the jar files deployed with this application



 Do not now reason why this error appear because this is valid url ?

 Thanks.

RE: Please Help with struts2

Posted by Konstantyn Harasevich <Ha...@yandex.ru>.
Hello

This sample deployed in web conteiner of GlashFish server. 


Here is .jsp



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%
    response.setHeader("Pragma", "no-cache");
    response.setHeader("Cache-Control", "no-cache");
    response.setDateHeader("Expires", 0);

    // Calculate the view sources url
    String sourceUrl = request.getContextPath()+"/viewSource.action";
    com.opensymphony.xwork2.ActionInvocation inv = com.opensymphony.xwork2.ActionContext.getContext().getActionInvocation();
    org.apache.struts2.dispatcher.mapper.ActionMapping mapping = org.apache.struts2.ServletActionContext.getActionMapping();
    if (inv != null) {
        com.opensymphony.xwork2.util.location.Location loc = inv.getProxy().getConfig().getLocation();
        sourceUrl += "?config="+(loc != null ? loc.getURI()+":"+loc.getLineNumber() : "");
        sourceUrl += "&className="+inv.getProxy().getConfig().getClassName();

        if (inv.getResult() != null && inv.getResult() instanceof org.apache.struts2.dispatcher.StrutsResultSupport) {
          sourceUrl += "&page="+mapping.getNamespace()+"/"+((org.apache.struts2.dispatcher.StrutsResultSupport)inv.getResult()).getLastFinalLocation();
        }
    } else {
        sourceUrl += "?page="+request.getServletPath();
    }
%>


<%@taglib prefix="page" uri="http://www.opensymphony.com/sitemesh/page" %>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>



<%@taglib prefix="s" uri="/struts-tags" %>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title><decorator:title default="Struts Showcase"/></title>
    <link href="<s:url value='/styles/main.css' encode='false' includeParams='none'/>" rel="stylesheet" type="text/css" media="all"/>
    <link href="<s:url value='/struts/niftycorners/niftyCorners.css' encode='false' includeParams='none'/>" rel="stylesheet" type="text/css"/>
    <link href="<s:url value='/struts/niftycorners/niftyPrint.css' encode='false' includeParams='none'/>" rel="stylesheet" type="text/css" media="print"/>

    <script language="JavaScript" type="text/javascript" src="<s:url value='/struts/niftycorners/nifty.js' encode='false' includeParams='none'/>"></script>

    <script language="JavaScript" type="text/javascript">

        window.onload=function(){
            if(!NiftyCheck())
                return;
            Rounded("blockquote","tr bl","#ECF1F9","#CDFFAA","smooth border #88D84F");
            Rounded("div#outer-header", "all", "white", "#818EBD", "smooth border #434F7C");
            Rounded("div#footer", "all", "white", "#818EBD", "smooth border #434F7C");
        }

    </script>

    <decorator:head/>
</head>

<body id="page-home">


<div id="page">
    <div id="outer-header">
        <div id="header" class="clearfix">
            <div id="branding">
                <h1 class="title">Struts Showcase</h1>
                <s:action id="dateAction" name="date" namespace="/" executeResult="true" />
            </div><!-- end branding -->

            <div id="search">
                <img src="<s:url value='/images/struts-power.gif' encode='false' includeParams='none'/>" alt="Powered by Struts"/>
            </div><!-- end search -->

            <hr/>
        </div>
    </div><!-- end header -->

    <div id="content" class="clearfix">

        <decorator:body/>

        <div id="nav">
            <div class="wrapper">
                <h2 class="accessibility">Navigation</h2>
                <ul class="clearfix">
        <li><a href="<s:url value="/showcase.jsp"/>">Home</a></li>
        <li><a href="<s:url value="/ajax/index.jsp"/>">Ajax</a></li>
        <li><a href="<s:url value="/chat/index.jsp"/>">Ajax Chat</a></li>
        <li><a href="<s:url action="actionChain1!input" namespace="/actionchaining"  includeParams="none" />">Action Chaining</a></li>
        <li><a href="<s:url action="index" namespace="/config-browser" includeParams="none" />">Config Browser</a></li>
        <li><a href="<s:url value="/conversion/index.jsp"/>">Conversion</a></li>
        <li><a href="<s:url value="/empmanager/index.jsp"/>">CRUD</a></li>
        <li><a href="<s:url value="/wait/index.jsp"/>">Execute & Wait</a></li>
        <li><a href="<s:url value="/filedownload/index.jsp"/>">File Download</a></li>
        <li><a href="<s:url value="/fileupload" />">File Upload</a></li>
        <li><a href="<s:url value="/freemarker/index.jsp"/>">Freemarker</a>
        <li><a href="<s:url action="hangmanMenu" namespace="/hangman"/>">Hangman</a></li>
        <li><a href="<s:url value="/jsf/index.jsp"/>">JavaServer Faces</a></li>
        <li><a href="<s:url value="/person/index.jsp"/>">Person Manager</a></li>
        <li><a href="<s:url value="/tags/index.jsp"/>">Tags</a></li>
        <li><a href="<s:url value="/tiles/index.action" />">Tiles</a></li>
        <li><a href="<s:url value="/token/index.jsp"/>">Token</a></li>
        <li><a href="<s:url value="/validation/index.jsp"/>">Validation</a></li>
        <li class="last"><a href="<s:url value="/help.jsp"/>">Help</a></li>
                </ul>
            </div>
            <hr/>

        </div><!-- end nav -->

    </div><!-- end content -->

  <div>
      <p>
        <a href="<%=sourceUrl %>">View Sources</a>
      </p>
  </div>
    <div id="footer" class="clearfix">
        <p>Copyright &copy; 2003-<s:property value="#dateAction.now.year + 1900" /> The Apache Software Foundation.</p>
    </div><!-- end footer -->
    <p/>

</div><!-- end page -->

</body>
</html>


Here is web.xml


<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_9" version="2.4" 
 xmlns="http://java.sun.com/xml/ns/j2ee" 
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

    <display-name>Struts Showcase Application</display-name>
 
    <filter>
        <filter-name>struts-cleanup</filter-name>
        <filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class>
    </filter>

    <filter>
        <filter-name>struts</filter-name>
        <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
        <init-param>
         <param-name>actionPackages</param-name>
         <param-value>org.apache.struts2.showcase.person</param-value>
        </init-param>
    </filter>

    <filter>
        <filter-name>sitemesh</filter-name>
        <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
    </filter>

    <filter-mapping>
        <filter-name>struts-cleanup</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

    <filter-mapping>
        <filter-name>sitemesh</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

    <filter-mapping>
        <filter-name>struts</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

    <listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>
 
    <listener>
        <listener-class>
          org.apache.myfaces.webapp.StartupServletContextListener
        </listener-class>
    </listener>

    <listener>
        <listener-class>
            org.apache.struts2.tiles.StrutsTilesListener
        </listener-class>
    </listener>
    
    <!-- Chat Example in Showcase -->
    <listener>
     <listener-class>
       org.apache.struts2.showcase.chat.ChatSessionListener
     </listener-class>
    </listener>
 
    <!-- SNIPPET START: dwr -->

    <servlet>
        <servlet-name>dwr</servlet-name>
        <servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class>
        <init-param>
            <param-name>debug</param-name>
            <param-value>true</param-value>
        </init-param>
    </servlet>
 
 <!-- JavaServer Faces Servlet Configuration, not used directly -->
   <servlet>
     <servlet-name>faces</servlet-name>
     <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
     <load-on-startup>1</load-on-startup>
   </servlet>
    <servlet>
     <servlet-name>JspSupportServlet</servlet-name>
     <servlet-class>org.apache.struts2.views.JspSupportServlet</servlet-class>
     <load-on-startup>1</load-on-startup>
   </servlet>


   <!-- JavaServer Faces Servlet Mapping, not called directly -->
     <servlet-mapping>
        <servlet-name>faces</servlet-name>
        <url-pattern>*.action</url-pattern>
   </servlet-mapping>

    <servlet-mapping>
        <servlet-name>dwr</servlet-name>
        <url-pattern>/dwr/*</url-pattern>
    </servlet-mapping>

    <!-- END SNIPPET: dwr -->

    <!-- SNIPPET START: example.velocity.filter.chain
        <filter>
            <filter-name>struts-cleanup</filter-name>
            <filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class>
        </filter>
        <filter>
            <filter-name>sitemesh</filter-name>
            <filter-class>org.apache.struts2.sitemesh.VelocityPageFilter</filter-class>
        </filter>
        <filter>
            <filter-name>struts</filter-name>
            <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
        </filter>

        <filter-mapping>
            <filter-name>struts-cleanup</filter-name>
            <url-pattern>/*</url-pattern>
        </filter-mapping>
        <filter-mapping>
            <filter-name>sitemesh</filter-name>
            <url-pattern>/*</url-pattern>
        </filter-mapping>
        <filter-mapping>
            <filter-name>struts</filter-name>
            <url-pattern>/*</url-pattern>
        </filter-mapping>
    END SNIPPET: example.velocity.filter.chain -->

    <!-- SNIPPET START: example.freemarker.filter.chain
    <filter>
        <filter-name>struts-cleanup</filter-name>
        <filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class>
    </filter>
    <filter>
        <filter-name>sitemesh</filter-name>
        <filter-class>org.apache.struts2.sitemesh.FreeMarkerPageFilter</filter-class>
    </filter>
    <filter>
        <filter-name>struts</filter-name>
        <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
    </filter>

    <filter-mapping>
        <filter-name>struts-cleanup</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>sitemesh</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>struts</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    END SNIPPET: example.freemarker.filter.chain -->

    <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
        <welcome-file>default.jsp</welcome-file>
        <welcome-file>index.html</welcome-file>
    </welcome-file-list>

</web-app>



Here isstruts-tags.tld


<?xml version="1.0" encoding="UTF-8"?>
<taglib version="2.0" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd">
  <tlib-version>1.0</tlib-version>
  <uri>/struts-tags</uri>
   <short-name>s</short-name>

  <!-- A validator verifies that the tags are used correctly at JSP
         translation time. Validator entries look like this: 
      <validator>
          <validator-class>com.mycompany.TagLibValidator</validator-class>
          <init-param>
             <param-name>parameter</param-name>
             <param-value>value</param-value>
   </init-param>
      </validator>
   -->
  <!-- A tag library can register Servlet Context event listeners in
        case it needs to react to such events. Listener entries look
        like this: 
     <listener>
         <listener-class>com.mycompany.TagLibListener</listener-class> 
     </listener>
   -->
   
   
<tag>
        <name>head</name>
        <tag-class>org.apache.struts2.views.jsp.ui.HeadTag</tag-class>
          <body-content>JSP</body-content>
    <attribute>
        <name>var</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
     <attribute>
        <name>theme</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
</tag>

<tag>
        <name>tabbedPanel</name>
        <tag-class>org.apache.struts2.views.jsp.ui.TabbedPanelTag</tag-class>

          <body-content>JSP</body-content>
    <attribute>
        <name>id</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
        <name>theme</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
    
    
</tag>

<tag>
        <name>div</name>
        <tag-class>org.apache.struts2.views.jsp.ui.TabbedPanelTag</tag-class>

          <body-content>JSP</body-content>
    <attribute>
        <name>id</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
        <name>theme</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
     <attribute>
        <name>label</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
    
</tag>


<tag>
        <name>url</name>
        <tag-class>org.apache.struts2.views.jsp.URLTag</tag-class>
          <body-content>JSP</body-content>
    <attribute>
        <name>id</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
     <attribute>
        <name>action</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
        <name>value</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
        <name>namespace</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
        <name>includeParams</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
     <attribute>
        <name>encode</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
     <attribute>
        <name>method</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
    
    
    
    
</tag>
<tag>
        <name>property</name>
        <tag-class>org.apache.struts2.views.jsp.PropertyTag</tag-class>
         <body-content>JSP</body-content>
    <attribute>
        <name>value</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
</tag>
<tag>
        <name>text</name>
        <tag-class>org.apache.struts2.views.jsp.TextTag</tag-class>
          <body-content>JSP</body-content>
    <attribute>
        <name>name</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
</tag>

<tag>
        <name>param</name>
        <tag-class>org.apache.struts2.views.jsp.ParamTag</tag-class>
         <body-content>JSP</body-content>
    <attribute>
        <name>name</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
</tag>
<tag>
        <name>a</name>
        <tag-class>org.apache.struts2.views.jsp.ui.AnchorTag</tag-class>
        <body-content>JSP</body-content>
    <attribute>
        <name>href</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
        
        
</tag>
<tag>
        <name>i18n</name>
        <tag-class>org.apache.struts2.views.jsp.I18nTag</tag-class>
</tag>

<tag>
        <name>form</name>
        <tag-class>org.apache.struts2.views.jsp.ui.FormTag</tag-class>

        <body-content>JSP</body-content>
    <attribute>
        <name>action</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
        
         <attribute>
        <name>validate</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
</tag>

<tag>
        <name>textfield</name>
        <tag-class>org.apache.struts2.views.jsp.ui.TextFieldTag</tag-class>

        <body-content>JSP</body-content>
    <attribute>
        <name>key</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
        
        
</tag>

<tag>
        <name>password</name>
        <tag-class>org.apache.struts2.views.jsp.ui.PasswordTag</tag-class>

        <body-content>JSP</body-content>
    <attribute>
        <name>key</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
        
        
</tag>
<tag>
        <name>include</name>
        <tag-class>org.apache.struts2.views.jsp.IncludeTag</tag-class>

        <body-content>JSP</body-content>
    <attribute>
        <name>value</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>


</tag>
<tag>
        <name>action</name>
        <tag-class>org.apache.struts2.views.jsp.ActionTag</tag-class>


        <body-content>JSP</body-content>
    <attribute>
        <name>id</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
 <attribute>
        <name>name</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
<attribute>
        <name>name</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
    
    <attribute>
        <name>executeResult</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
        <name>namespace</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
    
    
</tag>
<tag>
        <name>iterator</name>
        <tag-class>org.apache.struts2.views.jsp.IteratorTag</tag-class>


        <body-content>JSP</body-content>
    <attribute>
        <name>value</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
<attribute>
        <name>status</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>

</tag>

<tag>
        <name>if</name>
        <tag-class>org.apache.struts2.views.jsp.IfTag</tag-class>

        <body-content>JSP</body-content>
    <attribute>
        <name>test</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>

</tag>
<tag>
        <name>else</name>
        <tag-class>org.apache.struts2.views.jsp.ElseTag</tag-class>
     <body-content>JSP</body-content>
    <attribute>
        <name>id</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>

</tag>

<tag>
        <name>date</name>
        <tag-class>org.apache.struts2.views.jsp.DateTag</tag-class>

     <body-content>JSP</body-content>
    <attribute>
        <name>name</name>
        <required>required</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>

</tag>



<tag>
        <name>submit</name>
        <tag-class>org.apache.struts2.views.jsp.ui.SubmitTag</tag-class>
</tag>
</taglib>


Thanks


 

----- Original Message ----- 
From: "Martin Gainty" <mg...@hotmail.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Sunday, September 27, 2009 2:47 AM
Subject: [Norton AntiSpam] RE: Please Help with struts2



which container are you using?
please display entire jsp
please display web.xml
please display any applicable tld's

Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
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.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Sat, 26 Sep 2009 15:26:57 -0400
> From: newton.dave@yahoo.com
> To: user@struts.apache.org
> Subject: Re: Please Help with struts2
> 
> Konstantyn Harasevich wrote:
> >  Here is exception relative to this taglib in NetBeans7.1:
> >  <%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
> > 
> > org.apache.jasper.JasperException: /WEB-INF/decorators/main.jsp(26,72) PWC6188: The absolute uri: http://www.opensymphony.com/sitemesh/page cannot be resolved in either web.xml or the jar files deployed with this application
> > 
> >  Do not now reason why this error appear because this is valid url ?
> 
> I don't see how that exception could occur with that taglib 
> directive--they're completely different "uri" values.
> 
> Dave
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
       
_________________________________________________________________
Lauren found her dream laptop. Find the PC that’s right for you.
http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290

RE: Please Help with struts2

Posted by Martin Gainty <mg...@hotmail.com>.
which container are you using?
please display entire jsp
please display web.xml
please display any applicable tld's

Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
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.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Sat, 26 Sep 2009 15:26:57 -0400
> From: newton.dave@yahoo.com
> To: user@struts.apache.org
> Subject: Re: Please Help with struts2
> 
> Konstantyn Harasevich wrote:
> >  Here is exception relative to this taglib in NetBeans7.1:
> >  <%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
> > 
> > org.apache.jasper.JasperException: /WEB-INF/decorators/main.jsp(26,72) PWC6188: The absolute uri: http://www.opensymphony.com/sitemesh/page cannot be resolved in either web.xml or the jar files deployed with this application
> > 
> >  Do not now reason why this error appear because this is valid url ?
> 
> I don't see how that exception could occur with that taglib 
> directive--they're completely different "uri" values.
> 
> Dave
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
 		 	   		  
_________________________________________________________________
Lauren found her dream laptop. Find the PC that’s right for you.
http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290

Re: Please Help with struts2

Posted by Dave Newton <ne...@yahoo.com>.
Konstantyn Harasevich wrote:
>  Here is exception relative to this taglib in NetBeans7.1:
>  <%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
> 
> org.apache.jasper.JasperException: /WEB-INF/decorators/main.jsp(26,72) PWC6188: The absolute uri: http://www.opensymphony.com/sitemesh/page cannot be resolved in either web.xml or the jar files deployed with this application
> 
>  Do not now reason why this error appear because this is valid url ?

I don't see how that exception could occur with that taglib 
directive--they're completely different "uri" values.

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Please Help with struts2

Posted by mu...@aol.com.
 Do you also have an exception for the decorator tag library? The one you have in your post is for the
page tag library. Check that you have the struts2-sitemesh-plugin jar in WEB-INF/lib because that is
where those tag libraries are. Also check that your web.xml has the appropriate elements for
Sitemesh


 


Chris

 


 

-----Original Message-----
From: Konstantyn Harasevich <Ha...@yandex.ru>
To: Struts Users Mailing List <us...@struts.apache.org>
Sent: Sat, Sep 26, 2009 2:04 pm
Subject: Please Help with struts2 














 Hello

 When running samples struts 2

 Here is exception relative to this taglib in NetBeans7.1:
 <%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" 
prefix="decorator" %>







org.apache.jasper.JasperException: /WEB-INF/decorators/main.jsp(26,72) PWC6188: 
The absolute uri: http://www.opensymphony.com/sitemesh/page cannot be resolved 
in either web.xml or the jar files deployed with this application



 Do not now reason why this error appear because this is valid url ?

 Thanks.