[EMAIL PROTECTED] wrote:
I'm new to Jpluck and the JXL. I'm trying to pluck a brazilian news site,
but I want to get the print friendly version of the news. (the site is:
http://www.folha.uol.com.br/)

I'm having problems in using the <uriRewrite> tag. The url for the print
friendly version is like this:

http://tools.folha.com.br/print.html?skin=emcimadahora&url=http%3A//www1.folha.uol.com.br/folha/brasil/ult96u58540.shtml

I have to put the original url as a parameter in the print url.

Unfortunately, you can't easily URL-encode strings using the current set of EL functions. I just added the str:urlencode() function that URL encodes a given string.


This rule will do what you want:

<uri pattern=".*\.shtml" value="http://tools.folha.com.br/print.html?skin=emcimadahora&url=${str:urlencode(uri)}"/>

(This doesn't work in JPluck 2.1.1 yet, but it will in 2.1.2.)

I'm currently editing and reorganizing the documentation to bring it in line with JXL 2.1, including the URI rewriting and Expression Language tutorial. Please be patient while I get everything sorted out.


Regards -Laurens _______________________________________________ plucker-list mailing list [EMAIL PROTECTED] http://lists.rubberchicken.org/mailman/listinfo/plucker-list

Reply via email to