Re: ForwardAction not picking up Tiles defs?

2003-11-04 Thread John Cavacas
I've used and re-used the struts-blank.war distribution and never had a 
problem with the struts-config.xml file included in it... In fact I just 
used it a few days ago to start another app, which uses and is using Tiles 
without a problem.

John

At 04:34 PM 03/11/2003 -0600, you wrote:
THAT WAS IT!! Having the controller element in there screwed the pooch!!

Somehow, though, this is what's in the struts-blank.war that's 
distributed with Struts (verbatim, actually) - it is preconfigured to use 
Tiles, so it uses the TilesRequestProcessor.

[EMAIL PROTECTED](*[EMAIL PROTECTED](@#$

That was a waste of a day ... nice.

Hubert Rabago wrote:

FYI, got really curious, so I pulled out my test web app, plugged in your
definitions, created /common/layouts/baseLayout.jsp, and everything worked as
expected.  Here's the log:
2003-11-03 16:27:20,637 INFO TilesRequestProcessor.java
tiles.TilesRequestProcessor Tiles definition factory found for request 
processor
''.
2003-11-03 16:27:20,652 DEBUG TilesRequestProcessor.java
tiles.TilesRequestProcessor processForwardConfig(.baseLayout, true)
2003-11-03 16:27:20,652 DEBUG I18nFactorySet.java 
xmlDefinition.I18nFactorySet
Can't open file '/WEB-INF/tiles-defs_en_US.xml'
2003-11-03 16:27:20,652 DEBUG I18nFactorySet.java 
xmlDefinition.I18nFactorySet
Can't open file '/WEB-INF/tiles-defs_en.xml'
2003-11-03 16:27:20,668 DEBUG TilesRequestProcessor.java
tiles.TilesRequestProcessor uri=/common/layouts/baseLayout.jsp 
doInclude=false
2003-11-03 16:27:20,683 DEBUG TilesRequestProcessor.java
tiles.TilesRequestProcessor   '.baseLayout' - processed as definition

in tiles-defs.xml:
tiles-definitions
   definition name=.baseLayout path=/common/layouts/baseLayout.jsp/
/tiles-definitions
in struts-config:
   action path=/tilestest
   type=org.apache.struts.actions.ForwardAction
   parameter=.baseLayout/
...
   plug-in
 className=org.apache.struts.tiles.TilesPlugin
 set-property
 property=definitions-config
 value=/WEB-INF/tiles-defs.xml/
   /plug-in
I didn't have a controller element.
My test web-app didn't make use of Tiles before, I just plugged it in now.
--- Ruth, Brice [EMAIL PROTECTED] wrote:


Everything else works, I'm in the midst of following Ted's refactoring 
approach and moving my JSPs that have tiles:insert statements to tile 
definitions that I can extend  overload.

David Friedman wrote:



Tiles work with starting dots.  I use it that way myself.  I think I picked
up that suggestion from Ted's book Struts In Action.
What is the exact URL you are using?  Do regular non-tiles actions work for
your webapp?
Regards,
David
-Original Message-
From: Mikael Eriksson - Swedish Connection [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 4:29 PM
To: Struts Users Mailing List
Subject: Re: ForwardAction not picking up Tiles defs?


One thing to try might be to use tile names that does not start with a dot.
I have done things that look pretty similar but the tilenames was things
like
output.page1.  The parsing might get confused or by the starting '.'
My actions look like:
   action path=/tiles_page1_in
  type=org.apache.struts.actions.ForwardAction
  parameter=output.page1 /
Regards

At 15:26 2003-11-03 -0600, you wrote:



I'm ripping my hair out here, guys ... what's going on with my config?! I
can't see anything wrong in the debug output, yet Struts still is balking
at actions that use the ForwardAction class and don't have a parameter
that starts with a '/' ...
Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:





OK, I have simplelog set to debug and I don't see any errors - it seems
to parse my tiles-def.xml just fine, from what I can see.
?!?

Hubert Rabago wrote:





I got this yesterday.  It means Tiles didn't intercept your forward



request



because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the
tiles
it'll recognize when you app starts up.  Make sure yours is listed.
I'm using a tile with a ForwardAction now, so I know it works.  Hope you
find it.
--- Ruth, Brice [EMAIL PROTECTED] wrote:






I'm following the instructions provided here:
http://jakarta.apache.org/struts/userGuide/building_view.html (section
3.4.3) for incorporating tiles definitions in struts-config.xml, and
when the ActionServlet receives a request for an action who's parameter
is a tile definition name (such as .baseLayout), I get the following


exception:



javax.servlet.ServletException: Path .baseLayout does not start with a
/ character
My action is defined like so:

 action
 path=/US/tilestest
 type=org.apache.struts.actions.ForwardAction
 parameter=.baseLayout/
And I've defined the plug-in for the Tiles requestor.

plug-in
 className=org.apache.struts.tiles.TilesPlugin
 set-property
 property=definitions-config
 value=/WEB-INF/tiles-defs.xml/
/plug

ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
I'm following the instructions provided here: 
http://jakarta.apache.org/struts/userGuide/building_view.html (section 
3.4.3) for incorporating tiles definitions in struts-config.xml, and 
when the ActionServlet receives a request for an action who's parameter 
is a tile definition name (such as .baseLayout), I get the following 
exception:

javax.servlet.ServletException: Path .baseLayout does not start with a 
/ character

My action is defined like so:

   action
   path=/US/tilestest
   type=org.apache.struts.actions.ForwardAction
   parameter=.baseLayout/
And I've defined the plug-in for the Tiles requestor.

 plug-in
   className=org.apache.struts.tiles.TilesPlugin
   set-property
   property=definitions-config
   value=/WEB-INF/tiles-defs.xml/
 /plug-in
My tiles-defs.xml has one simple entry:

   definition name=.baseLayout path=/common/layouts/baseLayout.jsp/

within the tiles-definitions node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Hubert Rabago
I got this yesterday.  It means Tiles didn't intercept your forward request
because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the tiles
it'll recognize when you app starts up.  Make sure yours is listed.

I'm using a tile with a ForwardAction now, so I know it works.  
Hope you find it.

--- Ruth, Brice [EMAIL PROTECTED] wrote:
 I'm following the instructions provided here: 
 http://jakarta.apache.org/struts/userGuide/building_view.html (section 
 3.4.3) for incorporating tiles definitions in struts-config.xml, and 
 when the ActionServlet receives a request for an action who's parameter 
 is a tile definition name (such as .baseLayout), I get the following 
 exception:
 
 javax.servlet.ServletException: Path .baseLayout does not start with a 
 / character
 
 My action is defined like so:
 
 action
 path=/US/tilestest
 type=org.apache.struts.actions.ForwardAction
 parameter=.baseLayout/
 
 And I've defined the plug-in for the Tiles requestor.
 
   plug-in
 className=org.apache.struts.tiles.TilesPlugin
 set-property
 property=definitions-config
 value=/WEB-INF/tiles-defs.xml/
   /plug-in
 
 My tiles-defs.xml has one simple entry:
 
 definition name=.baseLayout path=/common/layouts/baseLayout.jsp/
 
 within the tiles-definitions node.
 
 Any ideas? Thanks!
 
 -- 
 Brice D. Ruth
 Sr. IT Analyst
 Fiskars Brands, Inc.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

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



Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
How do I go about turning on debug for Tiles?

Hubert Rabago wrote:

I got this yesterday.  It means Tiles didn't intercept your forward request
because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the tiles
it'll recognize when you app starts up.  Make sure yours is listed.
I'm using a tile with a ForwardAction now, so I know it works.  
Hope you find it.

--- Ruth, Brice [EMAIL PROTECTED] wrote:
 

I'm following the instructions provided here: 
http://jakarta.apache.org/struts/userGuide/building_view.html (section 
3.4.3) for incorporating tiles definitions in struts-config.xml, and 
when the ActionServlet receives a request for an action who's parameter 
is a tile definition name (such as .baseLayout), I get the following 
exception:

javax.servlet.ServletException: Path .baseLayout does not start with a 
/ character

My action is defined like so:

   action
   path=/US/tilestest
   type=org.apache.struts.actions.ForwardAction
   parameter=.baseLayout/
And I've defined the plug-in for the Tiles requestor.

 plug-in
   className=org.apache.struts.tiles.TilesPlugin
   set-property
   property=definitions-config
   value=/WEB-INF/tiles-defs.xml/
 /plug-in
My tiles-defs.xml has one simple entry:

   definition name=.baseLayout path=/common/layouts/baseLayout.jsp/

within the tiles-definitions node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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



__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Hubert Rabago
If you're using Log4j, turn on debug for org.apache.struts.tiles.
If not, well, try using commons-logging's simplelog.  I've used these lines
before:
System.setProperty(org.apache.commons.logging.simplelog.defaultlog,trace);
System.setProperty(org.apache.commons.logging.simplelog.showdatetime,true);
These'll have to be set before Tiles initializes.  I'm sure there are other ways.
Maybe others have better ideas for turning on commons-logging?
(There was a thread last week asking how to turn logging off.  Maybe he knows how
to turn it on now.)

--- Ruth, Brice [EMAIL PROTECTED] wrote:
 How do I go about turning on debug for Tiles?
 
 Hubert Rabago wrote:
 
 I got this yesterday.  It means Tiles didn't intercept your forward request
 because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
 If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the tiles
 it'll recognize when you app starts up.  Make sure yours is listed.
 
 I'm using a tile with a ForwardAction now, so I know it works.  
 Hope you find it.
 
 --- Ruth, Brice [EMAIL PROTECTED] wrote:
   
 
 I'm following the instructions provided here: 
 http://jakarta.apache.org/struts/userGuide/building_view.html (section 
 3.4.3) for incorporating tiles definitions in struts-config.xml, and 
 when the ActionServlet receives a request for an action who's parameter 
 is a tile definition name (such as .baseLayout), I get the following 
 exception:
 
 javax.servlet.ServletException: Path .baseLayout does not start with a 
 / character
 
 My action is defined like so:
 
 action
 path=/US/tilestest
 type=org.apache.struts.actions.ForwardAction
 parameter=.baseLayout/
 
 And I've defined the plug-in for the Tiles requestor.
 
   plug-in
 className=org.apache.struts.tiles.TilesPlugin
 set-property
 property=definitions-config
 value=/WEB-INF/tiles-defs.xml/
   /plug-in
 
 My tiles-defs.xml has one simple entry:
 
 definition name=.baseLayout path=/common/layouts/baseLayout.jsp/
 
 within the tiles-definitions node.
 
 Any ideas? Thanks!
 
 -- 
 Brice D. Ruth
 Sr. IT Analyst
 Fiskars Brands, Inc.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 __
 Do you Yahoo!?
 Exclusive Video Premiere - Britney Spears
 http://launch.yahoo.com/promos/britneyspears/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
   
 
 
 -- 
 Brice D. Ruth
 Sr. IT Analyst
 Fiskars Brands, Inc.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

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



