saumil baxi

Ranch Hand
+ Follow
since Apr 18, 2008
Merit badge: grant badges
For More
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 saumil baxi

Thanks for the reply,
I agree it is not the best way to read the inputstream,
But the problem is the protocol between the client and the server is fixed and two separate people are implementing server and client , moreover client can send a multiple request simultaneously to hang the server and its upto the server to handle it.

So I can neither add the end tag nor can send out of order message to the client.

Thanks,
Saumil
12 years ago
Hi,
I have a Server/Client architecture. When the client send two message back to back to the server, it gets read at the same time.
below is my code which is reading from the inputStream

view plaincopy to clipboardprint?
String str = "";
while (in.available() > 0) {
byte [] b = new byte[in.available()];
in.read(b);
str = str + new String(b);
System.out.println(str);
}


So now when the client sends "Hi" and "Hello" as two different messages, both messages are read at the same point.

Any way I can separate two message?

Thanks,
Saumil
Hi,
I have a Server/Client architecture. When the client send two message back to back to the server, it gets read at the same time.
below is my code which is reading from the inputStream



So now when the client sends "Hi" and "Hello" as two different messages, both messages are read at the same point.

Any way I can separate two message?

Thanks,
Saumil
12 years ago
Hi,

I am writing a simple server client application,
at the server end whenever a client connects , server reads data and response back
but the server gets hang at bufferin.readline()



What is the best way to avoid if the client doesn't send an EOM. how to tell the server to stop reading from the Stream.

13 years ago
Hey Thanks , got it want i wanted .
14 years ago
Hi,
I want to checkout some tagged version from cvs and then want to create a branch for that version

I want to know whether how we can create a branch for a version.

Thanks,
Saumil
14 years ago
HI,
Can any one help me out with a code of how to tag cvs using ant script ...

Thanks,
Saumil
14 years ago
You can use Jquery Date Picker. I find it very nice

http://docs.jquery.com/UI/Datepicker
Just change this part of your code
15 years ago
JSP
Hi.

I am using fmt:message tag. if the given key is not found, then it returns
???<key>???. But I would like to return the key itself instead of prefixing
and suffixng with ???. Can the message tag be modified to take default
attribue? Als0, I looked into
org.apache.taglibs.standard.tag.common.fmt.MessageSupport.java but it defines
UNDEFINED_KEY has public static final!. Is there any solution to this problem
(I don't want to provide my own tag!)?

Thanks,
Saumil
15 years ago
JSP
As far as Lifery is concern . Your Form method should be POST . So just try keeping your form method as Post and try . []

Cheers,
Saumil
15 years ago
Use properties file for displaying the labels.

You can use <fmt> tag for specifying Resource bundle.

http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/fmt/tld-frame.html
[ December 24, 2008: Message edited by: saumil baxi ]
15 years ago
JSP
One small Thing dont try to build your complete application in just one portlet. Try to break it down business wise or functionality wise. So that you can reuse them any where you want.
15 years ago
i agree but I guess it would be in ideal condition. Time crunch and work load leads us to use scriptlets which can do your things faster rather then taglib.

I am working on Liferay Portal they have used both taglib and scriptlets .
15 years ago
JSP