<%@ page import="com.example.web.*" %>
name.jsp
<html>
<body>
<center><h1>Your Name Is ::
<br>
<
jsp:useBean id="Work" class="com.example.web.Work" scope="request"/>
your job is :: <jsp:getProperty name="Work"
property="job" />
</h1></center>
</body>
</html>
Work.java
package com.example.web;
public class Work{
private
String wrk;
public void setJob(String wrk1){
this.wrk=wrk1;
}
public String getJob(){
return wrk;
}
}
in between there is a
servlet code which have no errors..
must be an error in the highlitted Property atribute...
can sombody resolves it??