Re: Struts2.1.6 Tiles 2.1

2009-02-11 Thread Antonio Petrelli
2009/2/10 Jaarthy aarthyj...@yahoo.com:
listener-class
org.apache.struts2.tiles.StrutsTilesListener
/listener-class

Currently StrutsTilesListener does not work with Tiles 2.1.
Please try to use the plain TilesListener:
http://tiles.apache.org/framework/tutorial/configuration.html

Antonio

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



Re: Struts2.1.6 Tiles 2.1

2009-02-11 Thread stanlick
Thanks Antonio --

I'll give it a spin.

Peace,
Scott

On Wed, Feb 11, 2009 at 2:42 AM, Antonio Petrelli 
antonio.petre...@gmail.com wrote:

 2009/2/10 Jaarthy aarthyj...@yahoo.com:
 listener-class
 org.apache.struts2.tiles.StrutsTilesListener
 /listener-class

 Currently StrutsTilesListener does not work with Tiles 2.1.
 Please try to use the plain TilesListener:
 http://tiles.apache.org/framework/tutorial/configuration.html

 Antonio

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




Re: Struts2.1.6 Tiles 2.1

2009-02-11 Thread aarthy

Thanks Antonio..


Antonio Petrelli-3 wrote:
 
 2009/2/10 Jaarthy aarthyj...@yahoo.com:
listener-class
org.apache.struts2.tiles.StrutsTilesListener
/listener-class
 
 Currently StrutsTilesListener does not work with Tiles 2.1.
 Please try to use the plain TilesListener:
 http://tiles.apache.org/framework/tutorial/configuration.html
 
 Antonio
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Struts2.1.6---Tiles-2.1.1-tp21928113p21966752.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Struts2.1.6 Tiles 2.1.

2009-02-10 Thread Lukasz Lenart
2009/2/10 Jaarthy aarthyj...@yahoo.com:
 I am trying to integrate Struts2.1.6 with tiles2.1.1. When I click on the
 login link,I am getting Unable to find the definitionwarning Message in my
 logs.Any help on this issue will be appreciated.

Sorry, I loose my magic ball, you will have to provide more details.


Regards
-- 
Lukasz
http://www.lenart.org.pl/

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



Re: Struts2.1.6 Tiles 2.1.

2009-02-10 Thread Jaarthy

Here is my 

web.xml
--

?xml version=1.0 encoding=ISO-8859-1?

web-app id=starter 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-nameStruts 2 /display-name
descriptionStruts 2/description

context-param
descriptionThis context parameter specifies the name 
and location 
of the Spring root application context 
file./description
param-namecontextConfigLocation/param-name

param-valueclasspath*:applicationContext*.xml/param-value
/context-param

context-param
descriptionThis context parameter specifies the name 
and location 
of the Tiles Definitions file./description

param-nameorg.apache.tiles.DEFINITIONS_CONFIG/param-name

param-value/WEB-INF/classes/tiles-defs.xml/param-value
/context-param

context-param
param-name
org.apache.tiles.evaluator.AttributeEvaluator
/param-name

param-value
org.apache.tiles.evaluator.el.ELAttributeEvaluator
/param-value
/context-param


filter
filter-namestruts2/filter-name
   
filter-classorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter/filter-class
/filter
filter-mapping
filter-nameopenSessionInViewFilter/filter-name
url-pattern/*/url-pattern
/filter-mapping
filter-mapping
filter-namestruts2/filter-name
url-pattern/*/url-pattern
/filter-mapping


filter
filter-namestruts2/filter-name
   
filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-class
init-param
param-nameactionPackages/param-name
param-valuecom.as.sample.webapp.action/param-value
/init-param
/filter 


listener
listener-class
org.apache.struts2.tiles.StrutsTilesListener
/listener-class
/listener
/web-app

struts.xml
--
?xml version=1.0 encoding=UTF-8 ?

!DOCTYPE struts PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 2.0//EN
http://struts.apache.org/dtds/struts-2.0.dtd;
struts
package name=sampleApp extends=tiles-default namespace=/ 
result-types
result-type name=tiles
class=org.apache.struts2.views.tiles.TilesResult default=true /
/result-types

action name=login
resultlogin/result
/action
   /package
/struts

tiles-defs.xml
--
?xml version=1.0 encoding=ISO-8859-1 ?

 !DOCTYPE tiles-definitions PUBLIC -//Apache Software Foundation//DTD
Tiles Configuration 2.0//EN
http://tiles.apache.org/dtds/tiles-config_2_0.dtd;


tiles-definitions

definition name=login extends=.layout
put name=title value=Sample - login/
put name=content value=/WEB-INF/jsp/login.jsp/
/definition

/tiles-definitions

