prasad bhn

Greenhorn
+ Follow
since May 04, 2001
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 prasad bhn

1. before ejbCreate()
2. after ejbCreate()
3. after ejbPostCreate()
4.within ejbCreate()

Thank You.
hi all
i am accessing servlets/jsp files in Netscape 4.61. i disabled cookies in the browser.
my servlets/jsp files are not working.
i read that when cookies are disabled, server will fall back to URL Rewriting...
i am using Tomcat 4.0.1. whats wrong??
thanks a lot for ur help.
prasad.
[ July 25, 2003: Message edited by: prasad bhn ]
19 years ago
JSP
<%@ include file="filePath"%> include directive is used to include STATIC files at TRANSLATION time which will be PARSED by JSP Engine.
<jsp:include page="pageURI"/> include action is used to include STATIC / DYNAMIC files at REQUEST PROCESSING time which will NOT be PARSED by JSP Engine.
19 years ago
JSP
hi friends
thanks a lot for your replies and support.
with regards, prasad.
19 years ago
hi friends
I need to find out the client information using the "request" object of HttpServletRequest.
1. Client Time Zone
2. Client Browser is Java Enabled or Not
3. Client System's Screen Resolution
any help, greatly appreciated..
Thanks in Advance, prasad.
19 years ago
i got the solution and it is based on Synthetic Primary key only.
------------------
iic systems pvt ltd.,
babukhan millennium center,
somajiguda,
hyderabad-38.
Hi Peter,
Can you help us by giving sample code to generate a Synthetic Primary Key( generalized/independent on the columns of the table)
..
TIA,prasadbh
Thanks for the reply Peter..
you are right in the case of synthetic primary key using a sequence. We already planned this way, as the LAST Option.
But we believe in the long form of date, as we can get Nano seconds of the hit, by using java.sql.Timestamp class, we are hopeful that we can get the solution in some way.
But we came to notice that, when i apply MY PROBLEM for creating ordinary objects in a standalone program using below code, nano seconds concept also doesnt work.
import java.util.Date;
import java.sql.Timestamp;
public class TimeStampNanoSeconds
{
public static void main(String[] args)
{
Date d=new Date();
Nano(d);
}
public static void Nano(Date date)
{
Timestamp ts=new Timestamp(date.getTime());
System.out.print(date.getTime());
System.out.println("\tNano==="+ts.getNanos());
Date d1=new Date();
Nano(d1);
}
}
but we are hopeful that we will get a UNIQUE "long" number when it is in the case INSERTION into database table or any other databse transactions.
AM I confusing anybody?? if so, dont hesitate to clarify with me...
Many Thanks One and All,prasadbh.
hi friends,
i am in a very specific context in which i got a doubt.
here it is......
i have a link on a web page, over which 100's of hits can occur per second.
i just want to INSERT the hit on my link into the database Oracle 8i.
my problem here is, if 100 users hit my link at the SAME time, up to the same millisecond, is there any way to distinguish all the 100 users by inserting the hit in Oracle 8i, by using java.util.date/java.sql.date.
I want to store that hit date as "long" of java.util.date in the database.
my actual idea is, by differentiating all the 100 users to different time stamps(even by millisecond), i just want to make that date column UNIQUE in my database..
TIA,prasadbh.
what is the "filtering" concept in the filter streams of java
like DataInput/DataOutput Streams and BufferedInput/Output Stream.
can anybody explain the concept of "filtering" in the above streams..
TIA,
- prasadbh.
20 years ago
you can also get the paths using
getPath()
getCanonicalPath() of File Class...

Originally posted by Mandar Tambe:
How to get a filepath of a file stored anywhere in the system?


20 years ago
it would be more helpful to find out the bug if post the entire code for this program..

Originally posted by Lijoy John:
Thanks for replying back,
The problem is i am running a Daemon which picks up about 4 ids' from the database and then proceses the Http request.
I get this error exactly at the tihird time when the daemon picks up the same ids. First and second time it works fine , but third time it Gives java.io.BrokenPipe eXception..

The code where the exception comes up is :
uc.setDoInput(true);
uc.setDoOutput(true);
uc.setUseCaches(false);
uc.setRequestProperty("Content-type",
"application/x-www-form-urlencoded");
uc.setRequestProperty("Content-length",""+data.length());
DataOutputStream dos=new DataOutputStream(uc.getOutputStream());
dos.writeBytes(data);
dos.flush();
dos.close();//// THIS IS WHERE THE CODE BREAKS & EXCEPTION COMES
//tHIS IS LINE NUMBER 75


20 years ago
hi rerun,
you are 100% correct!
- prasadbh.
20 years ago
you can list the roots of the OS by using the
static File[] listRoots() method of File Class.
as you might have C: and D: for windows OS!
and after that you can follow up easily using the hints by
Toyin Sogeke..
- prasadbh.
20 years ago
hi richard,
i think you have to get a Socket object by accepting the object sent by clinet at your serverside, using accept() method of ServerSocket.
after that, you need to get the InputStream using that socket object like
InputStream ins=socketobject.getInputStream();
using the ins object, you have create the ObjectInputStream like this.
ObjectInputStream ois=new ObjectInputStream(ins);
and after that....its very easy to solve ur problem...
HTH

Originally posted by Richard Robbins:
I am trying to send an Object from a client to a server via a socket connection. How does one read the Object from the ObjectInputStream on the server side?


20 years ago