Tiles And Frames
Is there a good place/article/sample code to check out, for mixing framesets and tiles. The App that I am working on seems to need to use both. Basically, we have to display content such that there are 2 frames, the left one showing some text, while the right one accepts user input. Both these also need to be scrollable separately. Am reposting this question. Sorry am desperate for an answer. Has anyone ever tried using framesets from within tiles instead of the other way around? My intention is to somehow include these frames within a Body tile. The other issue is that there is also a footer tile, which might need to include a frameset. The reason being the the control buttons need to always be visible(without having to scroll to view them). Here is what i tried: Layout used for the Body: div id=content-well tiles:insert attribute=quiz/ tiles:insert attribute=quizfooter/ /div quiz actually has a value in the tile-defs that points to the quizcontent.jsp shown below: frameset cols=20,720,* frame frameborder=0 frameset cols=360,* frame frameborder=0 src=/practicequizzes/quiz.jsp frame frameborder=0 src=/practicequizzes/quiz.jsp /frameset frame frameborder=0 /frameset The problem with this is that the /practicequizzes/quiz.jsp is never actually sourced and I just see nothing in the body tile. Thanks, Shitij Mutreja The College Board 11911 Freedom Drive, Suite 300 Reston, VA 20190 571.262.5701 (Phone) 703.707.5596 (Fax) [EMAIL PROTECTED] http://www.collegeboard.com/highered/index.html
Re: Tiles And Frames
For you Tiles devotees out there, I think this would be something that would be really helpful. This is a recurring question. I know! I know! If I have time, I will, after the other stuff. Just a second of this need. At 10:35 AM 2/5/2004, Mutreja, Shitij wrote: Is there a good place/article/sample code to check out, for mixing framesets and tiles. The App that I am working on seems to need to use both. Basically, we have to display content such that there are 2 frames, the left one showing some text, while the right one accepts user input. Both these also need to be scrollable separately. Am reposting this question. Sorry am desperate for an answer. Has anyone ever tried using framesets from within tiles instead of the other way around? My intention is to somehow include these frames within a Body tile. The other issue is that there is also a footer tile, which might need to include a frameset. The reason being the the control buttons need to always be visible(without having to scroll to view them). Here is what i tried: Layout used for the Body: div id=content-well tiles:insert attribute=quiz/ tiles:insert attribute=quizfooter/ /div quiz actually has a value in the tile-defs that points to the quizcontent.jsp shown below: frameset cols=20,720,* frame frameborder=0 frameset cols=360,* frame frameborder=0 src=/practicequizzes/quiz.jsp frame frameborder=0 src=/practicequizzes/quiz.jsp /frameset frame frameborder=0 /frameset The problem with this is that the /practicequizzes/quiz.jsp is never actually sourced and I just see nothing in the body tile. Thanks, Shitij Mutreja The College Board 11911 Freedom Drive, Suite 300 Reston, VA 20190 571.262.5701 (Phone) 703.707.5596 (Fax) [EMAIL PROTECTED] http://www.collegeboard.com/highered/index.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tiles And Frames
According to: http://www.w3.org/TR/REC-html40/present/frames.html 16.2 Layout of frames An HTML document that describes frame layout (called a frameset document) has a different makeup than an HTML document without frames. A standard document has one HEAD section and one BODY. A frameset document has a HEAD, and a FRAMESET in place of the BODY. So, it's not so much a question of doing it within tiles, so much as not allowed by HTML. How you generate your final html is irrelevant (tiles, includes, ssi, tags, etc). What is important is the final product to be read by the browser. - Original Message - From: Michael McGrady [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, February 05, 2004 5:56 PM Subject: Re: Tiles And Frames For you Tiles devotees out there, I think this would be something that would be really helpful. This is a recurring question. I know! I know! If I have time, I will, after the other stuff. Just a second of this need. At 10:35 AM 2/5/2004, Mutreja, Shitij wrote: Is there a good place/article/sample code to check out, for mixing framesets and tiles. The App that I am working on seems to need to use both. Basically, we have to display content such that there are 2 frames, the left one showing some text, while the right one accepts user input. Both these also need to be scrollable separately. Am reposting this question. Sorry am desperate for an answer. Has anyone ever tried using framesets from within tiles instead of the other way around? My intention is to somehow include these frames within a Body tile. The other issue is that there is also a footer tile, which might need to include a frameset. The reason being the the control buttons need to always be visible(without having to scroll to view them). Here is what i tried: Layout used for the Body: div id=content-well tiles:insert attribute=quiz/ tiles:insert attribute=quizfooter/ /div quiz actually has a value in the tile-defs that points to the quizcontent.jsp shown below: frameset cols=20,720,* frame frameborder=0 frameset cols=360,* frame frameborder=0 src=/practicequizzes/quiz.jsp frame frameborder=0 src=/practicequizzes/quiz.jsp /frameset frame frameborder=0 /frameset The problem with this is that the /practicequizzes/quiz.jsp is never actually sourced and I just see nothing in the body tile. Thanks, Shitij Mutreja The College Board 11911 Freedom Drive, Suite 300 Reston, VA 20190 571.262.5701 (Phone) 703.707.5596 (Fax) [EMAIL PROTECTED] http://www.collegeboard.com/highered/index.html - 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]
Tiles and Frames
Hello did anyone ever tried to combine Frames and Tiles? i want to build a page with one left and one right frame. is there any chance to build frames with tiles? (i need the frames because i get results from database slowly and want to print results as soon as they arrive) if i only use tiles without frames tiles is waiting till all results are printed in left side and then prints the right side so i want to define the frames in my masterlayout looking like frameset cols=30%,70% border=1 frameborder=1 framespacing=1 frame src=left name=menu frame src=right name=workplace /frameset so how can i use now the tiles:insert attribute=left/ instead of left? all still clear? (*i hope so*) Michael
Re: Tiles and Frames
Michael, Not sure if this works, but I thought I might suggest this: frame src=tiles:getAsString name='left'/ name=menu in your layout. Then in your definition or your jsp you can assign the path of the jsp with put name=left value=/path/to/your/jspfile.jsp / Hope it works.. SB Frers Michael wrote: Hello did anyone ever tried to combine Frames and Tiles? i want to build a page with one left and one right frame. is there any chance to build frames with tiles? (i need the frames because i get results from database slowly and want to print results as soon as they arrive) if i only use tiles without frames tiles is waiting till all results are printed in left side and then prints the right side so i want to define the frames in my masterlayout looking like frameset cols=30%,70% border=1 frameborder=1 framespacing=1 frame src=left name=menu frame src=right name=workplace /frameset so how can i use now the tiles:insert attribute=left/ instead of left? all still clear? (*i hope so*) Michael -- NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A question on Tiles and Frames
Overflow is actually a standard CSS feature that IE only partially supports. In Mozilla, you can do this with a lot more elements including tables where the header remains fixed while the data scrolls. K.C. Mike Jasnowski wrote: Well, depending on the web client you are using, IE has a feature that enables some block level elements like DIV to be scrollable. You can set an overflow CSS property that enables a scrollbar to appear.There are also cross-browser solutions for making independent (non-frame) scrollable areas of content. -Original Message- From: Nimish Chourey , Tidel Park - Chennai [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 9:42 AM To: Struts Users Mailing List Subject: RE: A question on Tiles and Frames I had the same problem .. while developing a Menu (left side) .. wanted to make that scrollable .. But I guess its not possible with Tiles I guess .. Infact try doing it without tiles (and without frames) .. its not possible . And if somehow if its really possible .. I would definately like to know that .. -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 5:57 PM To: Struts Users Mailing List Subject: Re: A question on Tiles and Frames Okay. So is there *another* way to implement independently scrollable content within a region of a page using Struts and Tiles? -jeff On Friday, June 20, 2003, at 07:17 AM, Cedric Dumoulin wrote: The page of a frame should alway be publicly accessible. It is alway possible to access it directly without the other associated frames. So, you can't hide them. Cedric Cedric Jeff Kyser wrote: Hey Cedric, Thanks for the response. I guess I'd figured out I couldn't put them under WEB-INF for the reasons you stated. So how can I implement a scollable region such as a frame might offer and still use Tiles and stay with some of the 'best practices' recommended for Struts development such as hiding your JSPs under WEB-INF? I suppose it gets off-topic, but surely there must be a way to have independently scrolled regions of a web page in a Struts environment without making every page publicly accessible? thanks, I'd sure like some insight as to how to proceed... -jeff Hi, Each frame of a frameset is filled with a web page. Each one issue an independent http request to the web server. So each page corresponding to a frame should be publicly accessible on the web server, and can't be under WEB-INF. Cedric but I get Forbidden errors, presumably because my JSPs are beneath the WEB-INF directory and therefore not accessible. Is there an alternate way to do this and still have my JSPs underneath WEB-INF? (Basically, I have a frames-based layout with a scrollable panel, and am trying to figure out how to best implement that feature using Struts/Tiles without exposing all my JSPs. TIA, -jeff - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A question on Tiles and Frames
Hi, Each frame of a frameset is filled with a web page. Each one issue an independent http request to the web server. So each page corresponding to a frame should be publicly accessible on the web server, and can't be under WEB-INF. Cedric Jeff Kyser wrote: Hello, I was trying to use a Tile Definition like: definition name=associator.masterPage path=/WEB-INF/pages/tiles/framesetLayout.jsp put name=title value=Associator / put name=heading value=/WEB-INF/pages/tiles/heading.jsp / put name=codevalue=/WEB-INF/pages/tiles/emptyMenu.jsp / put name=menuvalue=/WEB-INF/pages/menu.jsp / put name=button value=/WEB-INF/pages/button.jsp/ put name=textvalue=/WEB-INF/pages/categories.jsp/ /definition with a framesetLayout.jsp that looks like: frameset rows=137,* frameborder=NO border=0 framespacing=0 frame src=%=request.getContextPath()%tiles:getAsString name=heading / name=heading scrolling=NO noresize frameset cols=217,* frameborder=NO border=0 framespacing=0 frameset rows=0,* frameborder=NO border=0 framespacing=0 frame src=%=request.getContextPath()%tiles:getAsString name=code / name=code frame src=%=request.getContextPath()%tiles:getAsString name=menu / name=menu /frameset frameset rows=26%,* frameborder=0 border=0 framespacing=5 cols=* frame src=%=request.getContextPath()%tiles:getAsString name=button / name=button noresize/ frame src=%=request.getContextPath()%tiles:getAsString name=text / name=text noresize/ /frameset /frameset /frameset but I get Forbidden errors, presumably because my JSPs are beneath the WEB-INF directory and therefore not accessible. Is there an alternate way to do this and still have my JSPs underneath WEB-INF? (Basically, I have a frames-based layout with a scrollable panel, and am trying to figure out how to best implement that feature using Struts/Tiles without exposing all my JSPs. TIA, -jeff - 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: A question on Tiles and Frames
Hey Cedric, Thanks for the response. I guess I'd figured out I couldn't put them under WEB-INF for the reasons you stated. So how can I implement a scollable region such as a frame might offer and still use Tiles and stay with some of the 'best practices' recommended for Struts development such as hiding your JSPs under WEB-INF? I suppose it gets off-topic, but surely there must be a way to have independently scrolled regions of a web page in a Struts environment without making every page publicly accessible? thanks, I'd sure like some insight as to how to proceed... -jeff Hi, Each frame of a frameset is filled with a web page. Each one issue an independent http request to the web server. So each page corresponding to a frame should be publicly accessible on the web server, and can't be under WEB-INF. Cedric but I get Forbidden errors, presumably because my JSPs are beneath the WEB-INF directory and therefore not accessible. Is there an alternate way to do this and still have my JSPs underneath WEB-INF? (Basically, I have a frames-based layout with a scrollable panel, and am trying to figure out how to best implement that feature using Struts/Tiles without exposing all my JSPs. TIA, -jeff - 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: A question on Tiles and Frames
The page of a frame should alway be publicly accessible. It is alway possible to access it directly without the other associated frames. So, you can't hide them. Cedric Cedric Jeff Kyser wrote: Hey Cedric, Thanks for the response. I guess I'd figured out I couldn't put them under WEB-INF for the reasons you stated. So how can I implement a scollable region such as a frame might offer and still use Tiles and stay with some of the 'best practices' recommended for Struts development such as hiding your JSPs under WEB-INF? I suppose it gets off-topic, but surely there must be a way to have independently scrolled regions of a web page in a Struts environment without making every page publicly accessible? thanks, I'd sure like some insight as to how to proceed... -jeff Hi, Each frame of a frameset is filled with a web page. Each one issue an independent http request to the web server. So each page corresponding to a frame should be publicly accessible on the web server, and can't be under WEB-INF. Cedric but I get Forbidden errors, presumably because my JSPs are beneath the WEB-INF directory and therefore not accessible. Is there an alternate way to do this and still have my JSPs underneath WEB-INF? (Basically, I have a frames-based layout with a scrollable panel, and am trying to figure out how to best implement that feature using Struts/Tiles without exposing all my JSPs. TIA, -jeff - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A question on Tiles and Frames
Okay. So is there *another* way to implement independently scrollable content within a region of a page using Struts and Tiles? -jeff On Friday, June 20, 2003, at 07:17 AM, Cedric Dumoulin wrote: The page of a frame should alway be publicly accessible. It is alway possible to access it directly without the other associated frames. So, you can't hide them. Cedric Cedric Jeff Kyser wrote: Hey Cedric, Thanks for the response. I guess I'd figured out I couldn't put them under WEB-INF for the reasons you stated. So how can I implement a scollable region such as a frame might offer and still use Tiles and stay with some of the 'best practices' recommended for Struts development such as hiding your JSPs under WEB-INF? I suppose it gets off-topic, but surely there must be a way to have independently scrolled regions of a web page in a Struts environment without making every page publicly accessible? thanks, I'd sure like some insight as to how to proceed... -jeff Hi, Each frame of a frameset is filled with a web page. Each one issue an independent http request to the web server. So each page corresponding to a frame should be publicly accessible on the web server, and can't be under WEB-INF. Cedric but I get Forbidden errors, presumably because my JSPs are beneath the WEB-INF directory and therefore not accessible. Is there an alternate way to do this and still have my JSPs underneath WEB-INF? (Basically, I have a frames-based layout with a scrollable panel, and am trying to figure out how to best implement that feature using Struts/Tiles without exposing all my JSPs. TIA, -jeff - 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] - 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: A question on Tiles and Frames
I had the same problem .. while developing a Menu (left side) .. wanted to make that scrollable .. But I guess its not possible with Tiles I guess .. Infact try doing it without tiles (and without frames) .. its not possible . And if somehow if its really possible .. I would definately like to know that .. -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 5:57 PM To: Struts Users Mailing List Subject: Re: A question on Tiles and Frames Okay. So is there *another* way to implement independently scrollable content within a region of a page using Struts and Tiles? -jeff On Friday, June 20, 2003, at 07:17 AM, Cedric Dumoulin wrote: The page of a frame should alway be publicly accessible. It is alway possible to access it directly without the other associated frames. So, you can't hide them. Cedric Cedric Jeff Kyser wrote: Hey Cedric, Thanks for the response. I guess I'd figured out I couldn't put them under WEB-INF for the reasons you stated. So how can I implement a scollable region such as a frame might offer and still use Tiles and stay with some of the 'best practices' recommended for Struts development such as hiding your JSPs under WEB-INF? I suppose it gets off-topic, but surely there must be a way to have independently scrolled regions of a web page in a Struts environment without making every page publicly accessible? thanks, I'd sure like some insight as to how to proceed... -jeff Hi, Each frame of a frameset is filled with a web page. Each one issue an independent http request to the web server. So each page corresponding to a frame should be publicly accessible on the web server, and can't be under WEB-INF. Cedric but I get Forbidden errors, presumably because my JSPs are beneath the WEB-INF directory and therefore not accessible. Is there an alternate way to do this and still have my JSPs underneath WEB-INF? (Basically, I have a frames-based layout with a scrollable panel, and am trying to figure out how to best implement that feature using Struts/Tiles without exposing all my JSPs. TIA, -jeff - 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] - 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: A question on Tiles and Frames
Well, depending on the web client you are using, IE has a feature that enables some block level elements like DIV to be scrollable. You can set an overflow CSS property that enables a scrollbar to appear.There are also cross-browser solutions for making independent (non-frame) scrollable areas of content. -Original Message- From: Nimish Chourey , Tidel Park - Chennai [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 9:42 AM To: Struts Users Mailing List Subject: RE: A question on Tiles and Frames I had the same problem .. while developing a Menu (left side) .. wanted to make that scrollable .. But I guess its not possible with Tiles I guess .. Infact try doing it without tiles (and without frames) .. its not possible . And if somehow if its really possible .. I would definately like to know that .. -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 5:57 PM To: Struts Users Mailing List Subject: Re: A question on Tiles and Frames Okay. So is there *another* way to implement independently scrollable content within a region of a page using Struts and Tiles? -jeff On Friday, June 20, 2003, at 07:17 AM, Cedric Dumoulin wrote: The page of a frame should alway be publicly accessible. It is alway possible to access it directly without the other associated frames. So, you can't hide them. Cedric Cedric Jeff Kyser wrote: Hey Cedric, Thanks for the response. I guess I'd figured out I couldn't put them under WEB-INF for the reasons you stated. So how can I implement a scollable region such as a frame might offer and still use Tiles and stay with some of the 'best practices' recommended for Struts development such as hiding your JSPs under WEB-INF? I suppose it gets off-topic, but surely there must be a way to have independently scrolled regions of a web page in a Struts environment without making every page publicly accessible? thanks, I'd sure like some insight as to how to proceed... -jeff Hi, Each frame of a frameset is filled with a web page. Each one issue an independent http request to the web server. So each page corresponding to a frame should be publicly accessible on the web server, and can't be under WEB-INF. Cedric but I get Forbidden errors, presumably because my JSPs are beneath the WEB-INF directory and therefore not accessible. Is there an alternate way to do this and still have my JSPs underneath WEB-INF? (Basically, I have a frames-based layout with a scrollable panel, and am trying to figure out how to best implement that feature using Struts/Tiles without exposing all my JSPs. TIA, -jeff - 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] - 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: A question on Tiles and Frames
If you want to use frames then each frame is going to issue it's own request. If you want to hide the JSPs under WEB-INF, then you have to front each request with an action because you can't link to the JSP directly. It probably means replacing your definition with: definition name=associator.masterPage path=/WEB-INF/pages/tiles/framesetLayout.jsp put name=title value=Associator / put name=heading value=/Heading.do / put name=codevalue=/EmptyMenu.do / put name=menuvalue=/Menu.do / put name=button value=/Button.do/ put name=textvalue=/Categories.do/ /definition and adding an action mapping to struts-config.xml for each of the items: action path=/Heading type=org.apache.struts.actions.ForwardAction parameter=associator.masterPage.heading/ and then another definition in tiles-def.xml: definition name=associator.masterPage.heading path=/WEB-INF/pages/tiles/heading.jsp Have to repeat that for code, menu, button, text. So then if a real action wanted to change both code and menu frames, you can create a definition that extends the first definition: definition name=associator.masterPage.newpage extends=associator.masterPage put name=title value=New Definition / put name=codevalue=/NewCodePage.do / put name=menuvalue=/NewMenu.do / /definition I'm not sure if this will work - as it is 2am here and I am about to go to bed :) But it looks ok to my half-closed eyes Jeff Kyser wrote: Hello, I was trying to use a Tile Definition like: definition name=associator.masterPage path=/WEB-INF/pages/tiles/framesetLayout.jsp put name=title value=Associator / put name=heading value=/WEB-INF/pages/tiles/heading.jsp / put name=codevalue=/WEB-INF/pages/tiles/emptyMenu.jsp / put name=menuvalue=/WEB-INF/pages/menu.jsp / put name=button value=/WEB-INF/pages/button.jsp/ put name=textvalue=/WEB-INF/pages/categories.jsp/ /definition with a framesetLayout.jsp that looks like: frameset rows=137,* frameborder=NO border=0 framespacing=0 frame src=%=request.getContextPath()%tiles:getAsString name=heading / name=heading scrolling=NO noresize frameset cols=217,* frameborder=NO border=0 framespacing=0 frameset rows=0,* frameborder=NO border=0 framespacing=0 frame src=%=request.getContextPath()%tiles:getAsString name=code / name=code frame src=%=request.getContextPath()%tiles:getAsString name=menu / name=menu /frameset frameset rows=26%,* frameborder=0 border=0 framespacing=5 cols=* frame src=%=request.getContextPath()%tiles:getAsString name=button / name=button noresize/ frame src=%=request.getContextPath()%tiles:getAsString name=text / name=text noresize/ /frameset /frameset /frameset but I get Forbidden errors, presumably because my JSPs are beneath the WEB-INF directory and therefore not accessible. Is there an alternate way to do this and still have my JSPs underneath WEB-INF? (Basically, I have a frames-based layout with a scrollable panel, and am trying to figure out how to best implement that feature using Struts/Tiles without exposing all my JSPs. TIA, -jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jason Lea - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: A question on Tiles and Frames
Humm.. seems to be a good solution .. would definately give it a try .. -Original Message- From: Mike Jasnowski [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 7:20 PM To: Struts Users Mailing List Subject: RE: A question on Tiles and Frames Well, depending on the web client you are using, IE has a feature that enables some block level elements like DIV to be scrollable. You can set an overflow CSS property that enables a scrollbar to appear.There are also cross-browser solutions for making independent (non-frame) scrollable areas of content. -Original Message- From: Nimish Chourey , Tidel Park - Chennai [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 9:42 AM To: Struts Users Mailing List Subject: RE: A question on Tiles and Frames I had the same problem .. while developing a Menu (left side) .. wanted to make that scrollable .. But I guess its not possible with Tiles I guess .. Infact try doing it without tiles (and without frames) .. its not possible . And if somehow if its really possible .. I would definately like to know that .. -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 5:57 PM To: Struts Users Mailing List Subject: Re: A question on Tiles and Frames Okay. So is there *another* way to implement independently scrollable content within a region of a page using Struts and Tiles? -jeff On Friday, June 20, 2003, at 07:17 AM, Cedric Dumoulin wrote: The page of a frame should alway be publicly accessible. It is alway possible to access it directly without the other associated frames. So, you can't hide them. Cedric Cedric Jeff Kyser wrote: Hey Cedric, Thanks for the response. I guess I'd figured out I couldn't put them under WEB-INF for the reasons you stated. So how can I implement a scollable region such as a frame might offer and still use Tiles and stay with some of the 'best practices' recommended for Struts development such as hiding your JSPs under WEB-INF? I suppose it gets off-topic, but surely there must be a way to have independently scrolled regions of a web page in a Struts environment without making every page publicly accessible? thanks, I'd sure like some insight as to how to proceed... -jeff Hi, Each frame of a frameset is filled with a web page. Each one issue an independent http request to the web server. So each page corresponding to a frame should be publicly accessible on the web server, and can't be under WEB-INF. Cedric but I get Forbidden errors, presumably because my JSPs are beneath the WEB-INF directory and therefore not accessible. Is there an alternate way to do this and still have my JSPs underneath WEB-INF? (Basically, I have a frames-based layout with a scrollable panel, and am trying to figure out how to best implement that feature using Struts/Tiles without exposing all my JSPs. TIA, -jeff - 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] - 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: A question on Tiles and Frames
I would be using iframes. It's surprisingly standard and works just like a frame, but placed on the page much like an image. I've done a few things with them on a project with displaying a shopping cart, forum data, etc. Jacob Hookom Senior Programmer/Analyst McKesson Medical Surgical Golden Valley, MN -Original Message- From: Nimish Chourey , Tidel Park - Chennai [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 9:27 AM To: Struts Users Mailing List Subject: RE: A question on Tiles and Frames Humm.. seems to be a good solution .. would definately give it a try .. -Original Message- From: Mike Jasnowski [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 7:20 PM To: Struts Users Mailing List Subject: RE: A question on Tiles and Frames Well, depending on the web client you are using, IE has a feature that enables some block level elements like DIV to be scrollable. You can set an overflow CSS property that enables a scrollbar to appear.There are also cross-browser solutions for making independent (non-frame) scrollable areas of content. -Original Message- From: Nimish Chourey , Tidel Park - Chennai [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 9:42 AM To: Struts Users Mailing List Subject: RE: A question on Tiles and Frames I had the same problem .. while developing a Menu (left side) .. wanted to make that scrollable .. But I guess its not possible with Tiles I guess .. Infact try doing it without tiles (and without frames) .. its not possible . And if somehow if its really possible .. I would definately like to know that .. -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 5:57 PM To: Struts Users Mailing List Subject: Re: A question on Tiles and Frames Okay. So is there *another* way to implement independently scrollable content within a region of a page using Struts and Tiles? -jeff On Friday, June 20, 2003, at 07:17 AM, Cedric Dumoulin wrote: The page of a frame should alway be publicly accessible. It is alway possible to access it directly without the other associated frames. So, you can't hide them. Cedric Cedric Jeff Kyser wrote: Hey Cedric, Thanks for the response. I guess I'd figured out I couldn't put them under WEB-INF for the reasons you stated. So how can I implement a scollable region such as a frame might offer and still use Tiles and stay with some of the 'best practices' recommended for Struts development such as hiding your JSPs under WEB-INF? I suppose it gets off-topic, but surely there must be a way to have independently scrolled regions of a web page in a Struts environment without making every page publicly accessible? thanks, I'd sure like some insight as to how to proceed... -jeff Hi, Each frame of a frameset is filled with a web page. Each one issue an independent http request to the web server. So each page corresponding to a frame should be publicly accessible on the web server, and can't be under WEB-INF. Cedric but I get Forbidden errors, presumably because my JSPs are beneath the WEB-INF directory and therefore not accessible. Is there an alternate way to do this and still have my JSPs underneath WEB-INF? (Basically, I have a frames-based layout with a scrollable panel, and am trying to figure out how to best implement that feature using Struts/Tiles without exposing all my JSPs. TIA, -jeff - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: A question on Tiles and Frames
Yeah, you can use iframes too. But I've always stated away from them since apps I worked on had to support older versions of NS. Surprisingly you can create scrollable areas, with dynamically loadable content with not that much effort. There are a couple of x-browser API's that have components for doing this, the one I know off the top of my head is DynAPI, originated at www.dansteinman.com. I think there is a sourceforge project for it as well. -Original Message- From: Hookom, Jacob [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 10:26 AM To: 'Struts Users Mailing List' Subject: RE: A question on Tiles and Frames I would be using iframes. It's surprisingly standard and works just like a frame, but placed on the page much like an image. I've done a few things with them on a project with displaying a shopping cart, forum data, etc. Jacob Hookom Senior Programmer/Analyst McKesson Medical Surgical Golden Valley, MN -Original Message- From: Nimish Chourey , Tidel Park - Chennai [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 9:27 AM To: Struts Users Mailing List Subject: RE: A question on Tiles and Frames Humm.. seems to be a good solution .. would definately give it a try .. -Original Message- From: Mike Jasnowski [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 7:20 PM To: Struts Users Mailing List Subject: RE: A question on Tiles and Frames Well, depending on the web client you are using, IE has a feature that enables some block level elements like DIV to be scrollable. You can set an overflow CSS property that enables a scrollbar to appear.There are also cross-browser solutions for making independent (non-frame) scrollable areas of content. -Original Message- From: Nimish Chourey , Tidel Park - Chennai [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 9:42 AM To: Struts Users Mailing List Subject: RE: A question on Tiles and Frames I had the same problem .. while developing a Menu (left side) .. wanted to make that scrollable .. But I guess its not possible with Tiles I guess .. Infact try doing it without tiles (and without frames) .. its not possible . And if somehow if its really possible .. I would definately like to know that .. -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 5:57 PM To: Struts Users Mailing List Subject: Re: A question on Tiles and Frames Okay. So is there *another* way to implement independently scrollable content within a region of a page using Struts and Tiles? -jeff On Friday, June 20, 2003, at 07:17 AM, Cedric Dumoulin wrote: The page of a frame should alway be publicly accessible. It is alway possible to access it directly without the other associated frames. So, you can't hide them. Cedric Cedric Jeff Kyser wrote: Hey Cedric, Thanks for the response. I guess I'd figured out I couldn't put them under WEB-INF for the reasons you stated. So how can I implement a scollable region such as a frame might offer and still use Tiles and stay with some of the 'best practices' recommended for Struts development such as hiding your JSPs under WEB-INF? I suppose it gets off-topic, but surely there must be a way to have independently scrolled regions of a web page in a Struts environment without making every page publicly accessible? thanks, I'd sure like some insight as to how to proceed... -jeff Hi, Each frame of a frameset is filled with a web page. Each one issue an independent http request to the web server. So each page corresponding to a frame should be publicly accessible on the web server, and can't be under WEB-INF. Cedric but I get Forbidden errors, presumably because my JSPs are beneath the WEB-INF directory and therefore not accessible. Is there an alternate way to do this and still have my JSPs underneath WEB-INF? (Basically, I have a frames-based layout with a scrollable panel, and am trying to figure out how to best implement that feature using Struts/Tiles without exposing all my JSPs. TIA, -jeff - 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] - 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: A question on Tiles and Frames
Hey Jason, Thanks for putting in the time on a great reply! At this point, am cautiously optimistic that this will work, or rather that I can get it to work. I've got a few frames updating, so it looks like that's just the ticket. Thanks again! -jeff On Friday, June 20, 2003, at 09:17 AM, Jason Lea wrote: If you want to use frames then each frame is going to issue it's own request. If you want to hide the JSPs under WEB-INF, then you have to front each request with an action because you can't link to the JSP directly. It probably means replacing your definition with: definition name=associator.masterPage path=/WEB-INF/pages/tiles/framesetLayout.jsp put name=title value=Associator / put name=heading value=/Heading.do / put name=codevalue=/EmptyMenu.do / put name=menuvalue=/Menu.do / put name=button value=/Button.do/ put name=textvalue=/Categories.do/ /definition and adding an action mapping to struts-config.xml for each of the items: action path=/Heading type=org.apache.struts.actions.ForwardAction parameter=associator.masterPage.heading/ and then another definition in tiles-def.xml: definition name=associator.masterPage.heading path=/WEB-INF/pages/tiles/heading.jsp Have to repeat that for code, menu, button, text. So then if a real action wanted to change both code and menu frames, you can create a definition that extends the first definition: definition name=associator.masterPage.newpage extends=associator.masterPage put name=title value=New Definition / put name=codevalue=/NewCodePage.do / put name=menuvalue=/NewMenu.do / /definition I'm not sure if this will work - as it is 2am here and I am about to go to bed :) But it looks ok to my half-closed eyes Jeff Kyser wrote: Hello, I was trying to use a Tile Definition like: definition name=associator.masterPage path=/WEB-INF/pages/tiles/framesetLayout.jsp put name=title value=Associator / put name=heading value=/WEB-INF/pages/tiles/heading.jsp / put name=code value=/WEB-INF/pages/tiles/emptyMenu.jsp / put name=menuvalue=/WEB-INF/pages/menu.jsp / put name=button value=/WEB-INF/pages/button.jsp/ put name=textvalue=/WEB-INF/pages/categories.jsp/ /definition with a framesetLayout.jsp that looks like: frameset rows=137,* frameborder=NO border=0 framespacing=0 frame src=%=request.getContextPath()%tiles:getAsString name=heading / name=heading scrolling=NO noresize frameset cols=217,* frameborder=NO border=0 framespacing=0 frameset rows=0,* frameborder=NO border=0 framespacing=0 frame src=%=request.getContextPath()%tiles:getAsString name=code / name=code frame src=%=request.getContextPath()%tiles:getAsString name=menu / name=menu /frameset frameset rows=26%,* frameborder=0 border=0 framespacing=5 cols=* frame src=%=request.getContextPath()%tiles:getAsString name=button / name=button noresize/ frame src=%=request.getContextPath()%tiles:getAsString name=text / name=text noresize/ /frameset /frameset /frameset but I get Forbidden errors, presumably because my JSPs are beneath the WEB-INF directory and therefore not accessible. Is there an alternate way to do this and still have my JSPs underneath WEB-INF? (Basically, I have a frames-based layout with a scrollable panel, and am trying to figure out how to best implement that feature using Struts/Tiles without exposing all my JSPs. TIA, -jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jason Lea - 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]
A question on Tiles and Frames
Hello, I was trying to use a Tile Definition like: definition name=associator.masterPage path=/WEB-INF/pages/tiles/framesetLayout.jsp put name=title value=Associator / put name=heading value=/WEB-INF/pages/tiles/heading.jsp / put name=codevalue=/WEB-INF/pages/tiles/emptyMenu.jsp / put name=menuvalue=/WEB-INF/pages/menu.jsp / put name=button value=/WEB-INF/pages/button.jsp/ put name=textvalue=/WEB-INF/pages/categories.jsp/ /definition with a framesetLayout.jsp that looks like: frameset rows=137,* frameborder=NO border=0 framespacing=0 frame src=%=request.getContextPath()%tiles:getAsString name=heading / name=heading scrolling=NO noresize frameset cols=217,* frameborder=NO border=0 framespacing=0 frameset rows=0,* frameborder=NO border=0 framespacing=0 frame src=%=request.getContextPath()%tiles:getAsString name=code / name=code frame src=%=request.getContextPath()%tiles:getAsString name=menu / name=menu /frameset frameset rows=26%,* frameborder=0 border=0 framespacing=5 cols=* frame src=%=request.getContextPath()%tiles:getAsString name=button / name=button noresize/ frame src=%=request.getContextPath()%tiles:getAsString name=text / name=text noresize/ /frameset /frameset /frameset but I get Forbidden errors, presumably because my JSPs are beneath the WEB-INF directory and therefore not accessible. Is there an alternate way to do this and still have my JSPs underneath WEB-INF? (Basically, I have a frames-based layout with a scrollable panel, and am trying to figure out how to best implement that feature using Struts/Tiles without exposing all my JSPs. TIA, -jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tiles and Frames.
It is possible. The Tiles example war has a simple example of using frames (tutorial/frameset.jsp, tutorial/basicFramesetPage.jsp, ...) Hope this help, Cedric Cristian Cardenas wrote: I'm using tiles from struts. I'd like to know if it's possible to use Frames with Tiles, and what is the way to use it. Thanks a lot. Cristian. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tiles and Frames.
I'm using tiles from struts. I'd like to know if it's possible to use Frames with Tiles, and what is the way to use it. Thanks a lot. Cristian.
Re: Tiles vs. Frames
Hi, I'd say, that generally using tiles (or making presentation using single frame and tables) leads to less complex application. There might however be cases, when using frames could solve a problem or two. We had a system where we used hidden frame containing lot of client side information and other hidden frame where we reloaded javascripts, which were making changes in main frame, where something like 1000 layers where shown and they were clickable. I can not imagine how that application could be rewritten without using frames (reloading main frame on every click would lead to major network load problems). However I must say that to support and extend that application, it was nightmare. So, my opinion is that if you can solve problem without frames - do it. Besides it might help you, if one day you need to port your application do mobile network enabled devices... Regards, Gundars At 15:58 2002.01.08.s +, you wrote: Hi all, I've (functionally) prototyped an application using Tiles with no frames. Our 'front end' guy has presented me with the presentation html and javascript, and it uses frames. The application is not portal-like, just a fairly standard app with a header, footer and side menu bar. I've had a search for any information about what would be preferable - to use tiles or frames, or some combination of both (I'm struggling a bit with this option), but there's not much out there. Has anyone had to make this decision? What are the pros and cons of frames vs. tiles? Is it feasible and/or desirable to use them in combination? Any input much appreciated. Cheers, Sean. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Gundars Kulups Project manager A/S Dati Phone: +371-7067713 Mobile: +371-9466055 Fax: +371-7619573 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tiles vs. Frames
Hi all, I've (functionally) prototyped an application using Tiles with no frames. Our 'front end' guy has presented me with the presentation html and javascript, and it uses frames. The application is not portal-like, just a fairly standard app with a header, footer and side menu bar. I've had a search for any information about what would be preferable - to use tiles or frames, or some combination of both (I'm struggling a bit with this option), but there's not much out there. Has anyone had to make this decision? What are the pros and cons of frames vs. tiles? Is it feasible and/or desirable to use them in combination? Any input much appreciated. Cheers, Sean. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tiles vs. Frames
Sean, I have not used Tiles, so I could be misinformed here. My impression is that the Tiles are related to JSP includes or templates - they allow you to compose a single page from a number of pieces. Frames on the other hand, allow you to present the user with a number of separate pages at once. Frames are client side compositions, whilst templates (and Tiles) are server side compositions. These differences mean that a submission of a page composed with Tiles will result in a single request, whereas submission of a frameset can result in a number of separate requests. This can lead to threading issues. See http://www.mail-archive.com/struts-user@jakarta.apache.org/msg13087.html for further details of issues. HTH, Vaughan. -Original Message- From: Sean Gollschewsky [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 08, 2002 7:58 AM To: 'Struts Users Mailing List' Subject: Tiles vs. Frames Hi all, I've (functionally) prototyped an application using Tiles with no frames. Our 'front end' guy has presented me with the presentation html and javascript, and it uses frames. The application is not portal-like, just a fairly standard app with a header, footer and side menu bar. I've had a search for any information about what would be preferable - to use tiles or frames, or some combination of both (I'm struggling a bit with this option), but there's not much out there. Has anyone had to make this decision? What are the pros and cons of frames vs. tiles? Is it feasible and/or desirable to use them in combination? Any input much appreciated. Cheers, Sean. -- 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]