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
Where do you define dispatcherservlet?
How can we achieve transport layer security for our web application?
What are the uses of servlet
What is the importance of init() method in Servlet ?
What is load-on-startup in servlet?
Why jsp is better than servlet?
What is a java servlet?
What is the major difference between servlet and applet?
What are the ways to handle multi-threading in servlets?
What is the type of method for sending request from http server?
explain the advantages of servlet life cycle?
What is a servlet context?
How the typical servlet code look like ?
What are the differences between forward() method and sendredirect() methods?
Does servlet have main method?