Yuriy Fuksenko

Ranch Hand
+ Follow
since Feb 02, 2001
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 Yuriy Fuksenko

It depends on the way you going to create/use those strings.

Look at the following code, for example:

Here is the output:

11 years ago
you can try something like this:

here is the small example

13 years ago
Don't know if this helps you in any way, and it is definitely not the best coding style, but the following would work for any type of primitive array except boolean and char:

13 years ago
Bottom line here - you don't want to generate Y unless you know that you need it.
The problem right now - Y is generated in Client class, but class A the one who knows should it be use or not.

so solutions that should work without knowing details of what code does and changing any dependencies are the following, for anything more elegant you have to give more insight.
1. Give class C a knowledge is Y needed or not. For example you can add "isYRequird" method to A and pass null if it is not required.
2. Generate X and Y inside A class. So you will have something like:
13 years ago
Actually, it is possible, but only one of them would be referable by other project as dependency.
The simplest way would be to define multiple executions for plugins in the build section.
It s just not recommended practice.
15 years ago
15 years ago
I tried to use dependency:tree and dependency:analyze targets with maven-dependency-plugin, and it fails to resolve dependency on sibling modules. I find it somewhat strange, since copy-dependencies works fine.
Anyone tried that?
15 years ago
I need to add pdf reports to my swing application. It is decided to use Apache FOP for that. Currently all existing images are inside my jar file - all access goes through getResourceAsStream. Is there a way for me to somehow use those images in FO file (may be by adding some handler during parsing - I never used FOP before), without copying them out or creating "mini" http server?
Set headres to allow caching of your pages - this way when user hits "Back", old page is displayed, without trying to resubmit the form.

Also, you may consider generating a uniq id every time page reloads, so if form is submitted, but that id was already used - means back button was used or a link was double clicked.

Another option may be using "Get" request instead of "Post".
function openwindow(url)
<select onchange="openwindow(this.options[this.selectedIndex].value)">
<option value="Comboimage/Comboimage1.html">page1</option>
<option value="Comboimage/Comboimage2.html">page2</option>
<option value="Comboimage/Comboimage3.html">page3</option>
Try it...
Here is a problem:
This operation is asynchronious for the main documents, so you are likely sometimes get an error here:
str = window.frames['notificationFrame'].document.getElementById('frameData').innerHTML;
, if element "frameData" is not loaded yet.
I would say that chnages you need should be in the document loaded into iframe:
1. add the following inside the head tag - this will cause a page to refresh every 10 seconds:
<meta http-equiv="refresh" content="10">

2. add onload handler to the body, doing something like:
[ August 08, 2006: Message edited by: Yuriy Fuksenko ]
You might want to use refresh meta tag instead of setInterval
1. if you have access to your server configuration, you should be able to define an alias for your "getreport.do" and call it whatever you want.

2. Depending on your server abilities and traffic you expect, you may have an option of creating a temp file on you server, naming it whatever you want, write report into it and provide it to user.