RE: Weird problem with tiles and struts forward.

2002-04-01 Thread Robert Morse

It's in the installation documentation.


-Original Message-
From: Sanjay Choudhary [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 11:31 AM
To: Struts Users Mailing List
Subject: Re: Weird problem with tiles and struts forward.


Hi Brendan,

I was also facing the same problem while forwarding.
Strange thing is that it didn't give me any exception
nor did it forward the page.

After putting the controller line in Struts-config.xml
its running fine.

Thanks for your suggestion. How the hell did you
figure it out?

-Sanja
--- Struts Newsgroup <[EMAIL PROTECTED]> wrote:
> Subject: Re: Weird problem with tiles and struts
> forward.
> From: "Jack Gao" <[EMAIL PROTECTED]>
>  ===
> Hi, Brendan
>
> Yes, it works Thank you guys so much
>
> Yes, the problem is the controller for tiles, after
> I add it in my
> struts-config.xml file, I got it work!
>
> Thanks a lot in deed, this is a great group!!
>
> Jack
>
> "Brendan Grainger" <[EMAIL PROTECTED]> wrote in
> message
> news:[EMAIL PROTECTED]...
> > Hi Jack,
> >
> > As I said earlier I had exactly the same problem
> as you and so now I've
> done
> > a little detective work to try and figure it out.
> Here is what I've found.
> > At the bottom of my struts-config I have this.
> >
> >   
> >   
> >>
>
processorClass="org.apache.struts.tiles.TilesRequestProcessor">
> >   
> >
> > Don't ask me why, it was in the example so I put
> it in (I'm still kind of
> > new to the world of struts). If I comment it out,
> I get the error you've
> > reported. If I put it in, no error.
> >
> > Looks like I'm working on registration page
> similar to yours, so I quickly
> > put together a tiles version of it. I've attached
> my tiles-def.xml file
> and
> > struts-config.xml file for you to have a look at.
> Please note, my
> > tiles-def.xml file is _really_ simple. I just
> wanted to experiment. In the
> > other version I have I actually extend definitions
> etc. Which I'm going to
> > look at now, to make sure that has nothing to do
> with it.
> >
> > Hope this helps.
> > Brendan
> >
> >
> > -Original Message-
> > From: Wellie W. Chao
> [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, March 31, 2002 9:36 PM
> > To: Struts Users Mailing List
> > Subject: RE: Weird problem with tiles and struts
> forward.
> >
> >
> > Yes, that would be a problem. I'm building some
> pages now that will make
> use
> > of findForward, so I'll let you know if I
> experience success with the
> > forward elements within an action block. If I have
> problems too, then it's
> > probably a bug in Struts where the forward
> attribute works but enclosed
> > forward elements do not work. If I experience
> success, then we can compare
> > web.xml, struts-config.xml, and tiles-defs.xml
> files to see how mine
> differ
> > from yours.
> >
> > -Original Message-
> > From: Struts Newsgroup
> [mailto:@[EMAIL PROTECTED]]
> > Sent: Sunday, March 31, 2002 9:25 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Weird problem with tiles and struts
> forward.
> >
> >
> > Subject: Re: Weird problem with tiles and struts
> forward.
> > From: "Jack Gao" <[EMAIL PROTECTED]>
> >  ===
> > Well, I don't think this is the problem.
> >
> > If I had to use forward attribute instead of
> forward tag, How can I
> forward
> > to different page depend on the result?
> >
> > Jack
> > "Wellie W. Chao" <[EMAIL PROTECTED]> wrote in
> message
> >
> news:[EMAIL PROTECTED]...
> > > Looking at the struts-config.xml file you posted
> in your original
> message,
> > I
> > > note that you have forward entries within the
> action block. I haven't
> > tried
> > > forward entries within an action block yet, so I
> don't know if those
> work.
> > > What I have is this:
> > >
> > >  forward="site.page.admin.index"/>
> > >
> > > The above line contrasts with your action
> blocks:
> > >
> > > 
> > >path="register.success"/>
> > >path="register.failure"/>
> > > 
> > >
> > > Note that in mine, the forward is an attribute
> rather than an enclosed
> > > element.
> > >
> > > -Original Message-
> > > From: Struts N

Re: Weird problem with tiles and struts forward.

2002-04-01 Thread Sanjay Choudhary

Hi Brendan,

I was also facing the same problem while forwarding.
Strange thing is that it didn't give me any exception
nor did it forward the page. 

After putting the controller line in Struts-config.xml
its running fine.

Thanks for your suggestion. How the hell did you
figure it out?

-Sanja
--- Struts Newsgroup <[EMAIL PROTECTED]> wrote:
> Subject: Re: Weird problem with tiles and struts
> forward.
> From: "Jack Gao" <[EMAIL PROTECTED]>
>  ===
> Hi, Brendan
> 
> Yes, it works Thank you guys so much
> 
> Yes, the problem is the controller for tiles, after
> I add it in my
> struts-config.xml file, I got it work!
> 
> Thanks a lot in deed, this is a great group!!
> 
> Jack
> 
> "Brendan Grainger" <[EMAIL PROTECTED]> wrote in
> message
> news:[EMAIL PROTECTED]...
> > Hi Jack,
> >
> > As I said earlier I had exactly the same problem
> as you and so now I've
> done
> > a little detective work to try and figure it out.
> Here is what I've found.
> > At the bottom of my struts-config I have this.
> >
> >   
> >   
> >>
>
processorClass="org.apache.struts.tiles.TilesRequestProcessor">
> >   
> >
> > Don't ask me why, it was in the example so I put
> it in (I'm still kind of
> > new to the world of struts). If I comment it out,
> I get the error you've
> > reported. If I put it in, no error.
> >
> > Looks like I'm working on registration page
> similar to yours, so I quickly
> > put together a tiles version of it. I've attached
> my tiles-def.xml file
> and
> > struts-config.xml file for you to have a look at.
> Please note, my
> > tiles-def.xml file is _really_ simple. I just
> wanted to experiment. In the
> > other version I have I actually extend definitions
> etc. Which I'm going to
> > look at now, to make sure that has nothing to do
> with it.
> >
> > Hope this helps.
> > Brendan
> >
> >
> > -Original Message-
> > From: Wellie W. Chao
> [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, March 31, 2002 9:36 PM
> > To: Struts Users Mailing List
> > Subject: RE: Weird problem with tiles and struts
> forward.
> >
> >
> > Yes, that would be a problem. I'm building some
> pages now that will make
> use
> > of findForward, so I'll let you know if I
> experience success with the
> > forward elements within an action block. If I have
> problems too, then it's
> > probably a bug in Struts where the forward
> attribute works but enclosed
> > forward elements do not work. If I experience
> success, then we can compare
> > web.xml, struts-config.xml, and tiles-defs.xml
> files to see how mine
> differ
> > from yours.
> >
> > -Original Message-
> > From: Struts Newsgroup
> [mailto:@[EMAIL PROTECTED]]
> > Sent: Sunday, March 31, 2002 9:25 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Weird problem with tiles and struts
> forward.
> >
> >
> > Subject: Re: Weird problem with tiles and struts
> forward.
> > From: "Jack Gao" <[EMAIL PROTECTED]>
> >  ===
> > Well, I don't think this is the problem.
> >
> > If I had to use forward attribute instead of
> forward tag, How can I
> forward
> > to different page depend on the result?
> >
> > Jack
> > "Wellie W. Chao" <[EMAIL PROTECTED]> wrote in
> message
> >
> news:[EMAIL PROTECTED]...
> > > Looking at the struts-config.xml file you posted
> in your original
> message,
> > I
> > > note that you have forward entries within the
> action block. I haven't
> > tried
> > > forward entries within an action block yet, so I
> don't know if those
> work.
> > > What I have is this:
> > >
> > >  forward="site.page.admin.index"/>
> > >
> > > The above line contrasts with your action
> blocks:
> > >
> > > 
> > >path="register.success"/>
> > >path="register.failure"/>
> > > 
> > >
> > > Note that in mine, the forward is an attribute
> rather than an enclosed
> > > element.
> > >
> > > -Original Message-
> > > From: Struts Newsgroup
> [mailto:@[EMAIL PROTECTED]]
> > > Sent: Sunday, March 31, 2002 2:10 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Weird problem with tiles and struts
> forward.
> > >
> > 

Re: Weird problem with tiles and struts forward

2002-04-01 Thread Mark

> Subject: RE: Weird problem with tiles and struts forward.
> From: "Brendan Grainger" <[EMAIL PROTECTED]>
> Date: Sun, 31 Mar 2002 21:37:59 -0500
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> 
> Hi Jack,
> 
> As I said earlier I had exactly the same problem as you and so now I've done
> a little detective work to try and figure it out. Here is what I've found.
> At the bottom of my struts-config I have this.
> 
>   
>   
>processorClass="org.apache.struts.tiles.TilesRequestProcessor">
>   
> 
> Don't ask me why, it was in the example so I put it in (I'm still kind of
> new to the world of struts). If I comment it out, I get the error you've
> reported. If I put it in, no error.
> 
> Looks like I'm working on registration page similar to yours, so I quickly
> put together a tiles version of it. I've attached my tiles-def.xml file and
> struts-config.xml file for you to have a look at. Please note, my
> (snip ...)

Hello Brendan -

As a subscriber to the struts-user-digest, I do not have access to your
attachments. Would you kindly post your web.xml, struts-config.xml, and
tiles-def.xml 'inline'?

TIA,
Mark

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




Re: Weird problem with tiles and struts forward.

2002-03-31 Thread @Basebeans.com

Subject: Re: Weird problem with tiles and struts forward.
From: "Jack Gao" <[EMAIL PROTECTED]>
 ===
Hi, Brendan

Yes, it works Thank you guys so much

Yes, the problem is the controller for tiles, after I add it in my
struts-config.xml file, I got it work!

Thanks a lot in deed, this is a great group!!

Jack

"Brendan Grainger" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Hi Jack,
>
> As I said earlier I had exactly the same problem as you and so now I've
done
> a little detective work to try and figure it out. Here is what I've found.
> At the bottom of my struts-config I have this.
>
>   
>   
>processorClass="org.apache.struts.tiles.TilesRequestProcessor">
>   
>
> Don't ask me why, it was in the example so I put it in (I'm still kind of
> new to the world of struts). If I comment it out, I get the error you've
> reported. If I put it in, no error.
>
> Looks like I'm working on registration page similar to yours, so I quickly
> put together a tiles version of it. I've attached my tiles-def.xml file
and
> struts-config.xml file for you to have a look at. Please note, my
> tiles-def.xml file is _really_ simple. I just wanted to experiment. In the
> other version I have I actually extend definitions etc. Which I'm going to
> look at now, to make sure that has nothing to do with it.
>
> Hope this helps.
> Brendan
>
>
> -----Original Message-----
> From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, March 31, 2002 9:36 PM
> To: Struts Users Mailing List
> Subject: RE: Weird problem with tiles and struts forward.
>
>
> Yes, that would be a problem. I'm building some pages now that will make
use
> of findForward, so I'll let you know if I experience success with the
> forward elements within an action block. If I have problems too, then it's
> probably a bug in Struts where the forward attribute works but enclosed
> forward elements do not work. If I experience success, then we can compare
> web.xml, struts-config.xml, and tiles-defs.xml files to see how mine
differ
> from yours.
>
> -----Original Message-----
> From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
> Sent: Sunday, March 31, 2002 9:25 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Weird problem with tiles and struts forward.
>
>
> Subject: Re: Weird problem with tiles and struts forward.
> From: "Jack Gao" <[EMAIL PROTECTED]>
>  ===
> Well, I don't think this is the problem.
>
> If I had to use forward attribute instead of forward tag, How can I
forward
> to different page depend on the result?
>
> Jack
> "Wellie W. Chao" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > Looking at the struts-config.xml file you posted in your original
message,
> I
> > note that you have forward entries within the action block. I haven't
> tried
> > forward entries within an action block yet, so I don't know if those
work.
> > What I have is this:
> >
> > 
> >
> > The above line contrasts with your action blocks:
> >
> > 
> >   
> >   
> > 
> >
> > Note that in mine, the forward is an attribute rather than an enclosed
> > element.
> >
> > -Original Message-
> > From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
> > Sent: Sunday, March 31, 2002 2:10 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Weird problem with tiles and struts forward.
> >
> >
> > Subject: Re: Weird problem with tiles and struts forward.
> > From: "Jack Gao" <[EMAIL PROTECTED]>
> >  ===
> > So, what you changed to make it work? To me, it still doesn't work, even
I
> > use servlet 2.3 (I'm using Tomcat 4.0.3) DOCTYPE, and struts 1.1
DOCTYPE.
> > same configuration with forward to a jsp, it works fine, just can not
> > forward to a tiles definition.
> >
> > Jack
> >
> > "Wellie W. Chao" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]...
> > > Wow. I just tried it again and it works beautifully. You learn
something
> > new
> > > every day. It simplifies things to be able to use a definition in a
path
> > > rather than having to specify the location of a two line file that
just
> > has
> > > a tiles:insert. I think it had something to do with the DOCTYPE. I had
> > > servlet 2.2 before and changed it to servlet 2.3 a few days ago.
> > >
> > > -Original Message-
> > > From: Robert Morse [mailto:[EMAIL PROTECTED]]
> > > Sent: Saturday, March 3

RE: Weird problem with tiles and struts forward.

2002-03-31 Thread Brendan Grainger

Hi Jack,

As I said earlier I had exactly the same problem as you and so now I've done
a little detective work to try and figure it out. Here is what I've found.
At the bottom of my struts-config I have this.

  
  
  
  

Don't ask me why, it was in the example so I put it in (I'm still kind of
new to the world of struts). If I comment it out, I get the error you've
reported. If I put it in, no error.