RE: ForwardAction not picking up Tiles defs?

2003-11-03 Thread David Friedman
You can turn off debugging by setting the
type to none.  I recommend you set it
instead to info so you can follow any
standard tiles messages while you work on
it.

Regards,
David

-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 3:20 PM
To: Struts Users Mailing List
Subject: Re: ForwardAction not picking up Tiles defs?


If you're using Log4j, turn on debug for org.apache.struts.tiles.
If not, well, try using commons-logging's simplelog.  I've used these lines
before:
System.setProperty(org.apache.commons.logging.simplelog.defaultlog,trace
);
System.setProperty(org.apache.commons.logging.simplelog.showdatetime,true
);
These'll have to be set before Tiles initializes.  I'm sure there are other
ways.
Maybe others have better ideas for turning on commons-logging?
(There was a thread last week asking how to turn logging off.  Maybe he
knows how
to turn it on now.)

--- Ruth, Brice [EMAIL PROTECTED] wrote:
 How do I go about turning on debug for Tiles?

 Hubert Rabago wrote:

 I got this yesterday.  It means Tiles didn't intercept your forward
request
 because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
 If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the
tiles
 it'll recognize when you app starts up.  Make sure yours is listed.
 
 I'm using a tile with a ForwardAction now, so I know it works.
 Hope you find it.
 
 --- Ruth, Brice [EMAIL PROTECTED] wrote:
 
 
 I'm following the instructions provided here:
 http://jakarta.apache.org/struts/userGuide/building_view.html (section
 3.4.3) for incorporating tiles definitions in struts-config.xml, and
 when the ActionServlet receives a request for an action who's parameter
 is a tile definition name (such as .baseLayout), I get the following
 exception:
 
 javax.servlet.ServletException: Path .baseLayout does not start with a
 / character
 
 My action is defined like so:
 
 action
 path=/US/tilestest
 type=org.apache.struts.actions.ForwardAction
 parameter=.baseLayout/
 
 And I've defined the plug-in for the Tiles requestor.
 
   plug-in
 className=org.apache.struts.tiles.TilesPlugin
 set-property
 property=definitions-config
 value=/WEB-INF/tiles-defs.xml/
   /plug-in
 
 My tiles-defs.xml has one simple entry:
 
 definition name=.baseLayout
path=/common/layouts/baseLayout.jsp/
 
 within the tiles-definitions node.
 
 Any ideas? Thanks!
 
 --
 Brice D. Ruth
 Sr. IT Analyst
 Fiskars Brands, Inc.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 __
 Do you Yahoo!?
 Exclusive Video Premiere - Britney Spears
 http://launch.yahoo.com/promos/britneyspears/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 Brice D. Ruth
 Sr. IT Analyst
 Fiskars Brands, Inc.



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



__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

-
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: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
OK, I have simplelog set to debug and I don't see any errors - it seems 
to parse my tiles-def.xml just fine, from what I can see.

?!?

Hubert Rabago wrote:

I got this yesterday.  It means Tiles didn't intercept your forward request
because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the tiles
it'll recognize when you app starts up.  Make sure yours is listed.
I'm using a tile with a ForwardAction now, so I know it works.  
Hope you find it.

--- Ruth, Brice [EMAIL PROTECTED] wrote:
 

I'm following the instructions provided here: 
http://jakarta.apache.org/struts/userGuide/building_view.html (section 
3.4.3) for incorporating tiles definitions in struts-config.xml, and 
when the ActionServlet receives a request for an action who's parameter 
is a tile definition name (such as .baseLayout), I get the following 
exception:

javax.servlet.ServletException: Path .baseLayout does not start with a 
/ character

My action is defined like so:

   action
   path=/US/tilestest
   type=org.apache.struts.actions.ForwardAction
   parameter=.baseLayout/
And I've defined the plug-in for the Tiles requestor.

 plug-in
   className=org.apache.struts.tiles.TilesPlugin
   set-property
   property=definitions-config
   value=/WEB-INF/tiles-defs.xml/
 /plug-in
My tiles-defs.xml has one simple entry:

   definition name=.baseLayout path=/common/layouts/baseLayout.jsp/

within the tiles-definitions node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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



__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
I'm ripping my hair out here, guys ... what's going on with my config?! 
I can't see anything wrong in the debug output, yet Struts still is 
balking at actions that use the ForwardAction class and don't have a 
parameter that starts with a '/' ...

Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:

OK, I have simplelog set to debug and I don't see any errors - it 
seems to parse my tiles-def.xml just fine, from what I can see.

?!?

Hubert Rabago wrote:

I got this yesterday.  It means Tiles didn't intercept your forward 
request
because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump 
the tiles
it'll recognize when you app starts up.  Make sure yours is listed.

I'm using a tile with a ForwardAction now, so I know it works.  Hope 
you find it.

--- Ruth, Brice [EMAIL PROTECTED] wrote:
 

I'm following the instructions provided here: 
http://jakarta.apache.org/struts/userGuide/building_view.html 
(section 3.4.3) for incorporating tiles definitions in 
struts-config.xml, and when the ActionServlet receives a request for 
an action who's parameter is a tile definition name (such as 
.baseLayout), I get the following exception:

javax.servlet.ServletException: Path .baseLayout does not start with 
a / character

My action is defined like so:

   action
   path=/US/tilestest
   type=org.apache.struts.actions.ForwardAction
   parameter=.baseLayout/
And I've defined the plug-in for the Tiles requestor.

 plug-in
   className=org.apache.struts.tiles.TilesPlugin
   set-property
   property=definitions-config
   value=/WEB-INF/tiles-defs.xml/
 /plug-in
My tiles-defs.xml has one simple entry:

   definition name=.baseLayout 
path=/common/layouts/baseLayout.jsp/

within the tiles-definitions node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Hubert Rabago
Is this the only tile not working, or is this your first attempt at using Tiles
for this app?

--- Ruth, Brice [EMAIL PROTECTED] wrote:
 I'm ripping my hair out here, guys ... what's going on with my config?! 
 I can't see anything wrong in the debug output, yet Struts still is 
 balking at actions that use the ForwardAction class and don't have a 
 parameter that starts with a '/' ...
 
 Please, please help!! (currently in begging mode, bribing is next :))
 
 Ruth, Brice wrote:
 
  OK, I have simplelog set to debug and I don't see any errors - it 
  seems to parse my tiles-def.xml just fine, from what I can see.
 
  ?!?
 
  Hubert Rabago wrote:
 
  I got this yesterday.  It means Tiles didn't intercept your forward 
  request
  because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
  If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump 
  the tiles
  it'll recognize when you app starts up.  Make sure yours is listed.
 
  I'm using a tile with a ForwardAction now, so I know it works.  Hope 
  you find it.
 
  --- Ruth, Brice [EMAIL PROTECTED] wrote:
   
 
  I'm following the instructions provided here: 
  http://jakarta.apache.org/struts/userGuide/building_view.html 
  (section 3.4.3) for incorporating tiles definitions in 
  struts-config.xml, and when the ActionServlet receives a request for 
  an action who's parameter is a tile definition name (such as 
  .baseLayout), I get the following exception:
 
  javax.servlet.ServletException: Path .baseLayout does not start with 
  a / character
 
  My action is defined like so:
 
 action
 path=/US/tilestest
 type=org.apache.struts.actions.ForwardAction
 parameter=.baseLayout/
 
  And I've defined the plug-in for the Tiles requestor.
 
   plug-in
 className=org.apache.struts.tiles.TilesPlugin
 set-property
 property=definitions-config
 value=/WEB-INF/tiles-defs.xml/
   /plug-in
 
  My tiles-defs.xml has one simple entry:
 
 definition name=.baseLayout 
  path=/common/layouts/baseLayout.jsp/
 
  within the tiles-definitions node.
 
  Any ideas? Thanks!
 
  -- 
  Brice D. Ruth
  Sr. IT Analyst
  Fiskars Brands, Inc.
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

 
 
 
 
 -- 
 Brice D. Ruth
 Sr. IT Analyst
 Fiskars Brands, Inc.
 
 
 


__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

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



Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Mikael Eriksson - Swedish Connection
One thing to try might be to use tile names that does not start with a dot.
I have done things that look pretty similar but the tilenames was things like
output.page1.  The parsing might get confused or by the starting '.'
My actions look like:
action path=/tiles_page1_in
   type=org.apache.struts.actions.ForwardAction
   parameter=output.page1 /
Regards

At 15:26 2003-11-03 -0600, you wrote:
I'm ripping my hair out here, guys ... what's going on with my config?! I 
can't see anything wrong in the debug output, yet Struts still is balking 
at actions that use the ForwardAction class and don't have a parameter 
that starts with a '/' ...

Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:

OK, I have simplelog set to debug and I don't see any errors - it seems 
to parse my tiles-def.xml just fine, from what I can see.

?!?

Hubert Rabago wrote:

I got this yesterday.  It means Tiles didn't intercept your forward request
because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the 
tiles
it'll recognize when you app starts up.  Make sure yours is listed.

I'm using a tile with a ForwardAction now, so I know it works.  Hope you 
find it.

--- Ruth, Brice [EMAIL PROTECTED] wrote:


I'm following the instructions provided here: 
http://jakarta.apache.org/struts/userGuide/building_view.html (section 
3.4.3) for incorporating tiles definitions in struts-config.xml, and 
when the ActionServlet receives a request for an action who's parameter 
is a tile definition name (such as .baseLayout), I get the following exception:

javax.servlet.ServletException: Path .baseLayout does not start with a 
/ character

My action is defined like so:

   action
   path=/US/tilestest
   type=org.apache.struts.actions.ForwardAction
   parameter=.baseLayout/
And I've defined the plug-in for the Tiles requestor.

 plug-in
   className=org.apache.struts.tiles.TilesPlugin
   set-property
   property=definitions-config
   value=/WEB-INF/tiles-defs.xml/
 /plug-in
My tiles-defs.xml has one simple entry:

   definition name=.baseLayout path=/common/layouts/baseLayout.jsp/

within the tiles-definitions node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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



__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
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: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
This is my first attempt at using tiles defined in tiles-defs.xml, so 
far, all the tiles are being used via tiles:insert in individual JSP 
pages. That seems to be working flawlessly.

Incidentally, I just tried replacing o.a.s.a.ForwardAction with 
o.a.s.tiles.actions.NoOpAction (deprecated) and it doesn't work, either 
- but, it doesn't throw an exception - it just silently fails, pretty 
much. Debug logging is enabled and the following is all I get:

[INFO] RequestProcessor - -Processing a 'GET' for path '/US/tilestest'
[DEBUG] RequestProcessor - - Looking for Action instance for class 
org.apache.struts.tiles.actions.NoOpAction

Hubert Rabago wrote:

Is this the only tile not working, or is this your first attempt at using Tiles
for this app?
--- Ruth, Brice [EMAIL PROTECTED] wrote:
 

I'm ripping my hair out here, guys ... what's going on with my config?! 
I can't see anything wrong in the debug output, yet Struts still is 
balking at actions that use the ForwardAction class and don't have a 
parameter that starts with a '/' ...

Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:

   

OK, I have simplelog set to debug and I don't see any errors - it 
seems to parse my tiles-def.xml just fine, from what I can see.

?!?

Hubert Rabago wrote:

 

I got this yesterday.  It means Tiles didn't intercept your forward 
request
because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump 
the tiles
it'll recognize when you app starts up.  Make sure yours is listed.

I'm using a tile with a ForwardAction now, so I know it works.  Hope 
you find it.

--- Ruth, Brice [EMAIL PROTECTED] wrote:

   

I'm following the instructions provided here: 
http://jakarta.apache.org/struts/userGuide/building_view.html 
(section 3.4.3) for incorporating tiles definitions in 
struts-config.xml, and when the ActionServlet receives a request for 
an action who's parameter is a tile definition name (such as 
.baseLayout), I get the following exception:

javax.servlet.ServletException: Path .baseLayout does not start with 
a / character

My action is defined like so:

  action
  path=/US/tilestest
  type=org.apache.struts.actions.ForwardAction
  parameter=.baseLayout/
And I've defined the plug-in for the Tiles requestor.

plug-in
  className=org.apache.struts.tiles.TilesPlugin
  set-property
  property=definitions-config
  value=/WEB-INF/tiles-defs.xml/
/plug-in
My tiles-defs.xml has one simple entry:

  definition name=.baseLayout 
path=/common/layouts/baseLayout.jsp/

within the tiles-definitions node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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

   

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


   



__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
I'll try this, thanks.

Mikael Eriksson - Swedish Connection wrote:

One thing to try might be to use tile names that does not start with a 
dot.
I have done things that look pretty similar but the tilenames was 
things like
output.page1.  The parsing might get confused or by the starting '.'
My actions look like:

action path=/tiles_page1_in
   type=org.apache.struts.actions.ForwardAction
   parameter=output.page1 /
Regards

At 15:26 2003-11-03 -0600, you wrote:

I'm ripping my hair out here, guys ... what's going on with my 
config?! I can't see anything wrong in the debug output, yet Struts 
still is balking at actions that use the ForwardAction class and 
don't have a parameter that starts with a '/' ...

Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:

OK, I have simplelog set to debug and I don't see any errors - it 
seems to parse my tiles-def.xml just fine, from what I can see.

?!?

Hubert Rabago wrote:

I got this yesterday.  It means Tiles didn't intercept your forward 
request
because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll 
dump the tiles
it'll recognize when you app starts up.  Make sure yours is listed.

I'm using a tile with a ForwardAction now, so I know it works.  
Hope you find it.

--- Ruth, Brice [EMAIL PROTECTED] wrote:


I'm following the instructions provided here: 
http://jakarta.apache.org/struts/userGuide/building_view.html 
(section 3.4.3) for incorporating tiles definitions in 
struts-config.xml, and when the ActionServlet receives a request 
for an action who's parameter is a tile definition name (such as 
.baseLayout), I get the following exception:

javax.servlet.ServletException: Path .baseLayout does not start 
with a / character

My action is defined like so:

   action
   path=/US/tilestest
   type=org.apache.struts.actions.ForwardAction
   parameter=.baseLayout/
And I've defined the plug-in for the Tiles requestor.

 plug-in
   className=org.apache.struts.tiles.TilesPlugin
   set-property
   property=definitions-config
   value=/WEB-INF/tiles-defs.xml/
 /plug-in
My tiles-defs.xml has one simple entry:

   definition name=.baseLayout 
path=/common/layouts/baseLayout.jsp/

within the tiles-definitions node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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



__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
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]
--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Hubert Rabago
I've had success with tile names starting with ., and with ForwardAction.  I
haven't combined both yet, but can't imagine why a combination would fail.
What I haven't tried is a path like /US/tilestest.  It's always been /myPath
for me.  
Don't know if that helps.

--- Mikael Eriksson - Swedish Connection [EMAIL PROTECTED] wrote:
 
 One thing to try might be to use tile names that does not start with a dot.
 I have done things that look pretty similar but the tilenames was things like
 output.page1.  The parsing might get confused or by the starting '.'
 My actions look like:
 
  action path=/tiles_page1_in
 type=org.apache.struts.actions.ForwardAction
 parameter=output.page1 /
 
 
 Regards
 
 
 At 15:26 2003-11-03 -0600, you wrote:
 I'm ripping my hair out here, guys ... what's going on with my config?! I 
 can't see anything wrong in the debug output, yet Struts still is balking 
 at actions that use the ForwardAction class and don't have a parameter 
 that starts with a '/' ...
 
 Please, please help!! (currently in begging mode, bribing is next :))
 
 Ruth, Brice wrote:
 
 OK, I have simplelog set to debug and I don't see any errors - it seems 
 to parse my tiles-def.xml just fine, from what I can see.
 
 ?!?
 
 Hubert Rabago wrote:
 
 I got this yesterday.  It means Tiles didn't intercept your forward request
 because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
 If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the 
 tiles
 it'll recognize when you app starts up.  Make sure yours is listed.
 
 I'm using a tile with a ForwardAction now, so I know it works.  Hope you 
 find it.
 
 --- Ruth, Brice [EMAIL PROTECTED] wrote:
 
 
 I'm following the instructions provided here: 
 http://jakarta.apache.org/struts/userGuide/building_view.html (section 
 3.4.3) for incorporating tiles definitions in struts-config.xml, and 
 when the ActionServlet receives a request for an action who's parameter 
 is a tile definition name (such as .baseLayout), I get the following
 exception:
 
 javax.servlet.ServletException: Path .baseLayout does not start with a 
 / character
 
 My action is defined like so:
 
 action
 path=/US/tilestest
 type=org.apache.struts.actions.ForwardAction
 parameter=.baseLayout/
 
 And I've defined the plug-in for the Tiles requestor.
 
   plug-in
 className=org.apache.struts.tiles.TilesPlugin
 set-property
 property=definitions-config
 value=/WEB-INF/tiles-defs.xml/
   /plug-in
 
 My tiles-defs.xml has one simple entry:
 
 definition name=.baseLayout path=/common/layouts/baseLayout.jsp/
 
 within the tiles-definitions node.
 
 Any ideas? Thanks!
 
 --
 Brice D. Ruth
 Sr. IT Analyst
 Fiskars Brands, Inc.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 __
 Do you Yahoo!?
 Exclusive Video Premiere - Britney Spears
 http://launch.yahoo.com/promos/britneyspears/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 --
 Brice D. Ruth
 Sr. IT Analyst
 Fiskars Brands, Inc.
 
 
 
 -
 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]
 


__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

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



Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
No go :( No discernable difference in end-effect or logging.

Mikael Eriksson - Swedish Connection wrote:

One thing to try might be to use tile names that does not start with a 
dot.
I have done things that look pretty similar but the tilenames was 
things like
output.page1.  The parsing might get confused or by the starting '.'
My actions look like:

action path=/tiles_page1_in
   type=org.apache.struts.actions.ForwardAction
   parameter=output.page1 /
Regards

At 15:26 2003-11-03 -0600, you wrote:

I'm ripping my hair out here, guys ... what's going on with my 
config?! I can't see anything wrong in the debug output, yet Struts 
still is balking at actions that use the ForwardAction class and 
don't have a parameter that starts with a '/' ...

Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:

OK, I have simplelog set to debug and I don't see any errors - it 
seems to parse my tiles-def.xml just fine, from what I can see.

?!?

Hubert Rabago wrote:

I got this yesterday.  It means Tiles didn't intercept your forward 
request
because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll 
dump the tiles
it'll recognize when you app starts up.  Make sure yours is listed.

I'm using a tile with a ForwardAction now, so I know it works.  
Hope you find it.

--- Ruth, Brice [EMAIL PROTECTED] wrote:


I'm following the instructions provided here: 
http://jakarta.apache.org/struts/userGuide/building_view.html 
(section 3.4.3) for incorporating tiles definitions in 
struts-config.xml, and when the ActionServlet receives a request 
for an action who's parameter is a tile definition name (such as 
.baseLayout), I get the following exception:

javax.servlet.ServletException: Path .baseLayout does not start 
with a / character

My action is defined like so:

   action
   path=/US/tilestest
   type=org.apache.struts.actions.ForwardAction
   parameter=.baseLayout/
And I've defined the plug-in for the Tiles requestor.

 plug-in
   className=org.apache.struts.tiles.TilesPlugin
   set-property
   property=definitions-config
   value=/WEB-INF/tiles-defs.xml/
 /plug-in
My tiles-defs.xml has one simple entry:

   definition name=.baseLayout 
path=/common/layouts/baseLayout.jsp/

within the tiles-definitions node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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



__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
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]
--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
No difference ... just changed it to /tilestest.

Hubert Rabago wrote:

I've had success with tile names starting with ., and with ForwardAction.  I
haven't combined both yet, but can't imagine why a combination would fail.
What I haven't tried is a path like /US/tilestest.  It's always been /myPath
for me.  
Don't know if that helps.

--- Mikael Eriksson - Swedish Connection [EMAIL PROTECTED] wrote:
 

One thing to try might be to use tile names that does not start with a dot.
I have done things that look pretty similar but the tilenames was things like
output.page1.  The parsing might get confused or by the starting '.'
My actions look like:
action path=/tiles_page1_in
   type=org.apache.struts.actions.ForwardAction
   parameter=output.page1 /
Regards

At 15:26 2003-11-03 -0600, you wrote:
   

I'm ripping my hair out here, guys ... what's going on with my config?! I 
can't see anything wrong in the debug output, yet Struts still is balking 
at actions that use the ForwardAction class and don't have a parameter 
that starts with a '/' ...

Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:

 

OK, I have simplelog set to debug and I don't see any errors - it seems 
to parse my tiles-def.xml just fine, from what I can see.

?!?

Hubert Rabago wrote:

   

I got this yesterday.  It means Tiles didn't intercept your forward request
because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the 
tiles
it'll recognize when you app starts up.  Make sure yours is listed.

I'm using a tile with a ForwardAction now, so I know it works.  Hope you 
find it.

--- Ruth, Brice [EMAIL PROTECTED] wrote:

 

I'm following the instructions provided here: 
http://jakarta.apache.org/struts/userGuide/building_view.html (section 
3.4.3) for incorporating tiles definitions in struts-config.xml, and 
when the ActionServlet receives a request for an action who's parameter 
is a tile definition name (such as .baseLayout), I get the following
   

