right now it's not returning anything. It's simply a helloworld test. there
is no root folder or anything like that yet. but the main goal will be to
stream the audio file by a servlet.
I started with
http://localhost:8080/streamer/file=...
I had two servlets registered.
#1 - servlet 1 : mapping *.flt
#2 servlet 2 : mapping : it failed here.. look like all the requests are
handle by servlet #1.
why I'm encoding the path.. it's because that I wanted to read the file path
from the param pass to the servlet..
and why I kept c:/ if because, the user could have the same file in
c:/music and d:/music
I'll pass a generated token at the end.. but I was wondering if it was a
grizzly bug to not handle the path :
http://localhost:8080/c%3A%5Cmusic%5C10+Years+-+Beautiful.mp3
2009/4/28 Jeanfrancois Arcand <Jeanfrancois.Arcand_at_sun.com>
> Salut,
>
> {switch to users as this is always helpfull to know for grizzlyAdapter
> developper}
>
> Survivant 00 wrote:
>
>> I try something wierd. I wanted to show a URL that represent a filename
>> on disk. I'm on windows.
>>
>> my filename is :
>> c:\music\10 Years - Beautiful.mp3
>>
>> I used URLEncoder.encode(audioFilename, "UTF-8")
>>
>> and received : c%3A%5Cmusic%5C10+Years+-+Beautiful.mp3
>>
>> I wanted to call this URL :
>> http://localhost:8080/c%3A%5Cmusic%5C10+Years+-+Beautiful.mp3
>>
>
> root folder is something/ and music is under something, right?
>
>
>> but the servlet is never called. if I use http://localhost:8080/c%3A it
>> will works.
>>
>>
>> I try with Firefox. When I enter the URL.. the result in the URL is
>> changed to http://localhost:8080/c%3A\music\10+Years+-+Beautiful.mp3
>>
>> but in IE.. it stay
>> http://localhost:8080/c%3A%5Cmusic%5C10+Years+-+Beautiful.mp3
>>
>
> what re you getting if you add the / between music and 10? Also why are you
> URL encoding the link? Specially the c:\ is not needed IMO.
>
> A+
>
> -- Jeanfrancois
>
>
>>
>> I try with many combination for mapping.. but the result is always the
>> same.
>>
>>
>> ServletAdapter sa = new ServletAdapter();
>> Servlet servlet =
>> (Servlet)ClassLoaderUtil.load("helloworldServlet");
>> sa.setContextPath("/");
>> sa.setServletPath("");
>> sa.setServletInstance(servlet);
>> ws.addGrizzlyAdapter(sa, new String[]{"*"});
>>
>> the result expected is "hello world!"
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>
>