> 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 previous poster pointed out, there's a difference between redirect
(requiring a round trip to the client) and forward (a server-only
mechanism). Which is it that you want to do? (Your code says one
thing, your words another.)
> I have the mapping twice yes, once for searchitem.jsp and once for
> searchmatch.jsp, which both use the same servlet - SearchServlet.
<servlet-mapping>
<servlet-name>SearchServlet</servlet-name>
<url-pattern>/searchmatch.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>SearchServlet</servlet-name>
<url-pattern>/searchmatch.jsp</url-pattern>
</servlet-mapping>
The above are your published mappings, copied and pasted from your
original message; these appear identical to me - both are for the
searchmatch.jsp pattern.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]