Home Jsp Simple-jsp-example Request Parameters In EL

Related Tutorials


 
 

Share on Google+Share on Google+

Request Parameters In EL

Advertisement
In EL we use "param" attribute to read the parameters from the file.

Request Parameters In EL

        

In EL we use "param" attribute to read the parameters from the file. If we have multiple values to read from the same field then we will use "paramValues".

We have made one program on this. After going through this you will better understand the how to retrieve the parameters in EL

 

The code of the program is given below:

 

<html>
	<head>
		<title>Request Parameters in EL</title>
	</head>
	<body>
		<form action = "RequestParametersInEL.jsp" method = "get">
			<h3>Enter your name		
                         : <input type = "text" name = "username"></h3><br>
			<h3>Enter your ID no.	
                         : <input type = "text" name = "id"></h3><br>
			<h3>Enter your email	
                         : <input type = "text" name = "email"></h3><br>
			<input type = "submit" name = "submit" value = "submit">
		</form>
	</body>
</html>

 

<html>
	<head>
		<title>Request Parameters in EL</title>
	</head>
	<body>
		<h3>Request param name is	: ${param.username}</h3><br>
		<h3>Request param ID no. is : ${param.id}</h3><br>
		<h3>Request param email is	: ${param.email}</h3><br>
	</body>
</html>

The output of the program is given below:

Download this example.

Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: February 11, 2008

Related Tutorials

Discuss: Request Parameters In EL  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0
DMCA.com