Hi,
I'm on a project. I have a question about JavaScript.
This project uses JSP/Servlet & JBoss application server.
http://smk-devl.em.health.ge.com:8081/JSP/Main/HomePage.jsp
normally, from every webpage, I need to get some parameter for request(HttpServletRequest) to use in the Servlet's controller.
for example:
in Homepage.jsp, I have
document.home.nextScreen.value="ItemList";
....
document.home.submit();
in the controller of servlet, it's ok
in doPost() function
I have request.getParameter("nextScreen")=Itemlist.
I have the good value to run the server.
But when I need to write a function search to find a item in the itemlist.I need to open a new window to give the item number I want to find in the item list.
Normally, we can do that in the new window's webpage
opener.document.home.nextScreen.value="ItemList";
....
opener.document.home.submit();
Or
I create the new hidden names"nextScreen" in the search.jsp and I do directlly
document.home.nextScreen.value="ItemList";
....
document.home.submit();
But in the servlet's history, I have always doPost(unkonwn source) and in the excution's history, the Itemlist's value is blank
I think that, the servlet can't get the value from the html file.
Do u have a solution for my problem?
Thanks a lot.