exception:
   

javax.servlet.ServletException: Path .baseLayout does not start with a 
/ character

My action is defined like so:

  action
  path=/US/tilestest
  type=org.apache.struts.actions.ForwardAction
  parameter=.baseLayout/
And I've defined the plug-in for the Tiles requestor.

plug-in
  className=org.apache.struts.tiles.TilesPlugin
  set-property
  property=definitions-config
  value=/WEB-INF/tiles-defs.xml/
/plug-in
My tiles-defs.xml has one simple entry:

  definition name=.baseLayout path=/common/layouts/baseLayout.jsp/

within the tiles-definitions node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
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]
   



__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Hubert Rabago
I dunno.  Try to find some other possible causes.  Do you only have one
struts-config.xml?  Maybe you have multiple and the different plug-ins are
causing problems.  Are you using a custom RequestProcessor?  If you are, it must
extend TilesRequestProcessor or else Tiles can't intercept your forwards.  

--- Ruth, Brice [EMAIL PROTECTED] wrote:
 No difference ... just changed it to /tilestest.
 
 Hubert Rabago wrote:
 
 I've had success with tile names starting with ., and with ForwardAction.  I
 haven't combined both yet, but can't imagine why a combination would fail.
 What I haven't tried is a path like /US/tilestest.  It's always been
 /myPath
 for me.  
 Don't know if that helps.
 
 --- Mikael Eriksson - Swedish Connection [EMAIL PROTECTED] wrote:
   
 
 One thing to try might be to use tile names that does not start with a dot.
 I have done things that look pretty similar but the tilenames was things like
 output.page1.  The parsing might get confused or by the starting '.'
 My actions look like:
 
  action path=/tiles_page1_in
 type=org.apache.struts.actions.ForwardAction
 parameter=output.page1 /
 
 
 Regards
 
 
 At 15:26 2003-11-03 -0600, you wrote:
 
 
 I'm ripping my hair out here, guys ... what's going on with my config?! I 
 can't see anything wrong in the debug output, yet Struts still is balking 
 at actions that use the ForwardAction class and don't have a parameter 
 that starts with a '/' ...
 
 Please, please help!! (currently in begging mode, bribing is next :))
 
 Ruth, Brice wrote:
 
   
 
 OK, I have simplelog set to debug and I don't see any errors - it seems 
 to parse my tiles-def.xml just fine, from what I can see.
 
 ?!?
 
 Hubert Rabago wrote:
 
 
 
 I got this yesterday.  It means Tiles didn't intercept your forward
 request
 because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
 If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the 
 tiles
 it'll recognize when you app starts up.  Make sure yours is listed.
 
 I'm using a tile with a ForwardAction now, so I know it works.  Hope you 
 find it.
 
 --- Ruth, Brice [EMAIL PROTECTED] wrote:
 
 
   
 
 I'm following the instructions provided here: 
 http://jakarta.apache.org/struts/userGuide/building_view.html (section 
 3.4.3) for incorporating tiles definitions in struts-config.xml, and 
 when the ActionServlet receives a request for an action who's parameter 
 is a tile definition name (such as .baseLayout), I get the following
 
 
 exception:
 
 
 javax.servlet.ServletException: Path .baseLayout does not start with a 
 / character
 
 My action is defined like so:
 
action
path=/US/tilestest
type=org.apache.struts.actions.ForwardAction
parameter=.baseLayout/
 
 And I've defined the plug-in for the Tiles requestor.
 
  plug-in
className=org.apache.struts.tiles.TilesPlugin
set-property
property=definitions-config
value=/WEB-INF/tiles-defs.xml/
  /plug-in
 
 My tiles-defs.xml has one simple entry:
 
definition name=.baseLayout path=/common/layouts/baseLayout.jsp/
 
 within the tiles-definitions node.
 
 Any ideas? Thanks!
 
 --
 Brice D. Ruth
 Sr. IT Analyst
 Fiskars Brands, Inc.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 __
 Do you Yahoo!?
 Exclusive Video Premiere - Britney Spears
 http://launch.yahoo.com/promos/britneyspears/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
   
 
 --
 Brice D. Ruth
 Sr. IT Analyst
 Fiskars Brands, Inc.
 
 
 
 -
 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]
 
 
 
 
 
 __
 Do you Yahoo!?
 Exclusive Video Premiere - Britney Spears
 http://launch.yahoo.com/promos/britneyspears/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
   
 
 
 -- 
 Brice D. Ruth
 Sr. IT Analyst
 Fiskars Brands, Inc.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

-
To 

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
Only one struts-config.xml, and only the default RequestProcessor, far 
as I know ... here's the controller config parameter in struts-config.xml

   controller
   processorClass=org.apache.struts.tiles.TilesRequestProcessor
   nocache=true locale=false/
Hubert Rabago wrote:

I dunno.  Try to find some other possible causes.  Do you only have one
struts-config.xml?  Maybe you have multiple and the different plug-ins are
causing problems.  Are you using a custom RequestProcessor?  If you are, it must
extend TilesRequestProcessor or else Tiles can't intercept your forwards.  

--- Ruth, Brice [EMAIL PROTECTED] wrote:
 

No difference ... just changed it to /tilestest.

Hubert Rabago wrote:

   

I've had success with tile names starting with ., and with ForwardAction.  I
haven't combined both yet, but can't imagine why a combination would fail.
What I haven't tried is a path like /US/tilestest.  It's always been
 

/myPath
   

for me.  
Don't know if that helps.

--- Mikael Eriksson - Swedish Connection [EMAIL PROTECTED] wrote:

 

One thing to try might be to use tile names that does not start with a dot.
I have done things that look pretty similar but the tilenames was things like
output.page1.  The parsing might get confused or by the starting '.'
My actions look like:
   action path=/tiles_page1_in
  type=org.apache.struts.actions.ForwardAction
  parameter=output.page1 /
Regards

At 15:26 2003-11-03 -0600, you wrote:
  

   

I'm ripping my hair out here, guys ... what's going on with my config?! I 
can't see anything wrong in the debug output, yet Struts still is balking 
at actions that use the ForwardAction class and don't have a parameter 
that starts with a '/' ...

Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:



 

OK, I have simplelog set to debug and I don't see any errors - it seems 
to parse my tiles-def.xml just fine, from what I can see.

?!?

Hubert Rabago wrote:

  

   

I got this yesterday.  It means Tiles didn't intercept your forward
 

request
   

because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the 
tiles
it'll recognize when you app starts up.  Make sure yours is listed.

I'm using a tile with a ForwardAction now, so I know it works.  Hope you 
find it.

--- Ruth, Brice [EMAIL PROTECTED] wrote:



 

I'm following the instructions provided here: 
http://jakarta.apache.org/struts/userGuide/building_view.html (section 
3.4.3) for incorporating tiles definitions in struts-config.xml, and 
when the ActionServlet receives a request for an action who's parameter 
is a tile definition name (such as .baseLayout), I get the following
  

   

exception:
  

   

javax.servlet.ServletException: Path .baseLayout does not start with a 
/ character

My action is defined like so:

 action
 path=/US/tilestest
 type=org.apache.struts.actions.ForwardAction
 parameter=.baseLayout/
And I've defined the plug-in for the Tiles requestor.

plug-in
 className=org.apache.struts.tiles.TilesPlugin
 set-property
 property=definitions-config
 value=/WEB-INF/tiles-defs.xml/
/plug-in
My tiles-defs.xml has one simple entry:

 definition name=.baseLayout path=/common/layouts/baseLayout.jsp/

within the tiles-definitions node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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

   

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
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]
  

   

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Hubert Rabago
I haven't tried that before, either.  AFAIK, having the plug-in takes care of
installing the TilesRequestProcessor -- you don't have to specify it.  But since
a subclass works, having that should work, too.

When you run the code, does it show the ff message:

'.baseLayout' - processed as uri

?

--- Ruth, Brice [EMAIL PROTECTED] wrote:
 Only one struts-config.xml, and only the default RequestProcessor, far 
 as I know ... here's the controller config parameter in struts-config.xml
 
 controller
 processorClass=org.apache.struts.tiles.TilesRequestProcessor
 nocache=true locale=false/
 
 
 Hubert Rabago wrote:
 
 I dunno.  Try to find some other possible causes.  Do you only have one
 struts-config.xml?  Maybe you have multiple and the different plug-ins are
 causing problems.  Are you using a custom RequestProcessor?  If you are, it
 must
 extend TilesRequestProcessor or else Tiles can't intercept your forwards.  
 
 --- Ruth, Brice [EMAIL PROTECTED] wrote:
   
 
 No difference ... just changed it to /tilestest.
 
 Hubert Rabago wrote:
 
 
 
 I've had success with tile names starting with ., and with ForwardAction. 
 I
 haven't combined both yet, but can't imagine why a combination would fail.
 What I haven't tried is a path like /US/tilestest.  It's always been
   
 
 /myPath
 
 
 for me.  
 Don't know if that helps.
 
 --- Mikael Eriksson - Swedish Connection [EMAIL PROTECTED] wrote:
  
 
   
 
 One thing to try might be to use tile names that does not start with a dot.
 I have done things that look pretty similar but the tilenames was things
 like
 output.page1.  The parsing might get confused or by the starting '.'
 My actions look like:
 
 action path=/tiles_page1_in
