web applications - Servlet Filter modify path to files -


could me implementation filter modify request files /dir/* /new_domain/new_context_path/dir/*

  1. map filter /dir/*
  2. use

    response.sendredirect(new_domain + "/" + new_context + request.getpathinfo()) 

    (see getpathinfo()). note if it's possible have query-string (?foo=bar), you'd have append well.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -