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

Reply via email to