Video Library Online
This is a web application used by members to select movies online. Once a member select a movie through
this application, it is delivered to member by the library. Member can also perform other operations such as
giving feedback and changing his profile.
Major Operations
The following are the major operations of this portal:
- Home page where users can see the recent arrivals
- Search page - where user can search for movies based on language, name and casting of movies
- User can select a movie
- User can change password and profile.
- Providing feedback regarding movie
- Reminding user if user forgot password
- FAQs - questions and answers related to how to use website.
Technologies and Products used
- Tomcat 4.x
- Oracle8i/Oracle9i
- Weblogic Server 7.0
- Java Server Pages (JSP)
- Java Beans
- Enterprise Java Beans
The following table lists operations and associated objects and files.
Operation
| Files
| Associated Objects
|
Home page
| home.jsp , listmovies.jsp
| UserBean
|
Listing Movies
| listmovies.jsp
| UserBean
|
Displaying details of a movie
| displaymovie.jsp
| UserBean
|
Searching for movies
| search.jsp, listmovies.jsp
| UserBean
|
Selecting movie
| issuemovie.jsp
| UserBean, IssueBean EJB
|
FAQs
| faqs.xml, faqs.xsl
|
|
Forgot password
| forgotpassword.jsp
| UserBean.java
|
Providing Feedback
| feedback.jsp
| UserBean.java, MovieBean.java
|
The following are the steps to related to be taken to run the existing part of the application :
- Download vl.zip and unzip it into webapps directory of
Tomcat installation directory.
- Make sure you copy classes111.zip ( after renaming it to classes111.jar) or classes12.jar into WEB-INF/lib directory
- Compile javabeans in WEB-INF/classes/vl directory. Run batch file s.bat before compiling javabeans. You may have to make necessary
changes to batch file depending on the directory structure of your system.
- 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
- Create account vl with password vl in Oracle Database. If you cannot do this, you can still use SCOTT account with TIGER password.
- Create required tables in Oracle using TABLES.TXT file and also insert some sample data.
- Place pictures realated to items added to MOVIES table in /pics directory. This application uses JPG files.
- Make sure Oracle and Tomcat are running.
- Start Weblogic Server and create the following
- A connection pool with the name vlOracle- It should access Oracle with vl user and vl password
- A TxDataSource with the name vl.oracle and JNDI name vl.oracle
- Copy examples.properties file from c:\weblogic\weblogic700\samples\server\src directory of Weblogic server to issuebean directory
- Build the ejb in vl/issuebean directory.
- Copy issue_client.jar from issuebean directory to vl/WEB-INF/lib
- Run the application using the following url:
http://localhost:8080/vl
- You should see home page of the application.