Use of Beans

Light Poster
23Mar2010,19:10   #1
dsptl's Avatar
how to use bean in JSP(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.
Light Poster
24Mar2010,22:40   #2
dsptl's Avatar
help me someone please