RE: Tiles and Struts.

2003-09-15 Thread Hrishi Dixit

One way is to make the title a separate tile attribute instead of setting it inside a 
tile like you are doing. Have a single  section in your layout tile (layout.jsp) 
and parametrize it as a tile attribute, something like:

layout.jsp:
---


  


  
  ...

Now in your actual JSP (whichever one contains your code snipper below):

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


   
   

   
 


Hope this helps.

..Hrishi


> -Original Message-
> From: deepaksawdekar [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 15, 2003 8:45 AM
> To: Struts Users Mailing List
> Subject: Tiles and Struts.
> 
> 
> Hello,
> We are using struts and tiles for view component of our application. 
> We are facing the problem of setting the title for the jsp. 
> The title has to be taken from the properties file and it 
> depends upon the body of the tiles. Any pointer how to do this.
> my jsp file is as follows.
> 
> 
> <%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>
> 
> 
>   
>   
>value="../globaladmin/gblTechnologyBody.jsp" /> 
>   
> 
> 
> 
> I am setting the tile in gblTechnologyBody.jsp file.  It 
> works fine when i have html head  in all the jsp above. But 
> if i remove html head tag from the jsp it does not work.
> I am removing the HTML head tag since when i do view source 
> from the it i get 5 different html head and body tags. 
> 4 for the jsp above and one for the layout.jsp. 
> 
> 
> Pl. advice 
> 
> Thanks and Regards
> Deepak.
> 

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



RE: Tiles and Struts.

2003-09-15 Thread Mike Jasnowski
Tiles should be cumulative in that you shouldn't repeat HTML,BODY,etc. tags
in each one. Only the outermost. You might consider using a Tiles controller
to selectively choose the title, the controller would be called before any
other tiles are called if you define it at the definition level.

-Original Message-
From: deepaksawdekar [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 11:45 AM
To: Struts Users Mailing List
Subject: Tiles and Struts.


Hello,
We are using struts and tiles for view component of our application.
We are facing the problem of setting the title for the jsp. The title has to
be taken from the properties file and it depends upon the body of the tiles.
Any pointer how to do this.
my jsp file is as follows.


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


  
  
  
  



I am setting the tile in gblTechnologyBody.jsp file.  It works fine when i
have html head  in all the jsp above. But if i remove html head tag from the
jsp it does not work.
I am removing the HTML head tag since when i do view source from the it i
get 5 different html head and body tags.
4 for the jsp above and one for the layout.jsp.


Pl. advice

Thanks and Regards
Deepak.

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



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



Re: Tiles and Struts: JSP page doesn't compile

2003-07-10 Thread Paula Coll Lapido
Just found the solution: I hadn't included the struts taglibs in my body JSP
page!!

- Original Message - 
From: "Paula Coll Lapido" <[EMAIL PROTECTED]>
To: "struts-user" <[EMAIL PROTECTED]>
Sent: Thursday, July 10, 2003 12:13 PM
Subject: Tiles and Struts: JSP page doesn't compile


I am currently implementing tiles on my webapp, using definitions. I have
the following files:

1. tiles-defs.xml --> defining the main template as follows:

  
   
   
   
   
  

2. console.jsp: the main template:



 






 
  
   
   
  
 
 
  
   
   
  
 
 
  
   
   
  
 




3. Several pages with associated body pages, for example:

- page.jsp 

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


 


- page_body.jsp -




 
  
  
   

   
  
 
 
  
  
   
   
   
  
 
 
   
  
   

   
  
 



The problem I have is that when I invoke my page.jsp, all the content gets
rendered (the template: console.jsp and the default header, footer, etc.),
BUT the inner body page, page_body.jsp, IS NOT COMPILED, it's rendered as
text output, so my HTML result doesn't display the body content (logically,
the navigator can't make anything out of struts tags!).

Does anyone have an idea of what's happening???

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



Re: Tiles and Struts 1.0.2?

2002-07-25 Thread Cedric Dumoulin


  The source for tilesForStruts1.0.jar is the same than the source for 
Struts1.1.
  It is just compiled with struts1.0.2.

   Cedric

Tim T. Young wrote:

>Thanks, seems I was overlooking it in the zip file.  Of course the next
>question is, where is the source for that jar?
>
>Tim
>
>
>
>  
>  
>esther.miranda@glob   
>  
>alsign.net
>  
>  
>  
>07/25/2002 01:12 AM   
>  
>Please respond to 
>  
>"Struts Users   To: [EMAIL PROTECTED]
>  
>Mailing List"   cc:   
>  
>  
>  
>  
>  
>  
>                  
>   Subject: RE: Tiles and Struts 
>1.0.2? 
>  
>  
>
>
>
>Caterpillar: Confidential Green  Retain Until: 08/24/2002
> Retention Category:  G90 -
> Information and Reports
>
>
>
>
>The Tiles site (http://www.lifl.fr/~dumoulin/tiles/) is the place to go.
>The binary download (tiles.zip for ex.) contains the
>'tilesForStruts1.0.jar'
>you mention and also a 'tiles-blank-struts1-0.war to help you get started.
>
>g
>Esther
>
>  
>
>>-Original Message-
>>From: Tim T. Young [mailto:[EMAIL PROTECTED]]
>>Sent: woensdag 24 juli 2002 18:04
>>To: Struts Users Mailing List
>>Subject: Tiles and Struts 1.0.2?
>>
>>
>>I am looking for the Tiles version that works with Struts
>>1.0.2.  Google,
>>the Tiles site, etc have not helped.  I have seen mention of
>>a file called
>>tilesForStruts1.0.jar but I cannot find anywhere.  (Of course
>>I would love
>>to upgrade to the latest of everything Struts/Tiles/etc but
>>VAJ is holding
>>me back with clashes with JAXP 1.1.  WSAD is months away for me also.)
>>Maybe I am just overlooking the link or something...
>>
>>Thanks!
>>Tim
>>
>>
>>--
>>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: Tiles and Struts 1.0.2?

2002-07-25 Thread Tim T. Young


Thanks, seems I was overlooking it in the zip file.  Of course the next
question is, where is the source for that jar?

Tim



   
 
esther.miranda@glob
 
alsign.net 
 
   
 
07/25/2002 01:12 AM
 
Please respond to  
 
"Struts Users   To: [EMAIL PROTECTED] 
 
Mailing List"   cc:
 
   
 
   
 
   
 
   Subject: RE: Tiles and Struts 
1.0.2? 
   
 



Caterpillar: Confidential Green  Retain Until: 08/24/2002
 Retention Category:  G90 -
 Information and Reports




The Tiles site (http://www.lifl.fr/~dumoulin/tiles/) is the place to go.
The binary download (tiles.zip for ex.) contains the
'tilesForStruts1.0.jar'
you mention and also a 'tiles-blank-struts1-0.war to help you get started.

g
Esther

> -Original Message-
> From: Tim T. Young [mailto:[EMAIL PROTECTED]]
> Sent: woensdag 24 juli 2002 18:04
> To: Struts Users Mailing List
> Subject: Tiles and Struts 1.0.2?
>
>
> I am looking for the Tiles version that works with Struts
> 1.0.2.  Google,
> the Tiles site, etc have not helped.  I have seen mention of
> a file called
> tilesForStruts1.0.jar but I cannot find anywhere.  (Of course
> I would love
> to upgrade to the latest of everything Struts/Tiles/etc but
> VAJ is holding
> me back with clashes with JAXP 1.1.  WSAD is months away for me also.)
> Maybe I am just overlooking the link or something...
>
> Thanks!
> Tim
>
>
> --
> 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: Tiles and Struts 1.0.2?

2002-07-24 Thread esther . miranda

The Tiles site (http://www.lifl.fr/~dumoulin/tiles/) is the place to go.
The binary download (tiles.zip for ex.) contains the 'tilesForStruts1.0.jar'
you mention and also a 'tiles-blank-struts1-0.war to help you get started.

g
Esther

> -Original Message-
> From: Tim T. Young [mailto:[EMAIL PROTECTED]]
> Sent: woensdag 24 juli 2002 18:04
> To: Struts Users Mailing List
> Subject: Tiles and Struts 1.0.2?
> 
> 
> I am looking for the Tiles version that works with Struts 
> 1.0.2.  Google,
> the Tiles site, etc have not helped.  I have seen mention of 
> a file called
> tilesForStruts1.0.jar but I cannot find anywhere.  (Of course 
> I would love
> to upgrade to the latest of everything Struts/Tiles/etc but 
> VAJ is holding
> me back with clashes with JAXP 1.1.  WSAD is months away for me also.)
> Maybe I am just overlooking the link or something...
> 
> Thanks!
> Tim
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


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




Re: Tiles And Struts

2002-06-27 Thread Cedric Dumoulin


  There is no official Tiles' plugin today. I work on it. If someone has already
implemented it and would like to donate it ...
  When the plugin will be released, it will be the preferred way to initialize
Tiles.

  Cedric

William W wrote:

> Why not plugIn ?
> What functionality is lost if using tiles' plugIn ?
> Just out of curiosity.
>
> William.
>
> >From: Vincent Stoessel <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: Struts Users Mailing List <[EMAIL PROTECTED]>
> >Subject: Re: Tiles And Struts
> >Date: Wed, 26 Jun 2002 11:42:50 -0400
> >
> >Thanks. That's what I thought.
> >I was wondering why the original poster id not want to use it.
> >
> >
> >
> >Cedric Dumoulin wrote:
> >>   By using tiles ActionComponentServlet , no Struts functionalities are
> >>lost. You
> >>gain one : the ability to use Tiles definitions names as Struts forward.
> >>   Note that Struts1.1 also require the TilesRequestProcessor to enable
> >>Tiles.
> >>
> >>  Cedric
> >>
> >>
> >>Vincent Stoessel wrote:
> >>
> >>
> >>>Just out of curiosity, what functionality is lost
> >>>by using tiles' ActionComponentServlet ?
> >>>Thanks
> >>>
> >>>Ricardo de Souza Moura wrote:
> >>>
> >>>>Can I use a plugIn to Tiles ?
> >>>>I am not wanting to use the ActionComponentServlet, but I am wanting to
> >>>>use the definitions-config param.
> >>>>
> >>>>There are some way ?
> >>>>
> >>>>Thanks
> >>>>
> >>>>_
> >>>>MSN Photos é a maneira mais fácil e prática de editar e compartilhar sua
> >>>>fotos: http://photos.msn.com.br
> >>>>
> >>>>
> >>>>--
> >>>>To unsubscribe, e-mail:
> >>>><mailto:[EMAIL PROTECTED]>
> >>>>For additional commands, e-mail:
> >>>><mailto:[EMAIL PROTECTED]>
> >>>
> >>>--
> >>>Vincent Stoessel
> >>>Linux Systems Developer
> >>>vincent xaymaca.com
> >>>
> >>>--
> >>>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]>
> >
> >
> >
> >--
> >Vincent Stoessel
> >Linux Systems Developer
> >vincent xaymaca.com
> >
> >
> >--
> >To unsubscribe, e-mail:
> ><mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail:
> ><mailto:[EMAIL PROTECTED]>
>
> _
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>
> --
> 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: Tiles And Struts

2002-06-27 Thread William W


Why not plugIn ?
What functionality is lost if using tiles' plugIn ?
Just out of curiosity.

William.



>From: Vincent Stoessel <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: Re: Tiles And Struts
>Date: Wed, 26 Jun 2002 11:42:50 -0400
>
>Thanks. That's what I thought.
>I was wondering why the original poster id not want to use it.
>
>
>
>Cedric Dumoulin wrote:
>>   By using tiles ActionComponentServlet , no Struts functionalities are 
>>lost. You
>>gain one : the ability to use Tiles definitions names as Struts forward.
>>   Note that Struts1.1 also require the TilesRequestProcessor to enable 
>>Tiles.
>>
>>  Cedric
>>
>>
>>Vincent Stoessel wrote:
>>
>>
>>>Just out of curiosity, what functionality is lost
>>>by using tiles' ActionComponentServlet ?
>>>Thanks
>>>
>>>Ricardo de Souza Moura wrote:
>>>
>>>>Can I use a plugIn to Tiles ?
>>>>I am not wanting to use the ActionComponentServlet, but I am wanting to
>>>>use the definitions-config param.
>>>>
>>>>There are some way ?
>>>>
>>>>Thanks
>>>>
>>>>_
>>>>MSN Photos é a maneira mais fácil e prática de editar e compartilhar sua
>>>>fotos: http://photos.msn.com.br
>>>>
>>>>
>>>>--
>>>>To unsubscribe, e-mail:
>>>><mailto:[EMAIL PROTECTED]>
>>>>For additional commands, e-mail:
>>>><mailto:[EMAIL PROTECTED]>
>>>
>>>--
>>>Vincent Stoessel
>>>Linux Systems Developer
>>>vincent xaymaca.com
>>>
>>>--
>>>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]>
>
>
>
>--
>Vincent Stoessel
>Linux Systems Developer
>vincent xaymaca.com
>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




Re: Tiles And Struts

2002-06-26 Thread Ricardo de Souza Moura

Thanks to all !!!




_
Converse com amigos on-line, conheça o MSN Messenger: 
http://messenger.msn.com


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




Re: Tiles And Struts

2002-06-26 Thread Vincent Stoessel

Thanks. That's what I thought.
I was wondering why the original poster id not want to use it.



Cedric Dumoulin wrote:
>   By using tiles ActionComponentServlet , no Struts functionalities are lost. You
> gain one : the ability to use Tiles definitions names as Struts forward.
>   Note that Struts1.1 also require the TilesRequestProcessor to enable Tiles.
> 
>  Cedric
> 
> 
> Vincent Stoessel wrote:
> 
> 
>>Just out of curiosity, what functionality is lost
>>by using tiles' ActionComponentServlet ?
>>Thanks
>>
>>Ricardo de Souza Moura wrote:
>>
>>>Can I use a plugIn to Tiles ?
>>>I am not wanting to use the ActionComponentServlet, but I am wanting to
>>>use the definitions-config param.
>>>
>>>There are some way ?
>>>
>>>Thanks
>>>
>>>_
>>>MSN Photos é a maneira mais fácil e prática de editar e compartilhar sua
>>>fotos: http://photos.msn.com.br
>>>
>>>
>>>--
>>>To unsubscribe, e-mail:
>>>
>>>For additional commands, e-mail:
>>>
>>
>>--
>>Vincent Stoessel
>>Linux Systems Developer
>>vincent xaymaca.com
>>
>>--
>>To unsubscribe, e-mail:   
>>For additional commands, e-mail: 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 



-- 
Vincent Stoessel
Linux Systems Developer
vincent xaymaca.com


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




Re: Tiles And Struts

2002-06-26 Thread Cedric Dumoulin


  By using tiles ActionComponentServlet , no Struts functionalities are lost. You
gain one : the ability to use Tiles definitions names as Struts forward.
  Note that Struts1.1 also require the TilesRequestProcessor to enable Tiles.

 Cedric


Vincent Stoessel wrote:

> Just out of curiosity, what functionality is lost
> by using tiles' ActionComponentServlet ?
> Thanks
>
> Ricardo de Souza Moura wrote:
> > Can I use a plugIn to Tiles ?
> > I am not wanting to use the ActionComponentServlet, but I am wanting to
> > use the definitions-config param.
> >
> > There are some way ?
> >
> > Thanks
> >
> > _
> > MSN Photos é a maneira mais fácil e prática de editar e compartilhar sua
> > fotos: http://photos.msn.com.br
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
>
> --
> Vincent Stoessel
> Linux Systems Developer
> vincent xaymaca.com
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


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




Re: Tiles And Struts

2002-06-26 Thread Vincent Stoessel

Just out of curiosity, what functionality is lost
by using tiles' ActionComponentServlet ?
Thanks

Ricardo de Souza Moura wrote:
> Can I use a plugIn to Tiles ?
> I am not wanting to use the ActionComponentServlet, but I am wanting to 
> use the definitions-config param.
> 
> There are some way ?
> 
> Thanks
> 
> _
> MSN Photos é a maneira mais fácil e prática de editar e compartilhar sua 
> fotos: http://photos.msn.com.br
> 
> 
> -- 
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 



-- 
Vincent Stoessel
Linux Systems Developer
vincent xaymaca.com


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




Re: Tiles And Struts

2002-06-26 Thread Cedric Dumoulin


  Hello,

  For now, the Tiles plugin is not available.
  If you use Struts1.1, I think you can use the definitions-config file without
ActionComponentServlet. In Struts 1.1, the servlet is only used to initialize the
tiles definition factory, which in turn read the config file. So, if you
initialize yourself the factory prior to any call to it (like  or struts
forward do), you should be able to not use the ActionComponentServlet. Such
initialization can be done in a plugin.

Hope this help,

   Cedric

Ricardo de Souza Moura wrote:

> Can I use a plugIn to Tiles ?
> I am not wanting to use the ActionComponentServlet, but I am wanting to use
> the definitions-config param.
>
> There are some way ?
>
> Thanks
>
> _
> MSN Photos é a maneira mais fácil e prática de editar e compartilhar sua
> fotos: http://photos.msn.com.br
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


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




Re: Tiles and Struts

2002-06-24 Thread Ricardo de Souza Moura

thanks


>From: Dennis Muhlestein <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: Re: Tiles and Struts
>Date: 24 Jun 2002 14:41:08 -0600
>
>AFAIK If you configure tiles with an xml file, the
>ActionComponentServlet is in charge of reading that configuration and
>forwarding to the correct definitions.
>
>If you just use a jsp page to tell which template/tiles to use, the
>action servlet isn't used.
>
>-Dennis
>
>
>On Mon, 2002-06-24 at 14:26, Ricardo de Souza Moura wrote:
> > Why I need to put org.apache.struts.tiles.ActionComponentServlet at the
> >  element in the web.xml file ?
> > I noticed that if my servlet is the default action servlet of the 
>Struts, my
> > Tile samples work fine too.
> >
> > Why?
> >
> >
> > _
> > Chegou o novo MSN Explorer. Instale já. É gratuito:
> > http://explorer.msn.com.br
> >
> >
> > --
> > 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]>




_
Envie e receba emails com o Hotmail no seu dispositivo móvel: 
http://mobile.msn.com


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




Re: Tiles and Struts

2002-06-24 Thread Dennis Muhlestein

AFAIK If you configure tiles with an xml file, the
ActionComponentServlet is in charge of reading that configuration and
forwarding to the correct definitions.

If you just use a jsp page to tell which template/tiles to use, the
action servlet isn't used.

-Dennis


On Mon, 2002-06-24 at 14:26, Ricardo de Souza Moura wrote:
> Why I need to put org.apache.struts.tiles.ActionComponentServlet at the 
>  element in the web.xml file ?
> I noticed that if my servlet is the default action servlet of the Struts, my 
> Tile samples work fine too.
> 
> Why?
> 
> 
> _
> Chegou o novo MSN Explorer. Instale já. É gratuito: 
> http://explorer.msn.com.br
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



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




Re: Tiles and struts action

2002-04-04 Thread Cedric Dumoulin


  The jsp specification says that it is forbidden to do a forward once the response
has been committed.
  Response is committed once you have written something to the resulting page. So,
generally you can't do a forward once you have started writing the response.
  The only thing you can do is an include, or a send redirect (but in this latest
case you will loose your current request).

Hope this help,

  Cedric



"Wellie W. Chao" wrote:

> More generally, is it possible to forward from within a child tile? I know
> I can forward within the original page, but I can't seem to get forwarding
> working from within a layout page or an included tile. I've tried
> increasing the buffer size with <%@ page buffer="32kb" %>, but this
> doesn't do anything. I've also tried , but
> the flush attribute doesn't make a difference. I still get the message
> about an inability to forward because the response has already been
> committed. Does anyone have clues on why this behavior occurs? Does Tiles
> flush the headers and part of the page out before loading the layout? Can
> I disable this behavior somehow?
>
> On Thu, 28 Mar 2002, Wellie W. Chao wrote:
>
> > Date: Thu, 28 Mar 2002 22:23:58 -0500 (EST)
> > From: Wellie W. Chao <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > Subject: Re: Tiles and struts action
> >
> > Did you ever figure out the solution to the Response has been committed
> > problem? I am now having a similar problem with a custom tag. I have a tag
> > called checkLogin that I place in a page like so:
> >
> > -
> > <%@ taglib uri="/WEB-INF/app.tld" prefix="app" %>
> > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> > <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
> >
> > 
> > 
> > ...
> > 
> > -
> >
> > I get the following error:
> > [ServletException in:/tiles-layouts/adminLayout.jsp]
> > java.lang.IllegalStateException: Cannot forward after response has been
> > committed'
> >
> > The code for the checkLogin tag checks to see if a user is logged in. If
> > so, and he is in the role, the tag does nothing. If not, the tag forwards
> > to the login page.
> >
> > I would rather use the tag than container-based security because I want to
> > protect pages by classes of layout rather than by directory structure.
> >
> > On Wed, 13 Mar 2002, Hill, Donald wrote:
> >
> > > Date: Wed, 13 Mar 2002 09:48:54 -0500
> > > From: "Hill, Donald" <[EMAIL PROTECTED]>
> > > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List (E-mail)" <[EMAIL PROTECTED]>
> > > Subject: FW: Tiles and struts action
> > >
> > >
> > > -Original Message-
> > > From: Hill, Donald
> > > Sent: Tuesday, March 12, 2002 12:44 PM
> > > To: 'Jakarta Tag Libraries Users List' (E-mail)
> > > Subject: Tiles and struts action
> > >
> > >
> > > I am trying to use a struts action in a tile definition, something like
> > > this.
> > >
> > >
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> > >
> > > 
> > > 
> > > 
> > > 
> > >
> > > I always get a Response has been committed on the template page.
> > > Is there a trick to using a struts action in tiles or template tags that I
> > > am missing.
> > >
> > > -Don-
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
> > --
> > 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: Tiles and struts action

2002-03-28 Thread Wellie W. Chao

More generally, is it possible to forward from within a child tile? I know
I can forward within the original page, but I can't seem to get forwarding
working from within a layout page or an included tile. I've tried
increasing the buffer size with <%@ page buffer="32kb" %>, but this
doesn't do anything. I've also tried , but
the flush attribute doesn't make a difference. I still get the message
about an inability to forward because the response has already been
committed. Does anyone have clues on why this behavior occurs? Does Tiles
flush the headers and part of the page out before loading the layout? Can
I disable this behavior somehow?

On Thu, 28 Mar 2002, Wellie W. Chao wrote:

> Date: Thu, 28 Mar 2002 22:23:58 -0500 (EST)
> From: Wellie W. Chao <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: Tiles and struts action
>
> Did you ever figure out the solution to the Response has been committed
> problem? I am now having a similar problem with a custom tag. I have a tag
> called checkLogin that I place in a page like so:
>
> -
> <%@ taglib uri="/WEB-INF/app.tld" prefix="app" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
>
> 
> 
> ...
> 
> -
>
> I get the following error:
> [ServletException in:/tiles-layouts/adminLayout.jsp]
> java.lang.IllegalStateException: Cannot forward after response has been
> committed'
>
> The code for the checkLogin tag checks to see if a user is logged in. If
> so, and he is in the role, the tag does nothing. If not, the tag forwards
> to the login page.
>
> I would rather use the tag than container-based security because I want to
> protect pages by classes of layout rather than by directory structure.
>
> On Wed, 13 Mar 2002, Hill, Donald wrote:
>
> > Date: Wed, 13 Mar 2002 09:48:54 -0500
> > From: "Hill, Donald" <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List (E-mail)" <[EMAIL PROTECTED]>
> > Subject: FW: Tiles and struts action
> >
> >
> > -Original Message-
> > From: Hill, Donald
> > Sent: Tuesday, March 12, 2002 12:44 PM
> > To: 'Jakarta Tag Libraries Users List' (E-mail)
> > Subject: Tiles and struts action
> >
> >
> > I am trying to use a struts action in a tile definition, something like
> > this.
> >
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> >
> > 
> > 
> > 
> > 
> >
> > I always get a Response has been committed on the template page.
> > Is there a trick to using a struts action in tiles or template tags that I
> > am missing.
> >
> > -Don-
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
>
> --
> 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: Tiles and struts action

2002-03-28 Thread Wellie W. Chao

Did you ever figure out the solution to the Response has been committed
problem? I am now having a similar problem with a custom tag. I have a tag
called checkLogin that I place in a page like so:

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



...

-

I get the following error:
[ServletException in:/tiles-layouts/adminLayout.jsp]
java.lang.IllegalStateException: Cannot forward after response has been
committed'

The code for the checkLogin tag checks to see if a user is logged in. If
so, and he is in the role, the tag does nothing. If not, the tag forwards
to the login page.

I would rather use the tag than container-based security because I want to
protect pages by classes of layout rather than by directory structure.

On Wed, 13 Mar 2002, Hill, Donald wrote:

> Date: Wed, 13 Mar 2002 09:48:54 -0500
> From: "Hill, Donald" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List (E-mail)" <[EMAIL PROTECTED]>
> Subject: FW: Tiles and struts action
>
>
> -Original Message-
> From: Hill, Donald
> Sent: Tuesday, March 12, 2002 12:44 PM
> To: 'Jakarta Tag Libraries Users List' (E-mail)
> Subject: Tiles and struts action
>
>
> I am trying to use a struts action in a tile definition, something like
> this.
>
>
> 
> 
> 
> 
> 
> 
> 
>
>
> 
> 
> 
> 
>
> I always get a Response has been committed on the template page.
> Is there a trick to using a struts action in tiles or template tags that I
> am missing.
>
> -Don-
>
>
>
>
>
>
>
>
>


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




Re: Tiles and struts action

2002-03-13 Thread Cedric Dumoulin


  Hello,

  Your definitions seem ok, except the url  in value="jobList.do" should
better start with a /.
  You can encountered an error like this when one of the inserted Tiles has
itself an error. Check each Tile separately (call their urls) to know which
one fail.

  Actually, more appropriate list for Struts and Tiles related question is
struts user list ;-), so I move this thread there.

Cedric


"Hill, Donald" wrote:

> I am trying to use a struts action in a tile definition, something like
> this.
>
>
> 
> 
> 
> 
> 
> 
> 
>
>
> 
> 
> 
> 
>
> I always get a Response has been committed on the template page.
> Is there a trick to using a struts action in tiles or template tags that I
> am missing.
>
> -Don-
>
>
>
>
>
>
>
>


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