Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

example bean

Status
Not open for further replies.

chuckwms

Programmer
Joined
Nov 23, 2001
Messages
2
Location
US
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=&quot;jazzy.exampleBean01&quot; id=&quot;makeUp&quot; scope=&quot;page&quot; />
The bean's default is: Hello
<jsp:getProperty name=&quot;makeUp&quot; property=&quot;called&quot; /> <br>
</body>
</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top