Angelo,
   unless you somehow have the ability to affect DNS resolution on the
client (or if you own masterlist.com or whatever domain you want), what
you're looking to do just can't happen.

Cheers,

Alex K

On Sat, Aug 29, 2009 at 11:03 AM, Angelo Chen <[email protected]>wrote:

>
> hi,
>
> my t5 app has url:
>
> http://localhost:8080/masterlist
>
> now I'd like to make a short cut for the user:
>
> http://masterList:8080
>
> above URL should go to http://localhost:8080/masterList
>
> following code works, but it will not use the css in the app, seems css is
> applicable to http://localhost, not http://masterList
>
> any idea how to fix this?
>
> Thanks,
>
> A.C.
>
> public class DomainURL implements URLRewriterRule {
>
>    public Request process(Request request, URLRewriteContext
> urlRewriteContext) {
>        String domain = request.getServerName();
>        if ("masterlist".equalsIgnoreCase(domain)) {
>            String newU = "/masterList/";
>            request = new SimpleRequestWrapper(request, newU);
>        }
>        return request;
>    }
>
>    public RewriteRuleApplicability applicability() {
>        return RewriteRuleApplicability.INBOUND;
>    }
> }
>
> --
> View this message in context:
> http://www.nabble.com/t5%3A-URLRewriteRule%2C-domain-and-CSS-tp25203654p25203654.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