How to get alert box in the middle of scriptlet?
807606Apr 25 2007 — edited Apr 26 2007Hi,
I got a problem.Please help to resolve that one
In the following code the alert box is not coming even though the condition is true.
Can anyone please resolve it
<%
Cookie axsCookie;
axsCookie = new Cookie("user_id", "");
response.addCookie(axsCookie);
axsCookie = new Cookie("user_lang_code", "");
response.addCookie(axsCookie);
axsCookie = new Cookie("default_lang_code", "");
response.addCookie(axsCookie);
String logOut=request.getParameter("logOut");
if(logOut!=null)
{
%>
<script type="text/javascript">
var temp='<%=logOut%>';
if(temp=="true")
alert('Your password is successfully changed.Please relogin.');
</script>
<%
}
session.invalidate();
response.sendRedirect("/priv/logging.jsp");
%>