• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat and XAMPP

 
vignesh gopalakrishnan
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<%@ page import="java.io.*" %>
<html>
<body>
<%
System.out.println("HELLO WORLD");
%>
</body>
</html>

this is the jsp code i written with a notepad .. but the problem is when i execute it in a browser window it does not give me any answer, no error messages as well .. after installing XAMPP(this is the control panel i used for tomcat)i stored the folder named sample inside the "WEBAPPS" folder and placed this jsp code in a file named systemdate.jsp(at first i tried to print system date . but i cant .. so i decided to simply print the hello world string..)i created a folder names "WEB-INF" inside sample and created another folder named "CLASSES" and i pasted the java source files which is in "C:\Program Files\Java\jdk1.7.0\src\java" in it( I think this is where i made a mistake ) ... after doing it i executed but no result.. So i created a folder named "LIB" inside "WEB-INF" and pasted the same java source files there and tried to execute .. still no solution ... Any one please help me out .. And what is the mistake i have done in this... please guys..
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat is not part of XAMPP.
 
vignesh gopalakrishnan
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Tomcat is not part of XAMPP.


but what do you mean by this. It is a part of and also its the service provided by the XAMPP control panel.. i am working on it bear bibeault .
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Neither of this page or this page mentions nothing of Tomcat. Or is some other "XAMPP"?

In any case, if Tomcat is installed, are you sure that it is running? Can you run the sample apps? Did you configure Tomcat to find your web app, or place the web app in Tomcat's webapps folder?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No only does XAMPP not appear to be related to Tomcat, it doesn't even appear to be related to Java.

However, it sounds like you don't understand the basic architecture of a Java webapp, and without that knowledge, even if XAMPP were a J2EE technology, you'd just be fumbling around.

Despite what the managers and users keep saying, sometimes it does take more effort than just "a child can do it".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic