Ver Mensaje Individual
  #3 (permalink)  
Antiguo 23/10/2010, 08:40
sito1982
 
Fecha de Ingreso: octubre-2010
Mensajes: 9
Antigüedad: 13 años, 6 meses
Puntos: 0
Respuesta: FLEX 4, JAVA, STRUTS, HIBERNATE, etc...

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.