I have a jsp page that includes a file.
<%@ include file="/site/login.html"%>
I need to mix this with javascript in order to do the following
Code:
if (screen is certain size)
{
<%@ include file="/site/mobile_login.html"%>
}
else
{
<%@ include file="/site/login.html"%>
}
and I am having trouble with the syntax of either setting a
js variable to the @include and doing a document.write, or setting a jsp variable to the file.html and placing it in the @include
any help will be most welcome