struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ruben Pardo <ruosp...@yahoo.es>
Subject populate or not populate, that is the question
Date Tue, 22 Apr 2003 16:01:22 GMT
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&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