You cannot do this because JSP scriptlets are server side entities.  They are accessible from a client.  The nearest alternative approach that I can think of is to use a scriptlet to generate JavaScript code for the onClick handler and use meta tags in the header to refresh the page.  While the  page is refreshed, the JSP scriptlet code could generate new JavaScript code for the onClick handler.
David
 
 
----- Original Message -----
Sent: Tuesday, November 30, 1999 10:13 AM
Subject: Scriplets as form control events

Does anyone know if it's possible to set a scriplet as the value of an OnClick event of a button/input control in HTML?
And then, with or without the button being type=submit, get the page to refresh to process the change made in the scriplet?
 
Cheers,
 
Dan

Reply via email to