Looks like I'm working on registration page similar to yours, so I quickly
put together a tiles version of it. I've attached my tiles-def.xml file and
struts-config.xml file for you to have a look at. Please note, my
tiles-def.xml file is _really_ simple. I just wanted to experiment. In the
other version I have I actually extend definitions etc. Which I'm going to
look at now, to make sure that has nothing to do with it.

Hope this helps.
Brendan


-Original Message-
From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 31, 2002 9:36 PM
To: Struts Users Mailing List
Subject: RE: Weird problem with tiles and struts forward.


Yes, that would be a problem. I'm building some pages now that will make use
of findForward, so I'll let you know if I experience success with the
forward elements within an action block. If I have problems too, then it's
probably a bug in Struts where the forward attribute works but enclosed
forward elements do not work. If I experience success, then we can compare
web.xml, struts-config.xml, and tiles-defs.xml files to see how mine differ
from yours.

-Original Message-
From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
Sent: Sunday, March 31, 2002 9:25 PM
To: [EMAIL PROTECTED]
Subject: Re: Weird problem with tiles and struts forward.


Subject: Re: Weird problem with tiles and struts forward.
From: "Jack Gao" <[EMAIL PROTECTED]>
 ===
Well, I don't think this is the problem.

If I had to use forward attribute instead of forward tag, How can I forward
to different page depend on the result?

