how the jsp file is compiled?

Answers were Sorted based on User's Feedback



how the jsp file is compiled?..

Answer / siriganesh

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

how the jsp file is compiled?..

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

how the jsp file is compiled?..

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

how the jsp file is compiled?..

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

Post New Answer

More JSP Interview Questions

How can we create jsp custom tags?

0 Answers  


Mention the scope values for <jsp.usebean> tag.

0 Answers  


Why are jsp pages the preferred api for creating a web-based client program?

0 Answers  


How to run java program in jsp page?

0 Answers  


What is jstl (jsp standard tag library)?

0 Answers  






Explain the advantages in jsp?

0 Answers  


What are page directives?

0 Answers  


What is jsp exception?

0 Answers  


when we will use the SendRedirect method instead of forward.

1 Answers   pspl,


How does error handling occur with jstl?

0 Answers  


What is use of scriptlet tags in jsp?

0 Answers  


What is jstl used for?

0 Answers  


Categories