Form fields help

Hi everyone,Just a quick question.I have a JSP file (file 1) that opens up a popup window with a second JSP file (file 2). What I would like to do is get the value from a text field on a form on the first page to use on the second.Any ideas?Thanks!null
[294 byte] By [giggipa] at [2007-11-26 18:21:57]
# 1

[nobr]Hope this will help you..in my answer there is one text box and one Submit button...when I press Submit button it will fire JavaScript and open another JSP file and send textbox value into that file..

<html><head>

<SCRIPT language="javascript">

function sndUserCheck(action)

{

window.open('pagethatyouwanttoopen.jsp?UserName='+action, 'Sample', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=635,height=360');

}

</SCRIPT>

</head>

<form action="yourpagename.jsp" method="post" name="form1">

<input type="text" name="username" value="" autocomplete="off" size="15" maxlength="10"><BR><INPUT TYPE="button" VALUE="Check Availability of This ID" onClick="sndUserCheck(document.form1.username.value);">

</form>

[/nobr]

radhika_exceptiona at 2007-7-9 5:55:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Thanks for your help but is there a way to do this without JavaScript, using the request.getParameter command or something similar?Thanks!
giggipa at 2007-7-9 5:55:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...