java - tomcat with jsp -


how can compile , run jsp pages using tomcat. should place jsp page. in folder have placed it.

a simple example of jsp can

<html> <head> <title>hello world jsp</title> </head> <body> <% out.println("hello world"); %> </body> </html>    

to run jsp page
save file in c:\program files\tomcat\tomcat-5.5.9\jsp-examples\ helloworld.jsp
start tomcat server.
type following url in address bar of web browser.
http://localhost:8080/jsp-examples/helloworld.jsp
jsp page displayed in web browser.


a jsp page converted servlet internally jsp engine.and source file servlet can found @ \work directory in tomcat.


for more information on how jsp works , how different servlet take @

what difference between jsf, servlet , jsp?

also take at
hidden features of jsp/servlet


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -