how to submit form to same page.
<%@ page contentType="text/html; charset=iso-8859-1" language="java"
import="java.sql.*" errorPage=""%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script>
function sample()
{
document.form_Configure.submit();
}
</script>
</head>
<body bgcolor="#FFFDF3">
<FORM name="form_Configure">
<center>
<p align="center"><br />
<% String[] serverNames={"Server1", "Server2", "Server3"};%>
DataBase Type : <select name="DatabaseTypes"
ONCHANGE="sample()" style=" width:211; height:211">
<% for(int i = 0; i < serverNames.length; i++)
{
%>
<option><%=serverNames%></option>
<% } %>
</select>
</center>
</FORM>
</body>
</html>
cheers
rasmi