JavaDoubts.Com

This is an online forum related to Java doubts.

Major Operations

The following are the major operations of this portal:

Technologies and Products used

The following table lists operations and associated objects and files.

Operation Files Associated Objects
Login login.jsp UserBean javabean
Registration of User newuser.html, newuser.jsp UserBean javabean, User EJB
Forgot password forgotpassword.jsp UserBean JavaBean
Changing password changepassword.jsp UserBean javabean, UserEJB
Home Page home.jsp, listquestions.jsp UserBean JavaBean
Search For Questions searchquestions.jsp, listquestions.jsp UserBean JavaBean,
Displaying details of a question displayquestion.jsp UserBean Bean
Displaying details of users users.jsp UserBean Bean
Listing questions related to a user userquestions.jsp UserBean Bean
Posting a new question postquestion.jsp UserBean JavaBean, Question JavaBean
Replying to a question postreply.jsp UserBean JavaBean, Reply JavaBean

The following are the steps to related to be taken to run the existing part of the application :

  1. Download javadoubts.zip and unzip it into webapps directory of Tomcat installation directory.
  2. Make sure you copy classes111.zip ( after renaming it to classes111.jar) or classes12.jar into WEB-INF/lib directory
  3. Compile javabeans in WEB-INF/classes/jd directory. Run batch file s.bat before compiling javabeans. You may have to make necessary changes to batch file.
  4. Also make sure the classpath of Tomcat is changed to include weblogic.jar using setclasspath.cmd in BIN directory of Tomcat. After the change set CLASSPATH in setclasspath.cmd should look like as shown below:
    rem Set standard CLASSPATH
    rem Note that there are no quotes as we do not want to introduce random
    rem quotes into the CLASSPATH
    set CLASSPATH=%JAVA_HOME%\lib\tools.jar;c:\weblogic\weblogic700\server\lib\weblogic.jar
    
  5. Create account jd with password jd in Oracle Database.
  6. Create required tables in Oracle using TABLES.TXT file and also insert some sample data.
  7. Make sure Oracle and Tomcat are running.
  8. Start Weblogic Server and create the following
  9. Copy examples.properties file from c:\weblogic\weblogic700\samples\server\src directory of Weblogic server to javadoubts/user
  10. Build the ejb in javadoubts/user directory.
  11. Copy user_client.jar from user directory to javadoubts/WEB-INF/lib
  12. Run the application using the following url:
       http://localhost:8080/javadoubts
     
  13. You should see login page of the application.