struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ruben Pardo <ruosp...@yahoo.es>
Subject a basic question
Date Mon, 07 Apr 2003 09:23:17 GMT

Hi everybody!

I'm new in struts and i want to know if someone can help me what is the best form to update
a form from a enterprise javabean...

 this is the code suppossing that the actionForm's name is proyectosForm ...

public ActionForward edicion(ActionMapping mapping, ActionForm form,   HttpServletRequest
request, HttpServletResponse response) throws IOException,ServletException {

String user = request.getSession(true).getAttribute("user"); //To recover the user attributte

ProyectosBean p = getProyectos("user");  //To get the EJB whit the value to edit

request.getSession(true).setAttribute("proyectosForm",p); //to put it the session scope 

return mapping.findForward(target); 

}

Is this sufficient or i need more?, 

Thanks.

 




---------------------------------
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