On the server, I do not know why, when accessing the site, it goes through a index.html
before going to the main page. It turns out that before there is a servlet with some data as a parameter.
In the html I put the javascript to get the parameter. Now I do not know how to send to the main page. I tried to create an index that "invents" a form with the hidden fields and sends the data to the main. But I do not know how to send this data.
<script>
function QueryString(variavel){
var variaveis=location.search.replace(/\x3F/,"").replace(/\x2B/g," ").split("&;")
var nvar
if(variaveis!=""){
var qs=[ ]
for(var i=0;i<variaveis.length;i++){
nvar=variaveis[i].split("=")
qs[nvar[0]]=unescape(nvar[1])
}
return qs[variavel]
}
return null
}
</script>
<script
<form name="acesso" method="post" action="Principal.jsp">
<input type="hidden" name="Nome" value="+ QueryString('Nome')"
<input type="hidden" name="redirect" value="Principal.jsp">
The problem is in the value of the form. Can anyone help me?