Re: struts-tag property in javascript

Lukasz Lenart <[email protected]> Tue, 10 Jun 2025 19:33:08 +0200
Newsgroups gmane.comp.jakarta.struts.user
Message-ID <CAMopvkNbrR1aWLTCmh3PpQf=ttws8+yeXLqEmnZ5K4autM2orQ@mail.gmail.com>
wt., 10 cze 2025 o 18:23 Ute Kaiser <[email protected]> napisał(a):
>
> Update after more investigating Nate's answer:
>
> <s:submit type="input" value="Delete"
> onclick="document.getElementById('deleteid').value='%{id}';">
>
> Using ${id} threw an error (I suppose my config not fit for JSP EL)

Nope, basically ${} means "use JSP EL" which is prohibited "inside" S2
tags, using %{} means "use OGNL expression" which is fine.


Cheers
Łukasz