Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

submit form to same page?

843838Dec 29 2006 — edited Dec 29 2006
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&nbsp;&nbsp;&nbsp;&nbsp; : <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

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jan 26 2007
Added on Dec 29 2006
1 comment
126 views