• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Ajax + struts

 
Ranch Hand
Posts: 111
Eclipse IDE Firefox Browser Debian
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 111
Eclipse IDE Firefox Browser Debian
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry.

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

is not printed;
reply
    Bookmark Topic Watch Topic
  • New Topic