Re: Using redirect=true with tiles component

2002-06-12 Thread Cedric Dumoulin


  Hello,

  You can't use redirect=true with a tiles definition's name. Tiles definition's 
names are
logical names, not URL, so it is not possible to redirect to a definition name.  In 
the same
way, it is not possible to use directly a definition name in a link.

   Hope this help,

   Cedric

[EMAIL PROTECTED] wrote:

 I have the following entry in my config

 action path=/login type=com.ffic.training.LoginAction name=logonForm
 scope=session input=/Login.jsp
   forward name=success path=welcome.page redirect=true/
 /action

 My tiles definition xml is as follows

 definition name=welcome.page path=/TilesTemplate.jsp
 put name=menu content=/Menu.jsp/
 put name=body content=/WelcomeContent.jsp/
 /definition

 Without the redirect=true, everything works fine, but when I use it, I
 get the following error

  Error 404
  An error has occured while processing 
request:http://localhost:8080/app/welcome.page
  Message: File not found: //welcome.page

 If I change the path to a regular jsp path (ie path=/Welcome.jsp) things work fine.

 Can anyone help me on this? Thanks in advance.
 **
 Please Note:
 The information in this E-mail message, and any files transmitted
 with it, is confidential and may be legally privileged.  It is
 intended only for the use of the individual(s) named above.  If you
 are the intended recipient, be aware that your use of any confidential
 or personal information may be restricted by state and federal
 privacy laws.  If you, the reader of this message, are not the
 intended recipient, you are hereby notified that you should not
 further disseminate, distribute, or forward this E-mail message.
 If you have received this E-mail in error, please notify the sender
 and delete the material from any computer.  Thank you.
 **

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




RE: Using redirect=true with tiles component

2002-06-12 Thread Trieu, Danny

I guess what Cedric meant was, if a request is not is not going into the
Controller there is noway Tile know what definition render the result for
the response.  What you can do is define a Struts Action or Forward that
referenced your intent definition.

 -Original Message-
 From: Cedric Dumoulin [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, June 12, 2002 9:15 AM
 To:   Struts Users Mailing List
 Subject:  Re: Using redirect=true with tiles component
 
 
   Hello,
 
   You can't use redirect=true with a tiles definition's name. Tiles
 definition's names are
 logical names, not URL, so it is not possible to redirect to a definition
 name.  In the same
 way, it is not possible to use directly a definition name in a link.
 
Hope this help,
 
Cedric
 
 [EMAIL PROTECTED] wrote:
 
  I have the following entry in my config
 
  action path=/login type=com.ffic.training.LoginAction
 name=logonForm
  scope=session input=/Login.jsp
forward name=success path=welcome.page redirect=true/
  /action
 
  My tiles definition xml is as follows
 
  definition name=welcome.page path=/TilesTemplate.jsp
  put name=menu content=/Menu.jsp/
  put name=body content=/WelcomeContent.jsp/
  /definition
 
  Without the redirect=true, everything works fine, but when I use it, I
  get the following error
 
   Error 404
   An error has occured while processing
 request:http://localhost:8080/app/welcome.page
   Message: File not found: //welcome.page
 
  If I change the path to a regular jsp path (ie path=/Welcome.jsp) things
 work fine.
 
  Can anyone help me on this? Thanks in advance.
  **
  Please Note:
  The information in this E-mail message, and any files transmitted
  with it, is confidential and may be legally privileged.  It is
  intended only for the use of the individual(s) named above.  If you
  are the intended recipient, be aware that your use of any confidential
  or personal information may be restricted by state and federal
  privacy laws.  If you, the reader of this message, are not the
  intended recipient, you are hereby notified that you should not
  further disseminate, distribute, or forward this E-mail message.
  If you have received this E-mail in error, please notify the sender
  and delete the material from any computer.  Thank you.
  **
 
  --
  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]

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




RE: Using redirect=true with tiles component

2002-06-12 Thread Trieu, Danny

Credic,

I just want to know what your though is on this issue.  I want to provide
some caching capability for Tiles.  Let's say you will have an attribute in
the tiles:insert cache=true cacheScope=session definition=someTile
/,  tile will look for content from cache and return quickly, if there
isn't one, tiles will insert one into cache when it finished rendering its
part.   I want to know if you see any value of doing this, and if I am going
to extend tiles to do this, what is your advice on where in the Tiles
framework that this can be done.  Or if you already have plan on doing this,
please share your design with us.

Thanks,

danny

