Re: Re: populate data for edit form

2005-01-12 Thread Dody Rachmat Wicaksono
Thank you everyone. The problem is solved. Now i set the same attribute for both action. My codes in SetUpCategoryEditAction: CategoryEditForm categoryEditForm = (CategoryEditForm) form; categoryEditForm.setName("te

Re: Re: populate data for edit form

2005-01-12 Thread Dody Rachmat Wicaksono
Thank you everyone. The problem is solved. Now i set the same attribute for both action. My codes in SetUpCategoryEditAction: CategoryEditForm categoryEditForm = (CategoryEditForm) form; categoryEditForm.setName("te

Re: Re: populate data for edit form

2005-01-12 Thread Dody Rachmat Wicaksono
Here is my jsp part: Category Name: The code above is the same with the code for insert. Perhaps I'm forgetting something here. :( Dody. >Hello, Dody, > >This looks okay to me. What does your JSP page look like? > >Jack > > >On Wed, 12 Jan 2005 16:19:43 +0700, Dody Rachmat Wi

Re: Re: populate data for edit form

2005-01-12 Thread Dody Rachmat Wicaksono
Here is my jsp part: Category Name: The code above is the same with the code for insert. Perhaps I'm forgetting something here. :( Dody. >Hello, Dody, > >This looks okay to me. What does your JSP page look like? > >Jack > > >On Wed, 12 Jan 2005 16:19:43 +0700, Dody Rachmat Wi

Re: populate data for edit form

2005-01-12 Thread Dakota Jack
I'll be! Never used "attribute" either. Thanks. Jack On Wed, 12 Jan 2005 08:19:25 -0600, Joe Germuska <[EMAIL PROTECTED]> wrote: > The problem is that you are specifying the "attribute" value for one > of your action mappings, but not for the other. For the first (setup > action), because no

Re: populate data for edit form

2005-01-12 Thread Joe Germuska
The problem is that you are specifying the "attribute" value for one of your action mappings, but not for the other. For the first (setup action), because no "attribute" value is set in the ActionMapping, Struts looks in the request for a bean under the form's name "categoryEditForm". If it d

Re: populate data for edit form

2005-01-12 Thread Dakota Jack
Hello, Dody, This looks okay to me. What does your JSP page look like? Jack On Wed, 12 Jan 2005 16:19:43 +0700, Dody Rachmat Wicaksono <[EMAIL PROTECTED]> wrote: > I'm trying to create an edit page. I think I already in the right direction, > but still unable to populate data even with a dire

Re: populate data for edit form

2005-01-12 Thread Dakota Jack
Doesn't the framework do the setting of this attribute, Pedro? Jack On Wed, 12 Jan 2005 10:23:10 +0100, Pedro Salgado <[EMAIL PROTECTED]> wrote: > request.setAttribute("categoryEditForm", form); > -- -- "You can lead a horse to water but you cannot make it float

Re: Re: populate data for edit form

2005-01-12 Thread Dody Rachmat Wicaksono
Thank you for your help, but the form still blank. I also tried using session (in struts-config.xml and session.setAttribute()) but still blank. request.setAttribute("categoryEditForm", form); Dody. >> CategoryEditForm categoryEditForm = (CategoryEditForm)form; >> categoryEditForm.

Re: Re: populate data for edit form

2005-01-12 Thread Dody Rachmat Wicaksono
Thank you for your help, but the form still blank. I also tried using session (in struts-config.xml and session.setAttribute()) but still blank. request.setAttribute("categoryEditForm", form); Dody. >> CategoryEditForm categoryEditForm = (CategoryEditForm)form; >> categoryEditForm.

Re: populate data for edit form

2005-01-12 Thread Pedro Salgado
I think you could also try this... I think it will also work (maybe you should then switch from request.setAttribute to session.setAttribute... but I don¹t remember). Pedro Salgado - To unsubscribe, e-mail: [EMAIL P

Re: populate data for edit form

2005-01-12 Thread Pedro Salgado
> > CategoryEditForm categoryEditForm = (CategoryEditForm)form; > categoryEditForm.setName("testing"); > request.setAttribute("categoryEditForm", form); > return (mapping.findForward("continue")); I think that will do ;) Pedro Salgado On 12/1/05 10:19 am, "Dody Rachmat

populate data for edit form

2005-01-12 Thread Dody Rachmat Wicaksono
I'm trying to create an edit page. I think I already in the right direction, but still unable to populate data even with a direct value via action class. Please let me what's wrong here. I've spend 3 days alone with this problem. Thank you. I created two action file: - SetUpCategoryEditAction.

populate data for edit form

2005-01-12 Thread Dody Rachmat Wicaksono
I'm trying to create an edit page. I think I already in the right direction, but still unable to populate data even with a direct value via action class. Please let me what's wrong here. I've spend 3 days alone with this problem. Thank you. I created two action file: - SetUpCategoryEditAction.