I want to write the world' simplest bean/jsp interaction. This code gets close but errors out saying name="makeUp" is no good. Can someone tell me what I need to do to make this work in JDeveloper's local PC mode?
FILENAME: exampleBean01.java
package jazzy;
import java.io.Serializable;
public class exampleBean01 implements Serializable {
String called;
public exampleBean01() {
called = "Planet" ;
}
}
FILENAME: exampleBean01.jsp
<html>
<body>
<jsp:useBean class="jazzy.exampleBean01" id="makeUp" scope="page" />
The bean's default is: Hello
<jsp:getProperty name="makeUp" property="called" /> <br>
</body>
</html>
FILENAME: exampleBean01.java
package jazzy;
import java.io.Serializable;
public class exampleBean01 implements Serializable {
String called;
public exampleBean01() {
called = "Planet" ;
}
}
FILENAME: exampleBean01.jsp
<html>
<body>
<jsp:useBean class="jazzy.exampleBean01" id="makeUp" scope="page" />
The bean's default is: Hello
<jsp:getProperty name="makeUp" property="called" /> <br>
</body>
</html>