Re: struts-tag property in javascript

2025-06-10 Thread Dave Newton
On Tue, Jun 10, 2025 at 13:37 Lukasz Lenart wrote: > Nope, basically ${} means "use JSP EL" which is prohibited "inside" S2 > tags, using %{} means "use OGNL expression" which is fine. Oops, forgot about that smh d

Re: struts-tag property in javascript

2025-06-10 Thread Lukasz Lenart
wt., 10 cze 2025 o 18:23 Ute Kaiser napisaƂ(a): > > Update after more investigating Nate's answer: > > 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

RE: struts-tag property in javascript

2025-06-10 Thread Ute Kaiser
Update after more investigating Nate's answer: Using ${id} threw an error (I suppose my config not fit for JSP EL) Best regards Ute - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail:

Aw: RE: struts-tag property in javascript

2025-06-06 Thread Ute Kaiser
Hi and thx for your fast answers. I am aware that migration could go much deeper in cleaning up but rewriting the action und jsp files is fissel work enough at the moment. Dave's answer "But you should be able use standard JSP EL iirc." inspired me. First I did not understand (never used EL), th

RE: struts-tag property in javascript

2025-06-06 Thread Nate Kerkhofs
: Re: struts-tag property in javascript On Fri, Jun 6, 2025 at 09:14 Ute Kaiser wrote: > Hi, > migrating from Struts1 I encounter in a jsp the error "Equal symbol > expected" at the "onclick" row. > I think my old quotes do not work any more with Struts

Re: struts-tag property in javascript

2025-06-06 Thread Dave Newton
On Fri, Jun 6, 2025 at 09:14 Ute Kaiser wrote: > Hi, > migrating from Struts1 I encounter in a jsp the error "Equal symbol > expected" at the "onclick" row. > I think my old quotes do not work any more with Struts2. > > Struts1: > > > onclick="javascript:if(confirmDelete()){document.getElemen

struts-tag property in javascript

2025-06-06 Thread Ute Kaiser
Hi, migrating from Struts1 I encounter in a jsp the error "Equal symbol expected" at the "onclick" row. I think my old quotes do not work any more with Struts2. Struts1: ';}"/> Struts2: ';}"/> I tried 'id', \"id\", \'id\' "id" but nothing worked out Any advice appreciated (hopefully not