Jack
"Wellie W. Chao" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Looking at the struts-config.xml file you posted in your original message,
I
> note that you have forward entries within the action block. I haven't
tried
> forward entries within an action block yet, so I don't know if those work.
> What I have is this:
>
> 
>
> The above line contrasts with your action blocks:
>
> 
>   
>   
> 
>
> Note that in mine, the forward is an attribute rather than an enclosed
> element.
>
> -----Original Message-
> From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
> Sent: Sunday, March 31, 2002 2:10 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Weird problem with tiles and struts forward.
>
>
> Subject: Re: Weird problem with tiles and struts forward.
> From: "Jack Gao" <[EMAIL PROTECTED]>
>  ===
> So, what you changed to make it work? To me, it still doesn't work, even I
> use servlet 2.3 (I'm using Tomcat 4.0.3) DOCTYPE, and struts 1.1 DOCTYPE.
> same configuration with forward to a jsp, it works fine, just can not
> forward to a tiles definition.
>
> Jack
>
> "Wellie W. Chao" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > Wow. I just tried it again and it works beautifully. You learn something
> new
> > every day. It simplifies things to be able to use a definition in a path
> > rather than having to specify the location of a two line file that just
> has
> > a tiles:insert. I think it had something to do with the DOCTYPE. I had
> > servlet 2.2 before and changed it to servlet 2.3 a few days ago.
> >
> > -Original Message-
> > From: Robert Morse [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, March 30, 2002 7:24 PM
> > To: Struts Users Mailing List
> > Subject: RE: Weird problem with tiles and struts forward.
> >
> >
> > Yes.  In fact, I changed all of the references to Tiles definitions.
I'm
> > using the 02/05/2002 nightly.
> >
> > -Original Message-
> > From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, March 30, 2002 7:41 AM
> > To: Struts Users Mailing List
> > Subject: RE: Weird problem with tiles and struts forward.
> >
> >
> > Are you saying you tried it and got it to work? I saw it in the docs,
but
> I
> > never could get it to work with struts 1.1 beta, so I assumed it was a
> > desired feature that hasn't yet been implemented. What version of Struts
> are
> > you using?
> >
> > -Original Message-
> > From: Robert Morse [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, March 30, 2002 9:11 AM
> > To: Struts Users Mailing Lis

RE: Weird problem with tiles and struts forward.

2002-03-31 Thread Wellie W. Chao

Yes, that would be a problem. I'm building some pages now that will make use
of findForward, so I'll let you know if I experience success with the
forward elements within an action block. If I have problems too, then it's
probably a bug in Struts where the forward attribute works but enclosed
forward elements do not work. If I experience success, then we can compare
web.xml, struts-config.xml, and tiles-defs.xml files to see how mine differ
from yours.

-Original Message-
From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
Sent: Sunday, March 31, 2002 9:25 PM
To: [EMAIL PROTECTED]
Subject: Re: Weird problem with tiles and struts forward.


Subject: Re: Weird problem with tiles and struts forward.
From: "Jack Gao" <[EMAIL PROTECTED]>
 ===
Well, I don't think this is the problem.

If I had to use forward attribute instead of forward tag, How can I forward
to different page depend on the result?

Jack
"Wellie W. Chao" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Looking at the struts-config.xml file you posted in your original message,
I
> note that you have forward entries within the action block. I haven't
tried
> forward entries within an action block yet, so I don't know if those work.
> What I have is this:
>
> 
>
> The above line contrasts with your action blocks:
>
> 
>   
>   
> 
>
> Note that in mine, the forward is an attribute rather than an enclosed
> element.
>
> -Original Message-
> From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
> Sent: Sunday, March 31, 2002 2:10 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Weird problem with tiles and struts forward.
>
>
> Subject: Re: Weird problem with tiles and struts forward.
> From: "Jack Gao" <[EMAIL PROTECTED]>
>  ===
> So, what you changed to make it work? To me, it still doesn't work, even I
> use servlet 2.3 (I'm using Tomcat 4.0.3) DOCTYPE, and struts 1.1 DOCTYPE.
> same configuration with forward to a jsp, it works fine, just can not
> forward to a tiles definition.
>
> Jack
>
> "Wellie W. Chao" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > Wow. I just tried it again and it works beautifully. You learn something
> new
> > every day. It simplifies things to be able to use a definition in a path
> > rather than having to specify the location of a two line file that just
> has
> > a tiles:insert. I think it had something to do with the DOCTYPE. I had
> > servlet 2.2 before and changed it to servlet 2.3 a few days ago.
> >
> > -Original Message-
> > From: Robert Morse [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, March 30, 2002 7:24 PM
> > To: Struts Users Mailing List
> > Subject: RE: Weird problem with tiles and struts forward.
> >
> >
> > Yes.  In fact, I changed all of the references to Tiles definitions.
I'm
> > using the 02/05/2002 nightly.
> >
> > -Original Message-
> > From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, March 30, 2002 7:41 AM
> > To: Struts Users Mailing List
> > Subject: RE: Weird problem with tiles and struts forward.
> >
> >
> > Are you saying you tried it and got it to work? I saw it in the docs,
but
> I
> > never could get it to work with struts 1.1 beta, so I assumed it was a
> > desired feature that hasn't yet been implemented. What version of Struts
> are
> > you using?
> >
> > -Original Message-
> > From: Robert Morse [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, March 30, 2002 9:11 AM
> > To: Struts Users Mailing List
> > Subject: RE: Weird problem with tiles and struts forward.
> >
> >
> > Using path = "register.success" is perfectly fine.  When I had this
> problem,
> > I think the issue was the version of Tiles being used with Struts 1.1.
> Try
> > getting one of the newer nightly builds of Struts, or vist Cedric's
Tiles
> > web site.  There, I think he specifically points to versions that
operate
> > with each other.
> >
> > -Original Message-
> > From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, March 30, 2002 5:13 AM
> > To: Struts Users Mailing List
> > Subject: RE: Weird problem with tiles and struts forward.
> >
> >
> > I don't think you can use a tiles definition in .
> You
> > need to specify a context-relative path to an action -- in other words,
a
> > URL. You could say , then include
> the
> > following in /register.success.jsp:
> >
> > <%@ taglib uri="/WEB-INF/tiles.tld" prefix=&q

Re: Weird problem with tiles and struts forward.

2002-03-31 Thread @Basebeans.com

Subject: Re: Weird problem with tiles and struts forward.
From: "Jack Gao" <[EMAIL PROTECTED]>
 ===
Well, I don't think this is the problem.

If I had to use forward attribute instead of forward tag, How can I forward
to different page depend on the result?

Jack
"Wellie W. Chao" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Looking at the struts-config.xml file you posted in your original message,
I
> note that you have forward entries within the action block. I haven't
tried
> forward entries within an action block yet, so I don't know if those work.
> What I have is this:
>
> 
>
> The above line contrasts with your action blocks:
>
> 
>   
>   
> 
>
> Note that in mine, the forward is an attribute rather than an enclosed
> element.
>
> -Original Message-
> From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
> Sent: Sunday, March 31, 2002 2:10 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Weird problem with tiles and struts forward.
>
>
> Subject: Re: Weird problem with tiles and struts forward.
> From: "Jack Gao" <[EMAIL PROTECTED]>
>  ===
> So, what you changed to make it work? To me, it still doesn't work, even I
> use servlet 2.3 (I'm using Tomcat 4.0.3) DOCTYPE, and struts 1.1 DOCTYPE.
> same configuration with forward to a jsp, it works fine, just can not
> forward to a tiles definition.
>
> Jack
>
> "Wellie W. Chao" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > Wow. I just tried it again and it works beautifully. You learn something
> new
> > every day. It simplifies things to be able to use a definition in a path
> > rather than having to specify the location of a two line file that just
> has
> > a tiles:insert. I think it had something to do with the DOCTYPE. I had
> > servlet 2.2 before and changed it to servlet 2.3 a few days ago.
> >
> > -Original Message-
> > From: Robert Morse [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, March 30, 2002 7:24 PM
> > To: Struts Users Mailing List
> > Subject: RE: Weird problem with tiles and struts forward.
> >
> >
> > Yes.  In fact, I changed all of the references to Tiles definitions.
I'm
> > using the 02/05/2002 nightly.
> >
> > -Original Message-
> > From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, March 30, 2002 7:41 AM
> > To: Struts Users Mailing List
> > Subject: RE: Weird problem with tiles and struts forward.
> >
> >
> > Are you saying you tried it and got it to work? I saw it in the docs,
but
> I
> > never could get it to work with struts 1.1 beta, so I assumed it was a
> > desired feature that hasn't yet been implemented. What version of Struts
> are
> > you using?
> >
> > -Original Message-
> > From: Robert Morse [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, March 30, 2002 9:11 AM
> > To: Struts Users Mailing List
> > Subject: RE: Weird problem with tiles and struts forward.
> >
> >
> > Using path = "register.success" is perfectly fine.  When I had this
> problem,
> > I think the issue was the version of Tiles being used with Struts 1.1.
> Try
> > getting one of the newer nightly builds of Struts, or vist Cedric's
Tiles
> > web site.  There, I think he specifically points to versions that
operate
> > with each other.
> >
> > -Original Message-
> > From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, March 30, 2002 5:13 AM
> > To: Struts Users Mailing List
> > Subject: RE: Weird problem with tiles and struts forward.
> >
> >
> > I don't think you can use a tiles definition in .
> You
> > need to specify a context-relative path to an action -- in other words,
a
> > URL. You could say , then include
> the
> > following in /register.success.jsp:
> >
> > <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
> > 
> >
> > -Original Message-
> > From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
> > Sent: Friday, March 29, 2002 8:40 PM
> > To: [EMAIL PROTECTED]
> > Subject: Weird problem with tiles and struts forward.
> >
> >
> > Subject: Weird problem with tiles and struts forward.
> > From: "Jack Gao" <[EMAIL PROTECTED]>
> >  ===
> > Hi, List
> >
> > I'm new with this struts and tiles issues.
> >
> > My problem is: when define a jsp page in struts-config.xml to forward to
> if
> > success or failed,

RE: Weird problem with tiles and struts forward.

2002-03-31 Thread Wellie W. Chao

Looking at the struts-config.xml file you posted in your original message, I
note that you have forward entries within the action block. I haven't tried
forward entries within an action block yet, so I don't know if those work.
What I have is this:



The above line contrasts with your action blocks:


  
  


Note that in mine, the forward is an attribute rather than an enclosed
element.

-Original Message-
From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
Sent: Sunday, March 31, 2002 2:10 PM
To: [EMAIL PROTECTED]
Subject: Re: Weird problem with tiles and struts forward.


Subject: Re: Weird problem with tiles and struts forward.
From: "Jack Gao" <[EMAIL PROTECTED]>
 ===
So, what you changed to make it work? To me, it still doesn't work, even I
use servlet 2.3 (I'm using Tomcat 4.0.3) DOCTYPE, and struts 1.1 DOCTYPE.
same configuration with forward to a jsp, it works fine, just can not
forward to a tiles definition.

Jack

"Wellie W. Chao" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Wow. I just tried it again and it works beautifully. You learn something
new
> every day. It simplifies things to be able to use a definition in a path
> rather than having to specify the location of a two line file that just
has
> a tiles:insert. I think it had something to do with the DOCTYPE. I had
> servlet 2.2 before and changed it to servlet 2.3 a few days ago.
>
> -Original Message-
> From: Robert Morse [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 30, 2002 7:24 PM
> To: Struts Users Mailing List
> Subject: RE: Weird problem with tiles and struts forward.
>
>
> Yes.  In fact, I changed all of the references to Tiles definitions.  I'm
> using the 02/05/2002 nightly.
>
> -Original Message-
> From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 30, 2002 7:41 AM
> To: Struts Users Mailing List
> Subject: RE: Weird problem with tiles and struts forward.
>
>
> Are you saying you tried it and got it to work? I saw it in the docs, but
I
> never could get it to work with struts 1.1 beta, so I assumed it was a
> desired feature that hasn't yet been implemented. What version of Struts
are
> you using?
>
> -Original Message-
> From: Robert Morse [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 30, 2002 9:11 AM
> To: Struts Users Mailing List
> Subject: RE: Weird problem with tiles and struts forward.
>
>
> Using path = "register.success" is perfectly fine.  When I had this
problem,
> I think the issue was the version of Tiles being used with Struts 1.1.
Try
> getting one of the newer nightly builds of Struts, or vist Cedric's Tiles
> web site.  There, I think he specifically points to versions that operate
> with each other.
>
> -Original Message-
> From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 30, 2002 5:13 AM
> To: Struts Users Mailing List
> Subject: RE: Weird problem with tiles and struts forward.
>
>
> I don't think you can use a tiles definition in .
You
> need to specify a context-relative path to an action -- in other words, a
> URL. You could say , then include
the
> following in /register.success.jsp:
>
> <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
> 
>
> -Original Message-
> From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
> Sent: Friday, March 29, 2002 8:40 PM
> To: [EMAIL PROTECTED]
> Subject: Weird problem with tiles and struts forward.
>
>
> Subject: Weird problem with tiles and struts forward.
> From: "Jack Gao" <[EMAIL PROTECTED]>
>  ===
> Hi, List
>
> I'm new with this struts and tiles issues.
>
> My problem is: when define a jsp page in struts-config.xml to forward to
if
> success or failed, it works fine. But if I jump to tiles, and forward to a
> definition, I keep to get servlet exception.
>
> My definition xml file has a declare like this:
>
>   
> 
>   
>
>
> And in my struts-config.xml I delcare like this:
>
> type="xxx.xxx.xxx.RegisterAction"
>name="registerForm"
>   scope="request"
>validate="false">
>   
>   
> 
>
> The mainLayout works fine, and I got exception when it forward to next
page.
>
> java.lang.IllegalArgumentException: Path register.success does not start
> with a "/" character
> at
>
org.apache.catalina.core.ApplicationContext.getRequestDispatcher(Application
> Context.java:570)
> at
>
org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(Appli
> cationContextFacade.java:174)
> at
&g

Re: Weird problem with tiles and struts forward.

2002-03-31 Thread @Basebeans.com

Subject: Re: Weird problem with tiles and struts forward.
From: "Jack Gao" <[EMAIL PROTECTED]>
 ===
So, what you changed to make it work? To me, it still doesn't work, even I
use servlet 2.3 (I'm using Tomcat 4.0.3) DOCTYPE, and struts 1.1 DOCTYPE.
same configuration with forward to a jsp, it works fine, just can not
forward to a tiles definition.

Jack

"Wellie W. Chao" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Wow. I just tried it again and it works beautifully. You learn something
new
> every day. It simplifies things to be able to use a definition in a path
> rather than having to specify the location of a two line file that just
has
> a tiles:insert. I think it had something to do with the DOCTYPE. I had
> servlet 2.2 before and changed it to servlet 2.3 a few days ago.
>
> -Original Message-
> From: Robert Morse [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 30, 2002 7:24 PM
> To: Struts Users Mailing List
> Subject: RE: Weird problem with tiles and struts forward.
>
>
> Yes.  In fact, I changed all of the references to Tiles definitions.  I'm
> using the 02/05/2002 nightly.
>
> -Original Message-
> From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 30, 2002 7:41 AM
> To: Struts Users Mailing List
> Subject: RE: Weird problem with tiles and struts forward.
>
>
> Are you saying you tried it and got it to work? I saw it in the docs, but
I
> never could get it to work with struts 1.1 beta, so I assumed it was a
> desired feature that hasn't yet been implemented. What version of Struts
are
> you using?
>
> -Original Message-----
> From: Robert Morse [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 30, 2002 9:11 AM
> To: Struts Users Mailing List
> Subject: RE: Weird problem with tiles and struts forward.
>
>
> Using path = "register.success" is perfectly fine.  When I had this
problem,
> I think the issue was the version of Tiles being used with Struts 1.1.
Try
> getting one of the newer nightly builds of Struts, or vist Cedric's Tiles
> web site.  There, I think he specifically points to versions that operate
> with each other.
>
> -Original Message-
> From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 30, 2002 5:13 AM
> To: Struts Users Mailing List
> Subject: RE: Weird problem with tiles and struts forward.
>
>
> I don't think you can use a tiles definition in .
You
> need to specify a context-relative path to an action -- in other words, a
> URL. You could say , then include
the
> following in /register.success.jsp:
>
> <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
> 
>
> -Original Message-
> From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
> Sent: Friday, March 29, 2002 8:40 PM
> To: [EMAIL PROTECTED]
> Subject: Weird problem with tiles and struts forward.
>
>
> Subject: Weird problem with tiles and struts forward.
> From: "Jack Gao" <[EMAIL PROTECTED]>
>  ===
> Hi, List
>
> I'm new with this struts and tiles issues.
>
> My problem is: when define a jsp page in struts-config.xml to forward to
if
> success or failed, it works fine. But if I jump to tiles, and forward to a
> definition, I keep to get servlet exception.
>
> My definition xml file has a declare like this:
>
>   
> 
>   
>
>
> And in my struts-config.xml I delcare like this:
>
> type="xxx.xxx.xxx.RegisterAction"
>name="registerForm"
>   scope="request"
>validate="false">
>   
>   
> 
>
> The mainLayout works fine, and I got exception when it forward to next
page.
>
> java.lang.IllegalArgumentException: Path register.success does not start
> with a "/" character
> at
>
org.apache.catalina.core.ApplicationContext.getRequestDispatcher(Application
> Context.java:570)
> at
>
org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(Appli
> cationContextFacade.java:174)
> at
>
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:96
> 5)
> at
>
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
> sor.java:408)
> at
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
> at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

RE: Weird problem with tiles and struts forward.

2002-03-31 Thread Wellie W. Chao

Wow. I just tried it again and it works beautifully. You learn something new
every day. It simplifies things to be able to use a definition in a path
rather than having to specify the location of a two line file that just has
a tiles:insert. I think it had something to do with the DOCTYPE. I had
servlet 2.2 before and changed it to servlet 2.3 a few days ago.

-Original Message-
From: Robert Morse [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 30, 2002 7:24 PM
To: Struts Users Mailing List
Subject: RE: Weird problem with tiles and struts forward.


Yes.  In fact, I changed all of the references to Tiles definitions.  I'm
using the 02/05/2002 nightly.

-Original Message-
From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 30, 2002 7:41 AM
To: Struts Users Mailing List
Subject: RE: Weird problem with tiles and struts forward.


Are you saying you tried it and got it to work? I saw it in the docs, but I
never could get it to work with struts 1.1 beta, so I assumed it was a
desired feature that hasn't yet been implemented. What version of Struts are
you using?

-Original Message-
From: Robert Morse [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 30, 2002 9:11 AM
To: Struts Users Mailing List
Subject: RE: Weird problem with tiles and struts forward.


Using path = "register.success" is perfectly fine.  When I had this problem,
I think the issue was the version of Tiles being used with Struts 1.1.  Try
getting one of the newer nightly builds of Struts, or vist Cedric's Tiles
web site.  There, I think he specifically points to versions that operate
with each other.

-Original Message-
From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 30, 2002 5:13 AM
To: Struts Users Mailing List
Subject: RE: Weird problem with tiles and struts forward.


I don't think you can use a tiles definition in . You
need to specify a context-relative path to an action -- in other words, a
URL. You could say , then include the
following in /register.success.jsp:

<%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>


-Original Message-
From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 8:40 PM
To: [EMAIL PROTECTED]
Subject: Weird problem with tiles and struts forward.


Subject: Weird problem with tiles and struts forward.
From: "Jack Gao" <[EMAIL PROTECTED]>
 ===
Hi, List

I'm new with this struts and tiles issues.

My problem is: when define a jsp page in struts-config.xml to forward to if
success or failed, it works fine. But if I jump to tiles, and forward to a
definition, I keep to get servlet exception.

My definition xml file has a declare like this:

  

  


And in my struts-config.xml I delcare like this:


  
  


The mainLayout works fine, and I got exception when it forward to next page.

java.lang.IllegalArgumentException: Path register.success does not start
with a "/" character
at
org.apache.catalina.core.ApplicationContext.getRequestDispatcher(Application
Context.java:570)
at
org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(Appli
cationContextFacade.java:174)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:96
5)
at
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
sor.java:408)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:
170)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

Re: Weird problem with tiles and struts forward.

2002-03-30 Thread @Basebeans.com

Subject: Re: Weird problem with tiles and struts forward.
From: "Jack Gao" <[EMAIL PROTECTED]>
 ===
I also update to web-app_2_3.dtd and struts-config_1_1.dtd.

But I didn't found any place need to update except  wrote in message
news:[EMAIL PROTECTED]...
> Hi,
>
> I had exactly the same problem. I got it work using Struts 1.1 Beta. For
me
> the problem seemed to be with my struts-config.xml file or my web.xml file
> (I'm not sure which sorry, but I updated them both). Make sure you're
using
> the latest dtd's. I"m using struts-config_1_1.dtd and web-app_2_3.dtd
> respectively. It was strange error. I basically rewrote both my
> struts-config.xml and web.xml from scratch, made sure the latest
struts.jar
> was being copied into my web application and it worked.
>
> As for this:
>
> >> it also use forward to a tiles definition, why?
>
> You can assemble pages using your tiles-def.xml without actually writing
the
> entire page and use struts to forward to the definition which puts it all
> together for you. So for example in an application I'm working on I have a
> 'gallery page' which is just a really just the body. The components that
> make up the page (header, menu, footer and body) are defined in my
> tiles-def.xml with the name forward.gallery.page and to get that page to
> display I just use a struts forward to that definition. It's an excellent
> framework once you get it going.
>
> Hope that helps.
> Brendan
>
> -Original Message-
> From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
> Sent: Saturday, March 30, 2002 7:55 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Weird problem with tiles and struts forward.
>
>
> Subject: Re: Weird problem with tiles and struts forward.
> From: "Jack Gao" <[EMAIL PROTECTED]>
>  ===
> Thanks for the reply group.
>
> Yes, I'm using struts 1.1 beta. But the tutorial looks work fine, it also
> use forward to a tiles definition, why? And since I already use
> ActionComponentServlet (Actually, since I need to init log4j in the
servlet,
> I extends from it.). Any idea why tutorial works, but not our program?
>
> Thanks
>
> Jack
>
> "Jack Gao" <[EMAIL PROTECTED]> wrote in message
> news:a834bs$4bt$[EMAIL PROTECTED]...
> > Hi, List
> >
> > I'm new with this struts and tiles issues.
> >
> > My problem is: when define a jsp page in struts-config.xml to forward to
> if
> > success or failed, it works fine. But if I jump to tiles, and forward to
a
> > definition, I keep to get servlet exception.
> >
> > My definition xml file has a declare like this:
> >
> >   
> > 
> >   
> >
> >
> > And in my struts-config.xml I delcare like this:
> >
> >  >type="xxx.xxx.xxx.RegisterAction"
> >name="registerForm"
> >   scope="request"
> >validate="false">
> >   
> >   
> > 
> >
> > The mainLayout works fine, and I got exception when it forward to next
> page.
> >
> > java.lang.IllegalArgumentException: Path register.success does not start
> > with a "/" character
> > at
> >
>
org.apache.catalina.core.ApplicationContext.getRequestDispatcher(Application
> > Context.java:570)
> > at
> >
>
org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(Appli
> > cationContextFacade.java:174)
> > at
> >
>
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:96
> > 5)
> > at
> >
>
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
> > sor.java:408)
> > at
> >
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269)
> > at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
> > at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> > FilterChain.java:247)
> > at
> >
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> > ain.java:193)
> > at
> >
>
filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:
> > 170)
> > at
> >
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> > Fil

RE: Weird problem with tiles and struts forward.

2002-03-30 Thread Robert Morse

It's 1.1.  I had to wait for Cedric to make changes to the Tiles stuff to
work with 1.1 (which was early February).  I don't know if the Nightlies are
given names, but it is definitely 1.1.  I'll grab the latest nightly, and
let you know if I have any problems.  Are you able to get the examples to
work?  Get those going before your own stuff.

-Original Message-
From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
Sent: Saturday, March 30, 2002 5:10 PM
To: [EMAIL PROTECTED]
Subject: Re: Weird problem with tiles and struts forward.


Subject: Re: Weird problem with tiles and struts forward.
From: "Jack Gao" <[EMAIL PROTECTED]>
 ===
Well, I tried to get nightly build from apache, earlest one 20020316 and
latest one 20020330. Both of them doesn't work for me.
20020316 has same problem, 20020330 even can not found MESSAGE resources!

I cannot found 20020205 build, but I think that's before struts 1.1. Are you
using 1.1 beta? or struts 1.02?

Thanks

Jack

"Robert Morse" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Yes.  In fact, I changed all of the references to Tiles definitions.  I'm
> using the 02/05/2002 nightly.
>
> -Original Message-
> From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 30, 2002 7:41 AM
> To: Struts Users Mailing List
> Subject: RE: Weird problem with tiles and struts forward.
>
>
> Are you saying you tried it and got it to work? I saw it in the docs, but
I
> never could get it to work with struts 1.1 beta, so I assumed it was a
> desired feature that hasn't yet been implemented. What version of Struts
are
> you using?
>
> -Original Message-
> From: Robert Morse [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 30, 2002 9:11 AM
> To: Struts Users Mailing List
> Subject: RE: Weird problem with tiles and struts forward.
>
>
> Using path = "register.success" is perfectly fine.  When I had this
problem,
> I think the issue was the version of Tiles being used with Struts 1.1.
Try
> getting one of the newer nightly builds of Struts, or vist Cedric's Tiles
> web site.  There, I think he specifically points to versions that operate
> with each other.
>
> -----Original Message-----
> From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 30, 2002 5:13 AM
> To: Struts Users Mailing List
> Subject: RE: Weird problem with tiles and struts forward.
>
>
> I don't think you can use a tiles definition in .
You
> need to specify a context-relative path to an action -- in other words, a
> URL. You could say , then include
the
> following in /register.success.jsp:
>
> <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
> 
>
> -Original Message-
> From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
> Sent: Friday, March 29, 2002 8:40 PM
> To: [EMAIL PROTECTED]
> Subject: Weird problem with tiles and struts forward.
>
>
> Subject: Weird problem with tiles and struts forward.
> From: "Jack Gao" <[EMAIL PROTECTED]>
>  ===
> Hi, List
>
> I'm new with this struts and tiles issues.
>
> My problem is: when define a jsp page in struts-config.xml to forward to
if
> success or failed, it works fine. But if I jump to tiles, and forward to a
> definition, I keep to get servlet exception.
>
> My definition xml file has a declare like this:
>
>   
> 
>   
>
>
> And in my struts-config.xml I delcare like this:
>
> type="xxx.xxx.xxx.RegisterAction"
>name="registerForm"
>   scope="request"
>validate="false">
>   
>   
> 
>
> The mainLayout works fine, and I got exception when it forward to next
page.
>
> java.lang.IllegalArgumentException: Path register.success does not start
> with a "/" character
> at
>
org.apache.catalina.core.ApplicationContext.getRequestDispatcher(Application
> Context.java:570)
> at
>
org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(Appli
> cationContextFacade.java:174)
> at
>
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:96
> 5)
> at
>
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
> sor.java:408)
> at
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
> at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.a

RE: Weird problem with tiles and struts forward.

2002-03-30 Thread Brendan Grainger

Hi,

I had exactly the same problem. I got it work using Struts 1.1 Beta. For me
the problem seemed to be with my struts-config.xml file or my web.xml file
(I'm not sure which sorry, but I updated them both). Make sure you're using
the latest dtd's. I"m using struts-config_1_1.dtd and web-app_2_3.dtd
respectively. It was strange error. I basically rewrote both my
struts-config.xml and web.xml from scratch, made sure the latest struts.jar
was being copied into my web application and it worked.

As for this:

>> it also use forward to a tiles definition, why?

You can assemble pages using your tiles-def.xml without actually writing the
entire page and use struts to forward to the definition which puts it all
together for you. So for example in an application I'm working on I have a
'gallery page' which is just a really just the body. The components that
make up the page (header, menu, footer and body) are defined in my
tiles-def.xml with the name forward.gallery.page and to get that page to
display I just use a struts forward to that definition. It's an excellent
framework once you get it going.

Hope that helps.
Brendan

-Original Message-
From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
Sent: Saturday, March 30, 2002 7:55 PM
To: [EMAIL PROTECTED]
Subject: Re: Weird problem with tiles and struts forward.


Subject: Re: Weird problem with tiles and struts forward.
From: "Jack Gao" <[EMAIL PROTECTED]>
 ===
Thanks for the reply group.

Yes, I'm using struts 1.1 beta. But the tutorial looks work fine, it also
use forward to a tiles definition, why? And since I already use
ActionComponentServlet (Actually, since I need to init log4j in the servlet,
I extends from it.). Any idea why tutorial works, but not our program?

Thanks

Jack

"Jack Gao" <[EMAIL PROTECTED]> wrote in message
news:a834bs$4bt$[EMAIL PROTECTED]...
> Hi, List
>
> I'm new with this struts and tiles issues.
>
> My problem is: when define a jsp page in struts-config.xml to forward to
if
> success or failed, it works fine. But if I jump to tiles, and forward to a
> definition, I keep to get servlet exception.
>
> My definition xml file has a declare like this:
>
>   
> 
>   
>
>
> And in my struts-config.xml I delcare like this:
>
> type="xxx.xxx.xxx.RegisterAction"
>name="registerForm"
>   scope="request"
>validate="false">
>   
>   
> 
>
> The mainLayout works fine, and I got exception when it forward to next
page.
>
> java.lang.IllegalArgumentException: Path register.success does not start
> with a "/" character
> at
>
org.apache.catalina.core.ApplicationContext.getRequestDispatcher(Application
> Context.java:570)
> at
>
org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(Appli
> cationContextFacade.java:174)
> at
>
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:96
> 5)
> at
>
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
> sor.java:408)
> at
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
> at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
>
filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:
> 170)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:213)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:243)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:190)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.c

Re: Weird problem with tiles and struts forward.

2002-03-30 Thread @Basebeans.com

Subject: Re: Weird problem with tiles and struts forward.
From: "Jack Gao" <[EMAIL PROTECTED]>
 ===
Well, I tried to get nightly build from apache, earlest one 20020316 and
latest one 20020330. Both of them doesn't work for me.
20020316 has same problem, 20020330 even can not found MESSAGE resources!

I cannot found 20020205 build, but I think that's before struts 1.1. Are you
using 1.1 beta? or struts 1.02?

Thanks

Jack

"Robert Morse" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Yes.  In fact, I changed all of the references to Tiles definitions.  I'm
> using the 02/05/2002 nightly.
>
> -Original Message-
> From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 30, 2002 7:41 AM
> To: Struts Users Mailing List
> Subject: RE: Weird problem with tiles and struts forward.
>
>
> Are you saying you tried it and got it to work? I saw it in the docs, but
I
> never could get it to work with struts 1.1 beta, so I assumed it was a
> desired feature that hasn't yet been implemented. What version of Struts
are
> you using?
>
> -Original Message-
> From: Robert Morse [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 30, 2002 9:11 AM
> To: Struts Users Mailing List
> Subject: RE: Weird problem with tiles and struts forward.
>
>
> Using path = "register.success" is perfectly fine.  When I had this
problem,
> I think the issue was the version of Tiles being used with Struts 1.1.
Try
> getting one of the newer nightly builds of Struts, or vist Cedric's Tiles
> web site.  There, I think he specifically points to versions that operate
> with each other.
>
> -Original Message-----
> From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 30, 2002 5:13 AM
> To: Struts Users Mailing List
> Subject: RE: Weird problem with tiles and struts forward.
>
>
> I don't think you can use a tiles definition in .
You
> need to specify a context-relative path to an action -- in other words, a
> URL. You could say , then include
the
> following in /register.success.jsp:
>
> <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
> 
>
> -Original Message-
> From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
> Sent: Friday, March 29, 2002 8:40 PM
> To: [EMAIL PROTECTED]
> Subject: Weird problem with tiles and struts forward.
>
>
> Subject: Weird problem with tiles and struts forward.
> From: "Jack Gao" <[EMAIL PROTECTED]>
>  ===
> Hi, List
>
> I'm new with this struts and tiles issues.
>
> My problem is: when define a jsp page in struts-config.xml to forward to
if
> success or failed, it works fine. But if I jump to tiles, and forward to a
> definition, I keep to get servlet exception.
>
> My definition xml file has a declare like this:
>
>   
> 
>   
>
>
> And in my struts-config.xml I delcare like this:
>
> type="xxx.xxx.xxx.RegisterAction"
>name="registerForm"
>   scope="request"
>validate="false">
>   
>   
> 
>
> The mainLayout works fine, and I got exception when it forward to next
page.
>
> java.lang.IllegalArgumentException: Path register.success does not start
> with a "/" character
> at
>
org.apache.catalina.core.ApplicationContext.getRequestDispatcher(Application
> Context.java:570)
> at
>
org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(Appli
> cationContextFacade.java:174)
> at
>
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:96
> 5)
> at
>
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
> sor.java:408)
> at
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
> at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
>
filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:
> 170)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:213)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
>

