tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "M H Rao" <mh...@in.ardensys.com>
Subject Re: JSP and Javascript
Date Thu, 31 May 2001 13:00:15 GMT
use window.open()

mhrao
----- Original Message -----
From: <Sulman.Jeff@epamail.epa.gov>
To: <tomcat-user@jakarta.apache.org>
Sent: Thursday, May 31, 2001 6:11 PM
Subject: JSP and Javascript


> Can I open a Jsp from the JavaScript OPEN function?
> For example I want to open a jsp from a html form when a button is
pressed.
> The code looks like this:
>
> <input type = button value = "Update" onclick = "open
> ('igce/jsp/update.jsp?testParam=1222','newwindow')">
>
> When I press the button, Netscape opens up a download file dialogue box.
>
> I can run the jsp alone but not in an HTML page.  All the examples I have
> seen have html run a servlet and the servlet forwards the JSP.
>
> Thanks
>
> Jeff Sulman
>


Mime
View raw message