[ANN] Servlet and JSP APIs have moved to subversion

2005-09-02 Thread Mark Thomas

The following CVS modules have been migrated to subversion

jakarta-servletapi
jakarta-servletapi-4
jakarta-servletapi-5

These modules are now read only in CVS.

The new SVN locations are:
http://svn.apache.org/repos/asf/tomcat/servletapi/branches/servlet2.2-jsp1.1-tc3.x/
http://svn.apache.org/repos/asf/tomcat/servletapi/branches/servlet2.3-jsp1.2-tc4.x/
http://svn.apache.org/repos/asf/tomcat/servletapi/servlet2.4-jsp2.0-tc5.x/

NB Committers wishing to make changes to these modules will need to 
use https as per http://www.apache.org/dev/version-control.html#https-svn


TC3&4 will move next (phase 4), followed by TC5, Connectors and 
Jasper2 (phase 5). A more detailed schedule, particularly for phase 5 
since this is the focus of development, will be posted on the 
tomcat-dev list nearer the time.


Mark


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Servlet and JSP.

2003-10-06 Thread Andoni
What is the error message thrown?

Andoni.


- Original Message -
From: "anunay ashish" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, October 06, 2003 11:07 AM
Subject: Servlet and JSP.


> Hi,
> I have a problem regarding my servlet.
> The JSP file calling the servlet is having the following code:
> 
>  
>Page format 
>   
>   
>   
>   
>  
>
>  
>   <%@ page import="java.sql.*" %>
>   
>   
>   Welcome! The available page formats are:
>   
>   
>Page format
> <%
>  ResultSet testRS;
>  String query = "Select * from lookup_page_format"; //On giving a ;
> after the query did not return any record.
>  dbBean.process(query);
>  try
>   {
>testRS = dbBean.getResultSet();
>while(testRS.next())
> {
>  out.print("" + testRS.getString(2) + "");
>  System.out.println(testRS.getString(2));
> }
>   }
>  catch (SQLException e)
>   {
>out.print("SQLException :" + e);
>   }
> %>
>   
>   Please add a new page format of your choice:
>   
>
>
>   
>  
> 
>
> The bean as well as the servlet packages is in the same folder as:
> C:\Program Files\Apache Group\Tomcat
> 4.1\webapps\Tracking_system\WEB-INF\classes\com\scheduler
>
> If I change the method in servlet from doGet to doPost and make the
> corresponding change in form method to "POST" then the JSP throws an error
> of something related to my bean package.
>
> Is the problem related to GET/POST? or to the fact that both the packages
> are in the same folder?
>
> Regards,
> Anunay Ashish.
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Servlet and JSP.

2003-10-06 Thread anunay ashish
Hi,
I have a problem regarding my servlet.
The JSP file calling the servlet is having the following code:

 
   Page format 
  
  
  
  
 

 
  <%@ page import="java.sql.*" %>
  
  
  Welcome! The available page formats are:
  
  
   Page format
<%
 ResultSet testRS;
 String query = "Select * from lookup_page_format"; //On giving a ;
after the query did not return any record.
 dbBean.process(query);
 try
  {
   testRS = dbBean.getResultSet();
   while(testRS.next())
{
 out.print("" + testRS.getString(2) + "");
 System.out.println(testRS.getString(2));
}
  }
 catch (SQLException e)
  {
   out.print("SQLException :" + e);
  }
%>
  
  Please add a new page format of your choice:
  
   
   
  
 


The bean as well as the servlet packages is in the same folder as:
C:\Program Files\Apache Group\Tomcat
4.1\webapps\Tracking_system\WEB-INF\classes\com\scheduler

If I change the method in servlet from doGet to doPost and make the
corresponding change in form method to "POST" then the JSP throws an error
of something related to my bean package.

Is the problem related to GET/POST? or to the fact that both the packages
are in the same folder?

Regards,
Anunay Ashish.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



can we upload servlet and JSP webpage hosting site?

2003-07-31 Thread tommy stone
Hey,,  Sorry to ask this simple question.  Is there
any good and free webpage hosting site. I think of
making my web page on the web.  May I know can we
write our own JSP page and J servlet and upload to
there? Can it run??  
 

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



BufferedReader oject between servlet and jsp

2002-03-20 Thread Dahnke, Eric

wondering if someone might help me out. I'm trying to pass a BufferedReader
object between a servlet and jsp page using the session. on the jsp page I
want to read out line by line the BufferedReader object. The idea works
within the servlet code as shown, but within the jsp page no matter what I
do

out.println(br);

shows something like this:

java.io.BufferedReader@3c550f 

and the while loop (in the jsp) never executes. Any ideas? (how can i
troubleshoot?)



I have a servlet with the following code:
===
BufferedReader br = new BufferedReader( new
InputStreamReader(proc.getInputStream()));

HttpSession session = request.getSession(true);
session.setAttribute("BufferedReader", br); 

String str;
while ((str = br.readLine()) != null) {
System.out.println(str);
} //works

and a jsp page which is called from the servlet like this

RequestDispatcher rd = request.getRequestDispatcher("en/bdy.jsp");
rd.include(request, response);

bdy.jsp
=
<%@ page import="java.io.*" %>

<%
BufferedReader br = (BufferedReader) session.getAttribute("BufferedReader");
String str;
out.println(br);
while ((str = br.readLine()) != null) {
out.println(str);
out.println("HI");
} //doesn't work
%>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: Sharing a bean between servlet and jsp. Arrggghhhhh

2002-02-11 Thread Nikola Milutinovic

> Now I'm going crazy. This can't be so hard. Please help... I can't figure
> this out. I'm trying to share a bean between a jsp page and servlet.
> Arggh... Please I help on other lists... and donate time to
> charity. I've been to Barnes and Noble and looked at a heap of texts. I've
> done no less than 500 Google searches.

Maybe you're not looking for the right thing...?

> There are no errors, I just can't get this " name="myFormBean" property="userName" />" goddamned thing to display the
> userName bean property if fb.validate() fails. Everything works. I've got
> this begugger and can see the userName variable throughout the POST process.
> Everything's cool until the rd.forward (request, response), but once the
> forward takes place my jsp cannot again pick up the bean properties
> eventhough I say  scope="session"/> I've tried every scope, and am using beans with straight
> JSP no problem (same application).

So far, I've been passing beans from JSP to a Servlet. I simply setup a bean in the 
"request" context (it attaches to the request object) and then forward to servlet. 
Servlet extracts it form the reqest with

bean = (OrgUnitBean)request.getAttribute( "bean" );

> Any ideas? Millions of Thanks
> 
> 
> Here's the JSP page.
> ===
> 
> 
> 
> 
> 
> 
> 
> 
> Here's the two relavant parts of the servlet.
> 
> public void process (ServletContext sc, HttpServletRequest request,
>   HttpServletResponse response)
>   throws IOException, ServletException {
> 
> FormBean fb = new FormBean();
> fb.setUserName(request.getParameter("userName"));
> 
> if (fb.validate()) {
> URL = "index.jsp";
> } else {
> // go back
> URL = "signup1.jsp";
> }

request.setAttribute( fb );

> }
> public void forward (HttpServletRequest request,
> HttpServletResponse response) throws IOException,
> ServletException {
> 
> RequestDispatcher rd = request.getRequestDispatcher(URL);
> rd.forward (request, response);
> }

You're not saving that bean in any context, so it is created and lost after you do 
forward. Just add that line I've added and it should be OK.

Nix.



Re: Sharing a bean between servlet and jsp. Arrggghhhhh

2002-02-11 Thread Charles Baker

Which is first the jsp or the servlet? I don't see any
code in your servlet snippet that adds the new
instance of the bean to the session. If the bean
already exists in the session as created by the jsp, a
session.setAttribute("myFormBean", fb) will overwrite
the old bean values w/ the new values. If the servlet
is first, you still have to add the bean to the
session so that the jsp can use it.

--- "Dahnke, Eric" <[EMAIL PROTECTED]> wrote:
> Now I'm going crazy. This can't be so hard. Please
> help... I can't figure
> this out. I'm trying to share a bean between a jsp
> page and servlet.
> Arggh... Please I help on other lists...
> and donate time to
> charity. I've been to Barnes and Noble and looked at
> a heap of texts. I've
> done no less than 500 Google searches.
> 
> 
> There are no errors, I just can't get this
> " name="myFormBean" property="userName" />" goddamned
> thing to display the
> userName bean property if fb.validate() fails.
> Everything works. I've got
> this begugger and can see the userName variable
> throughout the POST process.
> Everything's cool until the rd.forward (request,
> response), but once the
> forward takes place my jsp cannot again pick up the
> bean properties
> eventhough I say  class="beans.FormBean"
> scope="session"/> I've tried every scope, and am
> using beans with straight
> JSP no problem (same application).
> 
> Any ideas? Millions of Thanks
> 
> 
> Here's the JSP page.
> ===
>  scope="session"/>
> 
> 
>  property="userName" />
> 
> 
> 
> 
> Here's the two relavant parts of the servlet.
> 
> public void process (ServletContext sc,
> HttpServletRequest request,
>   HttpServletResponse response)
>   throws IOException,
> ServletException {
> 
> FormBean fb = new FormBean();
>
> fb.setUserName(request.getParameter("userName"));
> 
> if (fb.validate()) {
> URL = "index.jsp";
> } else {
> // go back
> URL = "signup1.jsp";
> }
> }
> public void forward (HttpServletRequest request,
> HttpServletResponse response) throws
> IOException,
> ServletException {
> 
> RequestDispatcher rd =
> request.getRequestDispatcher(URL);
> rd.forward (request, response);
> }
> 
> Here's the bean
> ===
> package beans;
> public class FormBean implements
> java.io.Serializable {
> public String userName;
> public FormBean() {}
> public boolean validate() {
> boolean allOk=false;
> return allOk;
> }
> 
> public String getUserName() {
> //return this.userName; // doesn't
> work either
> return userName;
> }
> public void setUserName(String uname) {
> this.userName = uname;
> }
> }
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 


=
[EMAIL PROTECTED]
Hacking is a "Good Thing!"
See http://www.tuxedo.org/~esr/faqs/hacker-howto.html

__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Sharing a bean between servlet and jsp. Arrggghhhhh

2002-02-11 Thread Dahnke, Eric

Now I'm going crazy. This can't be so hard. Please help... I can't figure
this out. I'm trying to share a bean between a jsp page and servlet.
Arggh... Please I help on other lists... and donate time to
charity. I've been to Barnes and Noble and looked at a heap of texts. I've
done no less than 500 Google searches.


There are no errors, I just can't get this "" goddamned thing to display the
userName bean property if fb.validate() fails. Everything works. I've got
this begugger and can see the userName variable throughout the POST process.
Everything's cool until the rd.forward (request, response), but once the
forward takes place my jsp cannot again pick up the bean properties
eventhough I say  I've tried every scope, and am using beans with straight
JSP no problem (same application).

Any ideas? Millions of Thanks


Here's the JSP page.
===








Here's the two relavant parts of the servlet.

public void process (ServletContext sc, HttpServletRequest request,
  HttpServletResponse response)
  throws IOException, ServletException {

FormBean fb = new FormBean();
fb.setUserName(request.getParameter("userName"));

if (fb.validate()) {
URL = "index.jsp";
} else {
// go back
URL = "signup1.jsp";
}
}
public void forward (HttpServletRequest request,
HttpServletResponse response) throws IOException,
ServletException {

RequestDispatcher rd = request.getRequestDispatcher(URL);
rd.forward (request, response);
}

Here's the bean
===
package beans;
public class FormBean implements java.io.Serializable {
public String userName;
public FormBean() {}
public boolean validate() {
boolean allOk=false;
return allOk;
}

public String getUserName() {
//return this.userName; // doesn't work either
return userName;
}
public void setUserName(String uname) {
this.userName = uname;
}
}

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Servlet and jsp configuration problem ?

2001-01-30 Thread Jan Labanowski

Try to  see some examples of servlet remapping at my

  http://www.ccl.net/cca/software/UNIX/apache/tomcatfaq.shtml

Jan

On Wed, 31 Jan 2001, Gunawan Tanudy wrote:

> HI..
> Can somebody help me , i got really frustrated regarding mapping servlet and
> jsp file to tomcat.
> I use Apache+ tomcat.
> the example files run well.
> i have made the context path in server.xml like the following
> 
>   docBase="webapps/myserver" 
>  crossContext="true"
>  debug="0" 
>  reloadable="true" 
>  trusted="false" > 
>  
> 
> then in myserver directory i make the tree like this:
> /WEB-INF/classes
> /servlets
> 
> 
> 
> i write the servlet in a package called devguide.chap1.MultiDemo.class
> and i put the directory devguide which is a package directory into classess
> directory
> can somebody tell me how to configure web.xml(in WEB-INF directory)
> 
> one more question : 
> i put the jsp file under the myserver directory
> Should i map the jsp file in the web.xml too ? if so, then how ?
> 
> Help will be really appreciated.
> thanks in advance..
> 
> 
> 
> 
> Rgds,
> 
> Gun
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 
1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163  |http://www.osc.edu/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Servlet and jsp configuration problem ?

2001-01-30 Thread Gunawan Tanudy

HI..
Can somebody help me , i got really frustrated regarding mapping servlet and
jsp file to tomcat.
I use Apache+ tomcat.
the example files run well.
i have made the context path in server.xml like the following

 
 

then in myserver directory i make the tree like this:
/WEB-INF/classes
/servlets



i write the servlet in a package called devguide.chap1.MultiDemo.class
and i put the directory devguide which is a package directory into classess
directory
can somebody tell me how to configure web.xml(in WEB-INF directory)

one more question : 
i put the jsp file under the myserver directory
Should i map the jsp file in the web.xml too ? if so, then how ?

Help will be really appreciated.
thanks in advance..




Rgds,

Gun

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Need help for servlet and jsp mapping

2001-01-28 Thread Gunawan Tanudy

HI..
Can somebody help me , i got really frustrated regarding mapping servlet
and jsp file to tomcat.
I use Apache+ tomcat.
the example files run well.
i have made the context path in server.xml like the following

 
 

then in myserver directory i make the tree like this:
/WEB-INF/classes
/servlets



i write the servlet in a package called devguide.chap1.MultiDemo.class
and i put the directory devguide which is a package directory into
classess directory
can somebody tell me how to configure web.xml(in WEB-INF directory)

one more question : 
i put the jsp file under the myserver directory
Should i map the jsp file in the web.xml too ? if so, then how ?

Help will be really appreciated.
thanks in advance..




Rgds,

Gun

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Servlet and JSP mapping in Tomcat + Apache

2000-12-21 Thread Dave Newton

> Is that the only way to achieve that

As far as I know, unless you want to use the older,
unrecommended mod_jserv.

> What is mod_jk by the way???

It's an apache module that communicates between apache
and tomcat, like you asked.

Dave




Re: Servlet and JSP mapping in Tomcat + Apache

2000-12-21 Thread Joseph Wong

Is that the only way to achieve that

What is mod_jk by the way???


>From: "Jeffrey Miller" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: Re: Servlet and JSP mapping in Tomcat + Apache
>Date: Thu, 21 Dec 2000 07:25:50 -0500
>
>You'll have to setup mod_jk to let Tomcat and Apache communicate - there 
is
>a nice howto that will help you
>
>- Original Message -
>From: "Joseph Wong" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, December 21, 2000 5:24 AM
>Subject: Servlet and JSP mapping in Tomcat + Apache
>
>
> > Hi,
> >
> > I want to use Apache + Tomcat to develop JSP and Servlet programs, 
where
> > Apache serves HTML pages and Tomcat serves JSP and Servlet.
> >
> > How to make mappings for JSP and Srvlet such that:
> >
> > 1) http://host-name/jsp/*.jsp --> go to jsp directory and run jsp
> > 2) http://host-name/servlet/servlet-name --> go to servlet directory 
and
> > run servlet.
> > ??
> >
> > And jsp and servlet should be in the same context so that jsp and 
servlet
> > programs can communicate.
> > ??
> >
> > I have tried to create a context "/jsp" and mapped to jsp directory, 
also
> > created "web-inf\classes" under jsp directory to hold servlet programs. 
In
> > that way, i can call servlet programs by "/jsp/servlet/servlet-name".
> > However I CANNOT call servlet programs by "/servlet/servlet-name" in
> > url?
> >
> >
> > Please help.
> > 
_
> > Get Your Private, Free E-mail from MSN Hotmail at 
http://www.hotmail.com.
> >
>

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: Servlet and JSP mapping in Tomcat + Apache

2000-12-21 Thread Jeffrey Miller

You'll have to setup mod_jk to let Tomcat and Apache communicate - there is
a nice howto that will help you

- Original Message -
From: "Joseph Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 21, 2000 5:24 AM
Subject: Servlet and JSP mapping in Tomcat + Apache


> Hi,
>
> I want to use Apache + Tomcat to develop JSP and Servlet programs, where
> Apache serves HTML pages and Tomcat serves JSP and Servlet.
>
> How to make mappings for JSP and Srvlet such that:
>
> 1) http://host-name/jsp/*.jsp --> go to jsp directory and run jsp
> 2) http://host-name/servlet/servlet-name --> go to servlet directory and
> run servlet.
> ??
>
> And jsp and servlet should be in the same context so that jsp and servlet
> programs can communicate.
> ??
>
> I have tried to create a context "/jsp" and mapped to jsp directory, also
> created "web-inf\classes" under jsp directory to hold servlet programs. In
> that way, i can call servlet programs by "/jsp/servlet/servlet-name".
> However I CANNOT call servlet programs by "/servlet/servlet-name" in
> url?
>
>
> Please help.
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>




Servlet and JSP mapping in Tomcat + Apache

2000-12-21 Thread Joseph Wong

Hi,

I want to use Apache + Tomcat to develop JSP and Servlet programs, where 
Apache serves HTML pages and Tomcat serves JSP and Servlet.

How to make mappings for JSP and Srvlet such that: 

1) http://host-name/jsp/*.jsp --> go to jsp directory and run jsp
2) http://host-name/servlet/servlet-name --> go to servlet directory and 
run servlet.
??????

And jsp and servlet should be in the same context so that jsp and servlet 
programs can communicate.
??

I have tried to create a context "/jsp" and mapped to jsp directory, also 
created "web-inf\classes" under jsp directory to hold servlet programs. In 
that way, i can call servlet programs by "/jsp/servlet/servlet-name". 
However I CANNOT call servlet programs by "/servlet/servlet-name" in 
url?


Please help.
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: How can i share session between servlet and jsp

2000-12-12 Thread John Clark L. Naldoza

Raphaël Lemaitre wrote:
> 
> Hi,
> 
> I've got a big urgent problem : it seems that mu JSPs and my
> servlets don't share the same session. I explain :
> I have a JSP login form which action points to a servlet. In this servlet, i
> create the HttpSession object using request.getSession(true), i put an
> userID (String) in the session and forward to a JSP. In this JSP and all the
> JSPs i access directly (without passing through a servlet), the userID is
> still in the session. But when i want to follow a hyperlink that points to a
> servlet, i do not get the same session (session Ids are different). How can
> i do to make this work?
> 
> thanks in advance

Perhaps you'd like to look at setParameters method of your http response
object...;-)

And then it would be a matter of forwarding the request,response to and
from your jsp and servlet.

Hope that helps.


John Clark
-- 
 /) John Clark Naldoza y Lopez   (\
/ )Software Design Engineer II   ( \
  _( (__  Web-Application Development_) )_
 (((\ \>  /_>Cable Modem Network Management System <_\  


RE: How can i share session between servlet and jsp

2000-12-12 Thread Raphaël Lemaitre

> Raphaël Lemaitre typed the following on 11:56 12/12/2000 +
> >But when i want to follow a hyperlink that points to a
> >servlet, i do not get the same session (session Ids are different). 
> 
> How are you building this hyperlink exactly? Is it a relative link?
> What exactly does the URL to the JSP page look like vs. the
> URL to the servlet? Are the hostnames exactly the same? If
> not you could be losing the session ID cookie. Are you sure your
> browser is taking the cookie? 
> 
> Kief
> 
Thanks, the problem is solved. In fact, i mispelled my webapp name in the
URL.

Raphael Lemaitre



Re: How can i share session between servlet and jsp

2000-12-12 Thread Kief Morris

Raphaël Lemaitre typed the following on 11:56 12/12/2000 +
>But when i want to follow a hyperlink that points to a
>servlet, i do not get the same session (session Ids are different). 

How are you building this hyperlink exactly? Is it a relative link?
What exactly does the URL to the JSP page look like vs. the
URL to the servlet? Are the hostnames exactly the same? If
not you could be losing the session ID cookie. Are you sure your
browser is taking the cookie? 

Kief

---
  bitBull makes the Internet bite: http://www.bitBull.com/demos/




How can i share session between servlet and jsp

2000-12-12 Thread Raphaël Lemaitre

Hi,

I've got a big urgent problem : it seems that mu JSPs and my
servlets don't share the same session. I explain : 
I have a JSP login form which action points to a servlet. In this servlet, i
create the HttpSession object using request.getSession(true), i put an
userID (String) in the session and forward to a JSP. In this JSP and all the
JSPs i access directly (without passing through a servlet), the userID is
still in the session. But when i want to follow a hyperlink that points to a
servlet, i do not get the same session (session Ids are different). How can
i do to make this work?

thanks in advance

--
Raphaël LEMAITRE 
mailto:[EMAIL PROTECTED] 
e-deal 
86-88 rue du Vieux Pont, 92000 Nanterre 
http://www.e-deal.com + 33.1.41.37.91.00 



Re: Problems with the most Basic Hello servlet and jsp.

2000-11-09 Thread Hussam Alsawadi

I found the steps in 
http://www.jguru.com/jguru/faq/view.jsp?EID=56994
very very useful. 
You may check them.
Hussam.

--- Kent Lau Chee Yong <[EMAIL PROTECTED]> wrote:
> I have set JAVA_HOME to C:\jdk1.3 
> Root directory of java installation
> set to c:\jdk1.3\bin
> 
> I have set the PATH to include C:\jdk1.3\bin 
> The directory that holds executables for javac,
> java,
> javadoc etc
> 
> I have set TOMCAT_HOME to C:\jakarta-tomcat 
> The root installation directory
> set to c:\jakarta-tomcat\bin
> 
> This is the result attempting to start tomcat.
> 
> C:\jakarta-tomcat\bin>TOMCAT.BAT start
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
> Starting tomcat in new window
> Using classpath: C:\jakarta-tomcat\classes
> C:\jakarta-tomcat\bin>
> 
> Here is the result attempting to run tomcat.
> 
> C:\jakarta-tomcat\bin>TOMCAT.BAT run
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
> Using classpath: C:\jakarta-tomcat\classes
> Exception in thread "main"
> java.lang.NoClassDefFoundError:
> org/apache/tomcat/sta
> rtup/Tomcat
> C:\jakarta-tomcat\bin>
> 
> When I use my browser IE5.0 to open the simple test
> example located at
> C:\jakarta-tomcat\doc\appdev\sample\web\index.html
> 
> 
> type this http://localhost/sample/web/index.html
> 
> My browser opens this html page ok, howerver when
> running the jsp I manage to retrieve some html
> output
> and gif image back to my browser window but values
> for
> the following text labels all come back
> blank/null/empty.
> 
> Context Path:
> Path Information: 
> Query String: 
> Request Method:
> Servlet Path:
> 
> Also from
> C:\jakarta-tomcat\doc\appdev\sample\web\index.html 
> 
> If I choose to run the servlet, IE explorer comes
> back
> with a standard error page saying that the page
> could
> not be found.
> 
> 
> Thank-you for your consideration and any suggestions
> you may have.
> 
> Regards
> 
> 
> Mark Koscak
> 


__
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one Place.
http://shopping.yahoo.com/



Re: Problems with the most Basic Hello servlet and jsp.

2000-11-09 Thread Kent Lau Chee Yong



I have set JAVA_HOME to C:\jdk1.3 Root directory of java 
installation
    set to c:\jdk1.3\bin
 
I have set the PATH to include C:\jdk1.3\bin The directory 
that holds executables for javac, java,javadoc etc
 
I have set TOMCAT_HOME to C:\jakarta-tomcat The root 
installation directory
    set to c:\jakarta-tomcat\bin
 
This is the result attempting to start tomcat.
 
C:\jakarta-tomcat\bin>TOMCAT.BAT startOut of 
environment spaceOut of environment spaceOut of environment spaceOut 
of environment spaceOut of environment spaceStarting tomcat in new 
windowUsing classpath: 
C:\jakarta-tomcat\classesC:\jakarta-tomcat\bin>
 
Here is the result attempting to run tomcat.
 
C:\jakarta-tomcat\bin>TOMCAT.BAT runOut of environment 
spaceOut of environment spaceOut of environment spaceOut of 
environment spaceOut of environment spaceUsing classpath: 
C:\jakarta-tomcat\classesException in thread 
"main"java.lang.NoClassDefFoundError: 
org/apache/tomcat/startup/TomcatC:\jakarta-tomcat\bin>
 
When I use my browser IE5.0 to open the simple testexample 
located atC:\jakarta-tomcat\doc\appdev\sample\web\index.html
 
 
type this http://localhost/sample/web/index.html
 
My browser opens this html page ok, howerver whenrunning 
the jsp I manage to retrieve some html outputand gif image back to my 
browser window but values forthe following text labels all come 
backblank/null/empty.
 
Context Path:Path Information: Query String: 
Request Method:Servlet Path:
 
Also 
fromC:\jakarta-tomcat\doc\appdev\sample\web\index.html 
 
If I choose to run the servlet, IE explorer comes backwith 
a standard error page saying that the page couldnot be found.
 
Thank-you for your consideration and any 
suggestionsyou may have.
 
Regards
 
Mark Koscak


Re: Problems with the most Basic Hello servlet and jsp.

2000-11-09 Thread Jim Richards


>C:\jakarta-tomcat\bin>TOMCAT.BAT start
>Out of environment space
>Out of environment space
>Out of environment space
>Out of environment space
>Out of environment space

To fix this you'll need to edit your c:\config.sys and either add, or modify
this entry

SHELL=C:\COMMAND.COM C:\ /P /E:4096

You've run out of environment space within your DOS shell. This will
increase it to 4096 bytes, so when the CLASSPATH gets set, there
is space for it.



--
Kumera - a new Open Source Content Management System
for small to medium web sites written in Perl and using XML
http://www.cyber4.org/kumera/index.html



Problems with the most Basic Hello servlet and jsp.

2000-11-09 Thread Mark Koscak

I have encountered some problems setting up Tomcat on
my Windows98 system. If anyone could throw up some
suggestions I would be most appreciative.

Here are the steps I have taken.

Downloaded the latest stable version of Tomcat  -->
jakarta-tomcat.zip 2.26MB (2,372,384 bytes).

I have run WinZip and extracted tomcat to C:\

The resultant directory structure is

C:\jakarta-tomcat   \bin
\conf
\doc
\lib
\src
\webapps

I have set JAVA_HOME to C:\jdk1.3 
Root directory of java installation

I have set the PATH to include C:\jdk1.3\bin
The directory that holds executables for javac, java,
javadoc etc

I have set TOMCAT_HOME to C:\jakarta-tomcat 
The root installation directory

This is the result attempting to start tomcat.

C:\jakarta-tomcat\bin>TOMCAT.BAT start
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Starting tomcat in new window
Using classpath: C:\jakarta-tomcat\classes
C:\jakarta-tomcat\bin>

Here is the result attempting to run tomcat.

C:\jakarta-tomcat\bin>TOMCAT.BAT run
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Using classpath: C:\jakarta-tomcat\classes
Exception in thread "main"
java.lang.NoClassDefFoundError: org/apache/tomcat/sta
rtup/Tomcat
C:\jakarta-tomcat\bin>

When I use my browser IE5.0 to open the simple test
example located at
C:\jakarta-tomcat\doc\appdev\sample\web\index.html

My browser opens this html page ok, howerver when
running the jsp I manage to retrieve some html output
and gif image back to my browser window but values for
the following text labels all come back
blank/null/empty.

Context Path:
Path Information: 
Query String: 
Request Method:
Servlet Path:

Also from
C:\jakarta-tomcat\doc\appdev\sample\web\index.html 

If I choose to run the servlet, IE explorer comes back
with a standard error page saying that the page could
not be found.


Thank-you for your consideration and any suggestions
you may have.

Regards


Mark Koscak


=
The morality of an action
stems from the motive from which we act.



__
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one Place.
http://shopping.yahoo.com/