Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

onclick and JSTL

843836Apr 25 2005 — edited Jun 11 2007
hi my lordz,

Im learning JSP/JSTL and i want to do something like that :

<c:set var="name1" value="value1" scope="page" />
<c:out value='${pageScope.name1}' />

<form name="formulaire" action="http://localhost:8080/ThirdApplication/index.jsp" method="get">
<input type="submit" value="Add" onclick=" <c:set var="name1" value="value1Changed" scope="page" /> ">
</form>

<c:set var="name1" value="value1" scope="page" />
<c:out value='${pageScope.name1}' />

I want to know if it is possible to emmebed a JSTL command into an "onclick" event to change the value of a variable ?

Thanks by advance and best regards.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 9 2007
Added on Apr 25 2005
7 comments
2,881 views