how the jsp file is compiled?
Answers were Sorted based on User's Feedback
when container sees the request for .jsp file it loads
the .jsp file &converts into .java then compiles
into .class file and it is servlet all the way(continer
calss its no-arg constuctor,calss jspInit(),_jspservice()&
finally jsp destory)
| Is This Answer Correct ? | 29 Yes | 0 No |
Answer / annasmith
first save the jsp file with extension .jsp and then you should keep that file in "webapps" folder in apachetomcat server. And than start the server(click on start->all programs->apachetomcat->configure tomcat).next you should go to internet explorer and give url in address bar i.e(http:\\localhost:(urserverport number)\)
it shows tomcat home page and then click on the tomcat manager
it shows list of all your applications click on your application and then you are done.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / pratique suhane
servlet : html within java
jsp : java within html , so refined version for servlet
So jsp initally converted to servlet(Base Form) and then it
is compiled and converted to object code (.class file).
| Is This Answer Correct ? | 3 Yes | 5 No |
Answer / java mani
By using .jsp,we can compile in java, but it will executed
in servlet
| Is This Answer Correct ? | 4 Yes | 9 No |
How do you connect to the database from jsp?
How session is achieved in JSP?(once user logs out,if he press back button of browser he should not be allowed to same page)
Explain handling of runtime exceptions.
What are the different types of directives available in jsp?
can i use vb script with jsp?
How can we extend jsp technology?
How to print java variable in jsp?
What is an expression in jsp?
Why do we use jstl tags?
Is the session object always created on the jsp page, is it possible to disable its creation?
Why jsp and servlets are used?
How do I view jsp files in my browser?