Forgive me if this has been covered recently; I just joined this list...

I'd like to know how I would go about calling a java method defined in
my JSP page from a javascript function defined on the same page.  For
example, how whould I call the showProduct() java method from the
callJava() javascript function...
<%!
void showProduct(){
    int val = 2 * 2;
    out.println("Product: " + Integer.toString(val));
}
%>

function callJava(){
    // I'm not very familiar with server side javascripting(ssjs), but
I'm guessing that if what
    // I want to do can be done, I'd have to use ssjs, in which case,
does anyone know of
    // a site that has some helpful info about ssjs?
}

===========================================================================
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

Reply via email to