aspose file tools*
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Ajax + struts" Watch "Ajax + struts" New topic
Author

Ajax + struts

Fernando Dominguez
Ranch Hand

Joined: Sep 01, 2006
Posts: 104

Hello,

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="obtenerDatosIntervinientesFactura.do?idEmisor=manolo">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"
type="com.esurysoftware.admin.actions.ObtenerDatosIntervinientesFactura"
name="AltaUsuarioActionForm">
<forward name="success" path="/publica/xml.jsp"/>
</action>

Thanks
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31057
    
232

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


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Fernando Dominguez
Ranch Hand

Joined: Sep 01, 2006
Posts: 104

Sorry.

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

is not printed;
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ajax + struts