Thursday, March 26, 2009

Forum Using Jsp

Project Title : Sample Forum using Jsp

Description :

This project demonstrates a sample forum using java server pages.

Developed By : vivek joshi

The forum allows to :
1- Add New Forum
2- Delete Form
3- Add Post To Forum
4- Delete Post From Forum
5- View Post In Forum

Forum Logins :
1- Administrator : - can create/delete forum, add/delete/view post, change AccountType.
2- Moderator : - can add/delete/view posts.
3- Member : - can view/add posts.
4- Guest : - can only view posts.

First Time Registration allows a user to be a member who can view and add post to forum.

Administrator can change a member account to admin/moderator account.

Project DownLoad :

1- Front End Jsp / Back End mysql : DownLoad Link
2- Front End Jsp / Back End sql server : DownLoad Link
3- Front End Jsp / Back End ms-access : DownLoad Link

Note :


1- If you are using back end with mysql, then make sure that you have installed mysql5 and mysql odbc connector5.1 to create a dsn.

2- When using back end as sql server / ms-access there is no need to install any additional odbc connector.

3- Create a dsn (data source name) as forumdsn.

***** If you have downloaded project with back end as mysql or sql , make sure that you have executed the required queries before running the application.

If you have any further queries , please drop a comment with your name and e-mail address.

regards

vj

27 comments:

amrita negi said...

Hi Vivek,

i requred the project for A level.

Can u help me. as i m working its difficlt for me to make new one.

i know C and c++. if u can help please help me for these subjects.

regards,

Amrita Negi

vivek said...

Hi Amrita....

If you need a project in c++ then there is already a project posted on the blog under link Projects_C++

project title is VideoShop Library... If you want entirely a new project then it would take few days...

regards
vivek

Est Clerk DFO's Office said...

hi,
i need Computer organisation notes and solved papers for DEOACC exam, can u help me?

rajat said...

hello sir
i m using netbeans IDE to run ths project
sir while compiling the
forum.jsp
it is givin 3 error,,
related to JAVA bean ,, tht it called using id = v name,,
i m nt getin
why ths error cumin
plzz plzz do reply .... sir
thanks in advance
and i wana use JDBC driver instead of odbc,,
n doin followin changes in each code like,,
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/forumjsp","root","");

and using mysql , n
also loadin jdbc driver in the library folder of netbeans project
but ,,
the point is ,, tht it is givin error for V name tht u used to call java bean,,

ths is the error
"C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\26rajat\build\generated\src\org\apache\jsp\WEB_002dINF\forum_jsp.java:48: cannot find symbol
symbol : class validateLogin
location: class org.apache.jsp.WEB_002dINF.forum_jsp
validateLogin v = null;
^
C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\26rajat\build\generated\src\org\apache\jsp\WEB_002dINF\forum_jsp.java:50: cannot find symbol
symbol : class validateLogin
location: class org.apache.jsp.WEB_002dINF.forum_jsp
v = (validateLogin) _jspx_page_context.getAttribute("v", PageContext.APPLICATION_SCOPE);
C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\26rajat\build\generated\src\org\apache\jsp\WEB_002dINF\forum_jsp.java:52: cannot find symbol
symbol : class validateLogin
location: class org.apache.jsp.WEB_002dINF.forum_jsp
v = new validateLogin();
3 errors
C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\26rajat\nbproject\build-impl.xml:473: The following error occurred while executing this line:
C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\26rajat\nbproject\build-impl.xml:465: The following error occurred while executing this line:
C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\26rajat\nbproject\build-impl.xml:213: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 0 seconds)
"

rajat said...

hello sir
i m using netbeans IDE to run ths project
sir while compiling the
forum.jsp
it is givin 3 error,,
related to JAVA bean ,, tht it called using id = v name,,
i m nt getin
why ths error cumin
plzz plzz do reply .... sir
thanks in advance
and i wana use JDBC driver instead of odbc,,
n doin followin changes in each code like,,
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/forumjsp","root","");

and using mysql , n
also loadin jdbc driver in the library folder of netbeans project
but ,,
the point is ,, tht it is givin error for V name tht u used to call java bean,,

ths is the error
"C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\26rajat\build\generated\src\org\apache\jsp\WEB_002dINF\forum_jsp.java:48: cannot find symbol
symbol : class validateLogin
location: class org.apache.jsp.WEB_002dINF.forum_jsp
validateLogin v = null;
^
C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\26rajat\build\generated\src\org\apache\jsp\WEB_002dINF\forum_jsp.java:50: cannot find symbol
symbol : class validateLogin
location: class org.apache.jsp.WEB_002dINF.forum_jsp
v = (validateLogin) _jspx_page_context.getAttribute("v", PageContext.APPLICATION_SCOPE);
C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\26rajat\build\generated\src\org\apache\jsp\WEB_002dINF\forum_jsp.java:52: cannot find symbol
symbol : class validateLogin
location: class org.apache.jsp.WEB_002dINF.forum_jsp
v = new validateLogin();
3 errors
C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\26rajat\nbproject\build-impl.xml:473: The following error occurred while executing this line:
C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\26rajat\nbproject\build-impl.xml:465: The following error occurred while executing this line:
C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\26rajat\nbproject\build-impl.xml:213: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 0 seconds)
"

vivek said...

@rajat :

try including the bean file in a package and then build the project...

Ramandeep Kaur said...

Sir,
I urgently need help for creating a forum for my project ,but I could not find the download link.. please help me or mail the source code at .I shall be very thankful to you.

Regards
Ramandeep

Vivek Joshi said...

Hi Raman,

Sorry for the late reply. There was some problem in the download link, probably the files might have removed. I'll send you the project.

Kindly send me your mail id.

Ramandeep Kaur said...
This comment has been removed by the author.
Vivek Joshi said...

Hi Raman,

It would take some time as i am unable to find the project files..

Ramandeep Kaur said...

all right sir...
you take your time...
plz reply as soon as possible

ty

khushal said...

Sir, could you please send me the project files at singh.prince51@gmail.com,and can use db2 database for this project

khushal said...

Sir, could you please send me the project files at singh.prince51@gmail.com,and can use db2 database for this project

Vivek Joshi said...

@Kaushal,Raman.

I am just checking my backup folders for the project. Online download link is not working, files are no longer there.
project would be sent to you, if i am able to find it ;-)

@Kaushal : Please see the following link for db2 connectivity as a reference:

http://www.javaworkspace.com/connectdatabase/connectDB2.do

Unknown said...

Mind blowing work by author.. Plz send me above project on rkkdoe8@gmail.com

Vivek Joshi said...

@Rakesh: i'll send you the project soon... the download link is not working now.

Unknown said...

what is bean name here? i am getting error as:
HTTP Status 500 - /forum.jsp (line: 2, column: 0) The value for the useBean class attribute validateLogin is invalid.

Unknown said...

what is bean name here? i am getting error as:
HTTP Status 500 - /forum.jsp (line: 2, column: 0) The value for the useBean class attribute validateLogin is invalid.

Vivek Joshi said...

@tanuja vykuntapu

validateLogin is the bean name. try including bean in a package. it must work fine.

Request: if u were able to download the project please share it with me as most of the download links are not working and i do not have the backup

Vivek Joshi said...

Rakesh Patil :

thanks rakesh. i would send you the projects once i get it from my backups.

The download links seems not working.

Unknown said...

Hi vivek..
there's an error on the download link.. Plz kindly send me above project on mykill.e07@gmail.com.. thanks.!

Unknown said...

Hi Vivek.

theres a problem on the download link.. pls send me the
please help me or mail the source code at mykill.e07@gmail.com thanks in advance.

Vivek Joshi said...

@KIM DIANSAY.

Hi, the only link that works now is with mysql connectivity.

Due to some problem the online files no mre exists.. nor do i have a backup.

if you would still need with mssql or access ... it would take some time ... else you can do it urself as well... if u face any issues.. m thr for help.

Unknown said...

hi sir,
iam getting the following error while executing the submitpostmessage.jsp file.
HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /submitPostMessage.jsp at line 22

19: String forumPostDate=day+"/"+(month+1)+"/"+year;
20:
21: HttpSession getId=request.getSession(true);
22: String postedBy=getId.getAttribute("userId").toString();
23:
24: System.out.println(postedBy);
25: int forumId=0;


Stacktrace:..........
please kindly suggest me a solution to this error... awaiting your response..

Vivek Joshi said...

Hi Sophia,

HttpSession getId=request.getSession(true);

what i suspect is that, HttpSession is not getting initialized. Either request.getSession(true); is returning null or is not having the "userId" key.

I suggest please check the code where the "userId" key is being set in the session. This i suppose would be in the login part.

I do not have access to the code right now. Keep me posted.

Warm Regards
Vivek Joshi

Unknown said...

I have completed dis forum in jdbc and removed all errors coming.
Thanks for guidance.
Can contact me on abhinavgrg074@gmail.com for several live projects too

Vivek Joshi said...

@Abhinav Garg. Great work dude.

If you have the working code. Do share with me and others as well, as i don't have the code anymore. lost all my backups :(

Anyways thanks for your efforts. Great Job.

Warm Regards
Vivek Joshi