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
Explain how does JSP handle run-time exceptions?
What is http servlet? Explain with the help of an example.
What is the major difference between servlet and applet?
What do you mean by request dispatcher in servlet?
How to get the IP address of client in servlet?
What is the use of servlet wrapper classes?
Why do we need a constructor in a servlet if we use the init method?
How do you get the ip address of the client in servlet?
What is called a session?
Which exception is thrown if the servlet is not initialized properly?
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?
What is servletconfig?
What is java servlet session?
What is Servlet API used for connecting database?
What are the mechanisms used by a servlet container for maintaining session information?