Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link

Preethi M

Greenhorn
+ Follow
since Oct 24, 2000
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Preethi M

Thanx George.I will change my username today.but feeling bad about my postings.anyway thanx once again
Preethi.
21 years ago
Mr George Brown
A small help from u,why don't u people suggest me what to be put in the place of 'M'.This is why because i have to keep on changing my userid if it is not valid once again.Its my pleasure taking part in such a forum.pls encourage us.
Regards
Preethi
21 years ago
Mr Frank,
I donot have any first name or last name,so i gave "preethi" but it was not accepted,so i gave Preethi M.
How can u help me in this regard.
Regards
Preethi M
21 years ago
Hi Karan,
When the cookie's expiry time is set it should and will expire.I have tried it out and it worked fine.If u could send me ur code maybe i can help u out.
Thanx
Preethi M
21 years ago
Hi Karan!
When we set the expiry time for a cookie it will definetly expire.when u try to retrive the cookie ,if the cookie is not existing it will give an exception.Can u give me in detail how u have checked out that the cookie still persists.
Regards
Preethi M
21 years ago
Hi Sanjay!
I have a solution from which site the user actually clicked the ad.
public class test extends HttpServlet
{
public void service(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
{
res.setContentType("text/html");
PrintWriter out=res.getWriter();
String referer=req.getHeader("Referer");//the referer value will be ur required URL.
}
}
}
Hope this will help u.
REGARDS
Preethi M
21 years ago
Hi Sam!
In ur program u replace i++ to ++i and see the output.
The result u get is obviously 1.
The reason is that in the case of
i=i++
'i' is assigned the value and then incremented.
in the case of
i=++i;
'i' is incremented and then the value is assigned.
Hope ur doubt is clear.
Good Luck
Preethi M
21 years ago
Hi Rahul!
Here are the steps for u to proceed with servlets.
1. Go to "c:/javawebserver2.0/bin/httpd" This starts ur webserver.
2. Complie and Save the javafile in servlets directory.
3. Save the html file in public_html directory.
4. Open the browser type "http://localhost:8080/servlet/javafilename"
Hope it's clear.
Have a Nice Day
Preethi M
21 years ago
Hi deb uebersetzig!
The solution to ur previous problem is given below.
import java.lang.*;
public class ReasonJava
{
public static void main(String[] args) throws Exception
{
String[].....
System.out.println("Enter why you like Java..pick number 0 - 9: ");
char inputChoice=(char)System.in.read();
int inputNum = 0;
inputNum=Character.getNumericValue(inputChoice);
System.out.println("You have chosen " + inputNum);
System.out.println(inputNumber[inputNum]);
}
}
Try this out.Hope this will satisfy u.
Good Luck
Preethi M
21 years ago
Hai Haritha!
U can go for the Shopping Cart program using Sessions.u need a database.using sessions u try to retrive the stored values which the user selects and then finally display the selected products.This is basic flow.Regarding the search engine do u want to go for a simple process?
Thanks
Preethi
21 years ago
Hi Teajl,
When dealing with small sets of public data using cookies or URL rewriting is accepatable.
when dealing with private and large amounts of data preffered method is to use HttpSession object.so by sending small amount of data to the client u can associate each user with large amount of data on the server.
Good Luck
Preethi
21 years ago
Hai Neeraja!
Since you are new to servlets i think it is better to start with sun's tutorial.you will have a basic idea.Here is the link. http://java.sun.com/docs/books/tutorial
All the Best
Preethi.
21 years ago
Hai Abhiram!
1.My answer to ur first question is that all the 20 packets are received in the same order they r sent,but the remaining 5 packets are lost.
2.The user interface will not freeze when the clients request is being responded by the server and more over when the user issues another request the first one does not interfere with the second.
TCP provides a point-to-point channel for applications that require reliable communications
3.MIME - Multipurpose Internet Mail Extension
It's away to decode native or binary to 7-bit ASCII code
MIME is the official proposed standard format for extended
Internet electronic mail. The MIME format permits email
to include enhanced text, graphics, audio, and more, in a
standardized and interoperable manner.
There are different MIME tpyes
for eg:
text/html
text/plain
image/gif and so on.

MAX_RADIX,MIN_RADIX
They r the CLass Character Constants.
they r the maximum/minimum radix's available for conversion to and from Strings. The constant value of field is the largest/smallest value permitted for the radix argument in radix-conversion methods such as the digit method, the forDigit method, and the toString method of class Integer.
Thanks
Preethi
Hai Sailaja!
Here is a brief description of servlets and difference between servlet and JSP
Servlets are modules that extend request/response-oriented servers, such as Java-enabled web servers. For example, a servlet might be responsible for taking data in an HTML order-entry form and applying the business logic used to update a company's order database.Servlets are to servers what applets are to browsers. Unlike applets, however, servlets have no graphical user interface
It is true that both servlets and JSP pages have many features in common, and can be used for serving up dynamic web content.
It is interesting to note that what is commonly known as the "JSP engine" itself is a specialized servlet running under the control of the servlet engine. Since JSP only deals with textual data, you will have to continue to use servlets when communicating with Java applets and applications.
Both JSP and ASP are server side programs.
Hope u find this information useful.
Good Luck
preethi
21 years ago
Hi Pandyan!
U cannot access a servlet without creating an instance of it.
thanks
preethi
21 years ago