struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ruben Pardo <ruosp...@yahoo.es>
Subject Re: populate or not populate, that is the question
Date Tue, 22 Apr 2003 17:21:40 GMT

Thanks but it doesn´'t work , and it doesn´t show anything in the input form. 
 Adolfo Miguelez <pelly69@hotmail.com> wrote:Be aware that request.getSession(true)
creates a new session in the default 
ione is not found. Just a quick guess. Use request.getSession(false) 
instead.

Adolfo.

>From: Ruben Pardo 
>Reply-To: "Struts Users Mailing List" 
>To: struts-user@jakarta.apache.org
>Subject: populate or not populate, that is the question
>Date: Tue, 22 Apr 2003 18:01:22 +0200 (CEST)
>
>Hi everybody! I've got the next question, i think that it's basis but i 
>don´'t know why it's happen. I'm using struts with EJB. When I put 
>something like, when i testing, these it's works well, Proyectos form = 
>FactoryForms.create("proyectos"); f.setValue("titulo","Hola que tal");
> request.getSession(true).setAttribute("proyectosForm",f); and it shows 
>the string "hola que tal" in the input form, but when i try to do with a 
>session bean , with the next code ... IProyectos po = 
>(IProyectos)DynamicDelegateFactory.createServices(IProyectos.class,"gpfc.struts.ejb.servicios.DynamicProyectosEJBDelegate");
> po.setTitulo("StrutsEJBJDO");
> String p = po.getTitulo();
> //It retrieves correctly the value of titulo because i test it //with 
>System.out.println in the server ..// and the value of p is StrutsEJBJDO .. 
> f.setValue("titulo",p);
> request.getSession(true).setAttribute("proyectosForm",f); it doesn't 
>show anything.why it could be caused? I also try to obtain the attribute 
>"proyectosForm" with mapping.getAttribute, but it didn't work.Thanks a lot 
>in advance. Ruben
>
>---------------------------------
>Yahoo! Messenger
>Nueva versión: Super Webcam, voz, caritas animadas, y más 
>#161;Gratis!


_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------
Yahoo! Messenger
Nueva versi&oacute;n: Super Webcam, voz, caritas animadas, y m&aacute;s #161;Gratis!
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message