[jboss-user] [JBoss Seam] - Re: Seam sources - html tags

fredespi do-not-reply at jboss.com
Thu Dec 20 03:16:36 EST 2007


Hello,

I am having problems using a urlrewrite rule in seam. I have a rule like:


  | <rule>
  |         <from>^/(.*)$</from>
  |         <to last="true">/resultsPage.seam?searchString=$1</to>
  | </rule>
  | 

This works fine unless the string that is caught by (.*) contains %26, i.e. ampersand. So if the incoming url looks like this:

anonymous wrote : http://localhost:8080/a+%26+b

The urlrewriter logs this:

anonymous wrote : 
  | 09:08:56,632 INFO  [[/]:log] org.tuckey.web.filters.urlrewrite.RuleBase DEBUG: Rule 1 run called with /a & b
  | 09:08:56,632 INFO  [[/]:log] org.tuckey.web.filters.urlrewrite.RuleBase DEBUG: matched "from"
  | 09:08:56,640 INFO  [[/]:log] org.tuckey.web.filters.urlrewrite.RuleExecutionOutput DEBUG: needs to be forwarded to /resultsPage.seam?searchString=a & b
  | 09:08:56,641 INFO  [[/]:log] org.tuckey.web.filters.urlrewrite.UrlRewriter DEBUG: rule is last
  | 

but the parameter searchString is set to 
anonymous wrote : 
  | a
  | 

and not

anonymous wrote : a & b

I suppose I am doing something wrong. Can someone help me out?

Regards,

Fredrik

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114525#4114525

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114525



More information about the jboss-user mailing list