Page 1 of 1

Hosting JSP on Xampp

PostPosted: 26. May 2009 13:51
by abhijitp
I am trying to host a JSP based site on my xampp. How can i do this?

Here is the code of the system.jsp file
Code: Select all
<%
// database driver, leave it.
String DRIVER = "com.mysql.jdbc.Driver"; 

// username for your database
String USERNAME = "root";

// password
String PASSWORD = "password";

// full address of your database
String STRING = "jdbc:mysql://localhost/JMessageBoard";

// the name of your database
String DB_NAME = "JMessageBoard";

// The page title
String TITLE = "My Message Board";

// The page description
String DESCRIPTION = "JMessageBoard, a simple, powerful Java Message Board";

// page keywords
String KEYWORDS = "Java Message Board, Message Board, Java, JSP message board";

// The board can verify you as an Admin after if you post a message by using this email

address,
// in fact this value can be a password.
String ADMIN = "admin@localhost.com";

// The name of your message board
String SiteName = "My Message Board";

// The message board backgournd color
String SiteBgColor = "#000000";

%>



SETUP instuction:

Unzip the package.

1. Create a 'JMessageBoard' database and a table 'messages' in it.

See setup.sql file.

2, Modifiy the values in 'system.jsp' file under WEB-INF/JMB directory.


3. Copy 'JMB' folder to your hosting WEB-INF.

eg: http://Yourhost/WEB-INF/JMB

4. Copy 'JMessageBoard' folder to your hosting.

eg: http://yourhost/JMessageBoard

5. After you complete the above 4 steps, access http://yourhost/JMessageBoard/messages.jsp

Re: Hosting JSP on Xampp

PostPosted: 26. May 2009 14:18
by Wiedmann
I am trying to host a JSP based site on my xampp. How can i do this?

You need a JSP-capable web server like Apache Tomcat.

Re: Hosting JSP on Xampp

PostPosted: 26. May 2009 14:26
by abhijitp
Can i use Apache tomcat parallel with the xampp?

Re: Hosting JSP on Xampp

PostPosted: 26. May 2009 14:45
by Wiedmann
Can i use Apache tomcat parallel with the xampp?

That's possible.