Return Receipt
Your RE: Retrieve Form Values In Action Class
document
Try
String myVal = req.getParameter(myVal);
or
String myVal = form.getMyVal();
-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED]
Sent: 16 March 2005 14:58
To: user@struts.apache.org
Subject: Retrieve Form Values In Action Class
I have some forms where
Cast the ActionForm either to a DynaActionForm or simply to a DynaBean...and
then use the get(name) method.
DynaBean dynaForm = (DynaBean)form;
String myVal = (String)dynaForm.get("myVal");
Niall
- Original Message -
To:
Sent: Wednesday, March 16, 2005 2:57 PM
I have some forms where
Don't use ActionForm or in this case. Just get the data
yourself from the request in the action. That way there is no object
other than the request and the action. If you want to insinuate
something else in there. They it has to be in there. If you have
something in there, the ActionForm is r
I have some forms where I only a couple of form field elements. So instead of
creating a physical bean, I decided to try using the
org.apache.struts.action.DynaActionForm. Anyway, all was good with validation,
etc. But I ran into an issue when I tried to retrieve the values from my form
in th
5 matches
Mail list logo