type=org.apache.struts.actions.ForwardAction
parameter=output.page1 /
 
 
 Regards
 
 
 At 15:26 2003-11-03 -0600, you wrote:

 
 
 
 I'm ripping my hair out here, guys ... what's going on with my config?! I 
 can't see anything wrong in the debug output, yet Struts still is balking 
 at actions that use the ForwardAction class and don't have a parameter 
 that starts with a '/' ...
 
 Please, please help!! (currently in begging mode, bribing is next :))
 
 Ruth, Brice wrote:
 
  
 
   
 
 OK, I have simplelog set to debug and I don't see any errors - it seems 
 to parse my tiles-def.xml just fine, from what I can see.
 
 ?!?
 
 Hubert Rabago wrote:
 

 
 
 
 I got this yesterday.  It means Tiles didn't intercept your forward
   
 
 request
 
 
 because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
 If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the
 
 tiles
 it'll recognize when you app starts up.  Make sure yours is listed.
 
 I'm using a tile with a ForwardAction now, so I know it works.  Hope you
 
 find it.
 
 --- Ruth, Brice [EMAIL PROTECTED] wrote:
 
 
  
 
   
 
 I'm following the instructions provided here: 
 http://jakarta.apache.org/struts/userGuide/building_view.html (section 
 3.4.3) for incorporating tiles definitions in struts-config.xml, and 
 when the ActionServlet receives a request for an action who's parameter
 
 is a tile definition name (such as .baseLayout), I get the following

 
 
 
 exception:

 
 
 
 javax.servlet.ServletException: Path .baseLayout does not start with a 
 / character
 
 My action is defined like so:
 
   action
   path=/US/tilestest
   type=org.apache.struts.actions.ForwardAction
   parameter=.baseLayout/
 
 And I've defined the plug-in for the Tiles requestor.
 
 plug-in
   className=org.apache.struts.tiles.TilesPlugin
   set-property
   property=definitions-config
   value=/WEB-INF/tiles-defs.xml/
 /plug-in
 
 My tiles-defs.xml has one simple entry:
 
   definition name=.baseLayout
 path=/common/layouts/baseLayout.jsp/
 
 within the tiles-definitions node.
 
 Any ideas? Thanks!
 
 --
 Brice D. Ruth
 Sr. IT Analyst
 Fiskars Brands, Inc.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 
 
 
 __
 Do you Yahoo!?
 Exclusive Video Premiere - Britney Spears
 http://launch.yahoo.com/promos/britneyspears/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  
 
   
 
 --
 Brice D. Ruth
 Sr. IT Analyst
 Fiskars Brands, Inc.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
  
 
   
 
 -
 To unsubscribe, e-mail: [EMAIL 

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
Where should I be looking for this message?

Hubert Rabago wrote:

I haven't tried that before, either.  AFAIK, having the plug-in takes care of
installing the TilesRequestProcessor -- you don't have to specify it.  But since
a subclass works, having that should work, too.
When you run the code, does it show the ff message:

'.baseLayout' - processed as uri

?

--- Ruth, Brice [EMAIL PROTECTED] wrote:
 

Only one struts-config.xml, and only the default RequestProcessor, far 
as I know ... here's the controller config parameter in struts-config.xml

   controller
   processorClass=org.apache.struts.tiles.TilesRequestProcessor
   nocache=true locale=false/
Hubert Rabago wrote:

   

I dunno.  Try to find some other possible causes.  Do you only have one
struts-config.xml?  Maybe you have multiple and the different plug-ins are
causing problems.  Are you using a custom RequestProcessor?  If you are, it
 

must
   

extend TilesRequestProcessor or else Tiles can't intercept your forwards.  

--- Ruth, Brice [EMAIL PROTECTED] wrote:

 

No difference ... just changed it to /tilestest.

Hubert Rabago wrote:

  

   

I've had success with tile names starting with ., and with ForwardAction. 
 

I
   

haven't combined both yet, but can't imagine why a combination would fail.
What I haven't tried is a path like /US/tilestest.  It's always been


 

/myPath
  

   

for me.  
Don't know if that helps.

--- Mikael Eriksson - Swedish Connection [EMAIL PROTECTED] wrote:



 

One thing to try might be to use tile names that does not start with a dot.
I have done things that look pretty similar but the tilenames was things
   

like
   

output.page1.  The parsing might get confused or by the starting '.'
My actions look like:
  action path=/tiles_page1_in
 type=org.apache.struts.actions.ForwardAction
 parameter=output.page1 /
Regards

At 15:26 2003-11-03 -0600, you wrote:
 

  

   

I'm ripping my hair out here, guys ... what's going on with my config?! I 
can't see anything wrong in the debug output, yet Struts still is balking 
at actions that use the ForwardAction class and don't have a parameter 
that starts with a '/' ...

Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:

   



 

OK, I have simplelog set to debug and I don't see any errors - it seems 
to parse my tiles-def.xml just fine, from what I can see.

?!?

Hubert Rabago wrote:

 

  

   

I got this yesterday.  It means Tiles didn't intercept your forward


 

request
  

   

because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the
 

tiles
it'll recognize when you app starts up.  Make sure yours is listed.
I'm using a tile with a ForwardAction now, so I know it works.  Hope you
 

find it.

--- Ruth, Brice [EMAIL PROTECTED] wrote:

   



 

I'm following the instructions provided here: 
http://jakarta.apache.org/struts/userGuide/building_view.html (section 
3.4.3) for incorporating tiles definitions in struts-config.xml, and 
when the ActionServlet receives a request for an action who's parameter
   

is a tile definition name (such as .baseLayout), I get the following
 

  

   

exception:
 

  

   

javax.servlet.ServletException: Path .baseLayout does not start with a 
/ character

My action is defined like so:

action
path=/US/tilestest
type=org.apache.struts.actions.ForwardAction
parameter=.baseLayout/
And I've defined the plug-in for the Tiles requestor.

plug-in
className=org.apache.struts.tiles.TilesPlugin
set-property
property=definitions-config
value=/WEB-INF/tiles-defs.xml/
/plug-in
My tiles-defs.xml has one simple entry:

definition name=.baseLayout
   

path=/common/layouts/baseLayout.jsp/
   

within the tiles-definitions node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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

  

   

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   



 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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

 

RE: ForwardAction not picking up Tiles defs?

2003-11-03 Thread David Friedman
Tiles work with starting dots.  I use it that way myself.  I think I picked
up that suggestion from Ted's book Struts In Action.

What is the exact URL you are using?  Do regular non-tiles actions work for
your webapp?
Regards,
David

-Original Message-
From: Mikael Eriksson - Swedish Connection [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 4:29 PM
To: Struts Users Mailing List
Subject: Re: ForwardAction not picking up Tiles defs?



One thing to try might be to use tile names that does not start with a dot.
I have done things that look pretty similar but the tilenames was things
like
output.page1.  The parsing might get confused or by the starting '.'
My actions look like:

 action path=/tiles_page1_in
type=org.apache.struts.actions.ForwardAction
parameter=output.page1 /


Regards


At 15:26 2003-11-03 -0600, you wrote:
I'm ripping my hair out here, guys ... what's going on with my config?! I
can't see anything wrong in the debug output, yet Struts still is balking
at actions that use the ForwardAction class and don't have a parameter
that starts with a '/' ...

Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:

OK, I have simplelog set to debug and I don't see any errors - it seems
to parse my tiles-def.xml just fine, from what I can see.

?!?

Hubert Rabago wrote:

I got this yesterday.  It means Tiles didn't intercept your forward
request
because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the
tiles
it'll recognize when you app starts up.  Make sure yours is listed.

I'm using a tile with a ForwardAction now, so I know it works.  Hope you
find it.

--- Ruth, Brice [EMAIL PROTECTED] wrote:


I'm following the instructions provided here:
http://jakarta.apache.org/struts/userGuide/building_view.html (section
3.4.3) for incorporating tiles definitions in struts-config.xml, and
when the ActionServlet receives a request for an action who's parameter
is a tile definition name (such as .baseLayout), I get the following
exception:

javax.servlet.ServletException: Path .baseLayout does not start with a
/ character

My action is defined like so:

action
path=/US/tilestest
type=org.apache.struts.actions.ForwardAction
parameter=.baseLayout/

And I've defined the plug-in for the Tiles requestor.

  plug-in
className=org.apache.struts.tiles.TilesPlugin
set-property
property=definitions-config
value=/WEB-INF/tiles-defs.xml/
  /plug-in

My tiles-defs.xml has one simple entry:

definition name=.baseLayout
path=/common/layouts/baseLayout.jsp/

within the tiles-definitions node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.



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





__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

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



--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.



-
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]


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



Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Hubert Rabago
In the debug output of Tiles/simplelog.

'.baseLayout' - processed as uri
-or-
'.baseLayout' - processed as definition

should appear there just before the request fails.
Before these lines, there should be a processForwardConfig(.baseLayout,...
as well.

--- Ruth, Brice [EMAIL PROTECTED] wrote:
 Where should I be looking for this message?
 
 Hubert Rabago wrote:
 
 I haven't tried that before, either.  AFAIK, having the plug-in takes care of
 installing the TilesRequestProcessor -- you don't have to specify it.  But
 since
 a subclass works, having that should work, too.
 
 When you run the code, does it show the ff message:
 
 '.baseLayout' - processed as uri
 
 ?
 
 --- Ruth, Brice [EMAIL PROTECTED] wrote:
   
 
 Only one struts-config.xml, and only the default RequestProcessor, far 
 as I know ... here's the controller config parameter in struts-config.xml
 
 controller
 processorClass=org.apache.struts.tiles.TilesRequestProcessor
 nocache=true locale=false/
 
 
 Hubert Rabago wrote:
 
 
 
 I dunno.  Try to find some other possible causes.  Do you only have one
 struts-config.xml?  Maybe you have multiple and the different plug-ins are
 causing problems.  Are you using a custom RequestProcessor?  If you are, it
   
 
 must
 
 
 extend TilesRequestProcessor or else Tiles can't intercept your forwards.  
 
 --- Ruth, Brice [EMAIL PROTECTED] wrote:
  
 
   
 
 No difference ... just changed it to /tilestest.
 
 Hubert Rabago wrote:
 

 
 
 
 I've had success with tile names starting with ., and with
 ForwardAction. 
   
 
 I
 
 
 haven't combined both yet, but can't imagine why a combination would fail.
 What I haven't tried is a path like /US/tilestest.  It's always been
  
 
   
 
 /myPath

 
 
 
 for me.  
 Don't know if that helps.
 
 --- Mikael Eriksson - Swedish Connection [EMAIL PROTECTED] wrote:
 
 
  
 
   
 
 One thing to try might be to use tile names that does not start with a
 dot.
 I have done things that look pretty similar but the tilenames was things
 
 
 like
 
 
 output.page1.  The parsing might get confused or by the starting '.'
 My actions look like:
 
action path=/tiles_page1_in
   type=org.apache.struts.actions.ForwardAction
   parameter=output.page1 /
 
 
 Regards
 
 
 At 15:26 2003-11-03 -0600, you wrote:
   
 

 
 
 
 I'm ripping my hair out here, guys ... what's going on with my config?!
 I 
 can't see anything wrong in the debug output, yet Struts still is
 balking 
 at actions that use the ForwardAction class and don't have a parameter 
 that starts with a '/' ...
 
 Please, please help!! (currently in begging mode, bribing is next :))
 
 Ruth, Brice wrote:
 
 
 
  
 
   
 
 OK, I have simplelog set to debug and I don't see any errors - it seems
 
 to parse my tiles-def.xml just fine, from what I can see.
 
 ?!?
 
 Hubert Rabago wrote:
 
   
 

 
 
 
 I got this yesterday.  It means Tiles didn't intercept your forward
  
 
   
 
 request

 
 
 
 because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
 If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump
 the
   
 
 tiles
 it'll recognize when you app starts up.  Make sure yours is listed.
 
 I'm using a tile with a ForwardAction now, so I know it works.  Hope
 you
   
 
 find it.
 
 --- Ruth, Brice [EMAIL PROTECTED] wrote:
 
 
 
 
  
 
   
 
 I'm following the instructions provided here: 
 http://jakarta.apache.org/struts/userGuide/building_view.html
 (section 
 3.4.3) for incorporating tiles definitions in struts-config.xml, and 
 when the ActionServlet receives a request for an action who's
 parameter
 
 
 is a tile definition name (such as .baseLayout), I get the following
   
 

 
 
 
 exception:
   
 

 
 
 
 javax.servlet.ServletException: Path .baseLayout does not start with
 a 
 / character
 
 My action is defined like so:
 
  action
  path=/US/tilestest
 
