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
Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?
What is the use of send redirect () method?
Differentiate between get and post?
What is meant by Servlet? What are the parameters of service method?
Which HTTP method is non-idempotent?
Is it possible to have a constructor inside the servlet?
How we can call a jsp from the servlet?
What is the use of attribute in servlets?
What is a deployment descriptor?
What is servletconfig?
When to use doget() and when dopost()?
List out difference between a JavaBean from a Servlet?
Can we refresh servlet in client and server side automatically?
What are common tasks performed by Servlet Container?
Why servlet is faster than jsp?