Re: Tiles with Struts 2.1.5

2009-01-07 Thread Wendy Smoak
On Wed, Jan 7, 2009 at 8:38 AM, Ercan Kayaonu  wrote:

> I'm using Struts 2.1.5 with convention plugin. I'm in the learning process
> and trying several things (action, rule annotations, hibernate etc).

Since we're on the user list, be aware that Struts 2.1.5 is not an
official release.  It was a test build posted on the dev list for
evaluation, and shouldn't be used unless you're comfortable out on the
bleeding edge.  And if you _are_, come join us on the dev list where a
vote for 2.1.6 is underway, and help test that. :)

-- 
Wendy

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



Re: Tiles with Struts 2.1.5

2009-01-07 Thread Musachy Barroso
btw this is not related to tiles, it all applies to any plugin that
defines results.

musachy

On Wed, Jan 7, 2009 at 12:23 PM, Musachy Barroso  wrote:
> The "value" attribute needs to match the name of a package that is
> defined somewhere, if you do this:
>
> 
>
> make sure that your package is like
>
> ...
>
> musachy
>
> On Wed, Jan 7, 2009 at 12:17 PM, Ercan Kayaonu  wrote:
>> Hi,
>> Sorry for disturbing you guys this much. Be sure that i first google to
>> solve the problem and read related parts of the documentation. But
>> unfortunately some of them are very concise. Anyways.
>>
>> I tried both
>>> value="actions" />
>> and
>>> />
>> but I got this error: Unable to locate parent package [actions] - [unknown
>> location]   and this for second one.
>>   Unable to locate parent package [admin] -
>> [unknown location]
>>
>> I also tried annotation method. My LoginAction.java class is already under
>> actions.admin package. (LoginAction.java is directly under admin package and
>> there's no other package under admin). so the parent class for this package
>> is i guess admin. Why do i have to set it again. For all my actions, the
>> default package is actions. But this didn't work also. I mean, > name="struts.convention.default.parent.package" value="actions" />.
>>
>> Quote: "To use a result, the action needs to be in the package that defines
>> the result"
>> Sorry, but could you please clarify what it mean to be "in the package that
>> defines the result". do you mean in struts.xml where we define
>> "result-types". I also tried changing those lines as follows
>>> extends="struts-default">
>>
>>> class="org.apache.struts2.views.tiles.TilesResult" />
>>
>> 
>> But no luck. My problem is playing with several setting blindly. I haven't
>> fully understood some of the concepts i guess. Documentations give examples
>> in a isolated manner. You can't relate to under parts of the system. For
>> example, from tiles plugin documentation
>>
>> 
>>> class="org.apache.struts2.views.tiles.TilesResult"/>
>> 
>>
>> What should be the package name, namespace etc. there's no clue. I couldn't
>> find the solution in tiles.apache.org also.  Can someone advice a tutorial
>> on tiles and struts2 (step by step).
>>
>> Thanks for your efforts.
>>
>>
>> On Wed, Jan 7, 2009 at 4:30 PM, Musachy Barroso  wrote:
>>
>>> To use a result, the action needs to be in the package that defines
>>> the result, or in a package that extends the package where the result
>>> is defined.  There are several ways to fix this, in this case you can
>>> just set the parent package of the action, to your package:
>>>
>>> @ParentPackage("admin")
>>>
>>> or change the default parent package for all your actions (the ones
>>> configured by Convention):
>>>
>>> 
>>>
>>> musachy
>>>
>>> On Wed, Jan 7, 2009 at 11:25 AM, Ercan Kayaonu  wrote:
>>> > Thank you Musachy,
>>> > That solved my problem, but
>>> > I got this error, which might be very familiar for most of you:
>>> >
>>> > The Result type [tiles] which is defined in the Result annotation on the
>>> > class [class actions.admin.LoginAction] or determined by the file
>>> extension
>>> > or is the default result type for the PackageConfig of the action, could
>>> not
>>> > be found as a result-type defined for the Struts/XWork package
>>> > [actions.admin#convention-default#/admin/login] - [unknown location]
>>> >
>>> > actions.admin.LoginAction.java:
>>> >
>>> >  @Action(value="/admin/login/index",result...@result(name="success",
>>> > type="tiles", location="admin.login") })   (I have definition in
>>> tiles.xml
>>> > for "admin.login".)
>>> >  public String execute() {
>>> >return SUCCESS;
>>> >}
>>> >
>>> > struts.xml :
>>> >
>>> >
>>> >>> > class="org.apache.struts2.views.tiles.TilesResult" />
>>> >
>>> > 
>>> >
>>> > Can anyone explain what name="default" stands for, because i changed it
>>> as
>>> > name="admin", i got the same error.
>>> > and also [actions.admin#convention-default#/admin/login] .  What is
>>> > #convention-default# ? Is it "actions" because convention plugin looks
>>> for
>>> > actions package. Or is it something we define in config files?
>>> > Thanks in advance.
>>> >
>>> >
>>> > On Wed, Jan 7, 2009 at 3:42 PM, Musachy Barroso 
>>> wrote:
>>> >
>>> >> You are missing dependencies, in this case Commons Digester
>>> >> (http://commons.apache.org/digester/)
>>> >>
>>> >> musachy
>>> >>
>>> >> On Wed, Jan 7, 2009 at 10:38 AM, Ercan Kayaonu 
>>> wrote:
>>> >> > Hi,
>>> >> > I'm using Struts 2.1.5 with convention plugin. I'm in the learning
>>> >> process
>>> >> > and trying several things (action, rule annotations, hibernate etc).
>>> >> > Everything was working ok until today.  i started using Tiles.
>>> >> > I copied
>>> >> >
>>> >> > struts2-tiles-plugin-2.1.5.jar
>>> >> > tiles-api-2.0.6.jar
>>> >> > tiles-core-2.0.6.jar
>>> >> > tiles-jsp-2.0.6.jar fi

Re: Tiles with Struts 2.1.5

2009-01-07 Thread Musachy Barroso
The "value" attribute needs to match the name of a package that is
defined somewhere, if you do this:



make sure that your package is like

...

musachy

On Wed, Jan 7, 2009 at 12:17 PM, Ercan Kayaonu  wrote:
> Hi,
> Sorry for disturbing you guys this much. Be sure that i first google to
> solve the problem and read related parts of the documentation. But
> unfortunately some of them are very concise. Anyways.
>
> I tried both
> value="actions" />
> and
> />
> but I got this error: Unable to locate parent package [actions] - [unknown
> location]   and this for second one.
>   Unable to locate parent package [admin] -
> [unknown location]
>
> I also tried annotation method. My LoginAction.java class is already under
> actions.admin package. (LoginAction.java is directly under admin package and
> there's no other package under admin). so the parent class for this package
> is i guess admin. Why do i have to set it again. For all my actions, the
> default package is actions. But this didn't work also. I mean,  name="struts.convention.default.parent.package" value="actions" />.
>
> Quote: "To use a result, the action needs to be in the package that defines
> the result"
> Sorry, but could you please clarify what it mean to be "in the package that
> defines the result". do you mean in struts.xml where we define
> "result-types". I also tried changing those lines as follows
> extends="struts-default">
>
> class="org.apache.struts2.views.tiles.TilesResult" />
>
> 
> But no luck. My problem is playing with several setting blindly. I haven't
> fully understood some of the concepts i guess. Documentations give examples
> in a isolated manner. You can't relate to under parts of the system. For
> example, from tiles plugin documentation
>
> 
> class="org.apache.struts2.views.tiles.TilesResult"/>
> 
>
> What should be the package name, namespace etc. there's no clue. I couldn't
> find the solution in tiles.apache.org also.  Can someone advice a tutorial
> on tiles and struts2 (step by step).
>
> Thanks for your efforts.
>
>
> On Wed, Jan 7, 2009 at 4:30 PM, Musachy Barroso  wrote:
>
>> To use a result, the action needs to be in the package that defines
>> the result, or in a package that extends the package where the result
>> is defined.  There are several ways to fix this, in this case you can
>> just set the parent package of the action, to your package:
>>
>> @ParentPackage("admin")
>>
>> or change the default parent package for all your actions (the ones
>> configured by Convention):
>>
>> 
>>
>> musachy
>>
>> On Wed, Jan 7, 2009 at 11:25 AM, Ercan Kayaonu  wrote:
>> > Thank you Musachy,
>> > That solved my problem, but
>> > I got this error, which might be very familiar for most of you:
>> >
>> > The Result type [tiles] which is defined in the Result annotation on the
>> > class [class actions.admin.LoginAction] or determined by the file
>> extension
>> > or is the default result type for the PackageConfig of the action, could
>> not
>> > be found as a result-type defined for the Struts/XWork package
>> > [actions.admin#convention-default#/admin/login] - [unknown location]
>> >
>> > actions.admin.LoginAction.java:
>> >
>> >  @Action(value="/admin/login/index",result...@result(name="success",
>> > type="tiles", location="admin.login") })   (I have definition in
>> tiles.xml
>> > for "admin.login".)
>> >  public String execute() {
>> >return SUCCESS;
>> >}
>> >
>> > struts.xml :
>> >
>> >
>> >> > class="org.apache.struts2.views.tiles.TilesResult" />
>> >
>> > 
>> >
>> > Can anyone explain what name="default" stands for, because i changed it
>> as
>> > name="admin", i got the same error.
>> > and also [actions.admin#convention-default#/admin/login] .  What is
>> > #convention-default# ? Is it "actions" because convention plugin looks
>> for
>> > actions package. Or is it something we define in config files?
>> > Thanks in advance.
>> >
>> >
>> > On Wed, Jan 7, 2009 at 3:42 PM, Musachy Barroso 
>> wrote:
>> >
>> >> You are missing dependencies, in this case Commons Digester
>> >> (http://commons.apache.org/digester/)
>> >>
>> >> musachy
>> >>
>> >> On Wed, Jan 7, 2009 at 10:38 AM, Ercan Kayaonu 
>> wrote:
>> >> > Hi,
>> >> > I'm using Struts 2.1.5 with convention plugin. I'm in the learning
>> >> process
>> >> > and trying several things (action, rule annotations, hibernate etc).
>> >> > Everything was working ok until today.  i started using Tiles.
>> >> > I copied
>> >> >
>> >> > struts2-tiles-plugin-2.1.5.jar
>> >> > tiles-api-2.0.6.jar
>> >> > tiles-core-2.0.6.jar
>> >> > tiles-jsp-2.0.6.jar files into my lib folder. These files come with
>> >> struts
>> >> > 2.1.5.
>> >> >
>> >> > I added
>> >> >
>> >> >
>> >> >
>> >>
>> org.apache.struts2.tiles.StrutsTilesListener
>> >> >
>> >> > to web.xml file.
>> >> >
>> >> > This is my struts.xml:
>> >> > 
>> >> >  (There was
>> also

Re: Tiles with Struts 2.1.5

2009-01-07 Thread Antonio
2009/1/7 Ercan Kayaonu :
> Can someone advice a tutorial
> on tiles and struts2 (step by step).

Heh, Tiles and Struts 2 seem to be two isolated worlds.
The strangest thing is that a lot of people are using this pair, but
no one is contributing.
If you *really* want them to work well together, stop complaining and
start contributing.

Ciao
Antonio

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



Re: Tiles with Struts 2.1.5

2009-01-07 Thread Ercan Kayaonu
Hi,
Sorry for disturbing you guys this much. Be sure that i first google to
solve the problem and read related parts of the documentation. But
unfortunately some of them are very concise. Anyways.

I tried both

and

but I got this error: Unable to locate parent package [actions] - [unknown
location]   and this for second one.
   Unable to locate parent package [admin] -
[unknown location]

I also tried annotation method. My LoginAction.java class is already under
actions.admin package. (LoginAction.java is directly under admin package and
there's no other package under admin). so the parent class for this package
is i guess admin. Why do i have to set it again. For all my actions, the
default package is actions. But this didn't work also. I mean, .

Quote: "To use a result, the action needs to be in the package that defines
the result"
Sorry, but could you please clarify what it mean to be "in the package that
defines the result". do you mean in struts.xml where we define
"result-types". I also tried changing those lines as follows




 
But no luck. My problem is playing with several setting blindly. I haven't
fully understood some of the concepts i guess. Documentations give examples
in a isolated manner. You can't relate to under parts of the system. For
example, from tiles plugin documentation





What should be the package name, namespace etc. there's no clue. I couldn't
find the solution in tiles.apache.org also.  Can someone advice a tutorial
on tiles and struts2 (step by step).

Thanks for your efforts.


On Wed, Jan 7, 2009 at 4:30 PM, Musachy Barroso  wrote:

> To use a result, the action needs to be in the package that defines
> the result, or in a package that extends the package where the result
> is defined.  There are several ways to fix this, in this case you can
> just set the parent package of the action, to your package:
>
> @ParentPackage("admin")
>
> or change the default parent package for all your actions (the ones
> configured by Convention):
>
> 
>
> musachy
>
> On Wed, Jan 7, 2009 at 11:25 AM, Ercan Kayaonu  wrote:
> > Thank you Musachy,
> > That solved my problem, but
> > I got this error, which might be very familiar for most of you:
> >
> > The Result type [tiles] which is defined in the Result annotation on the
> > class [class actions.admin.LoginAction] or determined by the file
> extension
> > or is the default result type for the PackageConfig of the action, could
> not
> > be found as a result-type defined for the Struts/XWork package
> > [actions.admin#convention-default#/admin/login] - [unknown location]
> >
> > actions.admin.LoginAction.java:
> >
> >  @Action(value="/admin/login/index",result...@result(name="success",
> > type="tiles", location="admin.login") })   (I have definition in
> tiles.xml
> > for "admin.login".)
> >  public String execute() {
> >return SUCCESS;
> >}
> >
> > struts.xml :
> >
> >
> > > class="org.apache.struts2.views.tiles.TilesResult" />
> >
> > 
> >
> > Can anyone explain what name="default" stands for, because i changed it
> as
> > name="admin", i got the same error.
> > and also [actions.admin#convention-default#/admin/login] .  What is
> > #convention-default# ? Is it "actions" because convention plugin looks
> for
> > actions package. Or is it something we define in config files?
> > Thanks in advance.
> >
> >
> > On Wed, Jan 7, 2009 at 3:42 PM, Musachy Barroso 
> wrote:
> >
> >> You are missing dependencies, in this case Commons Digester
> >> (http://commons.apache.org/digester/)
> >>
> >> musachy
> >>
> >> On Wed, Jan 7, 2009 at 10:38 AM, Ercan Kayaonu 
> wrote:
> >> > Hi,
> >> > I'm using Struts 2.1.5 with convention plugin. I'm in the learning
> >> process
> >> > and trying several things (action, rule annotations, hibernate etc).
> >> > Everything was working ok until today.  i started using Tiles.
> >> > I copied
> >> >
> >> > struts2-tiles-plugin-2.1.5.jar
> >> > tiles-api-2.0.6.jar
> >> > tiles-core-2.0.6.jar
> >> > tiles-jsp-2.0.6.jar files into my lib folder. These files come with
> >> struts
> >> > 2.1.5.
> >> >
> >> > I added
> >> >
> >> >
> >> >
> >>
> org.apache.struts2.tiles.StrutsTilesListener
> >> >
> >> > to web.xml file.
> >> >
> >> > This is my struts.xml:
> >> > 
> >> >  (There was
> also
> >> > namespace="/", but later i removed it. but nothing changed)
> >> >
> >> > >> > class="org.apache.struts2.views.tiles.TilesResult" />
> >> >
> >> > 
> >> > 
> >> >
> >> > I couldn't quite understand this package thing. Maybe the problem is
> with
> >> my
> >> > struts file. I can also paste tiles.xml if it is necessary to diagnose
> >> the
> >> > problem.
> >> > I get
> >> > HTTP Status 404 - /adv_ment/admin/login/index   problem. And these are
> >> the
> >> > lines from eclipse console:
> >> >
> >> > SEVERE: Exception sending context initialized event to lis

RE: Tiles with Struts 2.1.5

2009-01-07 Thread Biesbrock, Kevin
My bad.  The commons-digester does not exist in the 2.0.12 release (I
thought I was using 2.1.5 already).

I'll just obtain the 1.8 version either from the website or from the
S2.1.5 lib.

Thanks,

Beez
( 4961 

-Original Message-
From: Ercan Kayaonu [mailto:ekaya...@gmail.com] 
Sent: Wednesday, January 07, 2009 11:30 AM
To: Struts Users Mailing List
Subject: Re: Tiles with Struts 2.1.5

There's commons-digester-1.8.jar under struts 2.1.5 lib files. you also
need commons-beanutils-1.7.0.jar.
The location for 2.1.5 is
http://people.apache.org/builds/struts/2.1.5/

On Wed, Jan 7, 2009 at 4:21 PM, Biesbrock, Kevin
wrote:

> Aha!  I had this same problem and was planning on submitting it today.
> You beat me to it.
>
> Commons Digester does not appear to be released with Struts 2.x ...
> unless it is not named with "Digester" or I'm missing it.
>
>
> Beez
> ( 4961
>
> -Original Message-
> From: Musachy Barroso [mailto:musa...@gmail.com]
> Sent: Wednesday, January 07, 2009 10:43 AM
> To: Struts Users Mailing List
> Subject: Re: Tiles with Struts 2.1.5
>
> You are missing dependencies, in this case Commons Digester
> (http://commons.apache.org/digester/)
>
> musachy
>
> On Wed, Jan 7, 2009 at 10:38 AM, Ercan Kayaonu 
> wrote:
> > Hi,
> > I'm using Struts 2.1.5 with convention plugin. I'm in the learning 
> > process and trying several things (action, rule annotations, 
> > hibernate
> etc).
> > Everything was working ok until today.  i started using Tiles.
> > I copied
> >
> > struts2-tiles-plugin-2.1.5.jar
> > tiles-api-2.0.6.jar
> > tiles-core-2.0.6.jar
> > tiles-jsp-2.0.6.jar files into my lib folder. These files come with 
> > struts 2.1.5.
> >
> > I added
> >
> >
> >
> org.apache.struts2.tiles.StrutsTilesListener -c
> lass>
> >
> > to web.xml file.
> >
> > This is my struts.xml:
> > 
> >  (There was
> also
> > namespace="/", but later i removed it. but nothing changed)
> >
> > > class="org.apache.struts2.views.tiles.TilesResult" />
> >
> > 
> > 
> >
> > I couldn't quite understand this package thing. Maybe the problem is

> > with my struts file. I can also paste tiles.xml if it is necessary 
> > to diagnose the problem.
> > I get
> > HTTP Status 404 - /adv_ment/admin/login/index   problem. And these
are
> the
> > lines from eclipse console:
> >
> > SEVERE: Exception sending context initialized event to listener 
> > instance of class org.apache.struts2.tiles.StrutsTilesListener
> > java.lang.NoClassDefFoundError: org/apache/commons/digester/Rule
> >at org.apache.tiles.definition.UrlDefinitionsFactory.init
> >at
> >
org.apache.tiles.impl.BasicTilesContainer.initializeDefinitionsFactory
> >at org.apache.tiles.impl.BasicTilesContainer.init
> > ..
> >
> > Thanks in advance. Sorry for keeping it long.
> >
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


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



Re: Tiles with Struts 2.1.5

2009-01-07 Thread Musachy Barroso
To use a result, the action needs to be in the package that defines
the result, or in a package that extends the package where the result
is defined.  There are several ways to fix this, in this case you can
just set the parent package of the action, to your package:

@ParentPackage("admin")

or change the default parent package for all your actions (the ones
configured by Convention):



musachy

On Wed, Jan 7, 2009 at 11:25 AM, Ercan Kayaonu  wrote:
> Thank you Musachy,
> That solved my problem, but
> I got this error, which might be very familiar for most of you:
>
> The Result type [tiles] which is defined in the Result annotation on the
> class [class actions.admin.LoginAction] or determined by the file extension
> or is the default result type for the PackageConfig of the action, could not
> be found as a result-type defined for the Struts/XWork package
> [actions.admin#convention-default#/admin/login] - [unknown location]
>
> actions.admin.LoginAction.java:
>
>  @Action(value="/admin/login/index",result...@result(name="success",
> type="tiles", location="admin.login") })   (I have definition in tiles.xml
> for "admin.login".)
>  public String execute() {
>return SUCCESS;
>}
>
> struts.xml :
>
>
> class="org.apache.struts2.views.tiles.TilesResult" />
>
> 
>
> Can anyone explain what name="default" stands for, because i changed it as
> name="admin", i got the same error.
> and also [actions.admin#convention-default#/admin/login] .  What is
> #convention-default# ? Is it "actions" because convention plugin looks for
> actions package. Or is it something we define in config files?
> Thanks in advance.
>
>
> On Wed, Jan 7, 2009 at 3:42 PM, Musachy Barroso  wrote:
>
>> You are missing dependencies, in this case Commons Digester
>> (http://commons.apache.org/digester/)
>>
>> musachy
>>
>> On Wed, Jan 7, 2009 at 10:38 AM, Ercan Kayaonu  wrote:
>> > Hi,
>> > I'm using Struts 2.1.5 with convention plugin. I'm in the learning
>> process
>> > and trying several things (action, rule annotations, hibernate etc).
>> > Everything was working ok until today.  i started using Tiles.
>> > I copied
>> >
>> > struts2-tiles-plugin-2.1.5.jar
>> > tiles-api-2.0.6.jar
>> > tiles-core-2.0.6.jar
>> > tiles-jsp-2.0.6.jar files into my lib folder. These files come with
>> struts
>> > 2.1.5.
>> >
>> > I added
>> >
>> >
>> >
>> org.apache.struts2.tiles.StrutsTilesListener
>> >
>> > to web.xml file.
>> >
>> > This is my struts.xml:
>> > 
>> >  (There was also
>> > namespace="/", but later i removed it. but nothing changed)
>> >
>> >> > class="org.apache.struts2.views.tiles.TilesResult" />
>> >
>> > 
>> > 
>> >
>> > I couldn't quite understand this package thing. Maybe the problem is with
>> my
>> > struts file. I can also paste tiles.xml if it is necessary to diagnose
>> the
>> > problem.
>> > I get
>> > HTTP Status 404 - /adv_ment/admin/login/index   problem. And these are
>> the
>> > lines from eclipse console:
>> >
>> > SEVERE: Exception sending context initialized event to listener instance
>> of
>> > class org.apache.struts2.tiles.StrutsTilesListener
>> > java.lang.NoClassDefFoundError: org/apache/commons/digester/Rule
>> >at org.apache.tiles.definition.UrlDefinitionsFactory.init
>> >at
>> > org.apache.tiles.impl.BasicTilesContainer.initializeDefinitionsFactory
>> >at org.apache.tiles.impl.BasicTilesContainer.init
>> > ..
>> >
>> > Thanks in advance. Sorry for keeping it long.
>> >
>>
>>
>>
>> --
>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

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



Re: Tiles with Struts 2.1.5

2009-01-07 Thread Ercan Kayaonu
There's commons-digester-1.8.jar under struts 2.1.5 lib files. you also need
commons-beanutils-1.7.0.jar.
The location for 2.1.5 is
http://people.apache.org/builds/struts/2.1.5/

On Wed, Jan 7, 2009 at 4:21 PM, Biesbrock, Kevin
wrote:

> Aha!  I had this same problem and was planning on submitting it today.
> You beat me to it.
>
> Commons Digester does not appear to be released with Struts 2.x ...
> unless it is not named with "Digester" or I'm missing it.
>
>
> Beez
> ( 4961
>
> -Original Message-
> From: Musachy Barroso [mailto:musa...@gmail.com]
> Sent: Wednesday, January 07, 2009 10:43 AM
> To: Struts Users Mailing List
> Subject: Re: Tiles with Struts 2.1.5
>
> You are missing dependencies, in this case Commons Digester
> (http://commons.apache.org/digester/)
>
> musachy
>
> On Wed, Jan 7, 2009 at 10:38 AM, Ercan Kayaonu 
> wrote:
> > Hi,
> > I'm using Struts 2.1.5 with convention plugin. I'm in the learning
> > process and trying several things (action, rule annotations, hibernate
> etc).
> > Everything was working ok until today.  i started using Tiles.
> > I copied
> >
> > struts2-tiles-plugin-2.1.5.jar
> > tiles-api-2.0.6.jar
> > tiles-core-2.0.6.jar
> > tiles-jsp-2.0.6.jar files into my lib folder. These files come with
> > struts 2.1.5.
> >
> > I added
> >
> >
> >
> org.apache.struts2.tiles.StrutsTilesListener lass>
> >
> > to web.xml file.
> >
> > This is my struts.xml:
> > 
> >  (There was
> also
> > namespace="/", but later i removed it. but nothing changed)
> >
> > > class="org.apache.struts2.views.tiles.TilesResult" />
> >
> > 
> > 
> >
> > I couldn't quite understand this package thing. Maybe the problem is
> > with my struts file. I can also paste tiles.xml if it is necessary to
> > diagnose the problem.
> > I get
> > HTTP Status 404 - /adv_ment/admin/login/index   problem. And these are
> the
> > lines from eclipse console:
> >
> > SEVERE: Exception sending context initialized event to listener
> > instance of class org.apache.struts2.tiles.StrutsTilesListener
> > java.lang.NoClassDefFoundError: org/apache/commons/digester/Rule
> >at org.apache.tiles.definition.UrlDefinitionsFactory.init
> >at
> > org.apache.tiles.impl.BasicTilesContainer.initializeDefinitionsFactory
> >at org.apache.tiles.impl.BasicTilesContainer.init
> > ..
> >
> > Thanks in advance. Sorry for keeping it long.
> >
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: Tiles with Struts 2.1.5

2009-01-07 Thread Ercan Kayaonu
Thank you Musachy,
That solved my problem, but
I got this error, which might be very familiar for most of you:

The Result type [tiles] which is defined in the Result annotation on the
class [class actions.admin.LoginAction] or determined by the file extension
or is the default result type for the PackageConfig of the action, could not
be found as a result-type defined for the Struts/XWork package
[actions.admin#convention-default#/admin/login] - [unknown location]

actions.admin.LoginAction.java:

  @Action(value="/admin/login/index",result...@result(name="success",
type="tiles", location="admin.login") })   (I have definition in tiles.xml
for "admin.login".)
  public String execute() {
return SUCCESS;
}

struts.xml :




 

Can anyone explain what name="default" stands for, because i changed it as
name="admin", i got the same error.
and also [actions.admin#convention-default#/admin/login] .  What is
#convention-default# ? Is it "actions" because convention plugin looks for
actions package. Or is it something we define in config files?
Thanks in advance.


On Wed, Jan 7, 2009 at 3:42 PM, Musachy Barroso  wrote:

> You are missing dependencies, in this case Commons Digester
> (http://commons.apache.org/digester/)
>
> musachy
>
> On Wed, Jan 7, 2009 at 10:38 AM, Ercan Kayaonu  wrote:
> > Hi,
> > I'm using Struts 2.1.5 with convention plugin. I'm in the learning
> process
> > and trying several things (action, rule annotations, hibernate etc).
> > Everything was working ok until today.  i started using Tiles.
> > I copied
> >
> > struts2-tiles-plugin-2.1.5.jar
> > tiles-api-2.0.6.jar
> > tiles-core-2.0.6.jar
> > tiles-jsp-2.0.6.jar files into my lib folder. These files come with
> struts
> > 2.1.5.
> >
> > I added
> >
> >
> >
> org.apache.struts2.tiles.StrutsTilesListener
> >
> > to web.xml file.
> >
> > This is my struts.xml:
> > 
> >  (There was also
> > namespace="/", but later i removed it. but nothing changed)
> >
> > > class="org.apache.struts2.views.tiles.TilesResult" />
> >
> > 
> > 
> >
> > I couldn't quite understand this package thing. Maybe the problem is with
> my
> > struts file. I can also paste tiles.xml if it is necessary to diagnose
> the
> > problem.
> > I get
> > HTTP Status 404 - /adv_ment/admin/login/index   problem. And these are
> the
> > lines from eclipse console:
> >
> > SEVERE: Exception sending context initialized event to listener instance
> of
> > class org.apache.struts2.tiles.StrutsTilesListener
> > java.lang.NoClassDefFoundError: org/apache/commons/digester/Rule
> >at org.apache.tiles.definition.UrlDefinitionsFactory.init
> >at
> > org.apache.tiles.impl.BasicTilesContainer.initializeDefinitionsFactory
> >at org.apache.tiles.impl.BasicTilesContainer.init
> > ..
> >
> > Thanks in advance. Sorry for keeping it long.
> >
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


RE: Tiles with Struts 2.1.5

2009-01-07 Thread Biesbrock, Kevin
Aha!  I had this same problem and was planning on submitting it today.
You beat me to it.

Commons Digester does not appear to be released with Struts 2.x ...
unless it is not named with "Digester" or I'm missing it.


Beez
( 4961 

-Original Message-
From: Musachy Barroso [mailto:musa...@gmail.com] 
Sent: Wednesday, January 07, 2009 10:43 AM
To: Struts Users Mailing List
Subject: Re: Tiles with Struts 2.1.5

You are missing dependencies, in this case Commons Digester
(http://commons.apache.org/digester/)

musachy

On Wed, Jan 7, 2009 at 10:38 AM, Ercan Kayaonu 
wrote:
> Hi,
> I'm using Struts 2.1.5 with convention plugin. I'm in the learning 
> process and trying several things (action, rule annotations, hibernate
etc).
> Everything was working ok until today.  i started using Tiles.
> I copied
>
> struts2-tiles-plugin-2.1.5.jar
> tiles-api-2.0.6.jar
> tiles-core-2.0.6.jar
> tiles-jsp-2.0.6.jar files into my lib folder. These files come with 
> struts 2.1.5.
>
> I added
>
>
>
org.apache.struts2.tiles.StrutsTilesListener
>
> to web.xml file.
>
> This is my struts.xml:
> 
>  (There was
also
> namespace="/", but later i removed it. but nothing changed)
>
> class="org.apache.struts2.views.tiles.TilesResult" />
>
> 
> 
>
> I couldn't quite understand this package thing. Maybe the problem is 
> with my struts file. I can also paste tiles.xml if it is necessary to 
> diagnose the problem.
> I get
> HTTP Status 404 - /adv_ment/admin/login/index   problem. And these are
the
> lines from eclipse console:
>
> SEVERE: Exception sending context initialized event to listener 
> instance of class org.apache.struts2.tiles.StrutsTilesListener
> java.lang.NoClassDefFoundError: org/apache/commons/digester/Rule
>at org.apache.tiles.definition.UrlDefinitionsFactory.init
>at
> org.apache.tiles.impl.BasicTilesContainer.initializeDefinitionsFactory
>at org.apache.tiles.impl.BasicTilesContainer.init
> ..
>
> Thanks in advance. Sorry for keeping it long.
>



--
"Hey you! Would you help me to carry the stone?" Pink Floyd

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




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



Re: Tiles with Struts 2.1.5

2009-01-07 Thread Musachy Barroso
You are missing dependencies, in this case Commons Digester
(http://commons.apache.org/digester/)

musachy

On Wed, Jan 7, 2009 at 10:38 AM, Ercan Kayaonu  wrote:
> Hi,
> I'm using Struts 2.1.5 with convention plugin. I'm in the learning process
> and trying several things (action, rule annotations, hibernate etc).
> Everything was working ok until today.  i started using Tiles.
> I copied
>
> struts2-tiles-plugin-2.1.5.jar
> tiles-api-2.0.6.jar
> tiles-core-2.0.6.jar
> tiles-jsp-2.0.6.jar files into my lib folder. These files come with struts
> 2.1.5.
>
> I added
>
>
> org.apache.struts2.tiles.StrutsTilesListener
>
> to web.xml file.
>
> This is my struts.xml:
> 
>  (There was also
> namespace="/", but later i removed it. but nothing changed)
>
> class="org.apache.struts2.views.tiles.TilesResult" />
>
> 
> 
>
> I couldn't quite understand this package thing. Maybe the problem is with my
> struts file. I can also paste tiles.xml if it is necessary to diagnose the
> problem.
> I get
> HTTP Status 404 - /adv_ment/admin/login/index   problem. And these are the
> lines from eclipse console:
>
> SEVERE: Exception sending context initialized event to listener instance of
> class org.apache.struts2.tiles.StrutsTilesListener
> java.lang.NoClassDefFoundError: org/apache/commons/digester/Rule
>at org.apache.tiles.definition.UrlDefinitionsFactory.init
>at
> org.apache.tiles.impl.BasicTilesContainer.initializeDefinitionsFactory
>at org.apache.tiles.impl.BasicTilesContainer.init
> ..
>
> Thanks in advance. Sorry for keeping it long.
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

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



Re: Tiles with Struts 1.3.8

2007-07-20 Thread Paul Benedict

If you aren't using modules, get rid of the moduleAware property.

Phillip Blevins wrote:

Greetings!,

I am trying to get tiles to work with struts 1.3.8. Specificly I would
like my action mapping to foward to a tile definition.


I have a tiles definition of

   
  
   
   
   

I'm using the struts blank appication as a base install

inside of struts config i uncomment the tiles plugging and added a
definitions-debug property it looks like this:

   

 
 
 
   

and then i changed the blank struts welcome action to this:
   

When i start tomcat i get this error:
javax.servlet.ServletException: Path mainLayout does not start with a
"/" character

adding a "/" to the forware
   

i get a 404 page
type Status report
message /MBBCSermons/mainLayout
description The requested resource (/MBBCSermons/mainLayout) is not 
available.


Is there some key step I am missing?

All the documentation i've read says this should work, but most of
what i can find is for struts 1.1.

Thanks,
Phillip

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tiles with Struts-2

2007-02-19 Thread Brian Bruns

I had a similar problem...I believe I resolved it by putting the tiles
servlet (which I'm not using) in the web.xml.  Something about tiles needing
to be configured before use.  Maybe someone else can expound on this?  IIRC
there was another way to make this happen too.

Brian

2007/2/19, Ray Clough <[EMAIL PROTECTED]>:


I have been unable to get Tiles to work with Struts-2 (v2.05).  When I
add the Tiles-plugin and Tiles-core and Tiles-api jars to WEB-INF/lib I
start getting ClassNotFoundExceptions about classes from Spring.  When I
add the Spring jars I start getting exceptions for
codehaus/PlexusContainer.  PlexusContainer seems to depend on
commons-attributes.  Obviously, somewhere in all this is some silly
config error on my part.  The tutorial for tiles specifies (1) Declare
dependency - I think this is only if ytou are using Maven for build.  Am
I wrong about that?  (2) Declare the Tiles listener.  I had that follow
the other listeners.  OK?? (3) Declare package definitions.  Seems easy
enough. (4) Configure the actions.  I haven't even gotten this far as it
fails to deploy.  There is no info on the Tiles config file, but I'm
assuming the same format as for Struts 1.x.  The tutorial specifies that
no files except for Tiles-plugin jar need to be copied.  Any advice as
to where I've gone wrong here.

Thanks,
Ray Clough
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: tiles with struts 1.2.9

2006-09-05 Thread Wendy Smoak

On 9/5/06, Monkeyden <[EMAIL PROTECTED]> wrote:


http://struts.apache.org/1.x/struts-tiles/installation.html


Now I see the reference to 'tiles.jar'.  That documentation is for
Struts 1.3, in which we've split the distribution into several jar
files: struts-core, struts-tiles, struts-el, etc.  For Struts 1.3, you
*do* need to make sure to include struts-tiles.jar.

In the 1.2 series, the Struts Tiles classes are included in struts.jar .

The documentation for 1.2.9 starts here:
  http://struts.apache.org/1.2.9
  ---> http://struts.apache.org/1.2.9/userGuide/dev_tiles.html

--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tiles with struts 1.2.9

2006-09-05 Thread Monkeyden

Add an init-param to the ActionServlet
Add the plug-in the struts-config.xml
Add the taglib directive to the JSP pages using tiles.

http://struts.apache.org/1.x/struts-tiles/installation.html


On 9/5/06, Darren Hall <[EMAIL PROTECTED]> wrote:


Ignore that last message. I see the tiles package in the 1.2.9 API.

The tld file still needs to be included, though, I take it - and I need a
tiles-config.xml file.

Is there anything else I'm missing to get tiles running on 1.2.9?



Thanks,



Darren





-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 05, 2006 11:43 AM
To: 'user@struts.apache.org'
Subject: tiles with struts 1.2.9



Quick question,



I'm using struts 1.2.9 and I'm attempting to configure tiles.

In some online documentation files I've found, it outlines how tiles.jar
should be included with my struts deployment, however I don't see
tiles.jar
anywhere in my struts related files. Are the tiles objects compiled in the
default struts.jar file in 1.2.9? What do I need to get this configured?



Thanks,



Darren





RE: tiles with struts 1.2.9

2006-09-05 Thread Darren Hall
Ignore that last message. I see the tiles package in the 1.2.9 API.

The tld file still needs to be included, though, I take it - and I need a
tiles-config.xml file.

Is there anything else I'm missing to get tiles running on 1.2.9?

 

Thanks,

 

Darren

 

 

-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 05, 2006 11:43 AM
To: 'user@struts.apache.org'
Subject: tiles with struts 1.2.9

 

Quick question,

 

I'm using struts 1.2.9 and I'm attempting to configure tiles.

In some online documentation files I've found, it outlines how tiles.jar
should be included with my struts deployment, however I don't see tiles.jar
anywhere in my struts related files. Are the tiles objects compiled in the
default struts.jar file in 1.2.9? What do I need to get this configured?

 

Thanks,

 

Darren



RE: Tiles with Struts

2005-12-22 Thread Buntin, Seth - KATE
Thanks Antonio.  That was it.  I just found that off a web site and I
guess the site was somewhat old.

 

Seth Buntin

Web Resources Coordinator

Kentucky Academy of Technology Education

Murray State University

 



Re: Tiles with Struts

2005-12-22 Thread brenmcguire

>
>
>DoFirst.java:
>
>package edu.msu.kate.struts.action;
>
>
>
>import org.apache.struts.action.*;
>
>import javax.servlet.http.*;
>
>
>
>public class DoFirst extends Action {
>
>public ActionForward perform(
>
>ActionMapping aMapping,
>
>ActionForm aForm,
>
>HttpServletRequest aRequest,
>
>HttpServletResponse aResponse
>
>){
>
>return aMapping.findForward("success");
>
>}
>
>}
>

Override "execute" method, not "perform". It is deprecated, but it should
be removed at all.
Ciao
Antonio Petrelli


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tiles with Struts

2005-12-22 Thread Buntin, Seth - KATE
My web.xml file has:

 



  index.jsp



 

index.jsp:

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



 

 

struts-config.xml:



  



  



  



  



 

DoFirst.java:

package edu.msu.kate.struts.action;

 

import org.apache.struts.action.*;

import javax.servlet.http.*;

 

public class DoFirst extends Action {

public ActionForward perform(

ActionMapping aMapping,

ActionForm aForm,

HttpServletRequest aRequest,

HttpServletResponse aResponse

){

return aMapping.findForward("success");

}

}

 

Seth Buntin

Web Resources Coordinator

Kentucky Academy of Technology Education

Murray State University

 



Re: Tiles with Struts

2005-12-22 Thread Greg Reddin


On Dec 22, 2005, at 8:59 AM, Buntin, Seth - KATE wrote:

I am having an issue getting Tiles to work.  I am totally new to  
Struts

so bear with me.  The issue is I don't see anything.  I got to home.do
(which is set up as what the user will see first) and it is totally
blank and the source is totally empty.  I think I have everything  
in my

configuration correct but don't know what to do.


Does your web.xml point to an index.jsp or something similar for a  
welcome-file?  Can you post the contents of that?  What does the  
configuration for the home.do action look like?


There are several reasons why this might happen.

Thanks,
Greg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tiles with Struts

2005-12-22 Thread brenmcguire
How about your "home.do" action mapping and the connected action? Maybe
you return a wrong ActionForward...
Ciao
Antonio Petrelli

Buntin, Seth - KATE ha scritto:

>I am having an issue getting Tiles to work.  I am totally new to Struts
>so bear with me.  The issue is I don't see anything.  I got to home.do
>(which is set up as what the user will see first) and it is totally
>blank and the source is totally empty.  I think I have everything in my
>configuration correct but don't know what to do.  Here are my files:
>
>
>
>/WEB-INF/tiles-def.xml:
>
>
>
>
>
>
>   "-//Apache Software Foundation//DTD Tiles Configuration 1.3//EN"
>
>   "http://struts.apache.org/dtds/tiles-config_1_3.dtd";>
>
>
>
>
>
>  
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>  
>
>
>
>
>
>
>
>
>
>
>
>/layout/layout.jsp:
>
>
>
><%@ taglib uri="/tags/struts-bean" prefix="bean" %>
>
><%@ taglib uri="/tags/struts-html" prefix="html" %>
>
><%@ taglib uri="/tags/struts-logic" prefix="logic" %>
>
><%@ taglib uri="http://struts.apache.org/tags-tiles"; prefix="tiles" %>
>
>
>
>"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
>
>http://www.w3.org/1999/xhtml";>
>
>  
>
>
>
>type="text/css" />
>
>  
>
>
>
>  
>
>
>
>  
>
>  
>
>
>
>
>
>
>
>  <%-- include header --%>
>
>  
>
>  
>
>
>
>
>
>
>
>
>
>
>
>  <%-- include navigation --%>
>
>  
>
>
>
>
>
>
>
>
>
>
>
>  
>
><%-- include body --%>
>
>  
>
>  
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>  <%-- include footer --%>
>
>  
>
>
>
>
>
>
>
>  
>
>  
>
>
>
>  
>
>
>
>
>
>I have these in my /WEB-INF/struts-config.xml file:
>
>
>
>processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>
>
>
>
>value="/WEB-INF/tiles-defs.xml" />
>
>
>
>
>
>
>
>Can someone point me in the right direction?
>
>
>
>Thanks,
>
>
>
>Seth Buntin
>
>Web Resources Coordinator
>
>Kentucky Academy of Technology Education
>
>Murray State University
>
>
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]