=== message truncated ===


__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

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



Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
Everything else works, I'm in the midst of following Ted's refactoring 
approach and moving my JSPs that have tiles:insert statements to tile 
definitions that I can extend  overload.

David Friedman wrote:

Tiles work with starting dots.  I use it that way myself.  I think I picked
up that suggestion from Ted's book Struts In Action.
What is the exact URL you are using?  Do regular non-tiles actions work for
your webapp?
Regards,
David
-Original Message-
From: Mikael Eriksson - Swedish Connection [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 4:29 PM
To: Struts Users Mailing List
Subject: Re: ForwardAction not picking up Tiles defs?


One thing to try might be to use tile names that does not start with a dot.
I have done things that look pretty similar but the tilenames was things
like
output.page1.  The parsing might get confused or by the starting '.'
My actions look like:
action path=/tiles_page1_in
   type=org.apache.struts.actions.ForwardAction
   parameter=output.page1 /
Regards

At 15:26 2003-11-03 -0600, you wrote:
 

I'm ripping my hair out here, guys ... what's going on with my config?! I
can't see anything wrong in the debug output, yet Struts still is balking
at actions that use the ForwardAction class and don't have a parameter
that starts with a '/' ...
Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:

   

OK, I have simplelog set to debug and I don't see any errors - it seems
to parse my tiles-def.xml just fine, from what I can see.
?!?

Hubert Rabago wrote:

 

I got this yesterday.  It means Tiles didn't intercept your forward
   

request
 

because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the
tiles
it'll recognize when you app starts up.  Make sure yours is listed.
I'm using a tile with a ForwardAction now, so I know it works.  Hope you
find it.
--- Ruth, Brice [EMAIL PROTECTED] wrote:

   

I'm following the instructions provided here:
http://jakarta.apache.org/struts/userGuide/building_view.html (section
3.4.3) for incorporating tiles definitions in struts-config.xml, and
when the ActionServlet receives a request for an action who's parameter
is a tile definition name (such as .baseLayout), I get the following
 

exception:
 

javax.servlet.ServletException: Path .baseLayout does not start with a
/ character
My action is defined like so:

  action
  path=/US/tilestest
  type=org.apache.struts.actions.ForwardAction
  parameter=.baseLayout/
And I've defined the plug-in for the Tiles requestor.

plug-in
  className=org.apache.struts.tiles.TilesPlugin
  set-property
  property=definitions-config
  value=/WEB-INF/tiles-defs.xml/
/plug-in
My tiles-defs.xml has one simple entry:

  definition name=.baseLayout
 

path=/common/layouts/baseLayout.jsp/
 

within the tiles-definitions node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
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]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


RE: ForwardAction not picking up Tiles defs?

2003-11-03 Thread David Friedman
You can enable tiles debugging output to see information like the below.  It
came from my tiles tiles-defs.xml definition named .success.Page.  I
setup a forward for that action so the mapping success goes to
.success.Page, which pulls up /success.jsp for me.  It works fine on
Struts 1.1 with the dot notation.  I believe I used it on 1.0 (when I was
learning) with the dot notation as well.

[INFO] TilesRequestProcessor - -Tiles definition factory found for request
processor ''.
[DEBUG] TilesRequestProcessor - -processForwardConfig(.success.Page, false)
[DEBUG] TilesRequestProcessor - -uri=/success.jsp doInclude=false
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.struts.util.LocalStrings', returnNull=true
[DEBUG] TilesRequestProcessor - -  '.success.Page' - processed as definition

I turned this on by setting up two files related to commons-logging.

1) /WEB-INF/classes/simplelog.properties with the contents:
org.apache.commons.logging.simplelog.log.org.apache.struts.tiles.TilesReques
tProcessor=trace

2) /WEB-INF/classes/commons-logging.properties with the contents:
org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
org.apache.commons.logging.simplelog.defaultlog=info
org.apache.commons.logging.simplelog.showlogname=true
org.apache.commons.logging.simplelog.showdatetime=true

Try turning it on for yourself and see how far it goes with the forwards and
if it even goes to the tiles definition.  It could be something as simple as
a plain typing error.  I've had items one letter off that I kept missing.

Regards,
David

-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 5:08 PM
To: Struts Users Mailing List
Subject: Re: ForwardAction not picking up Tiles defs?


Where should I be looking for this message?

Hubert Rabago wrote:

I haven't tried that before, either.  AFAIK, having the plug-in takes care
of
installing the TilesRequestProcessor -- you don't have to specify it.  But
since
a subclass works, having that should work, too.

When you run the code, does it show the ff message:

'.baseLayout' - processed as uri

?

--- Ruth, Brice [EMAIL PROTECTED] wrote:


Only one struts-config.xml, and only the default RequestProcessor, far
as I know ... here's the controller config parameter in
struts-config.xml

controller
processorClass=org.apache.struts.tiles.TilesRequestProcessor
nocache=true locale=false/


Hubert Rabago wrote:



I dunno.  Try to find some other possible causes.  Do you only have one
struts-config.xml?  Maybe you have multiple and the different plug-ins
are
causing problems.  Are you using a custom RequestProcessor?  If you are,
it


must


extend TilesRequestProcessor or else Tiles can't intercept your forwards.

--- Ruth, Brice [EMAIL PROTECTED] wrote:




No difference ... just changed it to /tilestest.

Hubert Rabago wrote:





I've had success with tile names starting with ., and with
ForwardAction.


I


haven't combined both yet, but can't imagine why a combination would
fail.
What I haven't tried is a path like /US/tilestest.  It's always been




/myPath




for me.
Don't know if that helps.

--- Mikael Eriksson - Swedish Connection [EMAIL PROTECTED] wrote:






One thing to try might be to use tile names that does not start with a
dot.
I have done things that look pretty similar but the tilenames was
things


like


output.page1.  The parsing might get confused or by the starting '.'
My actions look like:

   action path=/tiles_page1_in
  type=org.apache.struts.actions.ForwardAction
  parameter=output.page1 /


Regards


At 15:26 2003-11-03 -0600, you wrote:






I'm ripping my hair out here, guys ... what's going on with my
config?! I
can't see anything wrong in the debug output, yet Struts still is
balking
at actions that use the ForwardAction class and don't have a
parameter
that starts with a '/' ...

Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:







OK, I have simplelog set to debug and I don't see any errors - it
seems
to parse my tiles-def.xml just fine, from what I can see.

?!?

Hubert Rabago wrote:







I got this yesterday.  It means Tiles didn't intercept your forward




request




because 1) Tiles wasn't called or 2) Tiles didn't recognize your
tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll
dump the


tiles
it'll recognize when you app starts up.  Make sure yours is listed.

I'm using a tile with a ForwardAction now, so I know it works.
Hope you


find it.

--- Ruth, Brice [EMAIL PROTECTED] wrote:








I'm following the instructions provided here:
http://jakarta.apache.org/struts/userGuide/building_view.html
(section
3.4.3) for incorporating tiles definitions in struts-config.xml,
and
when the ActionServlet receives a request for an action who's

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
I see this:

[DEBUG] I18nFactorySet - -definitions={baseLayout={name=baseLayout, 
path=/common/layouts/baseLayout.jsp, role=null, controller=null, 
controllerType=null, controllerInstance=null, attributes={}}
}
[DEBUG] I18nFactorySet - -factory loaded : {baseLayout={name=baseLayout, 
path=/common/layouts/baseLayout.jsp, role=null, controller=null, 
controllerType=null, controllerInstance=null, attributes={}}
}
[DEBUG] I18nFactorySet - -default factory:{baseLayout={name=baseLayout, 
path=/common/layouts/baseLayout.jsp, role=null, controller=null, 
controllerType=null, controllerInstance=null, attributes={}}
}
[DEBUG] I18nFactorySet - -Factory initialized from file 
'/WEB-INF/tiles-defs.xml'.

My definition is now called baseLayout instead of .baseLayout - I 
haven't changed it back yet from the previous poster's suggestion.

Hubert Rabago wrote:

In the debug output of Tiles/simplelog.

