Hi,

I'm trying to some url rewriting in the Index.java:

I have this:
http://mydomain.com/item/123

which displays item 123, now if user type url:http://mydomain.com/123, I'll
forward it in onActivate to /item/123 as follows:

Object onActivate(Object[] obj) {
      if (obj.length > 0) {
          String code = (String) obj[0];
                return
resources.createPageLink(Utils.getClassBaseName(Item.class.getName()), true,
code);
      } else
        return Home.class;
  }


This works well, however, a little problem:

when user type: http://mydomain.com/123
url displayed in the browser is http://mydomain.com/item/123

is there a way to just keep it like http://mydomain.com/123 in the browser?

Thanks,

Angelo
-- 
View this message in context: 
http://www.nabble.com/t5%3A-forwarding-page-but-no-change-in-the-url--tp18995306p18995306.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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

Reply via email to