Yes. The thing to remember is that by the time the JavaScript fires, the
Struts tags have been rendered as plain, ordinary HTML, so everything
works just as it would on any Web page. By the time it gets to the
browser, there are no "Struts tags", only the regular HTML tags the
browser expects.

"Chalissary, David" wrote:
> 
> hi
> 
> anyone has used javascript alongwith struts
> 
> david
> 
> -----Original Message-----
> From: Chalissary, David
> Sent: 23 January 2002 13:32
> To: Struts Users Mailing List
> Subject: RE: using struts and javascripts together
> 
> Hi,
> 
> I would like to know if I can use the struts tag in a
> javascript function call for example:
> 
> function submitform(aValue, aCode){
>         process the java script here
> }
> 
> <bean:write name="cCode"/>
> 
> <html:submit property="submitButton" value="Detail"
> onclick="submitForm('auditStatusDetail',' -- use the ccCode here --
> ');"/>
> 
> substitute the ccCode  in the single inverted codes : -- use the ccCode
> here --
> 
> regds,
> 
> David
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Java Web Development with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to