You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Kurniawan Kuga <ku...@meruvian.org> on 2008/12/01 08:40:28 UTC
how to take requests from struts2
hi all
i have problem with sturts2, how to take request from sturts2 ?
I have the velocity in the code as follows
<input type=radio name="$!x.levelMatrix" value=2>
$!x.levelMatrix from database
type of data is String
how to use HttpServletRequest for take data from velocity.
sory my bad language.. :)
--
Kurniawan
Meruvian
BlueOxygen Workspace Developer
One Stop Java and Enterprise OSS Provider
Technopreneurship, Training, Internship, Outsourcing and Corporate
Competency Center
Mobile: +62 856 597 797 20
YM:kuga_maxs@yahoo.com <YM...@yahoo.com>
GTalk: kurniawan.kuga@meruvian.org
Re: how to take requests from struts2
Posted by Wes Wannemacher <we...@wantii.com>.
To help, we'll probably need to see your action as well. To receive the
data from the form, you put getters/setters on your action to match your
form elements. If your setters aren't being called, you likely have a
configuration problem. You don't need to use HttpServletRequest to get
the parameters, and if you are, you are sort of losing one of the main
purposes of using the framework.
Have you looked through any tutorials on struts2? There are many linked
from the struts2 wiki -
http://struts.apache.org/2.x/docs/tutorials.html
On Mon, 2008-12-01 at 14:40 +0700, Kurniawan Kuga wrote:
> hi all
> i have problem with sturts2, how to take request from sturts2 ?
> I have the velocity in the code as follows
>
> <input type=radio name="$!x.levelMatrix" value=2>
>
> $!x.levelMatrix from database
>
> type of data is String
>
> how to use HttpServletRequest for take data from velocity.
>
> sory my bad language.. :)
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org