You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ruben Pardo <ru...@yahoo.es> on 2003/04/22 18:01:22 UTC
populate or not populate, that is the question
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!