File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Ajax + struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Ajax + struts" Watch "Ajax + struts" New topic

Ajax + struts

Fernando Dominguez
Ranch Hand

Joined: Sep 01, 2006
Posts: 104


I'm trying to retieve some xml, but The code is no reaching the funtion parseResults the alert in handleStateChange() shows status 404 three times.
So I thought that action was bad defined but I tried
<a href="">Test</a><
from another jsp and It shows a pretty xml on the screen
the jsp ussing ajax

the servlet code

the final jsp

<part of struts-config>

<action path="/obtenerDatosIntervinientesFactura"
<forward name="success" path="/publica/xml.jsp"/>

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33130

How far does it get? Does the Struts action output the debug statement to show it has gotten that far?

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Fernando Dominguez
Ranch Hand

Joined: Sep 01, 2006
Posts: 104


It doesn�t reach the action, the System.out.println("pasa por aqui");

is not printed;
I agree. Here's the link:
subject: Ajax + struts
It's not a secret anymore!