H,
first some code:
The snippet is part of a search page I'm working on, it's purpose is tp display results with each result containing one or two links or buttons (let's stay with buttons for now). The buttons will need to return the specific results database ID to the server so the server can see which result is meant. The form containing the results has two special fields to identify which button was clicked on, but I have to put the ID into the field; this is done by the onclick JavaScript function. I need to pass in the ID to the JS function, of course. Problem is that the server can't resolve/evaluate ${protVBean.protocolId} within the onlick attribute, it passes this as a
string literal to the function. I tried several different approaches with c:set and c:out, but they all didn't work for varous reasons. Any suggestions are very welcome.
By the way, the solution has to work in Websphere 6.0, JSTL 1.0 and a web application conforming to the 2.3. I did the above in a
Tomcat 5.0.28 and a 2.4 application where it worked without a flaw, but the Websphere / 2.3 combo gives me a fuzz.
[BPSouther: Narrowed the code a bit to make the rest more readable]
[ October 22, 2007: Message edited by: Ben Souther ]