Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!

Mir Ricco

Greenhorn
+ Follow
since Jun 19, 2003
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 Mir Ricco

Yes, everytime you request the page you get a new picture, but when the page is refreshed the blinking is very annoying
Hello,
my jsp is generating the image of graph structure read from db.
To have actual state of the objects on the graph i have refresh in my page.
But everytime the refresh arise, entire page is regenerated and it takes a long time causing me the page dissapears for a 1-2 seconds and after then is shown the new image.
Isn't it possible to preload the image page 2 seconds before end of refresh interval and swap it when it is loaded. Thus it can appear only as the short blink, or even none.
Every suggestion is gratly appreciated.
Mir
Isn't it possible to make tree view in other way than using struts.
Struts framework seems too complicated to me.
Maybe someone had already did the work which can be reused.
Kind regards
Mir
14 years ago
JSP
Hi
have u already solved your problem ?
I'm trying to do something similar, i found Struts offer some tree layout, but i don't know how to use it yet.
Regards
Mir
14 years ago
JSP
I think Struts offer some tree layout,
maybe u can use this one.
Regards
Miro
14 years ago
JSP
I just want to ask, if it is possible to recognize this situation in the request, so i wouldn't need to do the logic or generate svg, and i will only send the contenttype.
Is this approach real ?
Miro
14 years ago
JSP
Hi all,
I'm generating SVG file from my jsp page, so when i want it to be displayed by plugin i have to set content type to image/svg+xml.
Mozilla works ok, but IE( ) works this way:
-it requests the page
-but when he see it is the content for plugin, it doesn't transfer my response to plugin, but requests the page once again
It causes me 2 types of problems:
- i have to generate svg 2 times, so the performance go down
- when ie requests the page second time also with request parameters, i do the logic twice, in my case when pressing "GO 1 LEVEL UP" button, it goes 2 levels up
Kind regards,
Miro
14 years ago
JSP
Hi,
I think you cannot do anything else than reload the page.
Regards, Miro.
14 years ago
JSP
Yes it's one possibility, i can set unique id, which can be very long when the tree is big, because it should reflect the element path from the root.
But i wanted to know if the other aproach is also possible.
Isn't it possible to go through child nodes in every browser ?
Regards
Mir
Hello,
I'm trying to do expandable javascript tree view, but it does not work with mozilla and netscape. Can someone help me which way do i have to modify the javascript code ?
Here is my example:
MS IExplorer has no problems expanding and collapsing the tree after clicking on the text SUB, but what about Mozilla or Netscapoe ?
My problem is, i can't use getElementById, because in my document are more tags with the same id. I have to lookup in <li> childs, there can be only one tag with the id.
TREEVIEW.HTML:
<html>
<head>
</head>
<body>
<SCRIPT LANGUAGE="JavaScript">
function clickHandler() {
var targetId, srcElement, targetElement;
//this one may be IE specific, but i think something else is also
srcElement = window.event.srcElement;
if (srcElement.className == "Outline") {
targetId = srcElement.id + "d";
childs = srcElement.childNodes;
for(i=0; i<childs.length; i++) {
if (childs[i].id == targetId) {targetElement = childs[i];}
}
if (targetElement.style.display == "none") {
targetElement.style.display = "";
} else {
targetElement.style.display = "none";
}
}
}
document.onklick = clickHandler; //onklick= o n c l i c k
</SCRIPT>
<ul id="rootd">
<li class="Outline" id="sub1">SUB1
<ul id="sub1d">
<li>nod1
<li>nod2
<li class="Outline" id="sub2">SUB2
<ul id="sub2d">
<li>nod4
<li>nod5
<li>nod6
</ul>
<li>nod3
</ul>
<li class="Outline" id="sub2">SUB2
<ul id="sub2d">
<li>nod4
<li>nod5
<li>nod6
</ul>
<li class="Outline" id="sub3">SUB3
<ul id="sub3d">
<li>nod4
<li>nod5
<li>nod6
</ul>
</ul>
</body>
</html>
Regards
Mir

Dear Experts,
I'm trying to add some functions to one existing JSP app which uses functions of another part of the system and access them by CORBA.
The system is running on Solaris OS and there is installed CORBA server based on Orbix.
When I run Tomcat on the Solaris it works, but when i want to run it on neighbour computer on Windows OS in JBuilder i cannot connect to Corba servers.
I'm not very familiar with corba, so i don't know how to setup my windows system or tomcat server to be able to connect to the other part of our system.
I can compile and run my app without problem, but when I try to use corba i get errors:
I use these libraries: OrbixWeb.jar, OrbixNames.jar
on Tomcat 3.3 and JDK1.3.1 i get this error:
org.omg.CORBA.COMM_FAILURE: minor code: 10085 completed: No
System exit
System exit
on Tomcat 4.1 and JDK1.4.1:
org.omg.CORBA.COMM_FAILURE: vmcid: 0x2000 minor code: 1893 completed: No
System exit
System exit was thrown.
I think it tries to connect to localhost (it writes something like utgoing request list to NS@localhost) and i must somehow setup the connection to other server.
Can anyone help me ?
Regards,
Mirec
14 years ago
Is this topic described in details somewhere ?
14 years ago
Hi Michael,
thank you for redirection. This partly solve me my problem.
But how can I run another program, e.g. telnet or another java program by calling it like from command line. I tried to modify your first example to run telnet, but nothing happened.
Mir.
14 years ago
Hi,
I need to call system command or shell script with parameters from java.
Can someone help me how to do it
or post a link where can I learn about this topic ?
thnx
14 years ago
Hi,
I need to call system command or shell script with parameters from java.
Can someone help me how to do it
or post a link where can I learn about this topic ?
thnx
14 years ago