-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Huntly,
Huntly Cameron wrote:
| I've run into a strange problem with redirecting from a servlet when
using a
| normal domain name (www.xyz.com) Basically up until now I was just
testing
| my app using the http://locahost/ URL. The servlet redirect
Hi guys,
I've run into a strange problem with redirecting from a servlet when using a
normal domain name (www.xyz.com) Basically up until now I was just testing
my app using the http://locahost/ URL. The servlet redirect
worked fine with with the page displaying fine. The URL would look somethin
Sent: Tuesday, February 21, 2006 7:38 AM
> To: Tomcat Users List
> Subject: Servlet problem/Data Source Problem
>
>ResultSet rst = stmt.executeQuery("select id, chest from
> testdata");
you're missing this:
if (rst.next()) {
> blob = rst.getIn
cy.jsp page. If the if statement is still in, it redirects me to
the address within the != null part of that.
Any ideas why it isn't working and if the database connection is even
working at all? Is there a better way to test it?
Mark
- Original Message -
From: "David Smit
redirected to searchnone.jsp as I am doing, only
when I've pressed the button and no items have been found that match
the search parameter.
Mark
- Original Message - From: "Caldarale, Charles R"
<[EMAIL PROTECTED]>
To: "Tomcat Users List"
Sent: Monday, Fe
ved the problem fine. It's my fault for
misunderstanding how things were processed.
Thanks for everyone's help again
Mark
- Original Message -
From: "Mark Whitby" <[EMAIL PROTECTED]>
To: "Tomcat Users List"
Sent: Tuesday, February 21, 2006 8:24 AM
OTECTED]>
To: "Tomcat Users List"
Sent: Monday, February 20, 2006 11:30 PM
Subject: RE: Fw: Servlet problem
From: Mark Whitby [mailto:[EMAIL PROTECTED]
Subject: Re: Fw: Servlet problem
If nothing is found then it redirects the user to
searchnone.jsp. If an item or more than one
> From: Mark Whitby [mailto:[EMAIL PROTECTED]
> Subject: Re: Fw: Servlet problem
>
> If nothing is found then it redirects the user to
> searchnone.jsp. If an item or more than one item
> is found then the page will redirect to itemlist.jsp
> or matchlist.jsp
As a previo
- SearchServlet. Is there
any wy map both pages in one go?
Mark
- Original Message -
From: "Caldarale, Charles R" <[EMAIL PROTECTED]>
To: "Tomcat Users List"
Sent: Monday, February 20, 2006 10:36 PM
Subject: RE: Fw: Servlet problem
From: Mark Whitby
> From: Mark Whitby [mailto:[EMAIL PROTECTED]
> Subject: Re: Fw: Servlet problem
>
> Yeah but that's not what I want to happen. I want the
> servlet to redirect the user to searchnone.jsp as per
> the servlet code and not to the servlet itself, if that
> makes sense?
> Can anyone tell me where I'm going wrong?
what filip said, but also...
>From your servlet source code, make sure not to expect a server-side
operation, such as:
dispatcher.forward(request, response);
to result in a client-side 'refresh' to the 'specified' page
(searchnone.jsp, when you obtai
o: "Tomcat Users List"
Sent: Monday, February 20, 2006 10:23 PM
Subject: Re: Fw: Servlet problem
per your web.xml
http://localhost:8080/WEB-INF/classes/SearchServlet?itemvalue=type+search+criteria+here
should be
http://localhost:8080/searchmatch.jsp?itemvalue=type+search+criteria+here
Fi
per your web.xml
http://localhost:8080/WEB-INF/classes/SearchServlet?itemvalue=type+search+criteria+here
should be
http://localhost:8080/searchmatch.jsp?itemvalue=type+search+criteria+here
Filip
Mark Whitby wrote:
EDIT: I've sent this twice because the first one contained an error in what I
EDIT: I've sent this twice because the first one contained an error in what I
wrote. Ignore the first one.
Hi all,
Apologies for the stupidity of this email but I'm having a few servlet
problems. I've created the following SearchServlet.java file, compiled it into
a class file using Netbeans
Hi all,
Apologies for the stupidity of this email but I'm having a few servlet
problems. I've created the following SearchServlet.java file, compiled it into
a class file using Netbeans then copied the class file into my WEB-XML/classes
file.
Now for testing the servlet is very limited but
15 matches
Mail list logo