Hi All

I used the same way  you have said

<bean:define id="create_portfolio">javascript:location.href='<html:rewrite page="/portfoliomgmt"/>'</bean:define> <html:button property="Create" value="Create" styleClass="NPIButton" onclick="<%=create_portfolio %>" />
html code generated is
<input type="button" name="Create" value="Create" onclick="javascript:location.href='/portfoliomgmt'" class="NPIButton">
but the problem is .do missing ...

Any help brotheres?


Bob Arnott wrote:

Vijay K Anand wrote:
Hi

This code is not actually translating
<html:button property="Create" value="Create" styleClass="NPIButton"
onclick="javascript:location.href=\'<html:rewrite
page='/portfoliomgmt'/>\'" />
how do i do it?

You can't embed tags in other tags... Off the top of my head try something like:

<bean:define id="onClickUrl">javascript:location.href='<html:rewrite 
page="/portfoliomgmt" />'</bean:define>
<html:button property="Create" value="Create" styleClass="NPIButton" onclick="<%=onClickUrl%>" />
Cheers,



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

Reply via email to