struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurie Harper <>
Subject Re: <html:link> and javascript
Date Thu, 08 May 2008 17:00:51 GMT
umainb wrote:
> Hello,
> I have a link in my jsp  
> <html:link  page="/"  paramId="phone"
> paramName="resultsList" paramProperty="phoneNumber"><bean:message
> key="admin.console.verify.numbers.delete"/></html:link>
> which deletes a record from the list of numbers.
> When the user clicks on the link above, we need a javascript popup "Are you
> sure you want to delete the number?" with "OK" and "Cancel"
> How I can achieve that? 

Use html:link's onclick attribute to invoke the popup dialog just as you 
would with vanilla HTML. html:link supports all the Javascript event 
hook attributes you'd expect:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message