how can we create object to a class in a jsp file?
Answer Posted / samuel.j
use the page import tag to import ur class and execute
methods of the class
< % @ page import = packageName.Classname %>
<%
ImportedClass object = new ImportedClass();
object.executeMethods();
%>
Please check for some documentation as to including XSLT in
JSP
| Is This Answer Correct ? | 60 Yes | 24 No |
Post New Answer View All Answers
What exception should be thrown when servlet is not properly initialized?
Explain the difference between jsp and servlet?
How do we go with database connection and log4j integration in servlet?
What are the different session tracking techniques?
What do you mean by url pattern in servlet?
What is servlet mapping?
Which protocol will be used by browser and servlet to communicate
What are the jobs performed by servlets?
List out the difference between ServletConfig and ServletContext?
What is url encoding and url decoding
Differentiate between the web server and application server?
What is the importance of init() method in Servlet ?
Can we get PrintWriter and ServletOutputStream both in a servlet?
Is java servlet still used?
Explain jsessionid and when is it created?