prabhatis

Greenhorn
+ Follow
since Apr 07, 2001
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 prabhatis

hi, sorry for the late posting . i was busy.
here is the soln,
thanx for reminding..
i am going to reregister my serf as prabhat kumar will this do ??
22 years ago
can u post the exact code and error what u get??
Prabhat kumar
22 years ago
can u post the exact code and error what u get??
Prabhat kumar
22 years ago
there r two solns for this.
1. create a bean to store the results of the query in a vector
and give it a session scope. pass the 'start'-prev and 'end'-next record no as parameters to it and retrieve the rows as needed. if u can't do by this idea then i can give u code ..but better u try first
2.use the suggestion as given by the arun ..but in this approoach u have only forward traversing(jdbc1.0) both directions(jdbc2.0) but u have to keep open the resultset object and this is cumbersome
i hope it will help u
PRabhat kumar
have a nice time in coding
22 years ago
ya jdbc2.0 comes with JDK1.3 built in.
if u want support for oracle LOBs then u will ned specific oracle classes for that, which comes with oracle distribution
try this ..
Connection con = getConnection();
CallableStatement cs = con.prepareCall("{? = call X2K.pkgQuotes.CHECKEXPIRATION(?, ?, ?)}");
cs.registerOutParameter(1, java.sql.Types.OTHER);
cs.setString(2, rootSymbol );
cs.setString(3, futureOption);
cs.setString(4, exchangeCode);
cs.execute();
rs = (ResultSet)cs.getObject(1);
while ( rs.next() )
{}
hope u can figure it out
if not ...just ask i'll be hapy to clarify
Prabhat
22 years ago
this code works for reading only text from the doc files
import java.io.*;
class test{
static void main(String args[]){
try{
DataInputStream fin=new DataInputStream(new FileInputStream("test.doc"));
DataOutputStream fout=new DataOutputStream(new FileOutputStream("test2.doc"));
int c=fin.read();
while (c!= -1){
//System.out.println(c);
fout.writeByte(c);
c=fin.read();
}
fin.close();
fout.close();
}
i think by using JNI i might be able to read and save word docs ..but i don't how to get handle of word OLE object using JNI
or go forward .
help in this regard is required
catch(Exception e){
}
}
}
22 years ago
hi .
just for information .. true for machines with ie5.0 or more and word97 or more installed.
u can get it opened in the browser itself
and can be able to edit it there itself.
i have tried to read the word file but till now only able to read the text only unfortunately ..
i'd appreciate any help in this regard ..
PRabhat kumar (Prabhatis)
22 years ago
First start with the spot you want people to be transported to. Pick a word and wrap it in the <A> tags.
<A>Add</A> the URL and you're done!

--------------------------------------------------------------------------------
Next give that spot a NAME.
<A NAME="upabit">Add</A> the URL and you're done!
What you have done is marked that spot. Now it can be referenced.

--------------------------------------------------------------------------------
Now start building the link.
Click <A>here</A> to be magically transported...

--------------------------------------------------------------------------------
Add the document to be referenced...
Click <A HREF="lesson04.html">here</A> to be magically transported...

--------------------------------------------------------------------------------
And lastly, add the anchor NAME like so...
Click <A HREF="lesson04.html#upabit">here</A> to be magically transported...
And that's all there is to it! Not exactly brain surgery is it??
22 years ago
u can't do anything like that ..
just bcoz u do not have any rights on the client side(user machine).
22 years ago
In Java, you specify literal strings between double quotes as in:
"I am a literal string of the String type."
You can use literal strings anywhere you would use a String object.
You can also use String methods directly from a literal string as in an earlier program which invokes the length() method on a literal string.
StringBuffer str6 = new StringBuffer( "StringBuffer named str6".length());
because the compiler automatically creates a new String object for every literal string, you can use a literal string to initialize a String object (without use of the new operator) as in the following code fragment from a previous program:
String str1 = "THIS STRING IS NAMED str1";
.The above construct is equivalent to, but more efficient than the following, which, according to The Java Tutorial by Campione and Walrath, ends up creating two Strings instead of one:
String str1 = new String("THIS STRING IS NAMED str1");
In this case, the compiler creates the first string when it encounters the literal string, and the second one when it encounters new String().
so it is advisable to not to use new operator for string creation .. as it is less efficient ..
22 years ago
hi sandeep,
i know how to extract and update BLOB fields in database.
my problem is ..
is there any way to have the functionality of saving word documents in browser itself? i mean accessing the properties of word document object that is displayed in the browser. that's it.
22 years ago
u do something like this :
String sDate = "TO_DATE('"+myDate+"','DD.MM.YYYY')";
now Query= "select * from tablename where datecol="+sDate;
hope it will help lemme know
22 years ago
try this .
String strUrl = URLEncoder.encode("path of ur servlet something like http:\\adress\\servlet\servletname\");
try
{
URL u = new URL(strUrl);
InputStream i = u.openStream();
//now u have inputstream .. u can u anything u like ...
}
catch(Exception e)
{}
hope it might help
22 years ago