'.baseLayout' - processed as uri
-or-
'.baseLayout' - processed as definition
should appear there just before the request fails.
Before these lines, there should be a processForwardConfig(.baseLayout,...
as well.
--- Ruth, Brice [EMAIL PROTECTED] wrote:
 

Where should I be looking for this message?

Hubert Rabago wrote:

   

I haven't tried that before, either.  AFAIK, having the plug-in takes care of
installing the TilesRequestProcessor -- you don't have to specify it.  But
 

since
   

a subclass works, having that should work, too.

When you run the code, does it show the ff message:

'.baseLayout' - processed as uri

?

--- Ruth, Brice [EMAIL PROTECTED] wrote:

 

Only one struts-config.xml, and only the default RequestProcessor, far 
as I know ... here's the controller config parameter in struts-config.xml

  controller
  processorClass=org.apache.struts.tiles.TilesRequestProcessor
  nocache=true locale=false/
Hubert Rabago wrote:

  

   

I dunno.  Try to find some other possible causes.  Do you only have one
struts-config.xml?  Maybe you have multiple and the different plug-ins are
causing problems.  Are you using a custom RequestProcessor?  If you are, it


 

must
  

   

extend TilesRequestProcessor or else Tiles can't intercept your forwards.  

--- Ruth, Brice [EMAIL PROTECTED] wrote:



 

No difference ... just changed it to /tilestest.

Hubert Rabago wrote:

 

  

   

I've had success with tile names starting with ., and with
 

ForwardAction. 
   



 

I
  

   

haven't combined both yet, but can't imagine why a combination would fail.
What I haven't tried is a path like /US/tilestest.  It's always been
   



 

/myPath
 

  

   

for me.  
Don't know if that helps.

--- Mikael Eriksson - Swedish Connection [EMAIL PROTECTED] wrote:

   



 

One thing to try might be to use tile names that does not start with a
   

dot.
   

I have done things that look pretty similar but the tilenames was things
  

   

like
  

   

output.page1.  The parsing might get confused or by the starting '.'
My actions look like:
 action path=/tiles_page1_in
type=org.apache.struts.actions.ForwardAction
parameter=output.page1 /
Regards

At 15:26 2003-11-03 -0600, you wrote:

 

  

   

I'm ripping my hair out here, guys ... what's going on with my config?!
 

I 
   

can't see anything wrong in the debug output, yet Struts still is
 

balking 
   

at actions that use the ForwardAction class and don't have a parameter 
that starts with a '/' ...

Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:

  

   



 

OK, I have simplelog set to debug and I don't see any errors - it seems
   

to parse my tiles-def.xml just fine, from what I can see.

?!?

Hubert Rabago wrote:



 

  

   

I got this yesterday.  It means Tiles didn't intercept your forward
   



 

request
 

  

   

because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump
 

the
   



tiles
it'll recognize when you app starts up.  Make sure yours is listed.
I'm using a tile with a ForwardAction now, so I know it works.  Hope
 

you
   



find it.

--- Ruth, Brice [EMAIL PROTECTED] wrote:

  

   



 

I'm following the instructions provided here: 
http://jakarta.apache.org/struts/userGuide/building_view.html
   

(section 
   

3.4.3) for incorporating tiles definitions in struts-config.xml, and 
when the ActionServlet receives a request for an action who's
   

parameter
   


Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Hubert Rabago
FYI, got really curious, so I pulled out my test web app, plugged in your
definitions, created /common/layouts/baseLayout.jsp, and everything worked as
expected.  Here's the log:

2003-11-03 16:27:20,637 INFO TilesRequestProcessor.java
tiles.TilesRequestProcessor Tiles definition factory found for request processor
''.
2003-11-03 16:27:20,652 DEBUG TilesRequestProcessor.java
tiles.TilesRequestProcessor processForwardConfig(.baseLayout, true)
2003-11-03 16:27:20,652 DEBUG I18nFactorySet.java xmlDefinition.I18nFactorySet
Can't open file '/WEB-INF/tiles-defs_en_US.xml'
2003-11-03 16:27:20,652 DEBUG I18nFactorySet.java xmlDefinition.I18nFactorySet
Can't open file '/WEB-INF/tiles-defs_en.xml'
2003-11-03 16:27:20,668 DEBUG TilesRequestProcessor.java
tiles.TilesRequestProcessor uri=/common/layouts/baseLayout.jsp doInclude=false
2003-11-03 16:27:20,683 DEBUG TilesRequestProcessor.java
tiles.TilesRequestProcessor   '.baseLayout' - processed as definition

in tiles-defs.xml:
tiles-definitions
definition name=.baseLayout path=/common/layouts/baseLayout.jsp/
/tiles-definitions

in struts-config:
action path=/tilestest
type=org.apache.struts.actions.ForwardAction
parameter=.baseLayout/
...
plug-in
  className=org.apache.struts.tiles.TilesPlugin
  set-property
  property=definitions-config
  value=/WEB-INF/tiles-defs.xml/
/plug-in

I didn't have a controller element.
My test web-app didn't make use of Tiles before, I just plugged it in now.


--- Ruth, Brice [EMAIL PROTECTED] wrote:
 Everything else works, I'm in the midst of following Ted's refactoring 
 approach and moving my JSPs that have tiles:insert statements to tile 
 definitions that I can extend  overload.
 
 David Friedman wrote:
 
 Tiles work with starting dots.  I use it that way myself.  I think I picked
 up that suggestion from Ted's book Struts In Action.
 
 What is the exact URL you are using?  Do regular non-tiles actions work for
 your webapp?
 Regards,
 David
 
 -Original Message-
 From: Mikael Eriksson - Swedish Connection [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 03, 2003 4:29 PM
 To: Struts Users Mailing List
 Subject: Re: ForwardAction not picking up Tiles defs?
 
 
 
 One thing to try might be to use tile names that does not start with a dot.
 I have done things that look pretty similar but the tilenames was things
 like
 output.page1.  The parsing might get confused or by the starting '.'
 My actions look like:
 
  action path=/tiles_page1_in
 type=org.apache.struts.actions.ForwardAction
 parameter=output.page1 /
 
 
 Regards
 
 
 At 15:26 2003-11-03 -0600, you wrote:
   
 
 I'm ripping my hair out here, guys ... what's going on with my config?! I
 can't see anything wrong in the debug output, yet Struts still is balking
 at actions that use the ForwardAction class and don't have a parameter
 that starts with a '/' ...
 
 Please, please help!! (currently in begging mode, bribing is next :))
 
 Ruth, Brice wrote:
 
 
 
 OK, I have simplelog set to debug and I don't see any errors - it seems
 to parse my tiles-def.xml just fine, from what I can see.
 
 ?!?
 
 Hubert Rabago wrote:
 
   
 
 I got this yesterday.  It means Tiles didn't intercept your forward
 
 
 request
   
 
 because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
 If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the
 tiles
 it'll recognize when you app starts up.  Make sure yours is listed.
 
 I'm using a tile with a ForwardAction now, so I know it works.  Hope you
 find it.
 
 --- Ruth, Brice [EMAIL PROTECTED] wrote:
 
 
 
 
 I'm following the instructions provided here:
 http://jakarta.apache.org/struts/userGuide/building_view.html (section
 3.4.3) for incorporating tiles definitions in struts-config.xml, and
 when the ActionServlet receives a request for an action who's parameter
 is a tile definition name (such as .baseLayout), I get the following
   
 
 exception:
   
 
 javax.servlet.ServletException: Path .baseLayout does not start with a
 / character
 
 My action is defined like so:
 
action
path=/US/tilestest
type=org.apache.struts.actions.ForwardAction
parameter=.baseLayout/
 
 And I've defined the plug-in for the Tiles requestor.
 
  plug-in
className=org.apache.struts.tiles.TilesPlugin
set-property
property=definitions-config
value=/WEB-INF/tiles-defs.xml/
  /plug-in
 
 My tiles-defs.xml has one simple entry:
 
definition name=.baseLayout
   
 
 path=/common/layouts/baseLayout.jsp/
   
 
 within the tiles-definitions node.
 
 Any ideas? Thanks!
 
 --
 Brice D. Ruth
 Sr. IT Analyst
 Fiskars Brands, Inc.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED

RE: ForwardAction not picking up Tiles defs?

2003-11-03 Thread David Friedman
I just tried using an org.apache.struts.action.ForwardAction with the
'parameter being a tile starting with a dot name .success.Page and it
went through  as expected on Struts v 1.1.  What version of Struts are you
using?  My definition was:

action path=/ruthTest
type=org.apache.struts.actions.ForwardAction
name=DynaNew
parameter=.success.Page/

:)

Regards,
David

-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 5:20 PM
To: Struts Users Mailing List
Subject: Re: ForwardAction not picking up Tiles defs?


Everything else works, I'm in the midst of following Ted's refactoring
approach and moving my JSPs that have tiles:insert statements to tile
definitions that I can extend  overload.

David Friedman wrote:

Tiles work with starting dots.  I use it that way myself.  I think I picked
up that suggestion from Ted's book Struts In Action.

What is the exact URL you are using?  Do regular non-tiles actions work for
your webapp?
Regards,
David

-Original Message-
From: Mikael Eriksson - Swedish Connection [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 4:29 PM
To: Struts Users Mailing List
Subject: Re: ForwardAction not picking up Tiles defs?



One thing to try might be to use tile names that does not start with a dot.
I have done things that look pretty similar but the tilenames was things
like
output.page1.  The parsing might get confused or by the starting '.'
My actions look like:

 action path=/tiles_page1_in
type=org.apache.struts.actions.ForwardAction
parameter=output.page1 /


Regards


At 15:26 2003-11-03 -0600, you wrote:


I'm ripping my hair out here, guys ... what's going on with my config?! I
can't see anything wrong in the debug output, yet Struts still is balking
at actions that use the ForwardAction class and don't have a parameter
that starts with a '/' ...

Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:



OK, I have simplelog set to debug and I don't see any errors - it seems
to parse my tiles-def.xml just fine, from what I can see.

?!?

Hubert Rabago wrote:



I got this yesterday.  It means Tiles didn't intercept your forward


request


because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the
tiles
it'll recognize when you app starts up.  Make sure yours is listed.

I'm using a tile with a ForwardAction now, so I know it works.  Hope you
find it.

--- Ruth, Brice [EMAIL PROTECTED] wrote:




I'm following the instructions provided here:
http://jakarta.apache.org/struts/userGuide/building_view.html (section
3.4.3) for incorporating tiles definitions in struts-config.xml, and
when the ActionServlet receives a request for an action who's parameter
is a tile definition name (such as .baseLayout), I get the following


exception:


javax.servlet.ServletException: Path .baseLayout does not start with a
/ character

My action is defined like so:

   action
   path=/US/tilestest
   type=org.apache.struts.actions.ForwardAction
   parameter=.baseLayout/

And I've defined the plug-in for the Tiles requestor.

 plug-in
   className=org.apache.struts.tiles.TilesPlugin
   set-property
   property=definitions-config
   value=/WEB-INF/tiles-defs.xml/
 /plug-in

My tiles-defs.xml has one simple entry:

   definition name=.baseLayout


path=/common/layouts/baseLayout.jsp/


within the tiles-definitions node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.



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





__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

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




--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.



-
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]


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




--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.



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


