Jsp page code
Using <jsp:useBean>
Using <jsp:useBean>
The message is: <%= bean1.getMessage() %>
Test3.java
package beans;
import java.io.Serializable;
public class Test3 implements Serializable
{
public Test3()
{
}
private String message = "Hello from JSP!";
public String getMessage()
{
return message;
}
}