Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Tomcat and XAMPP

 
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..
 
Marshal
Posts: 67425
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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
Marshal
Posts: 67425
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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?
 
Saloon Keeper
Posts: 22285
151
Android Eclipse IDE Tomcat Server Redhat Java 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".
 
Everybody! Do the Funky Monkey! Like this tiny ad!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic