• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ajax + struts

 
Fernando Dominguez
Ranch Hand
Posts: 104
Debian Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34074
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fernando,
How far does it get? Does the Struts action output the debug statement to show it has gotten that far?
 
Fernando Dominguez
Ranch Hand
Posts: 104
Debian Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry.

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

is not printed;
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic