What are setSecure() and getSecure() methods in Cookies?
Answer / harikrishna ravada
setSecure:
Indicates to the user agent that the cookie should only be
sent using a secure protocol (https). This should only be
set when the cookie's originating server used a secure
protocol to set the cookie's value.
public void setSecure(boolean flag)
getSecure:
Returns the value of the 'secure' flag.
public boolean getSecure()
| Is This Answer Correct ? | 1 Yes | 0 No |
Given the request path below, which are context path, servlet path and path info?
Write a program to show the functionality of servlets.
If my browser does not support cookie, and my server sends a cookie instance what will happen?
How to get the path of servlet in the server?
program for RequestDispatcher in servlets?
What's the architecture of a servlet package?
Can you create a deadlock condition on a servlet?
What are the new features added to servlet 2.5?
Explain url encoding in servlet?
I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>
What are the different methods involved in generic servlet?
How can you use a servlet to generate a plain text instead of html?