I would like to know what is the best way to serve slightly different content
depending on the User Agent string coming from the browser.

Is there a way to do this at the application level, eg by doing page
mounting and targeting different WebPage's, or some other general
redirection technique, or should I just keep unique WebPage's but add
specific logic to handle the special cases within each one? For example

WebClientInfo w = new WebClientInfo(getRequestCycle());
        
if(w.getUserAgent().contains("...")) {
// do something special
}
else {
// otherwise the general case
}

Many thanks

David

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Serving-different-content-depending-on-User-Agent-tp4379183p4379183.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to