EL and parameters
I seem to be having some problems while using expression language and a parameter being submitted to a form. The page displays the value of a parameter(passed to the page) called name. The user is given a text field to enter a new name and a button to submit name back to page for next greeting. The code should , I guess be fine as the form is displayed correctly, however in code (a) after entering the name in the text box and hitting submit button nothing happens. In another application ie in code (b) again the form is dispalyed as needed and on entering values in the 2 text boxes and hitting submit, it says requested resource is not available.
Code (a)
templateText.jsp
<html>
<head>
</head>
<body>
<h2>EL and Template Text</h2>
<table border="1">
<tr>
<td colspan="2">Hello ${param['name']}</td>
</tr>
<tr>
<form action="templateText.jsp" method="post">
<td><input type="text" name="name"></td>
<td><input type="submit"></td>
</form>
</tr>
</table>
</body>
</html>
The deployment descriptor for this is
web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
</web-app>
The other application is code (b)
simpleBean.jsp
<jsp:useBean id="person" class="com.apress.projsp.Person" scope="request">
<jsp:setProperty name="person" property="*"/>
</jsp:useBean>
<html>
<head>
<link rel="stylesheet" href="projsp.css">
</head>
<body>
<h2>EL and Simple JavaBeans</h2>
<table border="1">
<tr>
<td>${person.name}</td>
<td>${person.age}</td>
<td> </td>
</tr>
<tr>
<form action="simplebean.jsp" method="post">
<td><input type="text" name="name"></td>
<td><input type="text" name="age"></td>
<td><input type="submit"></td>
</form>
<tr>
</table>
The JavaBean for this is:
Person.java
package com.apress.projsp;
public class Person {
private String name;
private int age;
public Person() {
setName("A N Other");
setAge(21);
}
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setAge(int age) {
this.age = age;
}
public int getAge() {
return age;
}
}
Any help in this would be appreciated. Has it anything to do with intranet settings? How do I go about with this issue? Thanks.

