Monthly Archives: July 2009

How to open multiple tabs in firefox using a batch file

We can open multiple tabs in same window using the following batch file. Step 1: Create a batch file Step 2: Copy the following in the file and save it “C:\Program Files\Mozilla Firefox\firefox.exe” -url “www.google.com” “www.yahoo.com” Step 3: Run the file

Leave a comment

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>

Leave a comment