Re: Weird problem with tiles and struts forward.

2002-03-30 Thread @Basebeans.com

Subject: Re: Weird problem with tiles and struts forward.
From: "Jack Gao" <[EMAIL PROTECTED]>
 ===
Thanks for the reply group.

Yes, I'm using struts 1.1 beta. But the tutorial looks work fine, it also
use forward to a tiles definition, why? And since I already use
ActionComponentServlet (Actually, since I need to init log4j in the servlet,
I extends from it.). Any idea why tutorial works, but not our program?

Thanks

Jack

"Jack Gao" <[EMAIL PROTECTED]> wrote in message
news:a834bs$4bt$[EMAIL PROTECTED]...
> Hi, List
>
> I'm new with this struts and tiles issues.
>
> My problem is: when define a jsp page in struts-config.xml to forward to
if
> success or failed, it works fine. But if I jump to tiles, and forward to a
> definition, I keep to get servlet exception.
>
> My definition xml file has a declare like this:
>
>   
> 
>   
>
>
> And in my struts-config.xml I delcare like this:
>
> type="xxx.xxx.xxx.RegisterAction"
>name="registerForm"
>   scope="request"
>validate="false">
>   
>   
> 
>
> The mainLayout works fine, and I got exception when it forward to next
page.
>
> java.lang.IllegalArgumentException: Path register.success does not start
> with a "/" character
> at
>
org.apache.catalina.core.ApplicationContext.getRequestDispatcher(Application
> Context.java:570)
> at
>
org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(Appli
> cationContextFacade.java:174)
> at
>
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:96
> 5)
> at
>
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
> sor.java:408)
> at
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
> at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
>
filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:
> 170)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:213)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:243)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:190)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
> at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
> )
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> java:170)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
> )
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :174)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
> 1012)
> at
>
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
> )
> at java.lang.Thread.run(Thread.java:484)
>
>
> Any idea?
>
> Thanks a lot!
>
> Jack
>
>
>



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




