RE: Query String for tiles
Oh ok ... I am sorry, I misunderstood ur requirement. Anand -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd Sent: Friday, February 06, 2004 3:42 PM To: [EMAIL PROTECTED] Subject: Re: Query String for tiles There is no include anywhere in my app. I am just combining tiles (jspf is the name of fragments of jsp pages)to build up the page. Top level of the page is a .jsp with a bunch of tiles:insert tags filling out the cells of a table. I just want to dynamically build a query string for the top-level page so that there is something useful in the browser url when the session expires. Wayne Anand Patil wrote: > I am confused. What I meant was that you are using a jsp or some form > of jsp (judging by the extension as jspf) to render the body of the > tile. The logic (if I may) must be that the jsp attached on the tile , > will include the body attribute as a dynamic include. All I could > think of is that you need to PASS 'remember' as a parameter to that > jsp. My solution assumes that and hence says u have to use a tile > controller to transfer attributes from request to the tile context. > > Am I missing something? > > Anand. > > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd > Sent: Friday, February 06, 2004 1:24 PM > To: [EMAIL PROTECTED] > Subject: Re: Query String for tiles > > > If I were using a straight action, I would simply get the path from my > ActionForward subclass and append the query string to it. This seems > ponderous for placing a parameter in the url. > > Is there any other way? > > Wayne > > Anand Patil wrote: > >>I assume you want to pass the query string "remember=test001" to >>"/pages/time_inputeffort_body_nested.jspf". One way I can think of is >>put the "remember=test001" as a request attribute in the logic of >>com.rdlogic.struts.control.LoginAction. >> >>try reading the attribute directly from the request, since tiles does >>"include" , you share the same request. So you could probably use >>request.getAttribute()" ; >> >>If that does not work use the tile controller concept >> >>Put a controller on the definition "tiles.self.effort". Your >>definition modifies as >> >> >>>controllerUrl="/tilecontroller.do"> >> >> > value="/pages/time_inputeffort_body_nested.jspf"> > >> >> >>In your struts-config.xml add this. >>>type=" >> >>Make sure ur tile controller extends from TilesAction >> >>In your tilecontroller guy u can get the attribute from the request >>and put in the tilecontext and in your jsp for the tile you can use >> look @ tiles documentation to figure how to use >>the tag. Then get that value and pass it to your jsp include via >> tag. >> >>HTH >> >>Anand. >> >>-Original Message- >>From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd >>Sent: Friday, February 06, 2004 11:44 AM >>To: [EMAIL PROTECTED] >>Subject: Query String for tiles >> >> >>Is it possible to attach a query string to a tiles forward. >> >>my struts-config.xml has an entry like >> >>>type="com.rdlogic.struts.control.LoginAction" > >name="startapp" path="tiles.self.effort"> >> >> >> >>My Tiles-defs.xml has an entry like >> >> > >>name="head.title" value="/pages/title.jspf"/> >value="/pages/time_inputeffort_body_nested.jspf"> >> >> >> >>I want the net result of forward "startapp" to have a query string >>like >> >>"?remember=test001" >> >>I want the remember to be dynamically settable (during the execution >>of >>the LoginAction code I want to pick whether it is "test001" or > > "test002" > >> >>Anybody know a way. >> >>Wayne >> >> >> >>- >>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: Query String for tiles
I am confused. What I meant was that you are using a jsp or some form of jsp (judging by the extension as jspf) to render the body of the tile. The logic (if I may) must be that the jsp attached on the tile , will include the body attribute as a dynamic include. All I could think of is that you need to PASS 'remember' as a parameter to that jsp. My solution assumes that and hence says u have to use a tile controller to transfer attributes from request to the tile context. Am I missing something? Anand. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd Sent: Friday, February 06, 2004 1:24 PM To: [EMAIL PROTECTED] Subject: Re: Query String for tiles If I were using a straight action, I would simply get the path from my ActionForward subclass and append the query string to it. This seems ponderous for placing a parameter in the url. Is there any other way? Wayne Anand Patil wrote: > I assume you want to pass the query string "remember=test001" to > "/pages/time_inputeffort_body_nested.jspf". One way I can think of is > put the "remember=test001" as a request attribute in the logic of > com.rdlogic.struts.control.LoginAction. > > try reading the attribute directly from the request, since tiles does > "include" , you share the same request. So you could probably use > request.getAttribute()" ; > > If that does not work use the tile controller concept > > Put a controller on the definition "tiles.self.effort". Your > definition modifies as > > > controllerUrl="/tilecontroller.do"> > > > > > In your struts-config.xml add this. > type=" > > Make sure ur tile controller extends from TilesAction > > In your tilecontroller guy u can get the attribute from the request > and put in the tilecontext and in your jsp for the tile you can use > look @ tiles documentation to figure how to use > the tag. Then get that value and pass it to your jsp include via > tag. > > HTH > > Anand. > > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd > Sent: Friday, February 06, 2004 11:44 AM > To: [EMAIL PROTECTED] > Subject: Query String for tiles > > > Is it possible to attach a query string to a tiles forward. > > my struts-config.xml has an entry like > > type="com.rdlogic.struts.control.LoginAction" > > > > > > My Tiles-defs.xml has an entry like > > name="head.title" value="/pages/title.jspf"/> value="/pages/time_inputeffort_body_nested.jspf"> > > > > I want the net result of forward "startapp" to have a query string > like > > "?remember=test001" > > I want the remember to be dynamically settable (during the execution > of > the LoginAction code I want to pick whether it is "test001" or "test002" > > > Anybody know a way. > > Wayne > > > > - > 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: Query String for tiles
I assume you want to pass the query string "remember=test001" to "/pages/time_inputeffort_body_nested.jspf". One way I can think of is put the "remember=test001" as a request attribute in the logic of com.rdlogic.struts.control.LoginAction. try reading the attribute directly from the request, since tiles does "include" , you share the same request. So you could probably use request.getAttribute()" ; If that does not work use the tile controller concept Put a controller on the definition "tiles.self.effort". Your definition modifies as In your struts-config.xml add this. Make sure ur tile controller extends from TilesAction In your tilecontroller guy u can get the attribute from the request and put in the tilecontext and in your jsp for the tile you can use look @ tiles documentation to figure how to use the tag. Then get that value and pass it to your jsp include via tag. HTH Anand. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd Sent: Friday, February 06, 2004 11:44 AM To: [EMAIL PROTECTED] Subject: Query String for tiles Is it possible to attach a query string to a tiles forward. my struts-config.xml has an entry like My Tiles-defs.xml has an entry like I want the net result of forward "startapp" to have a query string like "?remember=test001" I want the remember to be dynamically settable (during the execution of the LoginAction code I want to pick whether it is "test001" or "test002" Anybody know a way. Wayne - 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: Using Parameter in Action via the struts-config.xml
It worked!!! Thanks a lot Anand -Original Message- From: Gopalakrishnan, Jayesh [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 1:49 PM To: Struts Users Mailing List Subject: RE: Using Parameter in Action via the struts-config.xml There's a mapping.getParameter() method to fetch the parameter value. I remember reading that its mostly used while using LookupDispatchAction. Personally, I have used this parameter attibute to represent a flag/indicator to my action & it works fine. -jayash -Original Message----- From: Anand Patil [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 1:06 PM To: [EMAIL PROTECTED] Subject: Using Parameter in Action via the struts-config.xml Hi All, The struts configuration DTD supports having a "parameter" attribute to a "action". But how can I get the value specified in the "parameter" attribute in my action class. Also using "set-property" inside a "action" tag does not work? Anyone have any idea about this? Regards Anand Patil - 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: REPOST: Question on Frames within Tiles
Make the submitting form's target="_top" Anand -Original Message- From: Mutreja, Shitij [mailto:[EMAIL PROTECTED] Sent: Thursday, February 05, 2004 2:08 PM To: 'Struts Users Mailing List' Subject: RE: REPOST: Question on Frames within Tiles fantastic, the iframes seem to work. One further question though. the response to the form being submitted, is that the struts action class forwards to a tile definition. The problem is that the result just displays within the frame that is submitted. I was hoping that the entire page is replaced with the response. any suggestions?? thanks again. -Original Message- From: Anand Patil [mailto:[EMAIL PROTECTED] Sent: Thursday, February 05, 2004 4:26 PM To: Struts Users Mailing List Subject: RE: REPOST: Question on Frames within Tiles I have done this in Internet Explorer. From any frame you can get reference to any frame using 'window.top.document.all.'. once you get reference to the iframe , I think you can get reference to the document in it and then the from inside that document. Look @ microsoft's DHTML reference for IFRAME : http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/iframe .asp. ONCE AGAIN, I HAVE TESTED THIS ONLY WITH INTERNET EXPLORER v 6.0 Good Luck Anand -Original Message- From: Mutreja, Shitij [mailto:[EMAIL PROTECTED] Sent: Thursday, February 05, 2004 1:03 PM To: 'Struts Users Mailing List' Subject: RE: REPOST: Question on Frames within Tiles Thanks so much. will try it out. However there is another issue. How do u communicate between these iframes. For example I have a footer tile that has some control buttons. When I click on one buton, I need to submit the form associated with one of these iframes. -Original Message- From: Anand Patil [mailto:[EMAIL PROTECTED] Sent: Thursday, February 05, 2004 2:27 PM To: Struts Users Mailing List Subject: RE: REPOST: Question on Frames within Tiles Have to tried using IFRAME instead of FRAMEs... IFRAME will do the trick Anand -Original Message- From: Mutreja, Shitij [mailto:[EMAIL PROTECTED] Sent: Thursday, February 05, 2004 10:08 AM To: 'Struts Users Mailing List' Subject: REPOST: Question on Frames within Tiles Any suggestions please. Am desperate at this point. Can framesets even be loaded from tiles? -Original Message- From: Mutreja, Shitij [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 2:16 PM To: '[EMAIL PROTECTED]' Subject: Question on Frames within Tiles 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. 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: quiz actually has a value in the tile-defs that points to the quizcontent.jsp shown below: 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 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: REPOST: Question on Frames within Tiles
I have done this in Internet Explorer. From any frame you can get reference to any frame using 'window.top.document.all.'. once you get reference to the iframe , I think you can get reference to the document in it and then the from inside that document. Look @ microsoft's DHTML reference for IFRAME : http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/iframe .asp. ONCE AGAIN, I HAVE TESTED THIS ONLY WITH INTERNET EXPLORER v 6.0 Good Luck Anand -Original Message- From: Mutreja, Shitij [mailto:[EMAIL PROTECTED] Sent: Thursday, February 05, 2004 1:03 PM To: 'Struts Users Mailing List' Subject: RE: REPOST: Question on Frames within Tiles Thanks so much. will try it out. However there is another issue. How do u communicate between these iframes. For example I have a footer tile that has some control buttons. When I click on one buton, I need to submit the form associated with one of these iframes. -Original Message- From: Anand Patil [mailto:[EMAIL PROTECTED] Sent: Thursday, February 05, 2004 2:27 PM To: Struts Users Mailing List Subject: RE: REPOST: Question on Frames within Tiles Have to tried using IFRAME instead of FRAMEs... IFRAME will do the trick Anand -Original Message- From: Mutreja, Shitij [mailto:[EMAIL PROTECTED] Sent: Thursday, February 05, 2004 10:08 AM To: 'Struts Users Mailing List' Subject: REPOST: Question on Frames within Tiles Any suggestions please. Am desperate at this point. Can framesets even be loaded from tiles? -Original Message- From: Mutreja, Shitij [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 2:16 PM To: '[EMAIL PROTECTED]' Subject: Question on Frames within Tiles 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. 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: quiz actually has a value in the tile-defs that points to the quizcontent.jsp shown below: 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 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]
RE: REPOST: Question on Frames within Tiles
Have to tried using IFRAME instead of FRAMEs... IFRAME will do the trick Anand -Original Message- From: Mutreja, Shitij [mailto:[EMAIL PROTECTED] Sent: Thursday, February 05, 2004 10:08 AM To: 'Struts Users Mailing List' Subject: REPOST: Question on Frames within Tiles Any suggestions please. Am desperate at this point. Can framesets even be loaded from tiles? -Original Message- From: Mutreja, Shitij [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 2:16 PM To: '[EMAIL PROTECTED]' Subject: Question on Frames within Tiles 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. 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: quiz actually has a value in the tile-defs that points to the quizcontent.jsp shown below: 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 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]
Using Parameter in Action via the struts-config.xml
Hi All, The struts configuration DTD supports having a "parameter" attribute to a "action". But how can I get the value specified in the "parameter" attribute in my action class. Also using "set-property" inside a "action" tag does not work? Anyone have any idea about this? Regards Anand Patil