Re: [Struts2] Ajax anchor tag problem

2008-01-22 Thread Raghuveer Rawat
Thanks Wong, yeah, I will try to implement your suggestion.. On Jan 22, 2008 12:07 AM, WongTseng [EMAIL PROTECTED] wrote: since the request is sent via ajax, so the browser side redirect can not work. i suggest you don't redirect you user directly, instead you send back a piece of js, let the

[Struts2] Ajax anchor tag problem

2008-01-21 Thread Raghuveer Rawat
Hi, I have a requirement where only logged in users are allowed to put their comment. I have implemented that form with struts2 ajax theme...anchor has theme=ajax If logged in user puts his comment then everything works fine perfectly..I am able to see text message returned from action in

Re: [Struts2] Ajax anchor tag problem

2008-01-21 Thread Roberto Nunnari
try this: result name=login type=redirect-actionlogin/result Best regards. -- Robi Raghuveer Rawat wrote: Hi, I have a requirement where only logged in users are allowed to put their comment. I have implemented that form with struts2 ajax theme...anchor has theme=ajax If logged in user

Re: [Struts2] Ajax anchor tag problem

2008-01-21 Thread Roberto Nunnari
oopss.. sorry.. I read your post to fast and didn't notice you already tried redirect-action.. I believe the problem is that it's not the browser who is getting the redirect message from the server, but the ajax async call system, and so it puts the login form in the div, as it was instructed..

Re: [Struts2] Ajax anchor tag problem

2008-01-21 Thread Raghuveer Rawat
Thanks Robi, I think you are right but how to come out of this ajax call if something goes wrong.sometimes I am getting some technical error and error page is also opening under target div. Is there anyone who faced this issue early? On Jan 21, 2008 3:29 PM, Roberto Nunnari [EMAIL PROTECTED]

Re: [Struts2] Ajax anchor tag problem

2008-01-21 Thread WongTseng
since the request is sent via ajax, so the browser side redirect can not work. i suggest you don't redirect you user directly, instead you send back a piece of js, let the js redirect the browser. script window.location='xxx'; /script 2008/1/21, Raghuveer Rawat [EMAIL PROTECTED]: Thanks Robi, I