JSTL

Discussion in 'Java' started by Julien Mérivaux, Apr 25, 2005.

  1. hi my lordz,

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

    <c:set var="name1" value="value1" scope="page" />
    <c:eek:ut 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:eek:ut 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.
     
    Julien Mérivaux, Apr 25, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. steve

    JSTL to C# conversion?

    steve, Jun 1, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    358
    steve
    Jun 1, 2004
  2. Derek Mahar
    Replies:
    2
    Views:
    40,060
    DoggieDaddy
    Jun 7, 2011
  3. Bryan Althaus

    JSTL & WebSphere 5.0 setup possible?

    Bryan Althaus, Jul 22, 2003, in forum: Java
    Replies:
    0
    Views:
    1,051
    Bryan Althaus
    Jul 22, 2003
  4. Robert Mark Bram

    Custom JSTL that accepts JSTL expression

    Robert Mark Bram, Dec 15, 2004, in forum: Java
    Replies:
    0
    Views:
    977
    Robert Mark Bram
    Dec 15, 2004
  5. DaFoot
    Replies:
    1
    Views:
    1,704
    DaFoot
    Oct 23, 2008
Loading...

Share This Page