RE: Weird problem with tiles and struts forward.

2002-03-30 Thread Robert Morse

Yes.  In fact, I changed all of the references to Tiles definitions.  I'm
using the 02/05/2002 nightly.

-Original Message-
From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 30, 2002 7:41 AM
To: Struts Users Mailing List
Subject: RE: Weird problem with tiles and struts forward.


Are you saying you tried it and got it to work? I saw it in the docs, but I
never could get it to work with struts 1.1 beta, so I assumed it was a
desired feature that hasn't yet been implemented. What version of Struts are
you using?

-Original Message-
From: Robert Morse [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 30, 2002 9:11 AM
To: Struts Users Mailing List
Subject: RE: Weird problem with tiles and struts forward.


Using path = "register.success" is perfectly fine.  When I had this problem,
I think the issue was the version of Tiles being used with Struts 1.1.  Try
getting one of the newer nightly builds of Struts, or vist Cedric's Tiles
web site.  There, I think he specifically points to versions that operate
with each other.

-Original Message-
From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 30, 2002 5:13 AM
To: Struts Users Mailing List
Subject: RE: Weird problem with tiles and struts forward.


I don't think you can use a tiles definition in . You
need to specify a context-relative path to an action -- in other words, a
URL. You could say , then include the
following in /register.success.jsp:

<%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>


-Original Message-
From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 8:40 PM
To: [EMAIL PROTECTED]
Subject: Weird problem with tiles and struts forward.


Subject: Weird problem with tiles and struts forward.
From: "Jack Gao" <[EMAIL PROTECTED]>
 ===
Hi, List

I'm new with this struts and tiles issues.

My problem is: when define a jsp page in struts-config.xml to forward to if
success or failed, it works fine. But if I jump to tiles, and forward to a
definition, I keep to get servlet exception.

My definition xml file has a declare like this:

  

  


And in my struts-config.xml I delcare like this:


  
  


The mainLayout works fine, and I got exception when it forward to next page.

java.lang.IllegalArgumentException: Path register.success does not start
with a "/" character
at
org.apache.catalina.core.ApplicationContext.getRequestDispatcher(Application
Context.java:570)
at
org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(Appli
cationContextFacade.java:174)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:96
5)
at
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
sor.java:408)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:
170)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
or

