excellent - i had to modify
  encoding.setParameterValues(ServiceConstants.PARAMETER, "S"+params);

to handle the fact that params is an Array, but it works fine...thanks!


Kent Tong wrote:
Jeff Emminger <mailing-lists <at> jeffemminger.com> writes:


ugly urls look like:
http://localhost:8888/wiki/app?page=WikiPageRead&service=external&sp=Sfoo

friendly urls like:
http://localhost:8888/wiki/page/Sfoo

the attached service encoder is *identical* to the vlib ViewPageEncoder...


Try changing:

    for (String param : params)
    {
      builder.append("/");
      builder.append(param);
    }

to:

    for (String param : params)
    {
      builder.append("/");
      builder.append(param.substring(1));
    }

and:

    encoding.setParameterValues(ServiceConstants.PARAMETER, params);

to:

    encoding.setParameterValues(ServiceConstants.PARAMETER, "S"+params);

--
Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to