u cant nest tags like this....

try this:

<% String onClickString = "location.href" + myString; %>
<html: button 
        property="send" 
        onclick="<%=onClickString>" />

another way u can do this is by using html_rt tags:
<html_rt: button 
        property="send" 
        onclick="<%='location.href'+mystring%>"/>

i am not sure abt the second one especially the quotes...u can give it try

----- Original Message ----- 
From: "Sniadach, Tomasz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 12, 2004 9:11 PM
Subject: html:button and Javascript


Hello , 
i have a problem with the html:button tag.
i have a string in my JSP, this is an action, now i have to use a button
to link to the action.
I tryed:
<html:button property="send" onclick="location.href='<%=mystring%>' "/>
but it does not work.
What is wrong ?
Thanks for help

Tomek


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

Reply via email to