RE: s:a tag
AFAIK JavaScript can't handle renaming a url without communicating it to the server. I'm not sure what you mean by that--JavaScript can do whatever it wants to an anchor tag in the DOM; that has nothing to do with the server side. I'm obviously missing something ;) Dave Sorry. I was referring to the Address Bar. Kevin - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:a tag
when i am use s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the theme=ajax,I get the URL like http://localhost:8080/mywebapp/someaction.action. I want to use ajax theme,but I want my url to be shown like http://localhost:8080/mywebapp/someaction.action,because the values which I get back from action needs to be updated in the div in the same page. Is it understood? Nils-Helge Garli wrote: Then I probably have misunderstood your question. Could you explain your problem in a little more detail? Nils-H On Thu, Jan 8, 2009 at 7:53 PM, Jaarthy aarthyj...@yahoo.com wrote: But how can I implement Ajax in that? Nils-Helge Garli wrote: You can combine and s:url to create your links. http://struts.apache.org/2.1.2/docs/url.html Nils-H On Thu, Jan 8, 2009 at 6:46 PM, Jaarthy aarthyj...@yahoo.com wrote: Hi, when i am using s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the ajax theme,I get http://localhost:8080/mywebapp/someaction.action.I want to use ajax theme,but I want my url to be like http://localhost:8080/mywebapp/someaction.action Pls. help Thanks, Aarthy -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21356904.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21358426.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21461009.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:a tag
when i am use s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the theme=ajax,I get the URL like http://localhost:8080/mywebapp/someaction.action. I want to use ajax theme,but I want my url to be shown like http://localhost:8080/mywebapp/someaction.action,because the values which I get back from action needs to be updated in the div in the same page. Is it understood? Nils-Helge Garli wrote: Then I probably have misunderstood your question. Could you explain your problem in a little more detail? Nils-H On Thu, Jan 8, 2009 at 7:53 PM, Jaarthy aarthyj...@yahoo.com wrote: But how can I implement Ajax in that? Nils-Helge Garli wrote: You can combine and s:url to create your links. http://struts.apache.org/2.1.2/docs/url.html Nils-H On Thu, Jan 8, 2009 at 6:46 PM, Jaarthy aarthyj...@yahoo.com wrote: Hi, when i am using s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the ajax theme,I get http://localhost:8080/mywebapp/someaction.action.I want to use ajax theme,but I want my url to be like http://localhost:8080/mywebapp/someaction.action Pls. help Thanks, Aarthy -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21356904.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21358426.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21461010.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:a tag
Jaarthy wrote: when i am use s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the theme=ajax,I get the URL like http://localhost:8080/mywebapp/someaction.action. I want to use ajax theme,but I want my url to be shown like http://localhost:8080/mywebapp/someaction.action,because the values which I get back from action needs to be updated in the div in the same page. Is it understood? Not really. I don't recall at the moment how the URL is displayed, but are you saying that using the target attribute in the s:a... tag isn't properly putting the results of the action into the target? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:a tag
No.I am not saying that.Tag is functioning properly as I wanted it to.But the URL is displayed like http://localhost:8080/mywebapp/# instead of http://localhost:8080/mywebapp/someaction.action when I use s:a tag with ajax theme in place of a href tag.I want the URL to be displayed likehttp://localhost:8080/mywebapp/someaction.action but I want to use s:a tag with ajax theme. Is this possible? Thanks, Aarthy newton.dave wrote: Jaarthy wrote: when i am use s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the theme=ajax,I get the URL like http://localhost:8080/mywebapp/someaction.action. I want to use ajax theme,but I want my url to be shown like http://localhost:8080/mywebapp/someaction.action,because the values which I get back from action needs to be updated in the div in the same page. Is it understood? Not really. I don't recall at the moment how the URL is displayed, but are you saying that using the target attribute in the s:a... tag isn't properly putting the results of the action into the target? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21462542.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:a tag
Jaarthy wrote: No.I am not saying that.Tag is functioning properly as I wanted it to.But the URL is displayed like http://localhost:8080/mywebapp/# instead of http://localhost:8080/mywebapp/someaction.action when I use s:a tag with ajax theme in place of a href tag.I want the URL to be displayed likehttp://localhost:8080/mywebapp/someaction.action but I want to use s:a tag with ajax theme. Is this possible? Not sure, off the top of my head. If it's working, why does it matter what the URL looks like? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: s:a tag
I would assume that changing the url would result in the page reloading which is the opposite desired outcome when using Ajax. Using a # is simply a page link resulting in the page scrolling to the section name specified after the # (or, in your case, the top of the page). AFAIK JavaScript can't handle renaming a url without communicating it to the server. Kevin -Original Message- From: Jaarthy [mailto:aarthyj...@yahoo.com] Sent: Wednesday, January 14, 2009 1:48 PM To: user@struts.apache.org Subject: Re: s:a tag No.I am not saying that.Tag is functioning properly as I wanted it to.But the URL is displayed like http://localhost:8080/mywebapp/# instead of http://localhost:8080/mywebapp/someaction.action when I use s:a tag with ajax theme in place of a href tag.I want the URL to be displayed likehttp://localhost:8080/mywebapp/someaction.action but I want to use s:a tag with ajax theme. Is this possible? Thanks, Aarthy newton.dave wrote: Jaarthy wrote: when i am use s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the theme=ajax,I get the URL like http://localhost:8080/mywebapp/someaction.action. I want to use ajax theme,but I want my url to be shown like http://localhost:8080/mywebapp/someaction.action,because the values which I get back from action needs to be updated in the div in the same page. Is it understood? Not really. I don't recall at the moment how the URL is displayed, but are you saying that using the target attribute in the s:a... tag isn't properly putting the results of the action into the target? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21462542.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:a tag
Biesbrock, Kevin wrote: AFAIK JavaScript can't handle renaming a url without communicating it to the server. I'm not sure what you mean by that--JavaScript can do whatever it wants to an anchor tag in the DOM; that has nothing to do with the server side. I'm obviously missing something ;) Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: s:a tag
when you browse thru' youtube.com site,In channels page, when u click on Most Subscribed/Most Viewed ,the URL is changed ,but it doesn't look like a page reload.how can we achieve the same using struts2. Biesbrock, Kevin wrote: I would assume that changing the url would result in the page reloading which is the opposite desired outcome when using Ajax. Using a # is simply a page link resulting in the page scrolling to the section name specified after the # (or, in your case, the top of the page). AFAIK JavaScript can't handle renaming a url without communicating it to the server. Kevin -Original Message- From: Jaarthy [mailto:aarthyj...@yahoo.com] Sent: Wednesday, January 14, 2009 1:48 PM To: user@struts.apache.org Subject: Re: s:a tag No.I am not saying that.Tag is functioning properly as I wanted it to.But the URL is displayed like http://localhost:8080/mywebapp/# instead of http://localhost:8080/mywebapp/someaction.action when I use s:a tag with ajax theme in place of a href tag.I want the URL to be displayed likehttp://localhost:8080/mywebapp/someaction.action but I want to use s:a tag with ajax theme. Is this possible? Thanks, Aarthy newton.dave wrote: Jaarthy wrote: when i am use s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the theme=ajax,I get the URL like http://localhost:8080/mywebapp/someaction.action. I want to use ajax theme,but I want my url to be shown like http://localhost:8080/mywebapp/someaction.action,because the values which I get back from action needs to be updated in the div in the same page. Is it understood? Not really. I don't recall at the moment how the URL is displayed, but are you saying that using the target attribute in the s:a... tag isn't properly putting the results of the action into the target? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21462542.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21464182.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: s:a tag
you're talking about changing Page elements and Data asynchronously then you're probably want to look at AJAX calls http://www.javaworld.com/javaworld/jw-08-2007/jw-08-ajaxtables.html Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Wed, 14 Jan 2009 12:09:41 -0800 From: aarthyj...@yahoo.com To: user@struts.apache.org Subject: RE: s:a tag when you browse thru' youtube.com site,In channels page, when u click on Most Subscribed/Most Viewed ,the URL is changed ,but it doesn't look like a page reload.how can we achieve the same using struts2. Biesbrock, Kevin wrote: I would assume that changing the url would result in the page reloading which is the opposite desired outcome when using Ajax. Using a # is simply a page link resulting in the page scrolling to the section name specified after the # (or, in your case, the top of the page). AFAIK JavaScript can't handle renaming a url without communicating it to the server. Kevin -Original Message- From: Jaarthy [mailto:aarthyj...@yahoo.com] Sent: Wednesday, January 14, 2009 1:48 PM To: user@struts.apache.org Subject: Re: s:a tag No.I am not saying that.Tag is functioning properly as I wanted it to.But the URL is displayed like http://localhost:8080/mywebapp/# instead of http://localhost:8080/mywebapp/someaction.action when I use s:a tag with ajax theme in place of a href tag.I want the URL to be displayed likehttp://localhost:8080/mywebapp/someaction.action but I want to use s:a tag with ajax theme. Is this possible? Thanks, Aarthy newton.dave wrote: Jaarthy wrote: when i am use s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the theme=ajax,I get the URL like http://localhost:8080/mywebapp/someaction.action. I want to use ajax theme,but I want my url to be shown like http://localhost:8080/mywebapp/someaction.action,because the values which I get back from action needs to be updated in the div in the same page. Is it understood? Not really. I don't recall at the moment how the URL is displayed, but are you saying that using the target attribute in the s:a... tag isn't properly putting the results of the action into the target? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21462542.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21464182.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org _ Windows Liveā¢: Keep your life in sync. http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t1_allup_howitworks_012009
Re: s:a tag
Then I probably have misunderstood your question. Could you explain your problem in a little more detail? Nils-H On Thu, Jan 8, 2009 at 7:53 PM, Jaarthy aarthyj...@yahoo.com wrote: But how can I implement Ajax in that? Nils-Helge Garli wrote: You can combine and s:url to create your links. http://struts.apache.org/2.1.2/docs/url.html Nils-H On Thu, Jan 8, 2009 at 6:46 PM, Jaarthy aarthyj...@yahoo.com wrote: Hi, when i am using s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the ajax theme,I get http://localhost:8080/mywebapp/someaction.action.I want to use ajax theme,but I want my url to be like http://localhost:8080/mywebapp/someaction.action Pls. help Thanks, Aarthy -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21356904.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21358426.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:a tag
You can combine a and s:url to create your links. http://struts.apache.org/2.1.2/docs/url.html Nils-H On Thu, Jan 8, 2009 at 6:46 PM, Jaarthy aarthyj...@yahoo.com wrote: Hi, when i am using s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the ajax theme,I get http://localhost:8080/mywebapp/someaction.action.I want to use ajax theme,but I want my url to be like http://localhost:8080/mywebapp/someaction.action Pls. help Thanks, Aarthy -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21356904.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:a tag
But how can I implement Ajax in that? Nils-Helge Garli wrote: You can combine and s:url to create your links. http://struts.apache.org/2.1.2/docs/url.html Nils-H On Thu, Jan 8, 2009 at 6:46 PM, Jaarthy aarthyj...@yahoo.com wrote: Hi, when i am using s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the ajax theme,I get http://localhost:8080/mywebapp/someaction.action.I want to use ajax theme,but I want my url to be like http://localhost:8080/mywebapp/someaction.action Pls. help Thanks, Aarthy -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21356904.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21358426.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org