[S2] Ajax error

2008-09-10 Thread ManiKanta G
Hi, I've just started experimenting with Ajax capabilities in S2. For this I m getting the time from action class when ever user clicked the 'Get time' button. ... head s:head theme=ajax/ /head body Current time from server s:div cssStyle=border: 1px solid

Re: [S2] Ajax error

2008-09-10 Thread Dave Newton
--- On Wed, 9/10/08, ManiKanta G wrote: ... head s:head theme=ajax/ /head body Current time from server s:div cssStyle=border: 1px solid red; theme=ajax id=timeDiv s:date name=date/ /s:div br

Re: [S2] Ajax error

2008-09-10 Thread ManiKanta G
Thanks Dave. Yes, from action class I m returning entire jsp page. Action class: public class TimeServer extends ActionSupport { private Date date = null; public String execute() throws InterruptedException { System.out.println(Request received...);

Re: [S2] Ajax error

2008-09-10 Thread Dave Newton
--- On Wed, 9/10/08, ManiKanta G wrote: Yes, from action class I m returning entire jsp page. Well, that would explain why you're seeing an entire page in the div, then. How can I return HTML fragment? you mean another jsp page which contains only that html fragment? Yes, if you're loading

Re: [S2] Ajax error

2008-09-10 Thread ManiKanta G
Thanks Dave. I'll Will do accordingly. Thanks, ManiKanta Dave Newton wrote: --- On Wed, 9/10/08, ManiKanta G wrote: Yes, from action class I m returning entire jsp page. Well, that would explain why you're seeing an entire page in the div, then. How can I return HTML