Home Jsp Simple-jsp-example Request Parameters In EL



Request Parameters In EL
Posted on: February 11, 2008 at 12:00 AM
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.

Related Tags for Request Parameters In EL:
parametersmultipleipvaluefieldreadparameterthisifieprogramvaluestoramldeilmultiusetrieulfrominstampartrmvmvadafteresthroughretrievemehowhrproparamsamestipishallmetergoeaandarsavattssamssamrithavstaluafiplpleplprndonomogro


More Tutorials from this section

Ask Questions?    Discuss: Request Parameters In EL  

Post your Comment


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

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.