I just integrated Struts2 + tiles2 + Ajax in google apps.
I was just trying to work around with the Ajax function. But when i call an action the entire page is rendered irrespective of the target specified in the
I have a MyPage.jsp
where
My Struts.xml mapping
/MyPage.jsp /Error.jsp /Error.jsp
My Action class public class Feedback extends ActionSupport {
public String execute(){
return SUCCESS;
}
}
What happens is the call is done and its a async call but as i have set to only refresh the Div the entire page is loaded, and as the username is not in VALUESTACK it is shown as NULL.
Can one guide me 1) what has to be returned in the ACTION( IS iT SUCCESS).
2) If so what has to be in action mapping /MyPage.jsp Where the /MyPage.jsp is the same that makes the call. Is it Correct?
3) If So why is loading the entire page. Did i miss anything.? Please Guide me.
I am working with Struts 2.1.8.1 version. And all the includes tags are present.
Regards Prateek Agarwal