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
--- 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
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...);
--- 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
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
5 matches
Mail list logo