Re: Weird problem with tiles and struts forward.

2002-03-30 Thread mglass

Wellie,
  No, I didn't get it to work. I had the same experience as you and I,  too,
assumed it was a desired feature that has not yet been implemented. I'm
using version 1.1 Beta.

Mark

- Original Message -
From: "Wellie W. Chao" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, March 30, 2002 10:40 AM
Subject: RE: Weird problem with tiles and struts forward.


> Are you saying you tried it and got it to work? I saw it in the docs, but
I
> never could get it to work with struts 1.1 beta, so I assumed it was a
> desired feature that hasn't yet been implemented. What version of Struts
are
> you using?
>
> -Original Message-
> From: Robert Morse [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 30, 2002 9:11 AM
> To: Struts Users Mailing List
> Subject: RE: Weird problem with tiles and struts forward.
>
>
> Using path = "register.success" is perfectly fine.  When I had this
problem,
> I think the issue was the version of Tiles being used with Struts 1.1.
Try
> getting one of the newer nightly builds of Struts, or vist Cedric's Tiles
> web site.  There, I think he specifically points to versions that operate
> with each other.
>
> -Original Message-
> From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 30, 2002 5:13 AM
> To: Struts Users Mailing List
> Subject: RE: Weird problem with tiles and struts forward.
>
>
> I don't think you can use a tiles definition in .
You
> need to specify a context-relative path to an action -- in other words, a
> URL. You could say , then include
the
> following in /register.success.jsp:
>
> <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
> 
>
> -Original Message-
> From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
> Sent: Friday, March 29, 2002 8:40 PM
> To: [EMAIL PROTECTED]
> Subject: Weird problem with tiles and struts forward.
>
>
> Subject: Weird problem with tiles and struts forward.
> From: "Jack Gao" <[EMAIL PROTECTED]>
>  ===
> Hi, List
>
> I'm new with this struts and tiles issues.
>
> My problem is: when define a jsp page in struts-config.xml to forward to
if
> success or failed, it works fine. But if I jump to tiles, and forward to a
> definition, I keep to get servlet exception.
>
> My definition xml file has a declare like this:
>
>   
> 
>   
>
>
> And in my struts-config.xml I delcare like this:
>
> type="xxx.xxx.xxx.RegisterAction"
>name="registerForm"
>   scope="request"
>validate="false">
>   
>   
> 
>
> The mainLayout works fine, and I got exception when it forward to next
page.
>
> java.lang.IllegalArgumentException: Path register.success does not start
> with a "/" character
> at
>
org.apache.catalina.core.ApplicationContext.getRequestDispatcher(Application
> Context.java:570)
> at
>
org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(Appli
> cationContextFacade.java:174)
> at
>
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:96
> 5)
> at
>
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
> sor.java:408)
> at
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
> at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
>
filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:
> 170)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:213)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:243)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va

