Hi all. I am new to struts. so my problem is: I have a jsp page that calls an action. I want my action to be called and populate the fields in the jsp page from the form bean. I have followed the instruction in previous messages in the list and ended up with code as below:
I call a link named editDocType.do?action=Edit&ID=1 Here I want the piece of code to work to go to db and find the row with the PK gives as 1. then return this jsp page populated. else if ("Edit".equals(action)) { if (ID !=null){ // fetch the database and bring me the name... // name . suppose this exists... ((EditDocTypeForm) form).setName(name); request.setAttribute("editDocTypeForm", form); } path= mapping.getInput(); path= "editDocType.jsp?action=Edit&ID="+ ID; } } return new ActionForward(path); I know that this form is populated and set to request to be pulled up by the jsp page and be populated. But It does not. It comes as null. and a new editFormBean is created. By the way, I am running on Bluestone 7.3 servlet engine. If you have any input, I would greatly appreciate it. Regards ---------------------------------------------------------------------------- - Cengiz Kayay Solutions Architect - ( Çözüm Uzmanı ) ---------------------------------------------------------------------------- - INNOVA Bilişim Çözümleri - INNOVA IT Solutions http://www.innova.com.tr e-mail : [EMAIL PROTECTED] , [EMAIL PROTECTED] Phone : +(90) 212 216 3636 x 135 ---------------------------------------------------------------------------- - _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>