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 I
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
4 matches
Mail list logo