In my home page,when i click on the login link
s:url value= title=loginLogin  
I get an error page,In the logs I see a warning message WARN:Unable to find
the definition 'login'.

Where am I going wrong?

Aarthy


Lukasz Lenart wrote:
 
 2009/2/10 Jaarthy aarthyj...@yahoo.com:
 I am trying to integrate Struts2.1.6 with tiles2.1.1. When I click on the
 login link,I am getting Unable to find the definitionwarning Message in
 my
 logs.Any help on this issue will be appreciated.
 
 Sorry, I loose my magic ball, you will have to provide more details.
 
 
 Regards
 -- 
 Lukasz
 http://www.lenart.org.pl/
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Struts2.1.6---Tiles-2.1.1-tp21928113p21943239.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



RE: Struts2.1.6 Tiles 2.1.

2009-02-10 Thread Griffith, Michael *
Jaarthy, 

It looks like your s:url tag is trying to point to a tile, vs. an
action that returns the tile result. 

Here's an example:
!- Struts tag --
s:url id=projectList action=list namespace=/project /
s:a href=%{projectList}s:text name=project.list//s:a

!-- Action --
package name=project extends=base-project namespace=/project
action name=list method=list class=..MyAction
result name=success
type=tileslist-project.panel/result
/action
/package

!-- Tiles --
definition name=root template=/fragments/root.jsp
 put-attribute name=js value=/js/default.js /
 put-attribute name=other-divs value=/fragments/blank.jsp /
/definition
definition name=list-project.panel extends=root
put-attribute name=title value=Project List/
put-attribute name=body
value=/component/search-results.jsp/
/definition

HTH,

MG
 

-Original Message-
From: Jaarthy [mailto:aarthyj...@yahoo.com] 
Sent: Tuesday, February 10, 2009 3:40 PM
To: user@struts.apache.org
Subject: Re: Struts2.1.6  Tiles 2.1.


Here is my 

web.xml
--

?xml version=1.0 encoding=ISO-8859-1?

web-app id=starter 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-nameStruts 2 /display-name
descriptionStruts 2/description

context-param
descriptionThis context parameter specifies
the name and location 
of the Spring root application context
file./description
param-namecontextConfigLocation/param-name

param-valueclasspath*:applicationContext*.xml/param-value
/context-param

context-param
descriptionThis context parameter specifies
the name and location 
of the Tiles Definitions file./description

param-nameorg.apache.tiles.DEFINITIONS_CONFIG/param-name

param-value/WEB-INF/classes/tiles-defs.xml/param-value
/context-param

context-param
param-name
org.apache.tiles.evaluator.AttributeEvaluator
/param-name

param-value
org.apache.tiles.evaluator.el.ELAttributeEvaluator
/param-value
/context-param


filter
filter-namestruts2/filter-name
   
filter-classorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndEx
ecuteFilter/filter-class
/filter
filter-mapping

filter-nameopenSessionInViewFilter/filter-name
url-pattern/*/url-pattern
/filter-mapping
filter-mapping
filter-namestruts2/filter-name
url-pattern/*/url-pattern
/filter-mapping


filter
filter-namestruts2/filter-name
   
filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-cla
ss
init-param
param-nameactionPackages/param-name
param-valuecom.as.sample.webapp.action/param-value
/init-param
/filter 


listener
listener-class
org.apache.struts2.tiles.StrutsTilesListener
/listener-class
/listener
/web-app

struts.xml
--
?xml version=1.0 encoding=UTF-8 ?

!DOCTYPE struts PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 2.0//EN
http://struts.apache.org/dtds/struts-2.0.dtd;
struts
package name=sampleApp extends=tiles-default namespace=/ 
result-types
result-type name=tiles
class=org.apache.struts2.views.tiles.TilesResult default=true /
/result-types

action name=login
resultlogin/result
/action
   /package
/struts

tiles-defs.xml
--
?xml version=1.0 encoding=ISO-8859-1 ?

 !DOCTYPE tiles-definitions PUBLIC -//Apache Software
Foundation//DTD Tiles Configuration 2.0//EN
http://tiles.apache.org/dtds/tiles-config_2_0.dtd;


tiles-definitions

definition name=login extends=.layout
put name=title value=Sample - login/
put name=content value=/WEB-INF/jsp/login.jsp/
/definition

/tiles-definitions

In my home page,when i click on the login link s:url value=
title=loginLogin I get an error page,In the logs I see a warning
message WARN:Unable to find the definition 'login'.

Where am I going wrong?

Aarthy


Lukasz Lenart wrote:
 
 2009/2/10 Jaarthy aarthyj...@yahoo.com:
 I am trying to integrate Struts2.1.6 with tiles2.1.1. When I click on

 the login link,I am getting Unable to find the definitionwarning 
 Message in my logs.Any help on this issue will be appreciated.
 
 Sorry, I loose my magic ball

