0% found this document useful (0 votes)
10 views3 pages

Practical 5b

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views3 pages

Practical 5b

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Practical 5b.

: Create a JSP page to demonstrate the use of Expression


language.

1. Newjsp.jsp

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE html>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>JSP Page</title>

</head>

<body>

<form action="new1.jsp">

Enter Name: <input type="text" name="name"><br>

<br>

Enter Surname: <input type="text" name="sname">

<br>

<br>

Enter Age: <input type="text" name="age">

<br>

<br>

<input type="submit" value="Go"><br>

</form>

</body>

</html>
2. Newjsp1.jsp

<%@page contentType="text/html" pageEncoding="UTF-8"%>


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>

welcome, ${param.name}
${param.sname}
${param.age}

</body>
</html>

Output:

You might also like