Sara Tracy

Ranch Hand
+ Follow
since Jan 06, 2006
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sara Tracy

David Byron wrote:We use JDeveloper with jdk 1.6_xx without problems. Do you have a good reason not to upgrade from 10.1.2? The latest/greatest is relatively slick.

In any event, you can configure a JDev project to use an external jdk rather than the one that comes with it.

I don't think there is backward compatibility in JDeveloper, hence my applications might throw errors in a higher version of JDeveloper. So if I have both JDev 10.1.2 and JDev 11.x.x, can I have the latest JDK version on my machine? I read in the JDev 10.1.2 documentation, that I'm required to have JDK 1.4 if I need to work on JDev 10.1.2. I'm not sure what needs to be done?

I had jdk 1.4.2 installed on my Windows XP machine, and had developed applications using JDeveloper 10.1.2.

I'm upgrading to Windows 7, and my question is whether I can install a higher version of JDK (say 6.0) on my machine, and also download a complete installation of JDeveloper 10.1.2, so that I can refer to the SDK version 1.4.2 that comes with the JDeveloper installation?

Or is it required that I should have jdk 1.4.2 installed on my Windows 7 to work with applications that I developed using JDeveloper 10.1.2?

Any help appreciated.
"copyFiles.bat" which sits on "ServerA" calls "copy.jar" to copy files from ServerA to ServerB.

When I run copyFiles.bat from ServerA, the files get copied successfully. However, when I use an application (say Oracle Forms) to run copyFiles.bat, then it fails with message "Access is Denied".

How do I fix this issue? The directories are all shared and given full control.

14 years ago
When I enter a few criteria on a web page(example: startdate and enddate), the results are displayed. Next, I do a File->Save as->"results.txt", and save it. When I open "results.txt", then the line breaks appear.

I'm trying to save a html file, as a text file. When I open the text file, there are unnecessary line breaks /carriage returns appearing in the middle of the text. How do you avoid these ? I want them to appear the same way as a html file - each record in one line only.

In html file:

After saving it as a text file and opening it

Notice that only certain lines have line breaks..

[ August 25, 2006: Message edited by: Sara James ]
I have included close() and flush(). I also got rid of the extra ByteArrayInputStream, but still the file contents aren't displayed.
There is no error as well, not sure where the problem is. Thanks.

17 years ago
hi !

I'm using the following snippet to read a file contents (data.txt) and stream out through ServletOutputStream.

However, when the file is encrypted, I would like to decrypt it, and then stream it out via ServletOutputStream. I call an encryption program that decrypts the file (dataenc.txt) and returns the data as a byte array. How do I use this byte array with ServletOutputStream ?

I tried using the below code, but nothing is returned.

Can anybody tell me what's wrong in the code ? thanks.
[ August 09, 2006: Message edited by: Sara James ]
17 years ago

I'm using Oracle's JDevloper for writing programs, and deploying it to Tomcat. I have deployed a web application which is in package "aa.mypacakge". I have also written an encryption program, and this class "enc.class" will be accessed by anybody in our team. Even my program needs to access this class file.

So where should I place it in the Tomcat directory (on the server)? Is it in Tomcat\common\classes ? And how do I have to access it from my program which is calling this class ? Is it

import common.classes.enc;

Any help appreciated
17 years ago

I'm using this code to connect to an Oracle databse

When I run this program on my local machine, it works fine, and gets me the result.

However when I deploy this application, and call a servlet (Say X) accessing this class (say Y), it throws an internal server error, and displays "connection close"

Now in class 'Y', even if I'm not calling the method (having the above database connection code), it still throws the error ! Only if I have this code commented, then the rest of the deployed application works properly without any errors.

Any suggestions appreciated.

I know how to read data from a ServletInputStream (or a FileInputStream) and write it to ByteArrayOutputStream.

However, I would like to read a String in an InputStream and write it to a ByteArrayOutputStream ? For example:
String data = "<?xml version=\"1.0\"?>";
How do I do that ?

17 years ago

This question pertains to PLSQL Web Applications.

I'm trying to display some Chinese data on a html page. The data is stored as CLOB in the Oracle database. This piece of code works fine for English data, but for Chinese data it displays upside down question marks. I'm sure it is an encoding issue, but I don't know how to resolve it. Can anybody help me please.

stem clob;
select v.xtext.getClobVal()
into stem
from item_text v
where item_identifier = 31784;

htp.print('<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>');
htp.print('<meta http-equiv="Content-Language" content="zh">');
htp.print('you have reached the chinese page !!');

Also when I run the below statement in iSQLPLus, I'm able to get the correct Chinese data.

select v.xtext
from item_text v
where item_identifier = 31784;

Thanks Campbell and Stan !
17 years ago
hi !
Can I make a method call from a constructor as given below :

17 years ago