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: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to