Hi,using the target version of c:set how can I set the value of a property of a bean which is stored in request scope ?
In my
servlet I have the following code :
Employee emp = new Employee(144142,"John"); //new Employee(Id,name)
request.setAttribute("emp", emp);
In my
JSP I am trying to do this :
<c:set target="${emp}" property="id" value="13345" scope="request" />
<c:set target="${emp}" property="name" value="Tom" scope="request" />
But I get the following error in
TomCat :
Illegal scope attribute without var in "c:set" tag