Why use a struts tag to generate a non-struts link?

Dave

On Tuesday, December 21, 2010, Dennis Atkinson
<dennisatkinson...@yahoo.com> wrote:
> Greetings all.
>
> I have a problem invoking Javascript that I can't seem to solve.  I'm hoping 
> someone here has run into the same kind of thing.
>
> When I am iterating through a List of items to display (via the 
> <logic:iterate> tag), one cell I am trying to write has to be a link to a 
> Javascript function, with three parameters.  If I wasn't using Struts, I'd 
> write standard html, like so:
>
> <a href="javascript:showStuffForPerson('405574', '459', '3')">405574</a>
>
> But if I do this in Struts, I get that exact string in the cell, which isn't 
> what I want. I need to have 405574 in the cell, and when I click on it, the 
> javascript has to be invoked with those three parameters.  It really, really 
> needs to work this
>  way.
>
> I tried experimenting with the <html:link> tag, and it *seems* like that's 
> the way to go, but I am lost with respect to the associated <html:param> 
> tags.  I assume I'll need three of them (one for each parameter), but I can't 
> seem to make that work.  If I give them a name, it doesn't work, and if I 
> don't give them a name that doesn't work any better.
>
> Or maybe I'm going about this all wrong?
>
> Any assistance would be very much appreciated.
>
> Thanks in advance,
>
> Dennis
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to