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
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
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
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
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
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
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
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
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.
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.
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
>
> 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
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.
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.
14 matches
Mail list logo