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

mNem
Answer

did you try right-click on the project name from Projects panel and Copy ... option?

Marked as Answer by OTG-467455 · Sep 27 2020
mNem

If I were you, for "exploring different scenarios", I would just stick with creating a new class (copy the existing one if you like) and make modifications all in the same project (instead of cloning the entire project).

HTH.

OTG-467455

Hi mNem,  Both of your suggestions are good.  I just wanted to create a replica, mess around and then drop it.  So the clone works just right for me.  Thanks for your quick thinking.

1 - 3
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
149 views