ps. I am still learning the Tiles' source code.

 -Original Message-
 From: Trieu, Danny [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, June 12, 2002 1:16 PM
 To:   'Struts Users Mailing List'
 Subject:  RE: Using redirect=true with tiles component
 
 I guess what Cedric meant was, if a request is not is not going into the
 Controller there is noway Tile know what definition render the result for
 the response.  What you can do is define a Struts Action or Forward that
 referenced your intent definition.
 
  -Original Message-
  From:   Cedric Dumoulin [SMTP:[EMAIL PROTECTED]]
  Sent:   Wednesday, June 12, 2002 9:15 AM
  To: Struts Users Mailing List
  Subject:Re: Using redirect=true with tiles component
  
  
Hello,
  
You can't use redirect=true with a tiles definition's name. Tiles
  definition's names are
  logical names, not URL, so it is not possible to redirect to a
 definition
  name.  In the same
  way, it is not possible to use directly a definition name in a link.
  
 Hope this help,
  
 Cedric
  
  [EMAIL PROTECTED] wrote:
  
   I have the following entry in my config
  
   action path=/login type=com.ffic.training.LoginAction
  name=logonForm
   scope=session input=/Login.jsp
 forward name=success path=welcome.page redirect=true/
   /action
  
   My tiles definition xml is as follows
  
   definition name=welcome.page path=/TilesTemplate.jsp
   put name=menu content=/Menu.jsp/
   put name=body content=/WelcomeContent.jsp/
   /definition
  
   Without the redirect=true, everything works fine, but when I use it,
 I
   get the following error
  
Error 404
An error has occured while processing
  request:http://localhost:8080/app/welcome.page
Message: File not found: //welcome.page
  
   If I change the path to a regular jsp path (ie path=/Welcome.jsp)
 things
  work fine.
  
   Can anyone help me on this? Thanks in advance.
   **
   Please Note:
   The information in this E-mail message, and any files transmitted
   with it, is confidential and may be legally privileged.  It is
   intended only for the use of the individual(s) named above.  If you
   are the intended recipient, be aware that your use of any confidential
   or personal information may be restricted by state and federal
   privacy laws.  If you, the reader of this message, are not the
   intended recipient, you are hereby notified that you should not
   further disseminate, distribute, or forward this E-mail message.
   If you have received this E-mail in error, please notify the sender
   and delete the material from any computer.  Thank you.
   **
  
   --
   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]
 
 --
 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]




RE: Using redirect=true with tiles component

2002-06-12 Thread Raffy_Lata


Thanks. I get it now.





Trieu, Danny [EMAIL PROTECTED] on 06/12/2002 01:15:47 PM

Please respond to Struts Users Mailing List
  [EMAIL PROTECTED]

To:   'Struts Users Mailing List' [EMAIL PROTECTED]
cc:
Subject:  RE: Using redirect=true with tiles component


I guess what Cedric meant was, if a request is not is not going into the
Controller there is noway Tile know what definition render the result for
the response.  What you can do is define a Struts Action or Forward that
referenced your intent definition.

 -Original Message-
 From:   Cedric Dumoulin [SMTP:[EMAIL PROTECTED]]
 Sent:   Wednesday, June 12, 2002 9:15 AM
 To: Struts Users Mailing List
 Subject: Re: Using redirect=true with tiles component


   Hello,

   You can't use redirect=true with a tiles definition's name. Tiles
 definition's names are
 logical names, not URL, so it is not possible to redirect to a definition
 name.  In the same
 way, it is not possible to use directly a definition name in a link.

Hope this help,

Cedric

 [EMAIL PROTECTED] wrote:

  I have the following entry in my config
 
  action path=/login type=com.ffic.training.LoginAction
 name=logonForm
  scope=session input=/Login.jsp
forward name=success path=welcome.page redirect=true/
  /action
 
  My tiles definition xml is as follows
 
  definition name=welcome.page path=/TilesTemplate.jsp
  put name=menu content=/Menu.jsp/
  put name=body content=/WelcomeContent.jsp/
  /definition
 
  Without the redirect=true, everything works fine, but when I use it,
I
  get the following error
 
   Error 404
   An error has occured while processing
 request:http://localhost:8080/app/welcome.page
   Message: File not found: //welcome.page
 
  If I change the path to a regular jsp path (ie path=/Welcome.jsp)
things
 work fine.
 
  Can anyone help me on this? Thanks in advance.
  **
  Please Note:
  The information in this E-mail message, and any files transmitted
  with it, is confidential and may be legally privileged.  It is
  intended only for the use of the individual(s) named above.  If you
  are the intended recipient, be aware that your use of any confidential
  or personal information may be restricted by state and federal
  privacy laws.  If you, the reader of this message, are not the
  intended recipient, you are hereby notified that you should not
  further disseminate, distribute, or forward this E-mail message.
  If you have received this E-mail in error, please notify the sender
  and delete the material from any computer.  Thank you.
  **
 
  --
  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]

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






**
Please Note:
The information in this E-mail message, and any files transmitted
with it, is confidential and may be legally privileged.  It is
intended only for the use of the individual(s) named above.  If you
are the intended recipient, be aware that your use of any confidential
or personal information may be restricted by state and federal
privacy laws.  If you, the reader of this message, are not the
intended recipient, you are hereby notified that you should not
further disseminate, distribute, or forward this E-mail message.
If you have received this E-mail in error, please notify the sender
and delete the material from any computer.  Thank you.
**




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




Using redirect=true with tiles component

2002-06-03 Thread Raffy_Lata


I have the following entry in my config

action path=/login type=com.ffic.training.LoginAction name=logonForm
scope=session input=/Login.jsp
  forward name=success path=welcome.page redirect=true/
/action

My tiles definition xml is as follows

definition name=welcome.page path=/TilesTemplate.jsp
put name=menu content=/Menu.jsp/
put name=body content=/WelcomeContent.jsp/
/definition


Without the redirect=true, everything works fine, but when I use it, I
get the following error


 Error 404
 An error has occured while processing 
request:http://localhost:8080/app/welcome.page
 Message: File not found: //welcome.page


If I change the path to a regular jsp path (ie path=/Welcome.jsp) things work fine.

Can anyone help me on this? Thanks in advance.
**
Please Note:
The information in this E-mail message, and any files transmitted
with it, is confidential and may be legally privileged.  It is
intended only for the use of the individual(s) named above.  If you
are the intended recipient, be aware that your use of any confidential
or personal information may be restricted by state and federal
privacy laws.  If you, the reader of this message, are not the
intended recipient, you are hereby notified that you should not
further disseminate, distribute, or forward this E-mail message.
If you have received this E-mail in error, please notify the sender
and delete the material from any computer.  Thank you.
**




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