• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat and XAMPP

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tomcat is not part of XAMPP.
 
vignesh gopalakrishnan
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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".
 
Is that a spider in your hair? Here, threaten it with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic