You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by rom3ro <ro...@free.fr> on 2007/08/23 12:20:39 UTC
struts2.0.6 -> struts2.0.9 : trouble with tiles
Hello,
I updgrade struts2.0.6 to struts2.0.9.
All seem work expcet tiles plugin (render).
/WEB-INF/tiles.xml (extract)
<definition name="global.welcome" template="/view/tiles/layout.jsp">
<put name="title" value="Welcome to RIC" type="string"/>
<put name="header" value="/view/tiles/header.jsp"/>
<put name="menutop" value="/view/tiles/menutop.jsp"/>
<put name="menuleft" value="/view/global/menuleft.jsp"/>
<put name="body" value="/view/global/welcome.jsp"/>
<put name="footer" value="/view/tiles/footer.jsp"/>
</definition>
/view/tiles/layout.jsp (extract)
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<tiles:importAttribute name="title"/>
<html>
<head>
Exceptions:
23 août 2007 12:07:45 org.apache.catalina.core.ApplicationDispatcher invoke
GRAVE: "Servlet.service()" pour la servlet jsp a lancé une exception
javax.servlet.jsp.JspException: Attribute whith name 'title' not found
23 août 2007 12:07:45
org.apache.tiles.servlet.context.ServletTilesRequestContext forward
GRAVE: Servlet Exception while including path
org.apache.jasper.JasperException: Exception in JSP:
/view/tiles/layout.jsp:5
2: <%@ taglib prefix="s" uri="/struts-tags"%>
3: <%@ page contentType="text/html; charset=UTF-8"%>
4:
5: <tiles:importAttribute name="title"/>
6: <html>
7: <head>
8: <title>App:<tiles:getAsString name="title"/></title>
can you help me?
thanks
tibo
--
View this message in context: http://www.nabble.com/struts2.0.6--%3E-struts2.0.9-%3A-trouble-with-tiles-tf4316593.html#a12290913
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: struts2.0.6 -> struts2.0.9 : trouble with tiles
Posted by rom3ro <ro...@free.fr>.
ok i've found,
i haven't updgrade commons-digester-1.6.jar to commons-digester-1.8.jar.
thanks for tour replies.
tibo
rom3ro wrote:
>
> Hello,
>
> I updgrade struts2.0.6 to struts2.0.9.
>
> All seem work expcet tiles plugin (render).
>
> /WEB-INF/tiles.xml (extract)
> <definition name="global.welcome" template="/view/tiles/layout.jsp">
> <put name="title" value="Welcome to RIC" type="string"/>
> <put name="header" value="/view/tiles/header.jsp"/>
> <put name="menutop" value="/view/tiles/menutop.jsp"/>
> <put name="menuleft" value="/view/global/menuleft.jsp"/>
> <put name="body" value="/view/global/welcome.jsp"/>
> <put name="footer" value="/view/tiles/footer.jsp"/>
> </definition>
>
> /view/tiles/layout.jsp (extract)
> <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
> <%@ taglib prefix="s" uri="/struts-tags"%>
> <%@ page contentType="text/html; charset=UTF-8"%>
>
> <tiles:importAttribute name="title"/>
> <html>
> <head>
>
> Exceptions:
> 23 août 2007 12:07:45 org.apache.catalina.core.ApplicationDispatcher
> invoke
> GRAVE: "Servlet.service()" pour la servlet jsp a lancé une exception
> javax.servlet.jsp.JspException: Attribute whith name 'title' not found
>
> 23 août 2007 12:07:45
> org.apache.tiles.servlet.context.ServletTilesRequestContext forward
> GRAVE: Servlet Exception while including path
> org.apache.jasper.JasperException: Exception in JSP:
> /view/tiles/layout.jsp:5
>
> 2: <%@ taglib prefix="s" uri="/struts-tags"%>
> 3: <%@ page contentType="text/html; charset=UTF-8"%>
> 4:
> 5: <tiles:importAttribute name="title"/>
> 6: <html>
> 7: <head>
> 8: <title>App:<tiles:getAsString name="title"/></title>
>
> can you help me?
>
> thanks
>
> tibo
>
--
View this message in context: http://www.nabble.com/struts2.0.6--%3E-struts2.0.9-%3A-trouble-with-tiles-tf4316593.html#a12292325
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: struts2.0.6 -> struts2.0.9 : trouble with tiles
Posted by "Jiang, Jane (NIH/NCI) [C]" <ji...@mail.nih.gov>.
You need to change
<put name="title" value="Welcome to RIC" type="string"/>
To
<put-attribute name="title" value="Welcome to RIC" type="string"/>
-----Original Message-----
From: rom3ro [mailto:rom3ro@free.fr]
Sent: Thursday, August 23, 2007 6:21 AM
To: user@struts.apache.org
Subject: struts2.0.6 -> struts2.0.9 : trouble with tiles
Hello,
I updgrade struts2.0.6 to struts2.0.9.
All seem work expcet tiles plugin (render).
/WEB-INF/tiles.xml (extract)
<definition name="global.welcome" template="/view/tiles/layout.jsp">
<put name="title" value="Welcome to RIC" type="string"/>
<put name="header" value="/view/tiles/header.jsp"/>
<put name="menutop" value="/view/tiles/menutop.jsp"/>
<put name="menuleft" value="/view/global/menuleft.jsp"/>
<put name="body" value="/view/global/welcome.jsp"/>
<put name="footer" value="/view/tiles/footer.jsp"/>
</definition>
/view/tiles/layout.jsp (extract)
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<tiles:importAttribute name="title"/>
<html>
<head>
Exceptions:
23 août 2007 12:07:45 org.apache.catalina.core.ApplicationDispatcher invoke
GRAVE: "Servlet.service()" pour la servlet jsp a lancé une exception
javax.servlet.jsp.JspException: Attribute whith name 'title' not found
23 août 2007 12:07:45
org.apache.tiles.servlet.context.ServletTilesRequestContext forward
GRAVE: Servlet Exception while including path
org.apache.jasper.JasperException: Exception in JSP:
/view/tiles/layout.jsp:5
2: <%@ taglib prefix="s" uri="/struts-tags"%>
3: <%@ page contentType="text/html; charset=UTF-8"%>
4:
5: <tiles:importAttribute name="title"/>
6: <html>
7: <head>
8: <title>App:<tiles:getAsString name="title"/></title>
can you help me?
thanks
tibo
--
View this message in context: http://www.nabble.com/struts2.0.6--%3E-struts2.0.9-%3A-trouble-with-tiles-tf4316593.html#a12290913
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: struts2.0.6 -> struts2.0.9 : trouble with tiles
Posted by Dave Newton <ne...@yahoo.com>.
Tiles 2 was updated between 2.0.6 - 2.0.9 and has
slightly different tag attributes (and DTD? I don't
recall...); check the Tiles documentation or look at
the TLD.
d.
--- rom3ro <ro...@free.fr> wrote:
>
> Hello,
>
> I updgrade struts2.0.6 to struts2.0.9.
>
> All seem work expcet tiles plugin (render).
>
> /WEB-INF/tiles.xml (extract)
> <definition name="global.welcome"
> template="/view/tiles/layout.jsp">
> <put name="title" value="Welcome to RIC"
> type="string"/>
> <put name="header"
> value="/view/tiles/header.jsp"/>
> <put name="menutop"
> value="/view/tiles/menutop.jsp"/>
> <put name="menuleft"
> value="/view/global/menuleft.jsp"/>
> <put name="body"
> value="/view/global/welcome.jsp"/>
> <put name="footer"
> value="/view/tiles/footer.jsp"/>
> </definition>
>
> /view/tiles/layout.jsp (extract)
> <%@ taglib uri="http://tiles.apache.org/tags-tiles"
> prefix="tiles"%>
> <%@ taglib prefix="s" uri="/struts-tags"%>
> <%@ page contentType="text/html; charset=UTF-8"%>
>
> <tiles:importAttribute name="title"/>
> <html>
> <head>
>
> Exceptions:
> 23 août 2007 12:07:45
> org.apache.catalina.core.ApplicationDispatcher
> invoke
> GRAVE: "Servlet.service()" pour la servlet jsp a
> lancé une exception
> javax.servlet.jsp.JspException: Attribute whith name
> 'title' not found
>
> 23 août 2007 12:07:45
>
org.apache.tiles.servlet.context.ServletTilesRequestContext
> forward
> GRAVE: Servlet Exception while including path
> org.apache.jasper.JasperException: Exception in JSP:
> /view/tiles/layout.jsp:5
>
> 2: <%@ taglib prefix="s" uri="/struts-tags"%>
> 3: <%@ page contentType="text/html; charset=UTF-8"%>
> 4:
> 5: <tiles:importAttribute name="title"/>
> 6: <html>
> 7: <head>
> 8: <title>App:<tiles:getAsString
> name="title"/></title>
>
> can you help me?
>
> thanks
>
> tibo
> --
> View this message in context:
>
http://www.nabble.com/struts2.0.6--%3E-struts2.0.9-%3A-trouble-with-tiles-tf4316593.html#a12290913
> Sent from the Struts - User mailing list archive at
> Nabble.com.
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org