Problem with Tiles

2004-03-17 Thread steve . mullarkey
Hi

I am having a problem with a simple Tiles based site using the
classicLayout.

The problem is that the menu only appears on the first page - if I select a
link to another page the footer,body and copyright are rendered but the
menu is missing.

Here is the tiles-defs.xml ;



 http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd";>



   





  

  


  

  

  
  
  
  

  

  


  

  

  


  

  

  


  

  

  


  
  

  



As can be seen, the menu will display different sections based on which
roles the user has defined. This part works OK on the initial screen, but
as soon as I select a different page (e.g. phoneus.jsp), nothing is
displayed where the menu should be.

phoneus.jsp is as follows ;

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



and /jsp/phoneustile.jsp is as below ;


 Phone us at 01274 123456

In web.xml I define the welcome page as index.jsp, which is as follows ;

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



This page does display a menu.

I would be grateful for any help anyone can give.



Any opinions expressed in this Email are strictly the responsibility of the
author, and not those of Otto-UK.



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



Problem with tiles

2004-02-23 Thread Michiel Slot
Ok, fixed my previous problem:
'org.apache.struts.tiles.ActionComponentServlet' has been removed.

So instead of that I now use the plug-in tag. Strangely enough it returns
white pages with an empty HTML body with only a queer ONUNLOAD in it,
sometimes. What goes wrong? With Struts 1.1 everything goes fine...

Web.xml:

org.apache.struts.action.ActionServlet

...


/tags/struts-nested

/WEB-INF/struts-nested.tld



Struts-config.xml:








Thanks


-Ursprüngliche Nachricht-
Gesendet: Montag, 23. Februar 2004 11:34
An: 'Struts Users Mailing List'
Betreff: ServletException: Class
`org.apache.struts.tiles.ActionComponentServlet' 


I've chosen to upgrade to Struts 1.2 to apply wildmatches to my
Tiles-actions.. After upgrading from Struts 1.1 to 1.2(I've tried several
recent nightly builds) I get the following error while opening a page:

javax.servlet.ServletException: Class 
`org.apache.struts.tiles.ActionComponentServlet' 

What is happening? When I explore the package org.apache.struts.tiles it
seems to me that ActionComponentServlet is gone... what to do now? 




-
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: Problem with tiles and protected jsps

2003-09-07 Thread Holman, Cal
Wes>> I accomplished Form based auth by defining a security constraint in web.xml for 
the Action path.


