DB Links and Synonyms - Help please
Hi,
I have two databases, say 'db1' and 'db2'
In 'db1' database,
I have created one user, 'usr1' and who has access to all tables in a schema 'sch'
In 'db2' database, (following all actions are in 'db2' database)
I have created public database link, 'dblink.world' connect to usr1 identified by password using db1.
I have also created one public synonym, db1_tab1 for [email protected];
when I query like, select * from db1_tab, I am getting output.
But in Toad, if I select 'db1_tab1' in 'Synonyms' tab, I am getting following error. I don't have any LONG columns in the table.
ORA-00997: illegal use of LONG datatype
I am working on Oracle release 9.2.
Please help me to resolve this error.
Thanks.
If TOAD isn't working you may have to get another tool or patch the version of TOAD :(
Oracle SQL Developer offers much the same funcitonality and is free; you can download it from OTN.
Similar Messages
-
After effects and photoshop ,,,help please
hi all
can anybody help please.
ive been making a short film with my son and putting some basic effects in, just for a laugh.
i noticed an effect on ADOBE TV that was done by Gareth Edwards in his movie MONSTERS which i thought would be good to try out in my film but i carnt get it right,,
here is the link to that effect... http://tv.adobe.com/watch/customer-stories-video-film-and-audio/monsters/
its the effect where he changes the menu board in a cafe to one of his infected area signs, he allso changes a few other signs.
in the video he say that he exports a still frame from after effects into photoshop and puts on his image {with a few tweaks her and there}, when hes got it ok in photoshop ,it some how updates in after effects??
can any please help ,thank youIt's a simplified explanation of the process. He left out explanations of motion tracking and perspective matching that were most certainly required for the shot being discussed.
If you are doing the same process to a static, locked off shot, with no foreground objects passing in front of your sign, it would be very possible to create a single frame in Photoshop and just layer it over your scene in AE. But once the camera moves, you will need to understand Motion Tracking. If objects pass in front of the replaced component, you will need to understand Masking. -
Hello,
I am making this feedback for fun and a bit of learning too. I have an INDEX.JSP page, where the user selects the very first option. Depending upon the selected option he is moved another page PRODUCTFEEDBACK.JSP (so far I have completed this). Here as usual there are many fields to be filled in. As a spams protection i have done this;
I have a AdditionClass, which is a seperate class where two number are generated at random. This numbers are called by PRODUCTFEEDBACK.JSP. The user is then asked to perform the addition. The completed form is then sent to ProductFeedback servlet.
When I compile my PRODUCTFEEDBACK.JSP I get this error. Can you please tell whats wrong?
PRODUCTFEEDBACK.JSP
*<td>Please help us to prevent Spams by performing this simple mathematical Calculation. We appreciate your effort </td>*
*</tr>*
*</table>*
*<jsp:useBean id = "AddTest" class = "go.AdditionClass" />*
*<table width="53%" border="0" align="center">*
*<tr>*
*<td><div align="center">*
*<input name="textfield8" type="text" size="3" value ="<jsp:getProperty name="AddTest" property = "randNum1" />">*
* + *
*<input name="textfield9" type="text" size="3" value="<jsp:getProperty name="AddTest" property = "randNum2" />">*
* = *
*<input name="_total" type="text" size="5">*
</div></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<br>
<table width="37%" height="23" border="0" align="center">
<tr>
<td width="33%"> </td>
<td width="67%"><input type="submit" name="Submit" value="Click here to send us this form"></td>
AdditionalClass.java
* To change this template, choose Tools | Templates
* and open the template in the editor.
package go;
import java.util.Random;
* @author MAC
public class AdditionClass {
Random generator = new Random();
int randNum1; // First Random Number
int randNum2; // Second Random Number
public void SetNum1(){
randNum1 = generator.nextInt(10); // Generate First Random Number
public int getNum1(){
return randNum1; //Return First Random Number
public void SetNum2(){
randNum2 = generator.nextInt(10); // Generate Second Random Number
public int getNum2(){
return randNum2; // Return Second Random Number
// send the Random Numbers to ProductFeedback class
public void productFeedbackRandNum1(){
ProductFeedback productfeedback = new ProductFeedback();
productfeedback.randomNumber1(randNum1);
public void productFeedbackRandomNum2(){
ProductFeedback productfeedback = new ProductFeedback();
productfeedback.randomNumber2(randNum1);
}Erros that I am getting:
org.apache.jasper.JasperException: Cannot find any information on property 'randNum1' in a bean of type 'go.AdditionClass'
C:\Documents and Settings\MAC\My Documents\NetBeansProjects\FeedBack\nbproject\build-impl.xml:462: The following error occurred while executing this line:
C:\Documents and Settings\MAC\My Documents\NetBeansProjects\FeedBack\nbproject\build-impl.xml:440: Java returned: 1
BUILD FAILED (total time: 1 second)Thank you for replying. I modified my Bean class then what is posted above, so thought to repost the code again and seek help. There seems to be no error now but it just dont generate any random numbers, All i get very time is 0. I am wondering, is my code generating 0 as random number, every time :-)
package go;
import java.util.Random;
public class AdditionBean {
int randNum1; // First Random Number
int randNum2; // Second Random Number
public void generateRandomNum1(){
Random generator = new Random();
int num1 = generator.nextInt(10);
SetRandNum1(num1);
// Send num1 value to ProductFeedback.java
ProductFeedback productfeedback = new ProductFeedback();
productfeedback.randomNumber1(num1);
} // End of generaeRandomNum1
public void generateRandomNum2(){
Random generator = new Random();
generator = new Random();
int num2 = generator.nextInt(10);
SetRandNum2(num2);
// Send num1 value to ProductFeedback.java
ProductFeedback productfeedback = new ProductFeedback();
productfeedback.randomNumber2(num2);
} // End of generateRandomNum2
public void SetRandNum1(int num1){
randNum1 = num1;
public int getRandNum1(){
return randNum1; //Return First Random Number
public void SetRandNum2(int num2){
randNum2 = num2;
public int getRandNum2(){
return randNum2; // Return Second Random Number
}// End of classThank you, -
Mail and password: Help please!!!
I have changed my password and on my iPhone and iPad there is no problem. However, on my iMac, 10.8.2 every time I put the computer to sleep and then wake it up again Mail tells me to verify my password. I press OK but it refuses to accept and I am forced to go to System Preferences, then mail where I press OK for the same password and the whole thing then works.
In Yahoo it works perfectly!
What is happening in Mail. I have deleted the account in preferences and set it up again but all to no avail.
Help please!!!You might try the following steps:
Restart the device by holding down the on/off button until the power down slider appears.
Try entering your password in another location (i.e. when you are using a different wifi network)
Reset all settings (settings > general > reset), this resets some of your settings to factory default. It’s not a complete removal of settings. It removes all of your preferences for Wi-Fi, Bluetooth, Do No Disturb, Notifications, General, Sounds, Brightness & Wallpaper and Privacy. It does not remove any of your data.
Try signing out of iCloud and back in (only if find my phone is disabled)
If this doesn’t help your best option may be to contact Apple ID Support, upon speaking to an operator you should explain that your problem is related to your Apple ID, this way you will not be charged for assistance, even if you don’t have an AppleCare plan. -
My iPod touch has no sound from music and videos help please
My iPod touch has no sound at all, help please guys.
- The restore from backup
- If still problem restore to factory defaults/new iPod.
- Last, make an appointment at the Genius Bar of an Apple store. -
HT5622 After installing iTunes Match I have lots most of my iTunes songs and albums help please
After installing iTunes Match I have lost most of my songs and albums help?
iTunes Match on the computer will not change the library content. The iTunes Match 3 step process must complete on the computer based library before being associated with any IOS devices.
It is always important to make a secure backup of your Song files prior to these activities. -
Spry gallery - image link to url and autostart help please
Can anyone help with:
1) autostart the gallery
2) click on full size image to go to a url
Both questions are for image gallery example
I would like the gallery to autostart but cannot get it to
work with onload.
Also, to click an image an goto a url -I know the url should
be in the photos.xml files but I could really use details on how to
add to the html file, or would it be better handled with a
gallery.js function?The reason why it might not work on load is because you need
to wait until the thumbnail region has been generated.
Look for this line in gallery.js:
setTimeout(function() { ShowCurrentImage(); }, 100);
and change it to:
setTimeout(function() { ShowCurrentImage(); StartSlideShow();
}, 100);
We really shouldn't need to use timers anymore to do all of
this, but I didn't get a chance to update the gallery demo to use
some of the new things we added for preview release 1.1. It will be
cleaned up in the next release.
As for going to a URL, if you're going to wrap the main image
with a link, you'll have to modify SetMainImage() in gallery.js to
account for the change in parent hierarchy.
You'll probably have to add some code in SetMainImage() to
update the href of the link to point to the specific url for that
image.
--== Kin ==-- -
Routes, gateways, and networks -- Help Please
Hi Linux gurus:
I have a problem that I know you will help me resolve...
I have two network cards in my Linux box.
1. public network:
10/100
192.168.1.102
default gw: 192.168.1.1
netmask: 255.255.255.0
I want this one routed to my router for internet/public use
2. private network 1000mpbs
192.168.2.181
default gw: none
netmask: 255.255.255.0
I don't want this one routed at all. It is used for backups, moving files, etc and is called by individual servers using /etc/hosts.
Now problem is that I can't get out and/or in to the box. It appears as though the default gateway on this system is 192.168.2.254. I set up the network via the gui and it appeared to be working, but alas it is not. It looks like things are only talking via the 192.168.2.X network, and that is not what I want...and from the outside world, nothing at all is talking to it.
Below is my ifconfig -a and my netstat -rn
Please help!
eth0 Link encap:Ethernet HWaddr 00:18:F3:E8:29:2A
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:193 Base address:0x8000
eth1 Link encap:Ethernet HWaddr 00:90:27:AC:7C:4D
inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5339 errors:0 dropped:0 overruns:0 frame:0
TX packets:1891 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:588251 (574.4 KiB) TX bytes:530473 (518.0 KiB)
eth2 Link encap:Ethernet HWaddr 00:0F:B5:43:16:D0
inet addr:192.168.2.181 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:300106 errors:0 dropped:0 overruns:0 frame:0
TX packets:617831 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:28009736 (26.7 MiB) TX bytes:585354764 (558.2 MiB)
Interrupt:217 Base address:0xc000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:816528 errors:0 dropped:0 overruns:0 frame:0
TX packets:816528 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:102034952 (97.3 MiB) TX bytes:102034952 (97.3 MiB)
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2
0.0.0.0 192.168.2.254 0.0.0.0 UG 0 0 0 eth2Ok...I did the following:
route add default gw 192.168.1.1 eth1
route delete default gw 192.168.2.254 eth2
I am able to get out to the outside world and it seems to work fine, but just curious:
1. How do I keep this from reverting again? (I could put this in my own script, but would rather not hack it, but do it right)
2. Are my routing tables below correct now (it works I understand, but want to ensure it is done correctly).
3. What is this route for (in the below table) and is it needed?
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2
4. Since i'm relying on /etc/hosts files for the systems on the 192.168.2.X interface should there even be a route for this subnet?
updated routing table:
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth1 -
I am new and need help please...
Hello, I used up my subscription time before the month was up so I bought credit. It says that my subscription would refill on today's date, but it hasn't. I had to buy more credit to call. I emailed Skype and they said it's because I have reached an Unmonitored alias and gave me a link to the support Page... What do I need to do to resolve this? Can someone please help me?
please contact Skype customer service
TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
I recommend that you always run the latest Skype version: Windows & Mac
If my advice helped to fix your issue please mark it as a solution to help others.
Please note that I generally don't respond to unsolicited Private Messages. Thank you. -
J6480 wireless and network help please!
I have an officejet J6480 that has an error in printing system when printing wireless. Everything is configured correctly and my printer reads the router and connects. If this problem cannot be fixed, can i use an ethernet connection directly from printer to router and get it to work. I tried this but also got a failure to print message. Please help asap! Thank you
hello,
first, cancel the print jobs
then try to restart the print spooler of the computer (click start>run... then type services.msc)
look for print spooler in the list
right click on the print spooler and click restart
if that doesnt work, then do a partial reset on the printer
unplug the power cord from the back of the printer without pressing the on button
press and hold # and 3 and wait for 10 seconds
plug the power cord back
wait for the printer screen to lit up then release the # and 3
try to ping the printer
try to print a test page again
keep me informed.. -
New to iCloud and need help please with getting it working
I've got an iPad 2 and an iPhone 5 and have decided that it's about time to set up iCloud on my devices. I have followed the instructions on the website and in the icloud settings on both devices have switched on mail, contacts, calendars, reminders, safari, notes, photostream (my photo stream-on), documents and data, find my iphone, and icloud backup on. I have ensured that both devices have been backed up and automatic downloads on iTunes & App stores have all been switched on.
I have not yet set up my PC for iCloud.
My understanding is that icloud will sync new downloads and photos etc so I have just tried taking a picture on my iphone, expecting it to appear in my camera roll on my iPad and nothing has happened.
Please can someone advise me if I am doing something wrong or how to resolve this.
Many thanks.Welcome to the Apple Community.
Photostream only syncs photos over Wi-Fi, make sure you are connected to Wi-Fi to begin with.
Photostream only syncs when the camera app is closed, ensure it is closed.
Photostream only syncs when the battery is above 20%, try recharging the device
Try disabling photo stream on your device (settings > iCloud), restarting your device and then re-enabling photo stream.
If this doesn't help you may need to reset photo stream. You can do this at icloud.com by clicking on your name in the top right corner and then the advanced settings in the pop-up dialogue box that appears.
Note: disabling photostream and re-enabling it will result in any photos that are currently in the photostream album on your device, that are older than 30 days old, not being added back. -
I'm new to java and need help please
I have an assignment involves modifying a previous assignment. the code for the previous assigment is shown below.(it was required to be done as an applet this assigment can be an application or an applet) I'm trying to modify this code to read a text file (items.txt) that looks like this:
item # description price(this line does not appear in the text file)
001 shaving cream 400.00
999 razors 30.00
I need to load the item# and price from the text file into arrays(I have no clue how to use multi-dimensional arrays in java and would prefer not to)
I need to search the arrays based on the values entered by the user (item # and quantity) calculate the total for that item then create a new text file which has each line item for that order in the form:
item# quant price per item total(price per item*quant entered)
also also I need to be able to display the four items listed above after each loop as well as all the previous item number and quantities they selected until they indicate they don't want to select anymore.
I've been working on this for days and it seems like nothing I try works. My major problems are:
1. I have no idea how to read the text file and load those 2 items into their respective arrays
2. I can't seem to create a textfile that looks like text for the output file.
code]
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.text.*;
import java.util.Locale;
public class arraySelection
extends JApplet {
//Initialize the applet
private Container getContentPane=null;
public void init() {
String string_item, string_quantity;
String output = "";
String description= "";
int counter= 0;
int itemNumber= 0;
double quantity = 0 ;
double tax_rate=.07;
double total= 0, price= 0;
double tax, subtotal;
double Pretotal= 0;
double priceArray[] = {1, .5, 3.65, 0.02, 0.09};
String descriptionArray[] = {"salt", "pepper", "paprika", "garlic", "thyme"};
// create number format for currency in US dollar format
NumberFormat moneyFormat = NumberFormat.getCurrencyInstance( Locale.US );
//format to have the total with two digits precision
DecimalFormat twoDigits = new DecimalFormat("0.00");
//Jtextarea to display results
JTextArea outputArea = new JTextArea ();
// get applet's content pane
Container container = getContentPane ();
//attach output area to container
container.add(outputArea);
//set the first row of text for the output area
output += "Invoice\nItem#\tDescription\tQuant@Price\t Line Total" + "\n";
do //begin loop structure obtain input from user
// obtain item number from user
string_item = JOptionPane.showInputDialog(
"Please enter an item number 1, 2, 3, 4, or 5:");
//obtain quantity of each item that user enter
string_quantity = JOptionPane.showInputDialog("Enter the quantity:");
// convert numbers from type String to Integer or Double
itemNumber = Integer.parseInt(string_item);
quantity = Double.parseDouble(string_quantity);
switch (itemNumber) {//Determine input from user to assign price and description
case 10: // user input item =10
price = priceArray[0];
description = descriptionArray[0];
break;
case 20: // user input item =20
price = priceArray [1];
description = descriptionArray[1];
break;
case 30: //user input item =30
price=priceArray[2];
description = descriptionArray[2];
break;
case 40: //user input item =40
price=priceArray[3];
description = descriptionArray[3];
break;
case 50: //user input item =50
price=priceArray[4];
description = descriptionArray[4];
break;
default: // user input item is not on the list
output += "Invalid value entered"+ "\n";
price=0;
description= "";
//Calculates the total for each item number and stores it in subtotal
subtotal = price * quantity;
//display input from user
output += itemNumber + "\t" + description + "\t\t"+ quantity + "@" +
moneyFormat.format( price) + "\t" + moneyFormat.format( subtotal) + "\n";
//accumulates the overall subtotal for all items
Pretotal = Pretotal + subtotal;
//verifies that the user wants to stop entering data
string_item = JOptionPane.showInputDialog(" Enter a positive integer to continue or 0 to stop. ");
itemNumber = Integer.parseInt(string_item);
// loop termination condition if user's input is 0 .It will end the loop
} while ( itemNumber!= 0);
tax = Pretotal * tax_rate; // calculate tax amount
total = Pretotal + tax; //calculate total = subtotal + tax
//appends data regarding the subtotal, tax, and total to the output area
output += "\n" + "Order Subtotal" + "\t" + moneyFormat.format( Pretotal) +
"\n" + "Tax" + "\t\t" + twoDigits.format( tax ) + "\n" + "Order Total" +
"\t\t" + moneyFormat.format( total );
//attaches the data in the output variable to the output area
outputArea.setText( output );
} //end init
}// end applet Invoice
Any help or sugestions would be greatly appreaciated. I've been working on this for over a week and everything I try goes nowhere.item # description price(this
line does not appear in the text file)
001 shaving cream 400.00
999 razors 30.00
I need to load the item# and price from the text file
into arrays(I have no clue how to use
multi-dimensional arrays in java and would prefer not
to)That's good, because you shouldn't use multidimensional arrays here. You should have a one-dimensional array (or java.util.List) of objects that encapsulate each line.
I've been working on this for days and it seems like
nothing I try works. My major problems are:
1. I have no idea how to read the text file and load
those 2 items into their respective arrays
2. I can't seem to create a textfile that looks like
text for the output file.The java.io package has file reading/writing classes.
Here's a tutorial:
http://java.sun.com/docs/books/tutorial/essential/io/index.html -
I'm new to java and need help please(repost)
I have an assignment involves modifying a previous assignment. the code for the previous assigment is shown below.(it was required to be done as an applet this assigment can be an application or an applet) I'm trying to modify this code to read a text file (items.txt) that looks like this:
item # description price(this line does not appear in the text file)
001 shaving cream 400.00
999 razors 30.00
I need to load the item# and price from the text file into arrays(I have no clue how to use multi-dimensional arrays in java and would prefer not to)
I need to search the arrays based on the values entered by the user (item # and quantity) calculate the total for that item then create a new text file which has each line item for that order in the form:
item# quant price per item total(price per item*quant entered)
also also I need to be able to display the four items listed above after each loop as well as all the previous item number and quantities they selected until they indicate they don't want to select anymore.
I've been working on this for days and it seems like nothing I try works. My major problems are:
1. I have no idea how to read the text file and load those 2 items into their respective arrays
2. I can't seem to create a textfile that looks like text for the output file.
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.text.*;
import java.util.Locale;
public class arraySelection
extends JApplet {
//Initialize the applet
private Container getContentPane=null;
public void init() {
String string_item, string_quantity;
String output = "";
String description= "";
int counter= 0;
int itemNumber= 0;
double quantity = 0 ;
double tax_rate=.07;
double total= 0, price= 0;
double tax, subtotal;
double Pretotal= 0;
double priceArray[] = {1, .5, 3.65, 0.02, 0.09};
String descriptionArray[] = {"salt", "pepper", "paprika", "garlic", "thyme"};
// create number format for currency in US dollar format
NumberFormat moneyFormat = NumberFormat.getCurrencyInstance( Locale.US );
//format to have the total with two digits precision
DecimalFormat twoDigits = new DecimalFormat("0.00");
//Jtextarea to display results
JTextArea outputArea = new JTextArea ();
// get applet's content pane
Container container = getContentPane ();
//attach output area to container
container.add(outputArea);
//set the first row of text for the output area
output += "Invoice\nItem#\tDescription\tQuant@Price\t Line Total" + "\n";
do //begin loop structure obtain input from user
// obtain item number from user
string_item = JOptionPane.showInputDialog(
"Please enter an item number 1, 2, 3, 4, or 5:");
//obtain quantity of each item that user enter
string_quantity = JOptionPane.showInputDialog("Enter the quantity:");
// convert numbers from type String to Integer or Double
itemNumber = Integer.parseInt(string_item);
quantity = Double.parseDouble(string_quantity);
switch (itemNumber) {//Determine input from user to assign price and description
case 10: // user input item =10
price = priceArray[0];
description = descriptionArray[0];
break;
case 20: // user input item =20
price = priceArray [1];
description = descriptionArray[1];
break;
case 30: //user input item =30
price=priceArray[2];
description = descriptionArray[2];
break;
case 40: //user input item =40
price=priceArray[3];
description = descriptionArray[3];
break;
case 50: //user input item =50
price=priceArray[4];
description = descriptionArray[4];
break;
default: // user input item is not on the list
output += "Invalid value entered"+ "\n";
price=0;
description= "";
//Calculates the total for each item number and stores it in subtotal
subtotal = price * quantity;
//display input from user
output += itemNumber + "\t" + description + "\t\t"+ quantity + "@" +
moneyFormat.format( price) + "\t" + moneyFormat.format( subtotal) + "\n";
//accumulates the overall subtotal for all items
Pretotal = Pretotal + subtotal;
//verifies that the user wants to stop entering data
string_item = JOptionPane.showInputDialog(" Enter a positive integer to continue or 0 to stop. ");
itemNumber = Integer.parseInt(string_item);
// loop termination condition if user's input is 0 .It will end the loop
} while ( itemNumber!= 0);
tax = Pretotal * tax_rate; // calculate tax amount
total = Pretotal + tax; //calculate total = subtotal + tax
//appends data regarding the subtotal, tax, and total to the output area
output += "\n" + "Order Subtotal" + "\t" + moneyFormat.format( Pretotal) +
"\n" + "Tax" + "\t\t" + twoDigits.format( tax ) + "\n" + "Order Total" +
"\t\t" + moneyFormat.format( total );
//attaches the data in the output variable to the output area
outputArea.setText( output );
} //end init
}// end applet InvoiceAny help or sugestions would be greatly appreaciated. I've been working on this for over a week and everything I try goes nowhere.First answer: You shouldn't ask multiple questions in the same thread. Ask a specific question, with an appropriate subject line (optionally, assign the number of Dukes you are willing to give for the help). When question #1 is answered and question #2 arises, it's time for a new thread (don't forget to give out Dukes before moving on).
Second answer: I think you need a Transfer Object (http://java.sun.com/blueprints/patterns/TransferObject.html). It's whole purpose is to hold/transfer instance data where it is needed. Create a class something like this:
public class ItemTO
private String _number;
private String _description;
private double _price;
public ItemTO( String number, String description, double price )
_number = number;
_description = description;
_price = price
// Getter/Setter methods go here
}then, in the code where you read in the file do something like this:
BufferedReader input = null;
try
input = new BufferedReader( new FileReader( "c:\\a.txt" ) );
List items = new ArrayList();
String line;
String itemNumber;
String itemDescription;
double itemPrice;
while ( (line = input.readLine() ) != null )
System.out.println( line );
itemNumber = // Parse it from line
itemDescription // Parse it from line
itemPrice = // Parse it from line
items.add( new ItemTO( itemNumber, itemDescription, itemPrice ) );
catch ( FileNotFoundException fnfe )
fnfe.printStackTrace();
catch ( IOException ioe )
ioe.printStackTrace();
finally
try
if ( input != null )
input.close();
catch ( Exception e )
e.printStackTrace();
}As for how to parse the line of the file, I'll leave that to you for now. Are the three values delimited with any special characters?
jbisotti -
Hi, I found a previous post in this forum that does exactly
what I would like to do, but since I am new to adobe flash I am
missing some knowledge. I have the actionscript code and the xml
file - what I need help with is the GUI. I open a new AS2 project
and press F9 to insert the action code. What do I do next? Please
help!
I attach the previous actionscript code posted by another
member.
Best Regards EvaHi, thanks for Your reply. Yes, I have the .xml file, what I
need help with is the 'frame' that You display the picture in. Do I
need to create a layer or scene? I guess that myContainer_mc in the
code needs to be identified in this 'frame'. How do I go about
doing this?
Any help is most appriciated!
Best Regards Eva -
Premier Pro CS 3 and Mpeg - Help, please!
Hello, do you have any plugins for mpeg Files: editing / importing audio & video / capturing ... with PP CS3?
I imported and edited Mpeg Files with Premier 2.0 - without plunigs, but in New Version - when I importing files - the audio is missing...
Also I can not open my previous projects in PP CS3 - because of audio..
Please, Help.
ThanksFrequently answered question
Cheers
Eddie
Forum FAQ
Premiere Pro Wiki
- Over 300 frequently answered questions
- Over 100 free tutorials
- Maintained by editors like
you
Maybe you are looking for
-
How can I get my music from another account so I can current account
I have music & money I have a old account I want to put on my new account how do I do that?
-
I'm looking to buy a mouse for my new macbook and am looking for sugestions. I don't want to break the bank but I'd also like something that is white/light in colour to match the computer. I've read some reviews about the mighty mouse that didn't spe
-
Would like to use iMessages internationally, sending between an iPod touch and and iPhone. Does anyone know if it will work between countries?
-
I maintain about 6 webpages for my church and updating has become quite burdensome. Can someone point me in the right direction or give me the instructions to add dynamic content to my webpages. What i'd like to do is have various people able to edit
-
WORK FLOW & PROCEDURE FOR FOR SNP CAPACITY LEVELLING HEURISTICS RUN
Dear Sir / Madam, Currently, we are taking only SNP Heuristics Run and the output viz. planned stock transfer requisitions are being passed to PPDS as such. But now we feel, SNP capacity leveling can play a vital role in getting more fine tuned re