Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

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 write JAVASCRIPT in SERVLET

843841Sep 29 2003 — edited Sep 27 2007
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.print("<HTML><HEAD><TITLE> DATA NET</TITLE></HEAD>");

I have to write the following javascript code ......how to do??
-------------------------javascript code--------------------------------
<BODY onLoad=pageload();
<SCRIPT>
function pageload()
{
var time;
time=200;
URL=Default.jsp;
self.setTimeout(top.location.href =URL;,time);
}
</SCRIPT>
</BODY>
-------------------------------
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 25 2007
Added on Sep 29 2003
3 comments
271 views