> I am new to JSP and was wondering if there is a way to call a
> javascript function inside the setproperty value. like the following
>
> <jsp:setProperty name="converter" property="startTime"
> value="randomFunc()" />
Short answer: no. The 'S' in JSP stands for Server - implying that JSP
code runs on the server-side. In contrast, JavaScript is a client-side
technology that runs in the browser.
JSPs are compiled to Servlets by the JSP container, and then served to
the browser as regular HTML. So, by the time JavaScript can do
anything, all it sees is plain ol' HTML.

Signature
Dave Ockwell-Jenner
Solar Nexus Solutions
http://www.solar-nexus.com/
big ern - 20 Jan 2004 17:05 GMT
> > I am new to JSP and was wondering if there is a way to call a
> > javascript function inside the setproperty value. like the following
[quoted text clipped - 9 lines]
> the browser as regular HTML. So, by the time JavaScript can do
> anything, all it sees is plain ol' HTML.
Then what would be the best way to time from when a user clicks a
submit button on the page and to the information being displayed on
the page.