Take a look at "Struts-Simple" on the More About Struts resources page.
< http://husted.com/about/struts/resources.htm#new >
The html:submit tag is designed to be used within a html:form tag. In
Struts, a form, and its parameters, are represented by a Java class that
is written outside of the JSP (an ActionForm). The ActionForm then works
with the other html tags to capture input parameters, and redisplay them
in case of error. It's not something you are expected to do within the
JSP alone. In a framework like Struts, JSPs are little more than "mail
merge" documents. The real processing takes place in Action classes
outside of the JSP.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/
Melissa Rabin wrote:
>
> Would someone kindly help me understand how one can use the struts
> html:submit tag to include a parameter (& it's value) with the request? I
> am writing a simple jsp which allows the user to submit data to a database,
> or clear the table entirely. I was originally thinking of sending the
> parameter via url rewriting, but I am also uncertain as to how one could do
> that via a form post in Struts...
>
> Samples or code snippets would also be useful.
>
> Thank you so much!!
> Melissa
> Web Developer