This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Portals and Portlets and the fly likes AJAX question - Struts portlet JSR 168 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "AJAX question - Struts portlet JSR 168" Watch "AJAX question - Struts portlet JSR 168" New topic
Author

AJAX question - Struts portlet JSR 168

Christopher Frankland
Ranch Hand

Joined: Jan 22, 2005
Posts: 42
Hi,

I am trying to get a basic piece of AJAX working in my struts portlet, however, I can't quite get it to work. I am having a problem with the callback() function - "object required" error. Any help much appreciated:

districtChart.jsp



WelcomeAction.java




I know the problem is with my Action file, however, how do I write to the response in order to do something like this:


response.setContentType("text/xml");
response.setHeader("Cache-Control", "no-cache");
String message = "You have entered an invalid date.";

if (passed) {
message = "You have entered a valid date.";
}
out.println("<response>");
out.println("<passed>" + Boolean.toString(passed) + "</passed>");
out.println("<message>" + message + "</message>");
out.println("</response>");



Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AJAX question - Struts portlet JSR 168
 
Similar Threads
AJAX ResponseXML not working
Struts - JSR168 Ajax Portlet - Problem!
JavaScript not working in IE7 but working in firefox
XmlHttpRequest object undefined js error
XMLHttpRequest problem