Aw: RE: struts-tag property in javascript

Ute Kaiser <[email protected]> Fri, 6 Jun 2025 16:37:18 +0000
Newsgroups gmane.comp.jakarta.struts.user
Message-ID <trinity-44ea8f5b-aad0-4ba7-b01f-4bf5dc0ce4ad-1749227838292@trinity-msg-rest-webde-webde-live-c88f569c-zspvj>
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), then I applied part of it "But you should be able use standard JSP".
And so, I found a working solution:

The error was caused by:
s:submit type="input" value="Delete"

Using plain html
input type="button" value="Delete" (or type=submit")
works fine with
  onclick="javascript:if(confirmDelete()){document.getElementById('deleteid').value='<s:property value="id"/>';}"/>

Thx for the inspiration
Ute