Re: Router in servelet not routing to correct resource

2009-10-22 Thread Matt Stromske
!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
head
  meta content=text/html;charset=ISO-8859-1 http-equiv=Content-Type
/head
body bgcolor=#ff text=#00
Thanks.nbsp; That did it.nbsp; I think I'm losing it because I thought I tried
that and it didn't work.nbsp; br
Thanks again,br
Mattbr
br
Matt Kennedy wrote:
blockquote cite=mid:682073e5-25b8-47b9-970e-182d4990e...@gmail.com
 type=cite
  pre wrap=I'm not 100% sure based on that description, but try setting 
your  
second router line to:

router.attach(/test1)


On Oct 21, 2009, at 1:19 PM, Matt Stromske wrote:

  /pre
  blockquote type=cite
pre wrap=Hello,

I can't figure out why my router isn't routing to the correct  
resource.  It always seems to route to the default route.  I have 2  
routes:
   router.attachDefault(DefaultResource.class);
router.attach(/gpsh/test1,TestResource.class);

My servlet container mapping:
lt;url-patterngt;/gpsh/*lt;/url-patterngt;


When I attempt to go to /gpsh/test1, I end up going to the default  
route.

Any idea how I can get the routing corrected?

Thanks,
Matt

--
a class=moz-txt-link-freetext 
href=http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2409873;http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447amp;dsMessageId=2409873/a
/pre
  /blockquote
  pre wrap=!
--
a class=moz-txt-link-freetext 
href=http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2409935;http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447amp;dsMessageId=2409935/a
  /pre
/blockquote
br
pre class=moz-signature cols=72-- 

Matt Stromske
Software Engineer
Singlewire Software, LLC
a class=moz-txt-link-abbreviated 
href=http://www.singlewire.com;www.singlewire.com/a
--
608.298.1020
a class=moz-txt-link-abbreviated 
href=mailto:matt.strom...@singlewire.com;matt.strom...@singlewire.com/a
/pre
/body
/html

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2409949


Router in servelet not routing to correct resource

2009-10-21 Thread Matt Stromske
Hello,
  
I can't figure out why my router isn't routing to the correct resource.  It 
always seems to route to the default route.  I have 2 routes:
router.attachDefault(DefaultResource.class);
router.attach(/gpsh/test1,TestResource.class);

My servlet container mapping:
url-pattern/gpsh/*/url-pattern
   

When I attempt to go to /gpsh/test1, I end up going to the default route.

Any idea how I can get the routing corrected?

Thanks,
Matt

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2409873


Re: Router in servelet not routing to correct resource

2009-10-21 Thread Matt Kennedy
I'm not 100% sure based on that description, but try setting your  
second router line to:

router.attach(/test1)


On Oct 21, 2009, at 1:19 PM, Matt Stromske wrote:

 Hello,

 I can't figure out why my router isn't routing to the correct  
 resource.  It always seems to route to the default route.  I have 2  
 routes:
router.attachDefault(DefaultResource.class);
 router.attach(/gpsh/test1,TestResource.class);

 My servlet container mapping:
 url-pattern/gpsh/*/url-pattern


 When I attempt to go to /gpsh/test1, I end up going to the default  
 route.

 Any idea how I can get the routing corrected?

 Thanks,
 Matt

 --
 http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2409873

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2409935