-
Recent Posts
-
Archives
Monthly Archives: July 2009
How to open multiple tabs in firefox using a batch file
How to call Jsp page from Javascript?
We can call JSP page from JavaScript using the property window.location.href. Example: Hello.html: <html> <head> <title>Add Faulty Phones</title> <script type=”text/javascript”> function changeLocation() { window.location.href =’hello.jsp?name=John’; } </script> </head> <body> <form method=get> <INPUT TYPE=BUTTON ONCLICK=”changeLocation()” VALUE=”Click”> </form> </html> Note: “window.location.href = ‘download.jsp’?name=john;” where download.jsp is jsp file, name is parameter name and john is parameter value. hello.jsp: <center>Hello <%=requset.getParameter(“name”)%> </center>