Example
<%
Editor editor = (Editor)session.getAttribute("editor");
if(null == editor){
%>
<script type="text/javascript">
window.parent.location.href = "login.jsp";
</script>
<%
}
%>
It appears lots of time like this
use java code to get something....
if(something is true){
Then do something with javascript;
}
So, I need a good impl to separate js,java in jsp file.