View Full Version : Problem passing parameters between .js and .jsp

29 Jan 2010, 12:44 AM
Hi all!

I am begginer and found a problem passing some parameters from my .js to my a.jsp. and then from a.jsp to b.jsp

This is the way I do it:

In my .js:
(I tryed both)
document.getElementById("proId").value = proyectoId;

and the submit of the form I have in a.jsp

In my a.jsp:
<form name="listadoPro" id="listadoPro" action="<%=urlPath%>/principal.jsp">
<input type="hidden" id="seleccion" name="seleccion" value="proyectos06.sub01" />
<input type="hidden" id="proId" name="proId" value="" />

In my b.jsp (wich correspondent to "proyectos06.sub01"):
String proId = request.getParameter("proId");

It works perfectly with FF but not with IE because when I check the value of proId in b.jsp, it is "".

Could anybody help me? :)

Thank you in advance!