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

Where do you define dispatcherservlet?

554


How can we achieve transport layer security for our web application?

573


What are the uses of servlet

635


What is the importance of init() method in Servlet ?

594


What is load-on-startup in servlet?

589






Why jsp is better than servlet?

536


What is a java servlet?

558


What is the major difference between servlet and applet?

546


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

598


What is the type of method for sending request from http server?

599


explain the advantages of servlet life cycle?

562


What is a servlet context?

604


How the typical servlet code look like ?

639


What are the differences between forward() method and sendredirect() methods?

553


Does servlet have main method?

691