how can we create object to a class in a jsp file?

Answer Posted / shane rajasinghe

Creating The Object
<% MyBean student=new MyBean(); %>
*************************************************
calling attributes in the created object
<jsp:getStudentInfo name="student" property="name"/>
<jsp:getStudentInfo name="student" property="dit"/>
*****************************************************

Is This Answer Correct ?    7 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between the http servlet and generic servlet?

598


What is cookies in servlet with example?

514


What is a java servlet?

552


What are the ways to handle multi-threading in servlets?

590


What is the process to implement doget and dopost methods?

540






What is http servlet in java?

556


What is the purpose of dispatcherservlet properties?

506


I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>

2524


How the JSP file will be executed on the Server side?

640


What are the types of an http request?

577


What is webservlet?

529


What are the new features added to servlet 2.5?

586


What are the different methods of session management in servlets?

528


What is the life cycle of a servlet?

777


Tell us something about servletcontext interface.

619