You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Larry Maturo <lm...@athensgroup.com> on 2001/08/16 00:21:13 UTC
problem with submit
I have the following in a form in a jsp, and when I hit submit, it
does not go back to the action class for some reason.
<html:form name="ReviewSummary"
type="com.athensgroup.eval.actionforms.SummaryForm"
action="/ReviewSummary.do"/>
<html:submit property="SUBMITTED" value="YES"/>
</html:form>
The actual value is irrevalent, since in the action class I just test
against
null, as in:
if(request.getParameter("SUBMITTED") != null) {
Why is the action class not getting called?
-- Larry Maturo
Re: problem with submit
Posted by Rama Krishna <kr...@hotmail.com>.
well, if this is the exact code u r using, u closed u r form tag before html:submit itself.
<html:form name="ReviewSummary"
type="com.athensgroup.eval.actionforms.SummaryForm"
action="/ReviewSummary.do"/>
try removing the "/".
rama.
----- Original Message -----
From: "Larry Maturo" <lm...@athensgroup.com>
To: <st...@jakarta.apache.org>
Sent: Wednesday, August 15, 2001 3:21 PM
Subject: problem with submit
> I have the following in a form in a jsp, and when I hit submit, it
> does not go back to the action class for some reason.
>
> <html:form name="ReviewSummary"
> type="com.athensgroup.eval.actionforms.SummaryForm"
> action="/ReviewSummary.do"/>
>
> <html:submit property="SUBMITTED" value="YES"/>
> </html:form>
>
> The actual value is irrevalent, since in the action class I just test
> against
> null, as in:
>
> if(request.getParameter("SUBMITTED") != null) {
>
> Why is the action class not getting called?
>
> -- Larry Maturo
>
>
RE: problem with submit
Posted by John Schroeder <js...@quovera.com>.
Try removing the *.do from the action attribute in the form tag.
<html:form name="ReviewSummary"
type="com.athensgroup.eval.actionforms.SummaryForm"
action="/ReviewSummary" />
Hope this helps...
--John
-----Original Message-----
From: Larry Maturo [mailto:lmaturo@athensgroup.com]
Sent: Wednesday, August 15, 2001 3:21 PM
To: struts-user@jakarta.apache.org
Subject: problem with submit
I have the following in a form in a jsp, and when I hit submit, it
does not go back to the action class for some reason.
<html:form name="ReviewSummary"
type="com.athensgroup.eval.actionforms.SummaryForm"
action="/ReviewSummary.do"/>
<html:submit property="SUBMITTED" value="YES"/>
</html:form>
The actual value is irrevalent, since in the action class I just test
against
null, as in:
if(request.getParameter("SUBMITTED") != null) {
Why is the action class not getting called?
-- Larry Maturo