>>> [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
>>> [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
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 . Now I wanted
to use this editor for various kinds of documents. Therefore I made an
EditorCon
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,
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 mapp
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";
request.setAttri
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
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
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
p
that's not ideal, but I don't know of any other way.)
[Actually, I guess you're already redirecting from the original 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
#x27;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
Subject:
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 is
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 differe
r a response
from
your server, it finally times out (Connection reset by peer) and
closes
the connection. 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.
J
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 can'
Has anyone seen this. I'm getting a parse error on my TLD that says the "teiclass" is
not a valid element.
Does anyone know of any good references sites on implementing digital signatures, such
as Entrust TruePass, with Tomcat?
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 resul
e has any insight, I would appreciate it. Thanks
>>> [EMAIL PROTECTED] 09/24/02 11:48AM >>>
The following will work:
pageContext.getServletContext().getAttribute("dbPool");
-Original Message-
From: Jason Johnston [mailto:[EMAIL PROTECTED]]
Sent: 24 September 2002 17:2
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
he specified
"/WEB-INF/lib/taglib.tld" location in your
application.
Well I hope this works.
Allan 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
D] 04/04/02 08: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
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:
http://java.sun.com/j2ee/dtds/web-app_2_3.dtd'>
login
com.onjava.log
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.
Sorry, the structure I meant was
/core/WEB-INF/classes/test/HelloWWW
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 th
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
27 matches
Mail list logo