2
On the server, I don’t 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 parameter.
In html I put javascript to take the parameter. Now I don’t 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 one. But I don’t 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 form. Can anyone help me?
You can better explain this behavior you describe?
index.html
and the basis of the board is often the same, iedominio.com
will lead to the samedominio.com/index.html
.– Sergio
There is a Servlet that sends the parameters. For example, Name. Only it passes to an html. I have no way to change this path. I’d like to take this parameter and move on to a jsp. But I can’t find a solution to take the parameter in HTML E pass to the next, in case a JSP.
– Gilberto