apache tomcat

F

focode

kindly anyone please tell me how to configure apache tomcat and use it
for J2EE projects , on a windows machine , i am disparately waiting
for the answer by experienced people , this will help a novice
developer a lot , if possible also tell me how to use java beans with
jsp
 
L

Lew

focode said:
kindly anyone please tell me how to configure apache tomcat and use it
for J2EE projects , on a windows machine , i [sic] am disparately waiting
for the answer by experienced people , this will help a novice
developer a lot , if possible also tell me how to use java [sic] beans with
jsp

<http://tomcat.apache.org/tomcat-6.0-doc/index.html>

For the second question, read the JavaEE tutorial at java.sun.com, and google
for "Model-View-Controller" (MVC).
 
A

Arne Vajhøj

focode said:
kindly anyone please tell me how to configure apache tomcat and use it
for J2EE projects , on a windows machine ,

Download, unzip, double click on startup.bat and it runs.

No configuration is needed.
if possible also tell me how to use java beans with
jsp

That should be in whatever tutorial/book you are using.

Besides the SUN tutorial check out Marty Hall's stuff:

http://pdf.coreservlets.com/
http://pdf.moreservlets.com/

Arne
 
F

focode

Download, unzip, double click on startup.bat and it runs.

No configuration is needed.


That should be in whatever tutorial/book you are using.

Besides the SUN tutorial check out Marty Hall's stuff:

http://pdf.coreservlets.com/http://pdf.moreservlets.com/

Arne

actually in the system varible , we have to set the paths of JAVA_HOME
and CATALINA_HOME , i have made it and it is working now , while
learning the javabeans example im confused where to keep the class
files the example is as below

<%@ page import="beans.MessageBean" %>
<HTML>
<HEAD>
<TITLE>Using a JavaBean</TITLE>
</HEAD>
<BODY>
<h1>Using a JavaBean</h1>

<% MessageBean m = new MessageBean(); %>

The message is: <%= m.msg() %>

</BODY>
</HTML>

and the bean is as follows...
package beans;


public class MessageBean
{
public MessageBean()
{
}

public String msg()
{
return "Hello from JSP!";
}
}
 
A

Arne Vajhøj

focode said:
actually in the system varible , we have to set the paths of JAVA_HOME
and CATALINA_HOME , i have made it and it is working now ,

CATALINA_HOME should not be necessary.

JAVA_HOME may be necessary.
while
learning the javabeans example im confused where to keep the class
files the example is as below

<%@ page import="beans.MessageBean" %>
<HTML>
<HEAD>
<TITLE>Using a JavaBean</TITLE>
</HEAD>
<BODY>
<h1>Using a JavaBean</h1>

<% MessageBean m = new MessageBean(); %>

The message is: <%= m.msg() %>

</BODY>
</HTML>

and the bean is as follows...
package beans;


public class MessageBean
{
public MessageBean()
{
}

public String msg()
{
return "Hello from JSP!";
}
}

What does your book say about it ?

Hopefully it says:

WEB-INF/classes/beans

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top