of-course you can and that is why they are called controller sticking to MVC architecture,
the thing you must POST the values while submitting the page i;e specify method=POST in the form tag and specify the action attribute to which the proper mapping should be done in your spring configuration file & now in the controller your method will have the parameters of HttpServletRequest , HttpServletRespone and ..... as far as your requirement and method signature is correct.
use the request object to get the parameters like
the
string should match with the name of the textbox or what ever you have created in your
jsp.