Re: How to access JSP variables inside Tiles

2006-10-05 Thread Chris Pratt
I'm pretty sure you can't. Is there a reason that can't be a tile? The whole purpose of tiles is to be a way more efficient and flexible version of JSP Includes. If you incorporated the contents of that include in a tile, there's a good chance that you won't have to worry about trying to figure

Re: How to access JSP variables inside Tiles

2006-10-05 Thread Vinod Kumar
Hi Chris, I am still not able to make it work. Which is my outermost tile? I think, my tiles are not embedded into each other. Also, can I use the JSP variable declared in printable.jsp into another tile like = "somepage.jsp">This is link Thanks for your time. Thanks Vinod --- Chris Pratt

Re: How to access JSP variables inside Tiles

2006-10-04 Thread Chris Pratt
Then you should be able to go to the outermost tile and use after you've imported the tiles taglib and all the tile variables to be available to the jsp and jstl tags. (*Chris*) On 10/4/06, Vinod Kumar <[EMAIL PROTECTED]> wrote: Hi Chris, Thanks for your quick response. I could not make it to

Re: How to access JSP variables inside Tiles

2006-10-04 Thread Vinod Kumar
Hi Chris, Thanks for your quick response. I could not make it to work. sorry, I am new to this stuff. In which tile should I include ? I want to import all the variables available in tile "printable.jsp" and put them in request scope, so that I can use them in all of the tiles. Thanks Vinod ---

Re: How to access JSP variables inside Tiles

2006-10-04 Thread Chris Pratt
If they are tile scope variables, you either need to put at the top of the page to put them in page scope or use the tiles tags to insert the values (like ) (*Chris*) On 10/4/06, Vinod Kumar <[EMAIL PROTECTED]> wrote: Hi Chris, I made the printable.jsp page as a tile and included it in th

Re: How to access JSP variables inside Tiles

2006-10-04 Thread Vinod Kumar
Hi Chris, I made the printable.jsp page as a tile and included it in the layout-tiles.jsp page. But still I can't access the variables declared in tile "printable" in another tile. I try to access the href variable like = "contact.jsp">This is link but I get Undefined variable: href out.pri

Re: How to access JSP variables inside Tiles

2006-10-04 Thread Chris Pratt
That's because it's a JSP include, not a tile. JSP knows nothing about the tile scope and since the inclusion gets done by the JSP processor, not the tiles plugin, the tile variables aren't available. Make that a tile instead and you shouldn't have a problem. (*Chris*) On 10/4/06, Vinod Kumar