Struts Submit button woes

I am creating a simple, new JSP page with a textbox, a drop down, and a submit button.  I am making use of Apache struts.  I have a form object which contains a prNumber and revision property, both strings.  The form object extends a parent object which has a submitButton property.  All of these form properties have the appropriate setters and getters.

The issue at hand is that I get a 500 error when I add the line for the submit button.  When I comment out that line, the page loads.  Uncommented, it gets the 500 error.  See the code listed below.

My question is basically:  what feedback can you provide me on this submit button?  Thanks




<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>

<%
//SECTION 1: lists all the include files for struts
//===================================================================================================
%>
<%@ page language="java" %>
<%@ page import="com.something.jsp.JspColor,
com.something.action.Actions;"%>

<%  
//SECTION 2: Define all the local varables
//===================================================================================================
%>

<%
//SECTION 3: lists all the include files for header
//===================================================================================================
%>
<!-- Header Begins -->                              
<jsp:include  page="/WEB-INF/pages/jspHeader.jsp"  flush="true"/>
<!-- Header Ends -->

<%
//SECTION 4: Coding Area
//===================================================================================================
%>

<!-- DEFINE TABLE HEADER -->
<jsp:include  page="/WEB-INF/pages/mainmenu.jsp"  flush="true"/>
<!-- END TABLE HEADER -->

<!-- DEFINE ERROR MESSAGE AREA -->
<html:errors />
<!-- END ERROR MESSAGE AREA -->

<!-- DEFINE MESSAGE AREA -->
<html:messages id="messages" name="AdminDeletePrForm" message="true" header="messages.header" footer="messages.footer">
 <bean:write name="messages" />
</html:messages>
<!-- END MESSAGE AREA -->

<!--  DATA AREA -->

<% //changes column colors
String SLATE = "#E0E0E0";
String WHITE = "#E9E9E9";
String [] colors = {WHITE, SLATE};
JspColor jspColor = new JspColor (colors);
%>

<nested:text name="AdminDeletePrForm" property="prNumber" size="6" maxlength="6"/>
<nested:select name="AdminDeletePrForm" property="revision">
      <html:option value="20">IN WORK PR</html:option>
      <html:option value="70">ENTIRE PR</html:option>
</nested:select>

<html:submit value="<%= Actions.DELETEPR %>" name="AdminDeletePrForm" property="submitButton" styleClass="sbutton" />

<%
//===================================================================================================
//SECTION 5:  ePRO Footer
//===================================================================================================
%>
<!-- Footer Begins -->                              
<jsp:include  page="/WEB-INF/pages/jspFooter.jsp"  flush="true"/>
<!-- Footer Ends -->
                  


fshtankAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

fargoCommented:
where is the html:form in the page??

fargo
0
actonwangCommented:
fargo is right. Internal error is due to lack of <html:form ...>, you need to do as:

<html:form>

    <html:textbox .../>
     <html:checkbox ../>

     <html:submit .../>

</html:form>

most of html:xx tags need to inside <html:form ...> otherwise it will complain that there is no form object in the request session or session.

Acton
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
fshtankAuthor Commented:
Thanks actionwang for a clear, precise answer.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JSP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.