RE: Weird problem with tiles and struts forward.

2002-03-30 Thread Wellie W. Chao

Are you saying you tried it and got it to work? I saw it in the docs, but I
never could get it to work with struts 1.1 beta, so I assumed it was a
desired feature that hasn't yet been implemented. What version of Struts are
you using?

-Original Message-
From: Robert Morse [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 30, 2002 9:11 AM
To: Struts Users Mailing List
Subject: RE: Weird problem with tiles and struts forward.


Using path = "register.success" is perfectly fine.  When I had this problem,
I think the issue was the version of Tiles being used with Struts 1.1.  Try
getting one of the newer nightly builds of Struts, or vist Cedric's Tiles
web site.  There, I think he specifically points to versions that operate
with each other.

-Original Message-
From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 30, 2002 5:13 AM
To: Struts Users Mailing List
Subject: RE: Weird problem with tiles and struts forward.


I don't think you can use a tiles definition in . You
need to specify a context-relative path to an action -- in other words, a
URL. You could say , then include the
following in /register.success.jsp:

<%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>


-Original Message-
From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 8:40 PM
To: [EMAIL PROTECTED]
Subject: Weird problem with tiles and struts forward.


Subject: Weird problem with tiles and struts forward.
From: "Jack Gao" <[EMAIL PROTECTED]>
 ===
Hi, List

I'm new with this struts and tiles issues.

My problem is: when define a jsp page in struts-config.xml to forward to if
success or failed, it works fine. But if I jump to tiles, and forward to a
definition, I keep to get servlet exception.

My definition xml file has a declare like this:

  

  


And in my struts-config.xml I delcare like this:


  
  


The mainLayout works fine, and I got exception when it forward to next page.

java.lang.IllegalArgumentException: Path register.success does not start
with a "/" character
at
org.apache.catalina.core.ApplicationContext.getRequestDispatcher(Application
Context.java:570)
at
org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(Appli
cationContextFacade.java:174)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:96
5)
at
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
sor.java:408)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:
170)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(Stand

Re: Weird problem with tiles and struts forward.

2002-03-30 Thread mglass

I'm experiencing the same problem. According to the Tiles docs it shuld be
possible to specify a Tiles definition as a forward target. I am assuming
now that this is a desired feature of Tiles but not active yet. I'm using
Struts 1.1 Beta.

Mark Glass
- Original Message -
From: "Struts Newsgroup" <@[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 29, 2002 8:40 PM
Subject: Weird problem with tiles and struts forward.


> Subject: Weird problem with tiles and struts forward.
> From: "Jack Gao" <[EMAIL PROTECTED]>
>  ===
> Hi, List
>
> I'm new with this struts and tiles issues.
>
> My problem is: when define a jsp page in struts-config.xml to forward to
if
> success or failed, it works fine. But if I jump to tiles, and forward to a
> definition, I keep to get servlet exception.
>
> My definition xml file has a declare like this:
>
>   
> 
>   
>
>
> And in my struts-config.xml I delcare like this:
>
> type="xxx.xxx.xxx.RegisterAction"
>name="registerForm"
>   scope="request"
>validate="false">
>   
>   
> 
>
> The mainLayout works fine, and I got exception when it forward to next
page.
>
> java.lang.IllegalArgumentException: Path register.success does not start
> with a "/" character
> at
>
org.apache.catalina.core.ApplicationContext.getRequestDispatcher(Application
> Context.java:570)
> at
>
org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(Appli
> cationContextFacade.java:174)
> at
>
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:96
> 5)
> at
>
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
> sor.java:408)
> at
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
> at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
>
filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:
> 170)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:213)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:243)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:190)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
> at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
> )
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> java:170)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
> )
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :174)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
> 1012)
> at
>
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
> )
> at java.lang.Thread.run(Thread.java:484)
>
>
> Any idea?
>
> Thanks a lot!
>
> Jack
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>



