[an error occurred while processing this directive]

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.

                          

[an error occurred while processing this directive]