Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 26th, 2007, 04:21 PM
Authorized User
 
Join Date: Jun 2007
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?????




 
Old August 9th, 2007, 03:24 AM
Registered User
 
Join Date: Aug 2007
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]

 
Old August 28th, 2007, 10:54 PM
Authorized User
 
Join Date: May 2007
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/





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.