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