Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get alert box in the middle of scriptlet?

807606Apr 25 2007 — edited Apr 26 2007
Hi,
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");
%>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 24 2007
Added on Apr 25 2007
3 comments
304 views