chris
chris

Reputation: 36937

xampp and tomcat and jsp oh my.. how do i tell if its working

Ok recently installed a wamp xammp to be specific.. I have a requirment to use jsp for some server side communications instead of other stuff like php. My main issue is not knowing jsp enough or java for that matter to know whether or not what I'm trying to do is working or if its not and if its not is it cause of the code I'm tempting to try which is a copy and paste solution via Google for "jsp hello world". Xampp reports tomcat as active and running but I copy and paste the jsp code I find to see if it works and when I go to it in my browser I just see the source as if I were looking at it in notepad, so anyone got some advice? This is a stock install if the latest xammp.. the server runs fine other wise php and mysql included.

Upvotes: 3

Views: 18787

Answers (2)

jirka.pinkas
jirka.pinkas

Reputation: 940

Install NetBeans IDE and follow this tutorial: http://netbeans.org/kb/docs/web/quickstart-webapps.html (before running application in this tutorial you must stop your XAMPP Tomcat).

Or if you want to use your XAMPP Tomcat, integrate it with NetBeans, create a web project using that tutorial, create a WAR file (by clicking on button Clean and Build) - this will create a WAR file in your project directory in directory "dist" and then copy this WAR file to your XAMPP Tomcat into directory webapps.

Start small, use NetBeans IDE, read some tutorials and experiment. Later you can switch to Eclipse IDE (IMHO buch better IDE, but requires much more customization than NetBeans).

Dont use Notepad.

Upvotes: 0

BalusC
BalusC

Reputation: 1108567

Make sure that the file has the .jsp extension and that it's been placed in a subfolder of /xampp/tomcat/webapps (and thus not there where you usually drop PHP files).

See also:

Upvotes: 5

Related Questions