On Aug 27, 2008, at 9:20 AM, Imran M Yousuf wrote:
> On Wed, Aug 27, 2008 at 12:50 PM, Paul Sandoz <Paul.Sandoz_at_sun.com>
> wrote:
> <snip>
>> Nowhere in Jersey is there code to return an invalid command with the
>> servlet path. A wild guess: i wonder if the app server is checking
>> if the
>> returned content and media type and saying that the content is not
>> valid
>> text/html ?
>
> I was also thinking the same thing, but what I was not sure of whether
> text/html requires explicit @Producer or not. You (Jerry) could also
> try with text/plain as MIME type,
>
If there is no @Produces associated with the resource method then JAX-
RS/Jersey will infer to the media type from the selected message body
read for the return type. In this case "text/plain" will be inferred.
Paul.
> - Imran
>
>>
>> Paul.
>>
>>>
>>> What am I missing? Is the browser not generating a GET request to
>>> the
>>> resource?
>>>
>>> Thanks for any help...
>>> jerry..
>>> --
>>> View this message in context:
>>> http://n2.nabble.com/Testing-GET-resources-in-a-browser-
>>> tp785201p785201.html
>>> Sent from the Jersey mailing list archive at Nabble.com.
>>>
>>>
>>> --------------------------------------------------------------------
>>> -
>>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>>
>
>
>
> --
> Imran M Yousuf
> Entrepreneur & Software Engineer
> Smart IT Engineering
> Dhaka, Bangladesh
> Email: imran_at_smartitengineering.com
> Blog: http://imyousuf-tech.blogs.smartitengineering.com/
> Mobile: +880-1711402557
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>