--
To unsubscribe, e-mail:   

RE: Weird problem with tiles and struts forward.

2002-03-30 Thread Robert Morse

Using path = "register.success" is perfectly fine.  When I had this problem,
I think the issue was the version of Tiles being used with Struts 1.1.  Try
getting one of the newer nightly builds of Struts, or vist Cedric's Tiles
web site.  There, I think he specifically points to versions that operate
with each other.

-Original Message-
From: Wellie W. Chao [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 30, 2002 5:13 AM
To: Struts Users Mailing List
Subject: RE: Weird problem with tiles and struts forward.


I don't think you can use a tiles definition in . You
need to specify a context-relative path to an action -- in other words, a
URL. You could say , then include the
following in /register.success.jsp:

<%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>


-Original Message-
From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 8:40 PM
To: [EMAIL PROTECTED]
Subject: Weird problem with tiles and struts forward.


Subject: Weird problem with tiles and struts forward.
From: "Jack Gao" <[EMAIL PROTECTED]>
 ===
Hi, List

I'm new with this struts and tiles issues.

My problem is: when define a jsp page in struts-config.xml to forward to if
success or failed, it works fine. But if I jump to tiles, and forward to a
definition, I keep to get servlet exception.

My definition xml file has a declare like this:

  

  


And in my struts-config.xml I delcare like this:


  
  


The mainLayout works fine, and I got exception when it forward to next page.

java.lang.IllegalArgumentException: Path register.success does not start
with a "/" character
at
org.apache.catalina.core.ApplicationContext.getRequestDispatcher(Application
Context.java:570)
at
org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(Appli
cationContextFacade.java:174)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:96
5)
at
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
sor.java:408)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:
170)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(Standa

RE: Weird problem with tiles and struts forward.

2002-03-30 Thread Wellie W. Chao

I don't think you can use a tiles definition in . You
need to specify a context-relative path to an action -- in other words, a
URL. You could say , then include the
following in /register.success.jsp:

<%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>


-Original Message-
From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 8:40 PM
To: [EMAIL PROTECTED]
Subject: Weird problem with tiles and struts forward.


Subject: Weird problem with tiles and struts forward.
From: "Jack Gao" <[EMAIL PROTECTED]>
 ===
Hi, List

I'm new with this struts and tiles issues.

My problem is: when define a jsp page in struts-config.xml to forward to if
success or failed, it works fine. But if I jump to tiles, and forward to a
definition, I keep to get servlet exception.

My definition xml file has a declare like this:

  

  


And in my struts-config.xml I delcare like this:


  
  


The mainLayout works fine, and I got exception when it forward to next page.

java.lang.IllegalArgumentException: Path register.success does not start
with a "/" character
at
org.apache.catalina.core.ApplicationContext.getRequestDispatcher(Application
Context.java:570)
at
org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(Appli
cationContextFacade.java:174)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:96
5)
at
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
sor.java:408)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:
170)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
at java.lang.Thread.run(Thread.java:484)


Any idea?

Thanks a lot!

Jack




--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: