Re: Objects in JSP PLEASE HELP.

2003-02-28 Thread Jason Johnston
[EMAIL PROTECTED] 02/27/03 02:56PM Can you show us the errors that were reported when the JSP failed to compile? Full stacktraces are best. -Jake Yes, here they are. I guess my real problem is that I'm not sure how to reference the object from the page. All the errors and source code are

Objects in JSP PLEASE HELP.

2003-02-28 Thread Jason Johnston
[EMAIL PROTECTED] 02/27/03 02:56PM Can you show us the errors that were reported when the JSP failed to compile? Full stacktraces are best. -Jake Yes, here they are. I guess my real problem is that I'm not sure how to reference the object from the page. All the errors and source code are

Objects in JSP PLEASE HELP.

2003-02-27 Thread Jason Johnston
Ok, I'm trying to use a custom object inside a JSP and I'm just doing something wrong. I have an editor.jsp file that is a little text editor with some Javascript so that it tosses HTML tags in the textarea. Now I wanted to use this editor for various kinds of documents. Therefore I made an

Stupid servlet mapping question.

2003-02-20 Thread Jason Johnston
OK, I'll admit right up front that this is probably stupid, but I'm running into some strange problems that have been causing me no end of grief. I had a mapping working (or so I thought) and now I can't get it working again. In fact, none of my mappings seem to work. I've been through the

RE: Stupid servlet mapping question.

2003-02-20 Thread Jason Johnston
Thanks a lot. I don't know why I didn't try that. I guess I'm was just think more from a PERL-regex point-of-view that it wouldn't allow parameters without the * . Anyway, that fixed it and a few other mapping problems I had. Thanks a lot. [EMAIL PROTECTED] 02/20/03 12:06PM Howdy, There

How do I get the requested page from the Request Object?

2002-12-18 Thread Jason Johnston
I'm just a little curious on this and I'm sure there's a simple answer. I've mapped a servlet with the following path /inventory/* which seems to be working fine. The servler sends the request to the servlet. However, I'm having trouble getting the page request from the request object. I'm

How do I get the requested page from the Request Object?

2002-12-18 Thread Jason Johnston
I'm just a little curious on this and I'm sure there's a simple answer. I've mapped a servlet with the following path /inventory/* which seems to be working fine. The servler sends the request to the servlet. However, I'm having trouble getting the page request from the request object. I'm

RE: How do I get the requested page from the Request Object?

2002-12-18 Thread Jason Johnston
Thanks a lot. I'll go ahead and take that approach. Though I started with the following example from a book. . . . String URI = request.getServletPath(); if(URI.equalgnoreCase(/index.html)) forwardTo =/index.jsp; else { forwardTo=/article.jsp;

Re: JSP to Servlet to JSP pathing issue. Relative PathingPlease help.

2002-12-17 Thread Jason Johnston
jsp request to the servlet. If you changed that to forward then that'd probably solve you're problem without the additional round-trip] Mike. - Original Message - From: Jason Johnston [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 16, 2002 5:46 PM

Re: JSP to Servlet to JSP pathing issue. RelativePathingPlease help.

2002-12-17 Thread Jason Johnston
it does now when you request it directly. However, the browser's URL will still have the servlet's URL - and you can code all the paths relative to that. Mike. - Original Message - From: Jason Johnston [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 17, 2002 3:25 PM Subject

JSP to Servlet to JSP pathing issue. Relative Pathing Please help.

2002-12-16 Thread Jason Johnston
I have a JSP that has a form that I want processed by a servlet. The servlet then places the results in the page context and redirects back to the JSP. Everything works fine on the first go, but the second time through the path in the client's browser is no longer valid. Initially, the path

Re: JSP to Servlet to JSP pathing issue. Relative Pathing Please help.

2002-12-16 Thread Jason Johnston
: Jason Johnston [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 16, 2002 5:46 PM Subject: JSP to Servlet to JSP pathing issue. Relative Pathing Please help. I have a JSP that has a form that I want processed by a servlet. The servlet then places the results

Socket GURU'S PLEASE HELP ON OBSCURE PROBLEM

2002-12-02 Thread Jason Johnston
The project that I'm working on is actually much larger and more complex, but I've thrown together this class that illustrates my problem. I'm basically starting a socket server on port 80 and then connecting with a web browser. The strange thing is that the connection never terminates and I

RE: Socket GURU'S PLEASE HELP ON OBSCURE PROBLEM

2002-12-02 Thread Jason Johnston
. I would suggest using HTTP 1.0 on the server side to avoid dealing with keep-alives sent by 1.1 clients. For more information on the HTTP spec check out RFC 2616. Good luck on your homework. Jeremy -Original Message- From: Jason Johnston [mailto:[EMAIL PROTECTED]] Sent: Monday

RE: Socket GURU'S PLEASE HELP ON OBSCURE PROBLEM

2002-12-02 Thread Jason Johnston
Thanks again Jeremy! I was coming to that conclusion. I changed the condition to while(instream.available()0) and then added an instream.read() and it seems to be working. It turns out there's a lot more info on this problem in the forums than I realized. Thanks for you help. On a

digital signatures with tomcat?

2002-10-01 Thread Jason Johnston
Does anyone know of any good references sites on implementing digital signatures, such as Entrust TruePass, with Tomcat?

Element type teiclass must be declared

2002-10-01 Thread Jason Johnston
Has anyone seen this. I'm getting a parse error on my TLD that says the teiclass is not a valid element.

tomcat stopped serving out pictures

2002-09-30 Thread Jason Johnston
Ok, this is a very strange problem. My tomcat engine appears to be running fine and the problem seems to be isolated to IE. If you use the address of the picture itself like http://localhost:8080/jakarta-banner.gif The picture comes out fine. However, http://localhost:8080/index.html

Retrieving ServletContext Objects via PageContext

2002-09-24 Thread Jason Johnston
This may be a stupid question but I'm just starting to use custom tags and I'm running into a strange problem. I'm using a DBCP for a mySQL database and my setup servlet places a handle to the pool in the ServletContext via the setAttribute() under the name dbPool. Now other servlets can

RE: Retrieving ServletContext Objects via PageContext

2002-09-24 Thread Jason Johnston
Message- From: Jason Johnston [mailto:[EMAIL PROTECTED]] Sent: 24 September 2002 17:25 To: Tomcat Users List Subject: Retrieving ServletContext Objects via PageContext This may be a stupid question but I'm just starting to use custom tags and I'm running into a strange problem. I'm using

Re: Tomcat won't find my web.xml files.

2002-04-04 Thread Jason Johnston
:59AM Since your running on Windows, make absolutely sure your WEB-INF directory for your app is in all-caps. Use a DOS window to verify this. Windows Explorer will always convert things to title case, so you can't tell from there. Jeff - Original Message - From: Jason Johnston [EMAIL

Re: Tomcat won't find my web.xml files.

2002-04-04 Thread Jason Johnston
Kamau. --- Jason Johnston [EMAIL PROTECTED] wrote: I've been working with Tomcat 4.0.1 and I'm running into a major stumbling block. I can run servlets and jsp's letting tomcat default to the default web.xml but I can't make my own. I have the following web.xml: ?xml version=1.0 encoding

Re: how to store a document file?

2002-04-03 Thread Jason Johnston
If you want to store an actual Word file, you should do it as a BLOB (Binary Large OBject or Binary Logical OBject depending on your school of thought). I don't have any code examples but Java does have some tools for storing and retreiving BLOB's from an Oracle database.

Tomcat won't find my web.xml files.

2002-04-03 Thread Jason Johnston
I've been working with Tomcat 4.0.1 and I'm running into a major stumbling block. I can run servlets and jsp's letting tomcat default to the default web.xml but I can't make my own. I have the following web.xml: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC '-//Sun

Re: Problem Running Servlets

2002-04-02 Thread Jason Johnston
Try running your servlet from the address: http://localhost:5001/core/servlet/HelloWWW I ran into this problem and found several things that I changed to get it to work. 1. I moved it into a test directory and made the servlet part of a test package i.e. package test; I could not get

Re: Problem Running Servlets

2002-04-02 Thread Jason Johnston
Sorry, the structure I meant was /core/WEB-INF/classes/test/HelloWWW

Missing web.xml

2002-04-01 Thread Jason Johnston
I've installed the tomcat engine on an NT Server 4.0 machine. I've been compiling and running test servlets and jsp's but I can't get custom web.xml's to work. I've run through the example on O'reilly's site: http://www.onjava.com/lpt/a//onjava/2001/04/19/tomcat.html However, I keep getting