SecurePages
Security constraint for Admin
/do/secure/*
POST
GET



Cal 

http://www.calandva.com/Last update 08/01/03


-Original Message-
From: Wes Kubo [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 11:56
To: Struts Users Mailing List
Subject: Problem with tiles and protected jsps

I originally had my jsps under WEB-INF to prevent them from direct access,
which worked just fine. However, the standards I'm working with dictate that
the jsps be located above WEB-INF. In order to prevent access to my jsps I
added a security-constraint in web.xml, blocking access to the jsps.
Unfortunately, now none of my tiles display properly, instead I get the
error message:

[Exception in:/jsp/body/home_body.jsp] Response has already been committed

for all the protected pages. The problem is that for each protected page,
its trying to authenticate the user using the FORM authentication that I
have set-up for parts of the application (this is a separate
security-constraint from the jsp protection). All I want to prevent is
direct access to the jsp, not access through other means (e.g. action/tile).

Thanks.

Wes


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

  
Learn more about Paymentech's payment processing services at www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments are proprietary 
and confidential information intended only for the use of the recipient(s) named 
above.  If you are not the intended recipient, you may not print, distribute, or copy 
this message or any attachments.  If you have received this communication in error, 
please notify the sender by return e-mail and delete this message and any attachments 
from your computer.

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



Problem with tiles and protected jsps

2003-09-02 Thread Wes Kubo
I originally had my jsps under WEB-INF to prevent them from direct access,
which worked just fine. However, the standards I'm working with dictate that
the jsps be located above WEB-INF. In order to prevent access to my jsps I
added a security-constraint in web.xml, blocking access to the jsps.
Unfortunately, now none of my tiles display properly, instead I get the
error message:

[Exception in:/jsp/body/home_body.jsp] Response has already been committed

for all the protected pages. The problem is that for each protected page,
its trying to authenticate the user using the FORM authentication that I
have set-up for parts of the application (this is a separate
security-constraint from the jsp protection). All I want to prevent is
direct access to the jsp, not access through other means (e.g. action/tile).

Thanks.

Wes


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



Re: problem with tiles after moving to rc2

2003-07-11 Thread Fedor Smirnoff
Ok, thats interesting. I had to specify a full path
now to the tiles for them to be imported correctly so
if before I had something like:


  
  

now I have to do:

  
  

I wonder why this was changed.

Thanks,
Fedor


--- Fedor Smirnoff <[EMAIL PROTECTED]> wrote:
> Hey guys, just wanted to check if anyone had a
> problem
> with tiles after upgrading to rc2. All I get is a
> blank page now where tiles used, regular sections
> work
> without a problem after changing perform() to
> execute()
> 
> Sincerely,
> Fedor
> 
> __
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



problem with tiles after moving to rc2

2003-07-11 Thread Fedor Smirnoff
Hey guys, just wanted to check if anyone had a problem
with tiles after upgrading to rc2. All I get is a
blank page now where tiles used, regular sections work
without a problem after changing perform() to
execute()

Sincerely,
Fedor

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



AW: Problem with Tiles definitions in XML File

2003-07-02 Thread Christian Ambach
Hi Peter!

Thx a lot.. That worked. But why do 2 books not tell me this? Why do
they omit this? 

Thx, you saved me :D

Christian 

-Ursprüngliche Nachricht-
Von: Peter Smith [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 1. Juli 2003 23:28
An: Struts Users Mailing List
Betreff: Re: Problem with Tiles definitions in XML File


Hi Christian,

When inserting in a definition on a jsp page, you want to use the
"definition" attribute.  "beanName" can be used if the page you are
inserting is in a java bean.  Here is an example:



Hope this helps, 

Peter
-- 
Peter Smith
Software Engineer
InfoNow Corporation

> From: "Christian Ambach" <[EMAIL PROTECTED]>
> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Date: Tue, 1 Jul 2003 23:15:01 +0200
> To: <[EMAIL PROTECTED]>
> Subject: Problem with Tiles definitions in XML File
> 
> Dear list!
> 
> I've a problem with Tiles definitions in an XML file.
> 
> I searched a lot in my Struts books (Ted Husted and Chuck Cavaness)
and
> in Google, but I didn't find a clue to solve it :(
> 
> Here's the symptom:
> My JSP wants to use a definition and fails with this error:
>

> -
> org.apache.jasper.JasperException: Error - Tag Insert : No value
defined
> for bean 'blablub' with property 'null' in scope 'null'.
> at
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
> va:248)
> 
> root cause 
> 
> javax.servlet.ServletException: Error - Tag Insert : No value defined
> for bean 'blablub' with property 'null' in scope 'null'.
> at
>
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
> tImpl.java:530)
>

> -
> 
> JSP source is:
> ---
> <%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>
> <%@ taglib uri="/tags/struts-nested" prefix="nested" %>
> <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
> <%@ taglib uri="/tags/struts-html" prefix="html" %>
> <%@ taglib uri="/tags/struts-bean" prefix="bean" %>
> <%@ page 
> language="java"
> contentType="text/html; charset=ISO-8859-1"
> %>
> 
> 
> testcontent
> 
> 
> ---
> 
> struts-config.xml contains
> ---
> 
>  value="/WEB-INF/tiles-defs.xml" />
> 
>  value="2" />
>  value="false" />
> 
> 
> ---
> 
> tiles-defs.xml
> ---
> 
> 
> 
> 
> 
> 
> ---
> 
> 
> I'm using Struts 1.1 and 1.1-b3 on Tomcat 4.1.18 and 4.1.24, no
> differences.
> 
> 
> As far as I can see with the debugger the factory correctly parses and
> stores the definitions. But when the taglib tries to find the Factory
in
> the Context it receives a null value and therefore returns a null for
> the bean :(
> 
> 
> Thx for help, this cost me about 10h now and you are my last hope.
> 
> Hopefully,
> 
> Christian Ambach
> 
> 
> -
> 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: Problem with Tiles definitions in XML File

2003-07-01 Thread Peter Smith
Hi Christian,

When inserting in a definition on a jsp page, you want to use the
"definition" attribute.  "beanName" can be used if the page you are
inserting is in a java bean.  Here is an example:



Hope this helps, 

Peter
-- 
Peter Smith
Software Engineer
InfoNow Corporation

> From: "Christian Ambach" <[EMAIL PROTECTED]>
> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Date: Tue, 1 Jul 2003 23:15:01 +0200
> To: <[EMAIL PROTECTED]>
> Subject: Problem with Tiles definitions in XML File
> 
> Dear list!
> 
> I've a problem with Tiles definitions in an XML file.
> 
> I searched a lot in my Struts books (Ted Husted and Chuck Cavaness) and
> in Google, but I didn't find a clue to solve it :(
> 
> Here's the symptom:
> My JSP wants to use a definition and fails with this error:
> 
> -
> org.apache.jasper.JasperException: Error - Tag Insert : No value defined
> for bean 'blablub' with property 'null' in scope 'null'.
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
> va:248)
> 
> root cause 
> 
> javax.servlet.ServletException: Error - Tag Insert : No value defined
> for bean 'blablub' with property 'null' in scope 'null'.
> at
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
> tImpl.java:530)
> 
> -
> 
> JSP source is:
> ---
> <%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>
> <%@ taglib uri="/tags/struts-nested" prefix="nested" %>
> <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
> <%@ taglib uri="/tags/struts-html" prefix="html" %>
> <%@ taglib uri="/tags/struts-bean" prefix="bean" %>
> <%@ page 
> language="java"
> contentType="text/html; charset=ISO-8859-1"
> %>
> 
> 
> testcontent
> 
> 
> ---
> 
> struts-config.xml contains
> ---
> 
>  value="/WEB-INF/tiles-defs.xml" />
> 
>  value="2" />
>  value="false" />
> 
> 
> ---
> 
> tiles-defs.xml
> ---
> 
> 
> 
> 
> 
> 
> ---
> 
> 
> I'm using Struts 1.1 and 1.1-b3 on Tomcat 4.1.18 and 4.1.24, no
> differences.
> 
> 
> As far as I can see with the debugger the factory correctly parses and
> stores the definitions. But when the taglib tries to find the Factory in
> the Context it receives a null value and therefore returns a null for
> the bean :(
> 
> 
> Thx for help, this cost me about 10h now and you are my last hope.
> 
> Hopefully,
> 
> Christian Ambach
> 
> 
> -
> 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]



Problem with Tiles definitions in XML File

2003-07-01 Thread Christian Ambach
Dear list!

I've a problem with Tiles definitions in an XML file.

I searched a lot in my Struts books (Ted Husted and Chuck Cavaness) and
in Google, but I didn't find a clue to solve it :(

Here's the symptom:
My JSP wants to use a definition and fails with this error:

-
org.apache.jasper.JasperException: Error - Tag Insert : No value defined
for bean 'blablub' with property 'null' in scope 'null'.
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:248)

root cause 

javax.servlet.ServletException: Error - Tag Insert : No value defined
for bean 'blablub' with property 'null' in scope 'null'.
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
tImpl.java:530)

-

JSP source is:
---
<%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>
<%@ taglib uri="/tags/struts-nested" prefix="nested" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ page 
language="java"
contentType="text/html; charset=ISO-8859-1"
%>


testcontent
  

---

struts-config.xml contains
---







---

tiles-defs.xml
---


  
  


---


I'm using Struts 1.1 and 1.1-b3 on Tomcat 4.1.18 and 4.1.24, no
differences.


As far as I can see with the debugger the factory correctly parses and
stores the definitions. But when the taglib tries to find the Factory in
the Context it receives a null value and therefore returns a null for
the bean :(


Thx for help, this cost me about 10h now and you are my last hope.

Hopefully,

Christian Ambach


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



Problem with tiles in struts rc2

2003-06-18 Thread teknokrat
The following tiles insert



now places the menubar above the header. Nothing i dio changes this and 
the behaviour was correct in RC1. Note that my menubar definition uses a 
ControllerUrl.

bye



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


RE: Newbie: problem with tiles definitions

2002-10-03 Thread Galbreath, Mark

How do you access an Action class directly from a browser?

-Original Message-
From: Cedric Dumoulin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 5:32 AM

Does your action exist ? Try to access the action directly from the 
browser, does it works ?

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




Re: Newbie: problem with tiles definitions

2002-10-03 Thread Cedric Dumoulin


  Hello,

  Does your action exist ? Try to access the action directly from the 
browser, does it works ?

   Cedric

S.Bharathi wrote:

>Hi all,
>I just started working with tiles and struts. I have the following files xmls in 
>the web-inf directory. I am working with the example given in the site 
>http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html 
>
>When I try to access the jsp files, there seems to be no problem. When I access 
>a.do, I get the following error with tomcat ( 4.0.1 )
>
>type : Status report
>
>message  : Servlet action is currently unavailable
>
>description : The requested service (Servlet action is currently unavailable) is not 
>currently available.
>
>Thanks in advance.
>
>-Bharathi
>
>
>===
>File : struts-config.xml
>
>
>Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>
>
>
>
> value="/WEB-INF/tileDefinitions.xml  />
>
>
>
>
>
>
>
>   
>
>
> 
>
>
> 
>
>  
>
>
>
>
>File web.xml
>
>
>
>PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
>
>
>
>action
> org.apache.struts.tiles.ActionComponentServlet
>
>
>  definitions-config
>  /WEB-INF/tileDefinitions.xml
>
>
>
>application
>ApplicationResources
>
>
>  config
>  /WEB-INF/struts-config.xml
>
>
>  debug
>  2
>
>
>  detail
>  2
>
>
>  validate
>  true
>
>2
>
>
>
>
>action
>*.do
>
>
>
>
>
>
> /WEB-INF/struts-bean.tld
> /WEB-INF/struts-bean.tld 
>
>
>  /WEB-INF/struts-tiles.tld
>  /WEB-INF/struts-tiles.tld
>
>
>
>===
>
>File : tileDefinitions.xml
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>Regards,
>Bharathi
>
>A Block of granite on the pathway is 
>an obstacle for the weak but a 
>stepping stone for the strong
>
>
>
>-
>Do you Yahoo!?
>New DSL Internet Access from SBC & Yahoo!
>  
>



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




Newbie: problem with tiles definitions

2002-10-03 Thread S.Bharathi


Hi all,
I just started working with tiles and struts. I have the following files xmls in 
the web-inf directory. I am working with the example given in the site 
http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html 

When I try to access the jsp files, there seems to be no problem. When I access 
a.do, I get the following error with tomcat ( 4.0.1 )

type : Status report

message  : Servlet action is currently unavailable

description : The requested service (Servlet action is currently unavailable) is not 
currently available.

Thanks in advance.

-Bharathi


===
File : struts-config.xml


http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>










   


 


 

  




File web.xml



http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>



action
 org.apache.struts.tiles.ActionComponentServlet


  definitions-config
  /WEB-INF/tileDefinitions.xml



application
ApplicationResources


  config
  /WEB-INF/struts-config.xml


  debug
  2


  detail
  2


  validate
  true

2




action
*.do






 /WEB-INF/struts-bean.tld
 /WEB-INF/struts-bean.tld 


  /WEB-INF/struts-tiles.tld
  /WEB-INF/struts-tiles.tld



===

File : tileDefinitions.xml





















Regards,
Bharathi

A Block of granite on the pathway is 
an obstacle for the weak but a 
stepping stone for the strong



-
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!


Nightly Build 04/09/02 - Problem with Tiles

2002-04-09 Thread @Basebeans.com

Subject: Nightly Build 04/09/02 - Problem with Tiles
From: "Matt Raible" <[EMAIL PROTECTED]>
 ===
I updated to the nightly build tonight and when running Tiles, I get the
error below.  I was using a recent build (2-3 weeks) for the past couple
weeks and it's been running fine - anything change?

In JSP:
[Exception in:/layouts/menuLayout.jsp]
org.apache.struts.tiles.xmlDefinition.XmlAttribute

In Error Log:
2002-04-09 23:59:20 ApplicationDispatcher[/onpoint] Servlet.service() for
servlet jsp threw exception
java.lang.ClassCastException:
org.apache.struts.tiles.xmlDefinition.XmlAttribute
 at org.apache.jsp.menuLayout$jsp._jspService(menuLayout$jsp.java:105)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWrapper
.service(IDEJspServlet.java:172)
 at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFile(ID
EJspServlet.java:234)
 at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJspSer
vlet.java:326)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)



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




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.in

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


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




Weird problem with tiles and struts forward.

2002-03-29 Thread @Basebeans.com

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




Re: Error-page problem with Tiles

2002-03-21 Thread Cedric Dumoulin


  Hello,

  It looks like the web server do an error catching on a request basis rather
than on a "include" basis.
  When you use the server general mechanism, via a declaration in web.xml, the
exception is catch by the top level page where the request start. As Tiles insert
mechanism catch any exceptions and render it in place of the inserted tiles, the
server can't see it.

  When you use the exception catch mechanism on a page basis, the server can
catch it before the Tiles insert, and use your error page as expected.

   Cedric

Tony wrote:

> I have a problem when I try to use the following statement in my web.xml
> file with tiles:
>
>   
> java.lang.NullPointerException
> /ErrorPage.jsp
>   
>
> I took the tiles-blank-struts1-1 war and added the above line.  I then
> modified the body.jsp file to throw a NullPointerException.  When I go
> to the index.jsp which does a 'tiles:insert' on the body.jsp, the
> exception came to the screen instead of taking me to the ErrorPage.jsp.
> If I go directly to the body.jsp it works correctly or if I add <%@ page
> errorPage="/ErrorPage.jsp" %> to the top of body.jsp.  I tried
> increasing the buffer size of the index.jsp and setting flush to false
> but with the same results.  Any help would be appreciated.
>
> Thanks,
> Tony
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


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




Explanation of problem with Tiles+JBuilder

2001-12-10 Thread Gundars Kulups

Here is little bit of explanaition of problem I have tracked down.
In order for aplication to run in JBuilder with Tomcat and struts I have 
nostrutstomcat32.jar in lib/ext directory of JBuilder. However if I 
substitute ActionServlet definition in web.xml with Tiles ActionServlet I 
get java.lang.NoClassDefFoundError: org/apache/struts/action/ActionServlet
exception when starting server. I I remove nostrutstomcat32.jar OpenTool I 
can not access my application classes (FormBean) anymore. Does anyone knows 
solution to this problem?
WBR,
Gundars


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




Found problem with tiles in orion

2001-10-27 Thread Stephen Gissendaner

Hello Fellow Travelers,

I think that I have found a problem with tiles in orion. This problem only shows 
itself when I deploy my web module (war) to my orion server. I do my development in 
JDeveloper and everything works swimmingly. Also I have the tiles and struts sample 
applications deployed on the same orion server and they all work perfectly. 

I have been banging my head on this for 2 day now and I thought that I'd share my 
results.

When I use the following in my layout.jsp file:


If I do not pass in the attribute foo, then when the page is displayed all 
 tags are ignored for the remainder of  the page and NO errors are 
reported. If I leave out the ignore="true" then as expected tiles reports and error on 
my page. The documentation says that you can use the ignore="true" to have optional 
tiles.

Now when I run the exact same code in JDeveloper everything works as expected. If I 
don't  then all of the attributes that I do  get displayed 
and the missing ones are ignored.

Now I also noticed that the phenomina(sp?) is limited only to the actual .jsp page 
being processed, meaning if you have this happen in a layout_child.jsp that is  
onto another layout_parent.jsp then the rest of the  in the 
layout_child.jsp get ignored, but when the engine gets back to the layout_parent.jsp 
everything works as expected. 

I know that this all sounds fishy but this behavior is consistant. I am using the same 
.tld and jar files in my app as are distributed with the tiles sample application.

If I am crazy or off base, PLEASE show me the error of my ways and you will have my 
gratitude.

If you do respond, I won't see it until Monday AM

Sincerely,

Stephen W. Gissendaner
Senior Application Engineer,
EPL