RE: Struts2.1.6 Tiles 2.1.

2009-02-10 Thread Jaarthy

the same was working fine with Struts2.0.6 and Tiles 2.0.

Griffith, Michael * wrote:
 
 Jaarthy, 
 
 It looks like your s:url tag is trying to point to a tile, vs. an
 action that returns the tile result. 
 
 Here's an example:
 !- Struts tag --
 s:url id=projectList action=list namespace=/project /
 s:a href=%{projectList}s:text name=project.list//s:a
 
 !-- Action --
 package name=project extends=base-project namespace=/project
   action name=list method=list class=..MyAction
   result name=success
 type=tileslist-project.panel/result
   /action
 /package
 
 !-- Tiles --
 definition name=root template=/fragments/root.jsp
  put-attribute name=js value=/js/default.js /
  put-attribute name=other-divs value=/fragments/blank.jsp /
 /definition
 definition name=list-project.panel extends=root
   put-attribute name=title value=Project List/
   put-attribute name=body
 value=/component/search-results.jsp/
 /definition
 
 HTH,
 
 MG
  
 
 -Original Message-
 From: Jaarthy [mailto:aarthyj...@yahoo.com] 
 Sent: Tuesday, February 10, 2009 3:40 PM
 To: user@struts.apache.org
 Subject: Re: Struts2.1.6  Tiles 2.1.
 
 
 Here is my 
 
 web.xml
 --
 
 ?xml version=1.0 encoding=ISO-8859-1?
 
 web-app id=starter 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-nameStruts 2 /display-name
   descriptionStruts 2/description
   
   context-param
   descriptionThis context parameter specifies
 the name and location 
   of the Spring root application context
 file./description
   param-namecontextConfigLocation/param-name
   
 param-valueclasspath*:applicationContext*.xml/param-value
   /context-param
   
   context-param
   descriptionThis context parameter specifies
 the name and location 
   of the Tiles Definitions file./description
   
 param-nameorg.apache.tiles.DEFINITIONS_CONFIG/param-name
   
 param-value/WEB-INF/classes/tiles-defs.xml/param-value
   /context-param
   
   context-param
   param-name
   org.apache.tiles.evaluator.AttributeEvaluator
   /param-name
   
   param-value
   org.apache.tiles.evaluator.el.ELAttributeEvaluator
 /param-value
   /context-param
 
   
   filter
   filter-namestruts2/filter-name

 filter-classorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndEx
 ecuteFilter/filter-class
   /filter
   filter-mapping
   
 filter-nameopenSessionInViewFilter/filter-name
   url-pattern/*/url-pattern
   /filter-mapping
   filter-mapping
 filter-namestruts2/filter-name
 url-pattern/*/url-pattern
 /filter-mapping
   
 
 filter
 filter-namestruts2/filter-name

 filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-cla
 ss
 init-param
 param-nameactionPackages/param-name
 param-valuecom.as.sample.webapp.action/param-value
 /init-param
 /filter 
 
   
   listener
   listener-class
   org.apache.struts2.tiles.StrutsTilesListener
   /listener-class
 /listener
 /web-app
 
 struts.xml
 --
 ?xml version=1.0 encoding=UTF-8 ?
 
 !DOCTYPE struts PUBLIC
 -//Apache Software Foundation//DTD Struts Configuration 2.0//EN
 http://struts.apache.org/dtds/struts-2.0.dtd;
 struts
 package name=sampleApp extends=tiles-default namespace=/ 
   result-types
   result-type name=tiles
 class=org.apache.struts2.views.tiles.TilesResult default=true /
   /result-types
   
   action name=login
   resultlogin/result
   /action
  /package
 /struts
 
 tiles-defs.xml
 --
 ?xml version=1.0 encoding=ISO-8859-1 ?
 
  !DOCTYPE tiles-definitions PUBLIC -//Apache Software
 Foundation//DTD Tiles Configuration 2.0//EN
 http://tiles.apache.org/dtds/tiles-config_2_0.dtd;
 
 
 tiles-definitions
 
   definition name=login extends=.layout
   put name=title value=Sample - login/
   put name=content value=/WEB-INF/jsp/login.jsp/
   /definition
   
 /tiles-definitions
 
 In my home page,when i click on the login link s:url value=
 title=loginLogin I get an error page,In the logs I see a warning
 message WARN:Unable to find the definition 'login'.
 
 Where am I going wrong?
 
 Aarthy
 
 
 Lukasz Lenart wrote:
 
 2009/2/10 Jaarthy aarthyj...@yahoo.com:
 I am trying to integrate Struts2.1.6 with tiles2.1.1. When I click on
 
 the login

RE: Struts2.1.6 Tiles 2.1.

2009-02-10 Thread Griffith, Michael *
Gotcha, sorry I couldn't be more help.

MG 

-Original Message-
From: Jaarthy [mailto:aarthyj...@yahoo.com] 
Sent: Tuesday, February 10, 2009 6:14 PM
To: user@struts.apache.org
Subject: RE: Struts2.1.6  Tiles 2.1.


the same was working fine with Struts2.0.6 and Tiles 2.0.

Griffith, Michael * wrote:
 
 Jaarthy,
 
 It looks like your s:url tag is trying to point to a tile, vs. an 
 action that returns the tile result.
 
 Here's an example:
 !- Struts tag --
 s:url id=projectList action=list namespace=/project / s:a 
 href=%{projectList}s:text name=project.list//s:a
 
 !-- Action --
 package name=project extends=base-project namespace=/project
   action name=list method=list class=..MyAction
   result name=success
 type=tileslist-project.panel/result
   /action
 /package
 
 !-- Tiles --
 definition name=root template=/fragments/root.jsp
  put-attribute name=js value=/js/default.js /
  put-attribute name=other-divs value=/fragments/blank.jsp / 
 /definition definition name=list-project.panel extends=root
   put-attribute name=title value=Project List/
   put-attribute name=body
 value=/component/search-results.jsp/
 /definition
 
 HTH,
 
 MG
  
 
 -Original Message-
 From: Jaarthy [mailto:aarthyj...@yahoo.com]
 Sent: Tuesday, February 10, 2009 3:40 PM
 To: user@struts.apache.org
 Subject: Re: Struts2.1.6  Tiles 2.1.
 
 
 Here is my
 
 web.xml
 --
 
 ?xml version=1.0 encoding=ISO-8859-1?
 
 web-app id=starter 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-nameStruts 2 /display-name
   descriptionStruts 2/description
   
   context-param
   descriptionThis context parameter specifies
the name and location
   of the Spring root application context
file./description
   param-namecontextConfigLocation/param-name
   
 param-valueclasspath*:applicationContext*.xml/param-value
   /context-param
   
   context-param
   descriptionThis context parameter specifies
the name and location
   of the Tiles Definitions file./description
   
 param-nameorg.apache.tiles.DEFINITIONS_CONFIG/param-name
   
 param-value/WEB-INF/classes/tiles-defs.xml/param-value
   /context-param
   
   context-param
   param-name
   org.apache.tiles.evaluator.AttributeEvaluator
   /param-name
   
   param-value
   org.apache.tiles.evaluator.el.ELAttributeEvaluator
 /param-value
   /context-param
 
   
   filter
   filter-namestruts2/filter-name

 filter-classorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAnd
 Ex
 ecuteFilter/filter-class
   /filter
   filter-mapping
   
 filter-nameopenSessionInViewFilter/filter-name
   url-pattern/*/url-pattern
   /filter-mapping
   filter-mapping
 filter-namestruts2/filter-name
 url-pattern/*/url-pattern
 /filter-mapping
   
 
 filter
 filter-namestruts2/filter-name

 filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-c
 la
 ss
 init-param
 param-nameactionPackages/param-name
 param-valuecom.as.sample.webapp.action/param-value
 /init-param
 /filter
 
   
   listener
   listener-class
   org.apache.struts2.tiles.StrutsTilesListener
   /listener-class
 /listener
 /web-app
 
 struts.xml
 --
 ?xml version=1.0 encoding=UTF-8 ?
 
 !DOCTYPE struts PUBLIC
 -//Apache Software Foundation//DTD Struts Configuration 2.0//EN
 http://struts.apache.org/dtds/struts-2.0.dtd;
 struts
 package name=sampleApp extends=tiles-default namespace=/ 
   result-types
   result-type name=tiles
 class=org.apache.struts2.views.tiles.TilesResult default=true /
   /result-types
   
   action name=login
   resultlogin/result
   /action
  /package
 /struts
 
 tiles-defs.xml
 --
 ?xml version=1.0 encoding=ISO-8859-1 ?
 
  !DOCTYPE tiles-definitions PUBLIC -//Apache Software 
 Foundation//DTD Tiles Configuration 2.0//EN
 http://tiles.apache.org/dtds/tiles-config_2_0.dtd;
 
 
 tiles-definitions
 
   definition name=login extends=.layout
   put name=title value=Sample - login/
   put name=content value=/WEB-INF/jsp/login.jsp/
   /definition
   
 /tiles-definitions
 
 In my home page,when i click on the login link s:url value= 
 title=loginLogin I get an error page,In the logs I see a warning 
 message WARN:Unable