Ver Mensaje Individual
  #5 (permalink)  
Antiguo 24/10/2010, 05:02
juancho300000
 
Fecha de Ingreso: septiembre-2010
Mensajes: 9
Antigüedad: 13 años, 8 meses
Puntos: 0
Respuesta: FLEX 4, JAVA, STRUTS, HIBERNATE, etc...

Cita:
Iniciado por sito1982 Ver Mensaje
El tema del error, he encontrado una descripción en el manual que estaba siguiendo, a ver si alguno sabeis interpretar lo que dice ya que yo no lo entiendo.

[URL="http://www.adobe.com/devnet/flex/articles/flex_struts.html"]http://www.adobe.com/devnet/flex/articles/flex_struts.html[/URL]

La raiz de mi problema se encuentra aqui, que es la jsp donde se redirecciona despues de logarme:

In the JSP, I use fx:write to output the Java object in AMF:

Código:
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/lib/fxstruts.jar" prefix="fx" %>
<fx:write name="test" type="amf" errors="true" />
The errors attribute has been set to true in the fx:write tag. Any validation errors will be nested within the result object. That is, on the Flex side, event.result will be an object with an errors property and will have the actual object in a property named result.

By default, fx:write outputs AMF which is a binary format. Be careful not to place stray newlines in the JSP as this will result in a "getOutputStream() has already been called" error. You can set type to xml to output XML instead of AMF.

Now that your back end is ready, let's create the Flex application.
prueba a poner en donde pone errors=true ponlo en false (por lo que puedo deducir de leer el ingles....) y comprobar que no hay saltos de linea en el jsp que devuelve el resultado,porque te dice que al ser binario no acepta espacios ni ná....
mira a ver y me cuentas