When I pass the URL as http://www.test.com/text, it is going to second condition since the condition is satisfied and id gets the value text. Is there a way to handle this issue
Thanks for responding. We are more interested in throwing back an error if id is not passed in the URL mentioned above.
http://www.test.com/text - should yield an error since id is not passed. But it goes to Condition 2, and treats text as id, which we dont need.
Please let us know, if there is a way to handle this. I see that there is something called startsWith operartor to check the suffix. What we are looking for is more of endsWith kind of operator.