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ón: Super Webcam, voz, caritas animadas, y más #161;Gratis!
|