I am doing on Java Struts 2 framework.
Normally, I can get data from my JSP through the get set method in Form.java
(action class). Below is my example :
You can use <s:textfield name="campaignName" size="50" maxlength="50" />
and add struts tag to your jsp ( at the top ):
<%@ taglib prefix="s" uri="/struts-tags"%>
<s:textfield name="campaignName" size="50" maxlength="50" />
or
<input type="text" name="campaignName" size="50" maxlength="50" />
The name need to be matched with the field name
The simple usage of that textbox is to use s:textfield
tag.
<s:textfield name="campaignName" size="50" maxlength="50" />