Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 26th, 2007, 04:21 PM
Authorized User
 
Join Date: Jun 2007
Location: , , .
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default executing a jsp program on tomcat server

hi
I am using:
win xp professional (sp2)
j2sdk1.4.1_03
jakarta tomcat 5.0.28

I have a simple jsp program as::::

<HTML>
<BODY>
<% out.println("HELLO JSP WORLD"); %>
</BODY>
</HTML>

how to execute this program tomcat server?????

if any change in tomcat configuration requires, plse puit over here?????

plse anyone suggest?????




Reply With Quote
  #2 (permalink)  
Old August 9th, 2007, 03:24 AM
Registered User
 
Join Date: Aug 2007
Location: Kolkata, West Bengal, India.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to anubhavharlalka Send a message via Yahoo to anubhavharlalka
Default

Save it as index.jsp or whatevername.jsp

Then goto %systemroot%\%tomcat directory%\webapps
make your own directory called example or whatever

then goto internet explorer and type

Code:
http://localhost:8080/yourdirectoryname/whatevername.jsp
This should run your stuff.[/code]

Reply With Quote
  #3 (permalink)  
Old August 28th, 2007, 10:54 PM
Authorized User
 
Join Date: May 2007
Location: , , .
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Default

copy the files into webapps folder in tomcat
call
http://localhost:port/filename.jsp

u can find more @ http://studyjava.org/jsp/index.htm

http://studyjava.org/forums/
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
jsp & tomcat aruna_k_2006 JSP Basics 1 March 23rd, 2007 07:16 AM
Executing Third Party Program from .NET peter2004 ASP.NET 2.0 Professional 0 February 28th, 2007 08:47 PM
Executing a java program from an ASP page Anirban Dhar Classic ASP Professional 1 July 2nd, 2006 10:58 AM
jsp in tomcat damo Apache Tomcat 1 February 15th, 2005 01:32 PM
Executing an external program. saint VB.NET 2002/2003 Basics 3 July 22nd, 2003 08:30 PM



All times are GMT -4. The time now is 08:37 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.