PDA

View Full Version : cs506 web development assignment no 4 idea solution on 3rd January 2012



rabeel
01-03-2012, 11:35 PM
Question:
Analyze following code using your best effort. And then give and explain its output. Yours explanation should not exceed 3-4 sentences. This assignment is based on negative marking if any unnecessary information or too much detail is provided your marks will be deducted.

import java.io.*;import java.util.*;import javax.servlet.*;import javax.servlet.http.*; public class STimerOut extends HttpServlet
{ public void doGet(HttpServletRequest rq, HttpServletResponse rs) throws ServletException, IOException { rs.setContentType("text/html");
PrintWriter out = rs.getWriter(); int t = 60; HttpSession s = rq.getSession();
out.println("<HTML>"); out.println("<BODY>"); out.println("<H3>");
out.println(" Making Session based checkOut "); out.println("</H3>");
out.println("obtain previous time out " + s.getMaxInactiveInterval());
out.println("<BR>"); out.println("<BR>");
s.setMaxInactiveInterval(2*t*t);
// two hours
out.println("setting new time to get out " + s.getMaxInactiveInterval());
out.println("</BODY>");
out.println("</HTML>");
}}
Note: Your answer should be in your own words and it should be concise and precise. (This means there canít be multiple copies of your solution, if found will be treated as copy case.)

makyle
01-04-2012, 01:20 AM
any buddy there?

rabeel
01-04-2012, 01:49 AM
yes i am here.....:smileys44:

saif.ullah
01-10-2012, 05:33 PM
asgment solution kb tk upload kro gy

Vuhelper
01-10-2012, 06:14 PM
try karty haa

khalidbilal
01-10-2012, 07:01 PM
sir plzzzzzzzzzzzzz cs506 web development assignment no 4 idea solution on 3rd January 2012 kro na i am in wit

Vuhelper
01-10-2012, 07:46 PM
First line ........ Making session based

checkout

and 2nd line ....... Obtain previous timeout

aur iss kay end per purana timeout interval likha hoga

iss kay baad time out interval 2 hours per set ho jaay ga

phir 3rd line print hogi ............ Setting new time to get out

saif.ullah
01-10-2012, 07:55 PM
vuhelper ap k pass solution hy???//

seemab ali
01-10-2012, 11:09 PM
plzzzzzzzzzz koi cs506 assignment ka solution send karien

matloob
01-11-2012, 12:17 AM
solution yahan py ap ko nahi mil sakta

Vuhelper
01-11-2012, 02:36 AM
solution abhi tak tu bana rahay han jab ready ho ga tu submit kerwa den gay.

mc090401997
06-29-2012, 04:52 AM
jab time over ho jay tab

Xpert
06-29-2012, 06:57 AM
yeh wali tu old one hai g.

Hina Khan
01-09-2013, 03:53 AM
bekaar ho gayi hy ap ki site. solution to hota nahi hy.

Vuhelper
01-09-2013, 02:41 PM
kis ka solution chai tm ko