Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JSTL

Reply
 
 
Julien Mérivaux
Guest
Posts: n/a
 
      04-25-2005
hi my lordz,

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

<c:set var="name1" value="value1" scope="page" />
<cut 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" />
<cut 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.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
JSTL: How do I set an array variable? Derek Mahar Java 2 06-07-2011 06:39 PM
(struts/JSTL) Setting bean property value with jstl choose compoundresults DaFoot Java 1 10-23-2008 12:42 PM
Custom JSTL that accepts JSTL expression Robert Mark Bram Java 0 12-15-2004 12:26 AM
JSTL to C# conversion? steve ASP .Net 2 06-01-2004 01:14 PM
JSTL & WebSphere 5.0 setup possible? Bryan Althaus Java 0 07-22-2003 01:46 AM



Advertisments