How to use bean in JSP?

Posted by Nick on Stack Overflow See other posts from Stack Overflow or by Nick
Published on 2010-03-24T18:55:59Z Indexed on 2010/03/24 20:03 UTC
Read the original article Hit count: 469

Filed under:
|
|
|

How to use bean in JSP with only <jsp:useBean>, not MVC?

Assume you have a grade.txt file which contains following data:

Tom 90
Jerry 70
Katy 80
John 60

It asks you to create a bean named grade.java, a JSP page named graderesult.jsp, and a html page named gradecheck.html.

gradecheck.html provides a input textbox and a button submit, once you submit the name of the student, the graderesult.jsp will communicates with bean to show the name and the score corresponding to the person.

© Stack Overflow or respective owner

Related posts about java

Related posts about jsp