Hi,
I have the following code in the HTML
<select size="1" name="newtitle" >
<% // Need to fill select with available campuses
while (titleit.hasNex t())
{
temp = (String)titleit .next();
// Check if it is the selected campus already
if (temp.equals(ti tle))
{
// Make it the selected campus by default
out.println("<o ption selected>"+temp +"</option>");
}
else
{
// Add it normally
out.println("<o ption>"+temp+"</option>");
}
}
Which just fills up a combo box. Now in the JSP on the submit page I have
String[] titleU = request.getPara meterNames("new title");
If I use following line I get an error...
out.println(tit leU[0]);
Whats the deal??
Tripharn
I have the following code in the HTML
<select size="1" name="newtitle" >
<% // Need to fill select with available campuses
while (titleit.hasNex t())
{
temp = (String)titleit .next();
// Check if it is the selected campus already
if (temp.equals(ti tle))
{
// Make it the selected campus by default
out.println("<o ption selected>"+temp +"</option>");
}
else
{
// Add it normally
out.println("<o ption>"+temp+"</option>");
}
}
Which just fills up a combo box. Now in the JSP on the submit page I have
String[] titleU = request.getPara meterNames("new title");
If I use following line I get an error...
out.println(tit leU[0]);
Whats the deal??
Tripharn
Comment