Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training

Request Parameters In EL

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

Ads

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

Ads
Share on Google+Share on Google+

Request Parameters In EL

Posted on: February 11, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Advertisements

Ads
 

Discuss: Request Parameters In EL  

Post your Comment


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

Ads

 

Ads