JSP question

Hi

I have a question

I have a jsp page in which I have all the names of the databases in a select option tag.Whenever I select a database, I want that the name of the database and the user name and the password be transferred to the other jsp page that is called.I dont want to use the submit() as the submit has another funciton.

I can use the function below to transfer the user name and password as well as the name of the database, but I dont want the user name and password to be shown in the address bar.even though the method of post is POST and not GET, all the information passed to the other jsp page is shown.

<script LANGUAGE="JavaScript">

function forward(base){

var param = base.value;

location.href="Test2.jsp?base=" + param;

}

</script>

and In select part I have

<select name='base1' id='base1' onchange="forward(this)" >

can u help me how can I tranfer the parameters with out any problem of this kind?

thanks in advance

[1226 byte] By [azadehhomayouna] at [2007-11-26 20:04:56]
# 1
use a REAL html form and sumbit it with the POST methodthe location.href is like a http link ... you must use document.forms[0].submit();
alban.maillerea at 2007-7-9 23:05:41 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Seems to me that if you are putting the information in a select option you must have it on the server side. Why not just pass back teh name and look up the other information on the server
tolmanka at 2007-7-9 23:05:41 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...