If you are creating a jsp servlet program more specifically web based project, then you create a WAR file of your project. Creating war file is very easy with Java Editors like Netbeans and Eclipse. Run your XAMPP start service Tomcat. Then upload your war file. See More detail on How to upload war in XAMPP.
Coffee Room Discuss anything here - everything that you wish to discuss with fellow engineers.
Join this group to post and comment.
I have installed xampp v1.8.1 on my laptop and i wanted to run few jsp pages using it. Can anyone please help with instructions on how to do that?
First make sure tomcat is installed, if not get the addon from: https://www.apachefriends.org/en/xampp-windows.html
If required, configure tomcat port number to avoid conflict (should not be required, but better check) -
Look for the following on tomcat install directory -
Check User Name and Password for Tomcat
C:xampptomcatconftomcat-users.xml
Hope this helps.
If required, configure tomcat port number to avoid conflict (should not be required, but better check) -
Look for the following on tomcat install directory -
Check User Name and Password for Tomcat
C:xampptomcatconftomcat-users.xml
Hope this helps.
Well thanks sir for the reply but the tomcat is already a part of the basic package with this version of xampp. And as per the codes mentioned above , these are as on my machine :
Should i change these to the ones mentioned by you? and after I do it, what should i do next to get a jsp page running on my browser window?
Should i change these to the ones mentioned by you? and after I do it, what should i do next to get a jsp page running on my browser window?
It'd be difficult to respond without knowing what the error is. Are you getting a blank page or some error?
In case, if someone is still looking into this and facing an issue, I hope these step by step process can be of help -
1. Download Apache Tomcat addon here.
2. Extract tomcat addon in Xampp server root directory
3. Go to C://xampp/
4. Stop all services of xampp
5. Open shell and relocate all services
6. Enable mod_jk and relocate
7. Start the services
8. In Xampp control panel you will see the tomcat service. Activate it.
9. Click on admin and enter username and password as xampp and xampp
10. There you go! Open tomcat admin!
1. Download Apache Tomcat addon here.
2. Extract tomcat addon in Xampp server root directory
3. Go to C://xampp/
4. Stop all services of xampp
5. Open shell and relocate all services
6. Enable mod_jk and relocate
7. Start the services
8. In Xampp control panel you will see the tomcat service. Activate it.
9. Click on admin and enter username and password as xampp and xampp
10. There you go! Open tomcat admin!
I m new in making servlet and jsps...
previously i was using tomcat on eclipse now i want to shift it to xampp....
i have changeg the port of tomcat at eclipse nd my tomcat server has been started successfully although i didnt get the 5th point told by miss.ankita to relocate services....
but the problem is i am abe to get :-
1) where to save jsp file (i saved in ht docs nd i did run it using localhost/calc.jsp)
but it is showing me the code on browser rather dan the result of application... and the same application works fine on eclipse...
wat to do?
previously i was using tomcat on eclipse now i want to shift it to xampp....
i have changeg the port of tomcat at eclipse nd my tomcat server has been started successfully although i didnt get the 5th point told by miss.ankita to relocate services....
but the problem is i am abe to get :-
1) where to save jsp file (i saved in ht docs nd i did run it using localhost/calc.jsp)
but it is showing me the code on browser rather dan the result of application... and the same application works fine on eclipse...
wat to do?
In order to run jsp with XAMPP you need to place your .jsp files in the webapps directory of your tomcat folder within your xampp installation folder.
{xampp_installation_folder}/tomcat/webapps
and use the https://localhost:8080/{your_jsp_file_name}
to run your .jsp file.
{xampp_installation_folder}/tomcat/webapps
and use the https://localhost:8080/{your_jsp_file_name}
to run your .jsp file.
![How To Run Jsp In Xampp How To Run Jsp In Xampp](/uploads/1/2/5/1/125194534/537340510.jpg)
remove comments
remove
remove
No need to change username and password ..
1.) Remove comments from
2.) Start Tomcat
3.) Copy your page or project to xampp/tomcat/webapps/project-1
4.) go to browser .. type .. locahost:8080/project-1
1.) Remove comments from
2.) Start Tomcat
3.) Copy your page or project to xampp/tomcat/webapps/project-1
4.) go to browser .. type .. locahost:8080/project-1
Active4 years, 5 months ago
I had installed xampp in ubuntu 14.04. now i want to have servlet functionality. I searched in net, everyone saying use the tomcat but i want to do it in xampp is it possible if yes how to do that procedure please? thanks in advance.
ashok
ashokashok
1 Answer
'Everyone' is right ;) To use servlets, you need to a web container. XAMPP includes the Apache HTTP server as a webserver, and the Apache HTTP server does not offer a web container. You need something like Tomcat or JBoss/WildFly.
Henning KockerbeckHenning Kockerbeck