Link to home
Start Free TrialLog in
Avatar of wsbdc-questions
wsbdc-questions

asked on

Example of simple application using a hosted Tomcat environment

Recently I got a hosting package with jsp capabilities that are running under Tomcat 5.5.16.  I think the server is running just fine because the following .jsp file give the output "2 + 2 = 4":

<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"
    prefix="c" %>

<html>
<head><title>Localized Dates</title></head>
<body bgcolor="white">
2 + 2 = <%= 2 + 2 %>
</body>
</html>

The servlet engine document directory is as follows:

jsp
  ROOT
    META-INF
    WEB-INF
    index.jsp

My problem is that I've read about the deployment directory structure several times without fully implementing an example.  I think a good resource about the server/deployment environment is at:
http://tomcat.apache.org/tomcat-5.5-doc/appdev/deployment.html

What I want to do is setup a simple app that is making use of packages and/or libraries so that I can get the hang of this structure.  For instance, the following example by weblogic has a Calendar.jsp file that uses the CalendarBean class to do a simple page that displays a calendar.  I've tried it a couple of ways but I keep getting errors.  I don't think it would help to list them because I would like to learn from a clean example.
http://www.weblogic.com/docs51/intro/intro_jsp.html

Could someone please provide either a link to or an example of creating a simple application where the meat of the example is in the using the deployment structure to load classes, libraries and packages as opposed to the code itself. Thank you very much.
ASKER CERTIFIED SOLUTION
Avatar of Javatm
Javatm
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of rrz
rrz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial