Re: Servlet problem using normal url

2008-08-12 Thread Christopher Schultz
-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

Servlet problem using normal url

2008-08-12 Thread Huntly Cameron
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

RE: Servlet problem/Data Source Problem

2006-02-21 Thread GB Developer
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

Servlet problem/Data Source Problem

2006-02-21 Thread Mark Whitby
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

Re: Fw: Servlet problem

2006-02-21 Thread David Smith
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

Re: Fw: Servlet problem

2006-02-21 Thread Mark Whitby
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

Re: Fw: Servlet problem

2006-02-21 Thread Mark Whitby
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

RE: Fw: Servlet problem

2006-02-20 Thread Caldarale, Charles R
> 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

Re: Fw: Servlet problem

2006-02-20 Thread Mark Whitby
- 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

RE: Fw: Servlet problem

2006-02-20 Thread Caldarale, Charles R
> 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?

RE: Servlet problem

2006-02-20 Thread GB Developer
> 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

Re: Fw: Servlet problem

2006-02-20 Thread Mark Whitby
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

Re: Fw: Servlet problem

2006-02-20 Thread Filip Hanik - Dev Lists
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

Fw: Servlet problem

2006-02-20 Thread Mark Whitby
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

Servlet problem

2006-02-20 Thread Mark Whitby
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