I have 2 questions on setting viewport ?
-
Is the meta tag the only way to set viewport? I mean is it possible through JS or some other way?
-
I have a Java app (uses JSP/Struts, etc). So can I set it globally from a single place? If yes, can I override it for a particular page if I need to later ?
You can set the viewport via meta tags and CSS.
This article is also a good introduction to viewport property and how you can set it via CSS http://dev.opera.com/articles/view/an-introduction-to-meta-viewport-and-viewport/ and other means.