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
What is a servlet-to-servlet communcation?
Can we use the constructor, instead of init(), to initialize servlet?
If a servlet is not properly initialized, what exception may be thrown?
What is session?
Which interface must be implemented by all servlets?
Why are http servlets used in programming?
what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?
What is a generic servlet?
What is cookies in servlet with example?
How would you create deadlock on your servlet?
What is Request Dispatcher?
What is difference between GenericServlet and HttpServlet?
What do you mean by chaining in servlet?
When to use doget() and when dopost()?
Can you call a jsp from the servlet?