Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS506 Web Design and Development Assignment N0 04 idea solution July 2011
#1
Question:
Analyze following code and comment it accordingly showing each code segment impact in the Servlet. After doing so with code write down the purpose of this code in no more than 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("<HEAD>");
out.println("<TITLE >");
out.println("Session TimeOut ");
out.println("</TITLE>");
out.println("</HEAD>");


out.println("<BODY>");
out.println("<H1>");
out.println("Session TimeOut ");
out.println("</H1>");

out.println("gaining the old time out " +
s.getMaxInactiveInterval());

out.println("<BR>");
out.println("<BR>");


s.setMaxInactiveInterval(2*t*t);
out.println("giving 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.)




Attached Files
.doc   Spring 2011_CS506_4.doc (Size: 165.5 KB / Downloads: 299)

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply
#2
Please any body share this Solution.
Reply
#3
oright vuhelper is going to share this solution
Reply
#4
Today is last date . Please share the solution. Iam unable to install to servlet.
Reply
#5
hi all
please share here the idea solution of cs506. I realy need it today is the last date.plzz plzzz help me.Sad
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  CS301 Assignment # 4 Due Date: 02-Feb-2016 Vuhelper 0 2,320 02-03-2016, 05:38 PM
Last Post: Vuhelper
  CS703 – Advanced Operating Systems Assignment No.3 solution January 2016 Vuhelper 0 5,906 01-23-2016, 09:58 PM
Last Post: Vuhelper
  CS601 Data Communication Assignment No. 03 Solution 23rd January 2016 Vuhelper 1 1,926 01-23-2016, 06:09 PM
Last Post: Vuhelper
  CS403 Assignment No. 03 Solution 23rd January 2016 Vuhelper 2 1,162 01-23-2016, 03:18 PM
Last Post: Vuhelper
  CS506 Web Design and Development Assignment no 3 Solution 3rd January 2016 Vuhelper 0 2,240 01-23-2016, 03:16 PM
Last Post: Vuhelper
  CS724 Software Process Improvement Assignment No 01 Solution 20th January 2016 Vuhelper 0 1,964 01-20-2016, 06:26 PM
Last Post: Vuhelper
  CS711 Software Design Assignment No 01 Solution Due Date Feb 12, 2016 Vuhelper 0 1,661 01-20-2016, 06:24 PM
Last Post: Vuhelper
  CS709 Formal Methods for Software Engineering Assignment No 01 Solution January 2016 Vuhelper 0 1,795 01-20-2016, 06:22 PM
Last Post: Vuhelper
  cs703 assignment no 3 Solution 20th January 2016 Vuhelper 0 1,698 01-20-2016, 06:20 PM
Last Post: Vuhelper
  CS704 Assignment No. 01 Solution January 2016 Vuhelper 0 4,795 01-20-2016, 06:19 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)