Hi,
If you have noticed the previous mails, someone had a similar problem,
<quote>
JSP is server side
SavaScript is client side
</quote>
You want to include a file on conformation,
well try a form, if it is functional aspect I would not depend on JS to work
always, as they are not supported......blah blah blah
well keep a checkbox and a button and on submit, in the jsp which you call
do the choice based on the checkbox.
else if you want to use JavaScript
you still have to call a JSP which will do the include(this is done at
server side not at client)
so you still have to pass back the parameter
like
if(true)
{
window.location = "abc.jsp?include=true"
}
else
{
window.location = "abc.jsp?include=false"
}
remember, true & false are strings.
Amit
> -----Original Message-----
> From: Arni Raghu [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, December 27, 1999 6:25 PM
> To: [EMAIL PROTECTED]
> Subject: jsp javascript..
>
> Hi,
> I am using the JWS from Sun..
>
> I want to use Javascript and jsp together in a page..like
>
> <script>
> if(confirm("you wanna")) {
> <%@ include file="abc.jsp" %>
> }
> else {
> return false;
> }
>
> I tried and it does not seem to be working...any ideas..??
>
> Thx,
> Arni
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html