What is your complete struts-config.xml?   Also, what is the HTML hyperlink
to that action like?

If you've got the <form-bean> and <action> set up appropriately there is no
problem with making a hyperlink directly to an action without using a form.

    Erik


----- Original Message -----
From: "Brian K. Buckley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 16, 2001 4:52 PM
Subject: populate form using parameters instead of form


> Hello,
>
> I have a working MyForm subclass ActionForm.  Elsewhere in my application,
> I'd like to use the same MyForm but populate it using the parameters in
the
> httpquest (the querystring), so that a user can click on a link (setup
with
> the appropriate querystring) to submit data.
>
> To get this done, one could just process the parameters in the perform
> method of the Action class, but since the MyForm and its validate()
already
> contains the logic I need, I've rather reuse it.
>
> I've found that if I go <action name="myForm" ...> in struts-config.xml,
but
> access that action from a link, I get an "Attempted a bean operation on a
> null object" error.
>
> Is there a way to do what I'm trying to do?
>
> Brian
>
>

Reply via email to