In your route I see that you included this:

<entry key="/users/{id}/resource2?{query}"> 

Try without declaring query like this:

<entry key="/users/{id}/resource2"> 

I think there's no need to declare "{query}" to get the query from the URL.



aronitin wrote:
> 
> Hi,
> 
> I did not really get your point "You can include your routes without GET
> parameters"
> 
> What GET parameters you are talking about here? My Server Resource is
> being instantiated by the SpringRouter settings defined in the xml file.
> 
> I'm already fetching the query params as described below.
> 
> String view = getQuery().getFirstValue("view");
> 
> But the real problem is 404 is being thrown before the server resource is
> instantiated. Routers are not able to identify the incoming request
> "http://xyz:8080/resource2?view=filtered and hence throwing 404.
> 
> Nitin
> 
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2765509
> 


--
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/How-to-allow-Query-Strings-in-REST-URI-Spring-Restlet-tp6474960p6478585.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

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

Reply via email to