Hello there i'm doing some testes with S2.. i already worked with struts 1
and webwork...
i read the documentation and a lot of tutorial about but my problem
presists...
in my folder WEB-INF/lib i have both struts2-sitemesh-plugin-2.0.9.jar and
sitemesh-2.3.jar
and i started my project using the struts2-blank-2.0.9 project that comes
with the .zip
my web.xml look like this:
<?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>Localization Tool</display-name>
<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>
com.opensymphony.module.sitemesh.filter.PageFilter
</filter-class>
</filter>
<filter>
<filter-name>struts2</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>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>
my decorators.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<decorators defaultdir="/WEB-INF/decorators">
<excludes>
<pattern>/styles/*</pattern>
<pattern>/scripts/*</pattern>
<pattern>/images/*</pattern>
<pattern>/index.html</pattern>
</excludes>
<decorator name="main" page="main.jsp">
<pattern>/*</pattern>
</decorator>
</decorators>
i have a header.jsp that just has the text HEADER.
so i want to make that appear in the top of the example
my template look like:
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator"
prefix="decorator"%>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/page"
prefix="pages"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title><decorator:title default="Exemple"/> </title>
<decorator:head/>
<link href="<%=root%>/styles.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="header">
<%@ include file="../includes/header.jsp"%>
</div>
<div id="englober">
<div id="corps">
<decorator:body/>
</div>
</div>
</body>
</html>
i also tried using ${head} and ${body} but nothing changed...
now the problem:
when i run ly index.html the folowing error occurs
5 sept. 2007 13:26:52 org.apache.catalina.core.ApplicationDispatcher invoke
GRAVE: "Servlet.service()" pour la servlet jsp a lancé une exception
java.lang.NoClassDefFoundError: com/opensymphony/xwork/util/OgnlValueStack
....
What is strange is that i'm using the xwork2 and the class exists but it
tries to locate an xwork class...
any ideas??? what is happening??
Thanks
--
View this message in context:
http://www.nabble.com/Struts2-sitemesh-probelm-finding-xwork2-tf4383532.html#a12496277
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]