Not in the form which you are trying. Client-side JavaScript only executes
on the clients machine. Your JSP is all serverside. Once the page has been
sent to the client it cannot be used like so.
If you really need to accomplish this you might be able to create an applet
that can communicate with your server. The applet will also be on the client
side and can work with the JavaScript.
Jayson Falkner
[EMAIL PROTECTED]
----- Original Message -----
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 24, 2000 2:08 AM
Subject: combining javascript and jsp
> Hi
>
> its possible to something like this:
>
> function myFunc() {
> if (a_condition){
> <% myBean.setBeanProp(1);%>
> .....
> }
> }
>
> or the code between <% %> is always executed?
>
> Thanx
>
> Raffaele Bello
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets