1,105,644 Community Members

How to Execute JSP FIle

Member Avatar
staneja
Junior Poster in Training
63 posts since Dec 2006
Reputation Points: 0 [?]
Q&As Helped to Solve: 2 [?]
Skill Endorsements: 0 [?]
 
-4
 

I am very new to JSP language and i ahve worked a lot on JAVAlanguage and i have configured my Tomcat Server also and its running fire

I would like to know about the steps that i am required to follow to Execute my JSP File.

1.Please tell me in which directory i am required to save me JSP File
2.What is the URL i need to Type to Execute my JSP FIle

Member Avatar
jwenting
duckman
8,359 posts since Nov 2004
Reputation Points: 1,399 [?]
Q&As Helped to Solve: 447 [?]
Skill Endorsements: 35 [?]
Infraction Points: 5
Team Colleague
 
0
 

Tomcat comes with some rather nice examples which would answer your questions.

You will also want a GOOD MODERN book about JSP, like the latest edition (3rd edition) of O'Reilly's Java Server Pages book.
You'll also want something on good web application design (to avoid falling into the trap of putting business logic into your JSPs.
O'Reilly's Head First Servlets and JSP is a good choice for that.

Member Avatar
staneja
Junior Poster in Training
63 posts since Dec 2006
Reputation Points: 0 [?]
Q&As Helped to Solve: 2 [?]
Skill Endorsements: 0 [?]
 
0
 

Tomcat comes with some rather nice examples which would answer your questions.

You will also want a GOOD MODERN book about JSP, like the latest edition (3rd edition) of O'Reilly's Java Server Pages book.
You'll also want something on good web application design (to avoid falling into the trap of putting business logic into your JSPs.
O'Reilly's Head First Servlets and JSP is a good choice for that.

Well I got my answer and I have started Executing JSP Programs.....

What I did is I just saved my Programmed in JSP folder and then I started my tomcat server from Start menu and then I wrote following link for my hello.jsp file in Web browser and it worked..

http://localhost:8080/examples/jsp/hello.jsp

Well I would like to say knowledge not only brings Confidence it brings Smile also/.......me I am so happy....thank you

Member Avatar
mahendirank
Newbie Poster
1 post since Feb 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

hai i am mahi
i am very new to jsp pls help me clear steps to run a jsp and tomcat server.

Member Avatar
peter_budo
Code tags enforcer
7,935 posts since Dec 2004
Reputation Points: 2,502 [?]
Q&As Helped to Solve: 1,028 [?]
Skill Endorsements: 66 [?]
Moderator
Featured
 
0
 

You have to have installation of Java and Tomcat on your machine. Tomcat should be setup either as in this simple example or this more specific way. Then have look at first deployment.
To learn more about Java and web development have look at these resources:

Question Answered as of 5 Years Ago by jwenting, peter_budo and mahendirank
Member Avatar
satishbaisa
Newbie Poster
1 post since Aug 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

I am very new to JSP language and i ahve worked a lot on JAVAlanguage and i have configured my Tomcat Server also and its running fire

I would like to know about the steps that i am required to follow to Execute my JSP File.

1.Please tell me in which directory i am required to save me JSP File
2.What is the URL i need to Type to Execute my JSP FIle

3.expecting reply from u

Member Avatar
ravi0786
Newbie Poster
1 post since Nov 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
-1
 

3.expecting reply from u

how to execute the jsp file in web browser

Member Avatar
peter_budo
Code tags enforcer
7,935 posts since Dec 2004
Reputation Points: 2,502 [?]
Q&As Helped to Solve: 1,028 [?]
Skill Endorsements: 66 [?]
Moderator
Featured
 
0
 

how to execute the jsp file in web browser

Read post 5 where I explain what you need for Java web development. If you have your environment already set up and having difficulties you need to provide explanation what you did and where the whole process is getting stacked (including any error messages you may get)

Member Avatar
wasifgc
Newbie Poster
1 post since Nov 2009
Reputation Points: -2 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
-1
 

3.expecting reply from u

Hy Friend.Please Download the Netbeans For JSP .GO to the web site of java.sun and download the netbean with Glass fish server.This is Pakage is install automatically.and open Project in the netbean and u have easly find the run button there.then ur pages will be run.By Software Engineer M wasif From Pakistan City Feroza

Member Avatar
sushil231088
Newbie Poster
2 posts since Mar 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

If you are working on windows xp then go to the address below and then create a folder and place your .jsp files here.

C:\apache-tomcat-6.0.24\webapps

for example you created a folder named as strat and in it a file new.jsp
then go to the web browser and type this url-
http://localhost:8080/star/new.jsp

and its done.
bye

Member Avatar
peter_budo
Code tags enforcer
7,935 posts since Dec 2004
Reputation Points: 2,502 [?]
Q&As Helped to Solve: 1,028 [?]
Skill Endorsements: 66 [?]
Moderator
Featured
 
1
 

If you are working on windows xp then go to the address below and then create a folder and place your .jsp files here.

C:\apache-tomcat-6.0.24\webapps

for example you created a folder named as strat and in it a file new.jsp
then go to the web browser and type this url-
http://localhost:8080/star/new.jsp

and its done.
bye

and it will throw error because you named folder strat and in URL you are requesting star

Closing thread, no new valuable info added lately...

Member Avatar
Gayanmdh
Newbie Poster
1 post since Jul 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

At first create a jsp file. then open tomcat server . After that go to that way.Tomcat->wab app-> then create a folder & given name your self.In that folder Create a folder as WEB-INF .Putyour jsp file & html file in the created folder that you given name. then http://localhost:8080/gayan1/name.jsp

You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article