I have a jsp that is used to update a persons information by pulling the persons data into a form field so that they can be edited. i also have it so certain options in a select box are preselcted. My problem comes when i submit the page to the validating stage. It keeps coming back saying I need to enter the info. the same validation code is used when a person enters new information so im assuming that the form is having trouble passing pre-selected values. Has anyone seen this before? My validation code looks like follows:
String[] Positions = request.getParameterValues("Positions"
else if( Positions == null ) {
%>
<form method="post" action="Edit_Player.jsp?edit=notnull">
ERROR!<br />A Position is Required!<br /><br />
<input type="submit" value="Go Back">
<%
}
String[] Positions = request.getParameterValues("Positions"
else if( Positions == null ) {
%>
<form method="post" action="Edit_Player.jsp?edit=notnull">
ERROR!<br />A Position is Required!<br /><br />
<input type="submit" value="Go Back">
<%
}