-
To unsubscribe, e-mail: [EMAIL PROTECTED

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
Should I just scrap my controller element?!

Hubert Rabago wrote:

FYI, got really curious, so I pulled out my test web app, plugged in your
definitions, created /common/layouts/baseLayout.jsp, and everything worked as
expected.  Here's the log:
2003-11-03 16:27:20,637 INFO TilesRequestProcessor.java
tiles.TilesRequestProcessor Tiles definition factory found for request processor
''.
2003-11-03 16:27:20,652 DEBUG TilesRequestProcessor.java
tiles.TilesRequestProcessor processForwardConfig(.baseLayout, true)
2003-11-03 16:27:20,652 DEBUG I18nFactorySet.java xmlDefinition.I18nFactorySet
Can't open file '/WEB-INF/tiles-defs_en_US.xml'
2003-11-03 16:27:20,652 DEBUG I18nFactorySet.java xmlDefinition.I18nFactorySet
Can't open file '/WEB-INF/tiles-defs_en.xml'
2003-11-03 16:27:20,668 DEBUG TilesRequestProcessor.java
tiles.TilesRequestProcessor uri=/common/layouts/baseLayout.jsp doInclude=false
2003-11-03 16:27:20,683 DEBUG TilesRequestProcessor.java
tiles.TilesRequestProcessor   '.baseLayout' - processed as definition
in tiles-defs.xml:
tiles-definitions
   definition name=.baseLayout path=/common/layouts/baseLayout.jsp/
/tiles-definitions
in struts-config:
   action path=/tilestest
   type=org.apache.struts.actions.ForwardAction
   parameter=.baseLayout/
...
   plug-in
 className=org.apache.struts.tiles.TilesPlugin
 set-property
 property=definitions-config
 value=/WEB-INF/tiles-defs.xml/
   /plug-in
I didn't have a controller element.
My test web-app didn't make use of Tiles before, I just plugged it in now.
--- Ruth, Brice [EMAIL PROTECTED] wrote:
 

Everything else works, I'm in the midst of following Ted's refactoring 
approach and moving my JSPs that have tiles:insert statements to tile 
definitions that I can extend  overload.

David Friedman wrote:

   

Tiles work with starting dots.  I use it that way myself.  I think I picked
up that suggestion from Ted's book Struts In Action.
What is the exact URL you are using?  Do regular non-tiles actions work for
your webapp?
Regards,
David
-Original Message-
From: Mikael Eriksson - Swedish Connection [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 4:29 PM
To: Struts Users Mailing List
Subject: Re: ForwardAction not picking up Tiles defs?


One thing to try might be to use tile names that does not start with a dot.
I have done things that look pretty similar but the tilenames was things
like
output.page1.  The parsing might get confused or by the starting '.'
My actions look like:
   action path=/tiles_page1_in
  type=org.apache.struts.actions.ForwardAction
  parameter=output.page1 /
Regards

At 15:26 2003-11-03 -0600, you wrote:

 

I'm ripping my hair out here, guys ... what's going on with my config?! I
can't see anything wrong in the debug output, yet Struts still is balking
at actions that use the ForwardAction class and don't have a parameter
that starts with a '/' ...
Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:

  

   

OK, I have simplelog set to debug and I don't see any errors - it seems
to parse my tiles-def.xml just fine, from what I can see.
?!?

Hubert Rabago wrote:



 

I got this yesterday.  It means Tiles didn't intercept your forward
  

   

request

 

because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the
tiles
it'll recognize when you app starts up.  Make sure yours is listed.
I'm using a tile with a ForwardAction now, so I know it works.  Hope you
find it.
--- Ruth, Brice [EMAIL PROTECTED] wrote:

  

   

I'm following the instructions provided here:
http://jakarta.apache.org/struts/userGuide/building_view.html (section
3.4.3) for incorporating tiles definitions in struts-config.xml, and
when the ActionServlet receives a request for an action who's parameter
is a tile definition name (such as .baseLayout), I get the following


 

exception:

 

javax.servlet.ServletException: Path .baseLayout does not start with a
/ character
My action is defined like so:

 action
 path=/US/tilestest
 type=org.apache.struts.actions.ForwardAction
 parameter=.baseLayout/
And I've defined the plug-in for the Tiles requestor.

plug-in
 className=org.apache.struts.tiles.TilesPlugin
 set-property
 property=definitions-config
 value=/WEB-INF/tiles-defs.xml/
/plug-in
My tiles-defs.xml has one simple entry:

 definition name=.baseLayout


 

path=/common/layouts/baseLayout.jsp/

 

within the tiles-definitions node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


 

__
Do you Yahoo

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
Far as I know, I'm using 1.1 ... :)

David Friedman wrote:

I just tried using an org.apache.struts.action.ForwardAction with the
'parameter being a tile starting with a dot name .success.Page and it
went through  as expected on Struts v 1.1.  What version of Struts are you
using?  My definition was:
action path=/ruthTest
type=org.apache.struts.actions.ForwardAction
name=DynaNew
parameter=.success.Page/
:)

Regards,
David
-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 5:20 PM
To: Struts Users Mailing List
Subject: Re: ForwardAction not picking up Tiles defs?
Everything else works, I'm in the midst of following Ted's refactoring
approach and moving my JSPs that have tiles:insert statements to tile
definitions that I can extend  overload.
David Friedman wrote:

 

Tiles work with starting dots.  I use it that way myself.  I think I picked
up that suggestion from Ted's book Struts In Action.
What is the exact URL you are using?  Do regular non-tiles actions work for
your webapp?
Regards,
David
-Original Message-
From: Mikael Eriksson - Swedish Connection [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 4:29 PM
To: Struts Users Mailing List
Subject: Re: ForwardAction not picking up Tiles defs?


One thing to try might be to use tile names that does not start with a dot.
I have done things that look pretty similar but the tilenames was things
like
output.page1.  The parsing might get confused or by the starting '.'
My actions look like:
   action path=/tiles_page1_in
  type=org.apache.struts.actions.ForwardAction
  parameter=output.page1 /
Regards

At 15:26 2003-11-03 -0600, you wrote:

   

I'm ripping my hair out here, guys ... what's going on with my config?! I
can't see anything wrong in the debug output, yet Struts still is balking
at actions that use the ForwardAction class and don't have a parameter
that starts with a '/' ...
Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:



 

OK, I have simplelog set to debug and I don't see any errors - it seems
to parse my tiles-def.xml just fine, from what I can see.
?!?

Hubert Rabago wrote:



   

I got this yesterday.  It means Tiles didn't intercept your forward

 

request

   

because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the
tiles
it'll recognize when you app starts up.  Make sure yours is listed.
I'm using a tile with a ForwardAction now, so I know it works.  Hope you
find it.
--- Ruth, Brice [EMAIL PROTECTED] wrote:



 

I'm following the instructions provided here:
http://jakarta.apache.org/struts/userGuide/building_view.html (section
3.4.3) for incorporating tiles definitions in struts-config.xml, and
when the ActionServlet receives a request for an action who's parameter
is a tile definition name (such as .baseLayout), I get the following
   

exception:

   

javax.servlet.ServletException: Path .baseLayout does not start with a
/ character
My action is defined like so:

 action
 path=/US/tilestest
 type=org.apache.struts.actions.ForwardAction
 parameter=.baseLayout/
And I've defined the plug-in for the Tiles requestor.

plug-in
 className=org.apache.struts.tiles.TilesPlugin
 set-property
 property=definitions-config
 value=/WEB-INF/tiles-defs.xml/
/plug-in
My tiles-defs.xml has one simple entry:

 definition name=.baseLayout

   

path=/common/layouts/baseLayout.jsp/

   

within the tiles-definitions node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


   

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
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]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


   

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
THAT WAS IT!! Having the controller element in there screwed the pooch!!

Somehow, though, this is what's in the struts-blank.war that's 
distributed with Struts (verbatim, actually) - it is preconfigured to 
use Tiles, so it uses the TilesRequestProcessor.

[EMAIL PROTECTED](*[EMAIL PROTECTED](@#$

That was a waste of a day ... nice.

Hubert Rabago wrote:

FYI, got really curious, so I pulled out my test web app, plugged in your
definitions, created /common/layouts/baseLayout.jsp, and everything worked as
expected.  Here's the log:
2003-11-03 16:27:20,637 INFO TilesRequestProcessor.java
tiles.TilesRequestProcessor Tiles definition factory found for request processor
''.
2003-11-03 16:27:20,652 DEBUG TilesRequestProcessor.java
tiles.TilesRequestProcessor processForwardConfig(.baseLayout, true)
2003-11-03 16:27:20,652 DEBUG I18nFactorySet.java xmlDefinition.I18nFactorySet
Can't open file '/WEB-INF/tiles-defs_en_US.xml'
2003-11-03 16:27:20,652 DEBUG I18nFactorySet.java xmlDefinition.I18nFactorySet
Can't open file '/WEB-INF/tiles-defs_en.xml'
2003-11-03 16:27:20,668 DEBUG TilesRequestProcessor.java
tiles.TilesRequestProcessor uri=/common/layouts/baseLayout.jsp doInclude=false
2003-11-03 16:27:20,683 DEBUG TilesRequestProcessor.java
tiles.TilesRequestProcessor   '.baseLayout' - processed as definition
in tiles-defs.xml:
tiles-definitions
   definition name=.baseLayout path=/common/layouts/baseLayout.jsp/
/tiles-definitions
in struts-config:
   action path=/tilestest
   type=org.apache.struts.actions.ForwardAction
   parameter=.baseLayout/
...
   plug-in
 className=org.apache.struts.tiles.TilesPlugin
 set-property
 property=definitions-config
 value=/WEB-INF/tiles-defs.xml/
   /plug-in
I didn't have a controller element.
My test web-app didn't make use of Tiles before, I just plugged it in now.
--- Ruth, Brice [EMAIL PROTECTED] wrote:
 

Everything else works, I'm in the midst of following Ted's refactoring 
approach and moving my JSPs that have tiles:insert statements to tile 
definitions that I can extend  overload.

David Friedman wrote:

   

Tiles work with starting dots.  I use it that way myself.  I think I picked
up that suggestion from Ted's book Struts In Action.
What is the exact URL you are using?  Do regular non-tiles actions work for
your webapp?
Regards,
David
-Original Message-
From: Mikael Eriksson - Swedish Connection [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 4:29 PM
To: Struts Users Mailing List
Subject: Re: ForwardAction not picking up Tiles defs?


One thing to try might be to use tile names that does not start with a dot.
I have done things that look pretty similar but the tilenames was things
like
output.page1.  The parsing might get confused or by the starting '.'
My actions look like:
   action path=/tiles_page1_in
  type=org.apache.struts.actions.ForwardAction
  parameter=output.page1 /
Regards

At 15:26 2003-11-03 -0600, you wrote:

 

I'm ripping my hair out here, guys ... what's going on with my config?! I
can't see anything wrong in the debug output, yet Struts still is balking
at actions that use the ForwardAction class and don't have a parameter
that starts with a '/' ...
Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:

  

   

OK, I have simplelog set to debug and I don't see any errors - it seems
to parse my tiles-def.xml just fine, from what I can see.
?!?

Hubert Rabago wrote:



 

I got this yesterday.  It means Tiles didn't intercept your forward
  

   

request

 

because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the
tiles
it'll recognize when you app starts up.  Make sure yours is listed.
I'm using a tile with a ForwardAction now, so I know it works.  Hope you
find it.
--- Ruth, Brice [EMAIL PROTECTED] wrote:

  

   

I'm following the instructions provided here:
http://jakarta.apache.org/struts/userGuide/building_view.html (section
3.4.3) for incorporating tiles definitions in struts-config.xml, and
when the ActionServlet receives a request for an action who's parameter
is a tile definition name (such as .baseLayout), I get the following


 

exception:

 

javax.servlet.ServletException: Path .baseLayout does not start with a
/ character
My action is defined like so:

 action
 path=/US/tilestest
 type=org.apache.struts.actions.ForwardAction
 parameter=.baseLayout/
And I've defined the plug-in for the Tiles requestor.

plug-in
 className=org.apache.struts.tiles.TilesPlugin
 set-property
 property=definitions-config
 value=/WEB-INF/tiles-defs.xml/
/plug-in
My tiles-defs.xml has one simple entry:

 definition name=.baseLayout


 

path=/common/layouts/baseLayout.jsp/

 

within the tiles-definitions node.

Any ideas? Thanks