request values are null

hello ,

i want to let the user fill in some values and after that a new windows

should pop up.

in this window i need the values to generate some SQL Query.

with my skript at the bottom all values are null.

has anybody an idea to do it without getting null values ?

<script language="JavaScript">

<!--

function openWin( windowURL, windowName,windowFeatures ) {

return window.open( windowURL, windowName,windowFeatures ) ;

} // -->

</script>

<form name="index" method="post" action="JavaScript:newWindow =openWin('Controller.jsp',

'name','width=800,height=600); newWindow.focus()" onSubmit="">

value1: <input type="text" name="value1">

value2: <input type="text" name="value2">

<input type="Submit" name="Submit" value="">

</form>

Thanks in advance.

--

Andreas

[951 byte] By [init1091] at [2007-9-26 5:36:48]
«« JTree
»» JDK
# 1

Try this:

<form name="index" method="post" action="Controller.jsp" target="_newWindow">

value1: <input type="text" name="value1">

value2: <input type="text" name="value2">

<input type="Submit" name="Submit" value="Submit">

</form>

and the Controller.jsp will have code to get these parameters as follows :

<%

String val1 = request.getParameter("value1");

String val2 = request.getParameter("value2");

%>

makarand_k at 2007-7-1 13:47:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
it works, thanksis there any way to do not show the Menubar from the Browser ?Thanks in advance.--Andreas
init1091 at 2007-7-1 13:47:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...