例
<%
Editor editor = (Editor)session.getAttribute("editor");
if(null == editor){
%>
<script type="text/javascript">
window.parent.location.href = "login.jsp";
</script>
<%
}
%>
このように何度も表示されます
use java code to get something....
if(something is true){
Then do something with javascript;
}
したがって、jspファイルでjs、javaを分離するための適切なimplが必要です。