On 25/06/2010 17:37, laredotornado wrote:
> 
> Did you mean to say, call it WITHOUT the params at the end?  If so, when I
> did that, everything mapped fine.  However, I do need the query params to
> process the page correctly.  Sadly, this url-pattern didn't work
> 
>         <servlet-mapping>
>                 <servlet-name>MusicVenueServlet</servlet-name>
>                 <url-pattern>/play/music/venues/*</url-pattern>
>                
> <url-pattern>/play/music/includes/venue-listing*</url-pattern>
>         </servlet-mapping>
> 
> Note the "*" after "venue-listing" in an attempt to capture any query
> params.  Any ideas how to write the url-pattern so that I can catch
> additional query params?

You don't have to, it's just the path (requestURI), not the query
parameters that the url-pattern refers to.

If you set:

 <url-pattern>/play/music/includes/venue-listing</url-pattern>

and then request:

 /myAppName/play/music/includes/venue-listing?my=params&what=ever

Then it should work, unless the Servlet itself is rejecting the request
because it's analyzing the path it's called on - which it isn't in
theory because you said it works with:

 <url-pattern>/play/music/includes/*</url-pattern>


The only possible problem I can think of is that the latter definition
with wildcard is also enabling something that the individual URL doesn't.


p

> Thanks, - Dave
> 
> 
> 
> 
> 
> 
> Pid * wrote:
>>
>> On 24/06/2010 19:24, laredotornado wrote:
>>>
>>> I tried this too and still got the 404.
>>>
>>>         <servlet-mapping>
>>>                 <servlet-name>MusicVenueServlet</servlet-name>
>>>                 <url-pattern>/play/music/venues/*</url-pattern>
>>>                
>>> <url-pattern>/play/music/includes/venue-listing.jsp</url-pattern>
>>>         </servlet-mapping>
>>>
>>> I also tried escaping the period in the file extension ("\.jsp"), but no
>>> luck.  Any ideas how to troubleshoot the problem further? - Dave
>>
>> Does the JSP have any includes from the same directory, that might work
>> when you're using the /* ending, but not when you're using the single JSP?
>>
>> If you put the mapping back to:
>>
>>  /play/music/includes/venue-listing
>>
>> and call it with the params on the end, does it work then?
>>
>>
>> p
>>
>>
>>> n828cl wrote:
>>>>
>>>>> From: laredotornado [mailto:laredotorn...@gmail.com]
>>>>> Subject: Servlet mapping issue
>>>>>
>>>>> <url-pattern>/play/music/includes/venue-listing</url-pattern>
>>>>
>>>> You left the .jsp off the end of venue-listing.
>>>>
>>>>  - 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: users-unsubscr...@tomcat.apache.org
>>>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>>>
>>>>
>>>>
>>>
>>
>>
>>
>>  
>>
> 


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to