Aaron Webb

Greenhorn
+ Follow
since Aug 16, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Aaron Webb

cool thats what i was wondering...thanks
22 years ago
both are correct and work fine i just didn't know if there was a performance difference one way or the other
22 years ago
Is there any difference in this code? If there is an SomeObject array called array...
SomeObject object = null;
for (int i = 0; i < array.length; i++) {
object = array[i];
...some processing...
}
or........
for (int i = 0; i < array.length; i++) {
SomeObject object = array[i];
...some processing...
}
22 years ago
If I do...
SomeObject obj = new SomeObject();
obj = new SomeObject();
...what happens in memory? Does the new object replace the first one?
22 years ago
This should work for your first question. I use it frequently.
function doWindow() {
someWin = window.open("","win1","width=780,height=520,scrollbars=yes,resizable=yes,menubar=no,statusbar=yes");
document.printForm.submit();
}
....
<form name="printForm" action="something.html" target="win1" method="post">
<input type="text" name="text1" value="">
<input type="button value="Click me!" onClick="doWindow()">
</form>
When the button is pressed it will open the new window and then call the submit method of the form and the form will submit to the new opened window based on the target attribute.
I'm not sure on this without looking into it, but just off the top of my head you could loop through the form elements and when you find the one matching the one you selected, check the value of your counter. Hope that makes sense.
Try this:
close the literal with quotes so that the literal value in that position of the array will get written in
document.write("<TD> <a href = '#' onClick = 'updateGK(" + GKArray[i] + ")' >");
Maybe I should add that I would be willing to sacrifice some performance for accuracy. The more accurate the better, but how much better is the accuracy between the two implementations.
23 years ago
Could I get some thoughts on using the native datatypes vs. BigDecimal class for calculations as well as any other better alternatives than these two. My calculations involve large decimal numbers.
23 years ago
Got it! Thanks!
23 years ago
You said....The compile will only load the classes that are required so no memory space is wasted....so an import with an asterisk would be more of a memory requirement than just a class import? How big of a hit are we talking?
23 years ago
Could someone give a little background on import statements? When importing a class or classes from a package is there a difference in specifying the class name or just importing with an asterisk (*)? Are these classes allocated in memory? Does it really matter what we use?
23 years ago
How can I convert a DOM tree to a string?
What are some suggestions on sending to a JSP from a servlet. I have some data that is stored in the session that I am using for a user, but there is some data that just needs to be returned to the page. If it was just stored in the request that would be great but I don't want to use the RequestDispatcher as it screws up the URL and creates a lot of headaches when refreshing the page and such. On the other hand, response.sendRedirect() just redirects so I end up putting the beans in the session. Any other ways to do this?
23 years ago
What are some suggestions on sending to a JSP from a servlet. I have some data that is stored in the session that I am using for a user, but there is some data that just needs to be returned to the page. If it was just stored in the request that would be great but I don't want to use the RequestDispatcher as it screws up the URL and creates a lot of headaches when refreshing the page and such. On the other hand, response.sendRedirect() just redirects so I end up putting the beans in the session. Any other ways to do this?
23 years ago