Property Access : Form TextField « JSTL « Java






Property Access


<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<html>
  <head>
    <title>Property Access</title>
  </head>

  <body>
    <c:if test="${pageContext.request.method=='POST'}">
    <c:set var="idx" value="name" />

    param.name = 
    <c:out value="${param.name}" />

    <br />

    param[name] = 
    <c:out value="${param[idx]}" />

    <br />
    </c:if>

    <br />

    <form method="post">Please enter your name? 
    <input type="text" name="name" />

    <input type="Submit" />

    <br />
    </form>
  </body>
</html>


           
       








JSTL-EL-Output-Parameters.zip( 852 k)

Related examples in the same category

1.JSTL Submit Form TextField Action
2.JSTL Form: Using TextField
3.JSTL Form Action: Get TextField Value