Win a copy of Emmy in the Key of Code this week in the General Computing forum!

Vladimir Kositsky

Ranch Hand
+ Follow
since Nov 03, 2000
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 Vladimir Kositsky

I edited my posting because it posted unindendently wrong...
I will support any JavaRanch initiative in java job postings
17 years ago
Quiz of Java Programming and Related Topics (20 Minutes)
Knowledge and Analysis Section: 12 Sample Multiple Choice Questions (12 points max.)
There is only one correct answer to each question. One point is awarded for each correct answer; zero points for
each incorrect answer; and 0.25 points for each unanswered question. 7.5 points (out of a possible 12) are required
to pass this section.
J23. What does the following code print?
Boolean b1 = new Boolean( true ), b2 = new Boolean( true );
System.out.println( ( b1 == b1 ) + " " + ( b1 == b2 ) );

A) false false
B) true false
C) false true
D) true true

J27. Consider this short program:
class Args {
public static void main( String [] args ){
System.out.println( args[0] );
}
}

What does the program print when you run it with the following parameters?
java Args #1 #2

A) java
B) Args
C) #1
D) #2

J32. Consider the following class definition:
public class ConstructorTest extends Base {
public ConstructorTest( int i ) { }
}

Which of the following forms of constructor must exist explicitly in the definition of the Base class?
A) Base() { }
B) Base( int i ) { }
C) Base( int i, int j ) { }
D) Base( int i, int j, int k ) { }

J43. What can you NOT do with a JAR file?
A) Digitally sign its entries
B) Compress its entries
C) Include resources other than class files
D) Download only some of its entries

Quiz question: Which tool is most useful for optimizing the speed of your code?
A) Source-level debugger
B) Profiler
C) Disassembler
D) Source code to bytecode optimizing compiler

[ June 10, 2002: Message edited by: Vladimir Kositsky ]
[ June 10, 2002: Message edited by: Vladimir Kositsky ]
17 years ago
Thanx for reply!
I am new to j2me, and i was thinking how it could be integrated with j2ee.. As far as i can see now mobile device might be connected through HTTP. Any tips will be highly appreciated.
-v-
17 years ago
javaranch really great place..
please advise what should i do with my desire to write for my old palm 2.0 - should deal with C programming or java does support this OS? According to docs MIDP supports 3.5.x and have not been tested for other versions..
thanx
-v-
17 years ago
Please advise whether content of location bar in netscape - or analogic IE - cached, i.e. whether exist any file where i can read it from.
Thanks
18 years ago
What differ between first and second edition?
I have both Java Server for J2EE and first edition of professional JSP - whether second edition shows something different?
18 years ago
Found it
default-web-app
18 years ago
Hi !
How to set context for application in Orion?
File structure of application as followed:

In tomcat for this purpose in server.xml file used to add
<Context path="/Root"
docBase="c:/Path _to _directory/Root">
</Context>
How to make the same in Orion?
V
[This message has been edited by Vladimir Kositsky (edited June 05, 2001).]
[This message has been edited by Vladimir Kositsky (edited June 05, 2001).]
[This message has been edited by Vladimir Kositsky (edited June 05, 2001).]
18 years ago
If you like to forward request to other page use
<jsp:forward page="url">
</jsp:forward>
18 years ago
If you like to forward request to other page use
<jsp:forward page="url">
</jsp:forward>
18 years ago
I need to embed and identify applet in JSP to have the name to
addPropertyChangeListener to instance of applet.
For bean is possible
<%
bean.addPropertyChangeListener(anotherBean);
%>
Whether it possible for applet?
18 years ago
Hi!
I trying to create applet that will be used as "view" when all business functionality carried by bean. Finally i need a parameter calculated by bean to be displayed in JSP
I tryed this approach:
1.Create embedded applet
<jsp: plugin type=...
code=... >
proceed input and calculation, getting final result
2.Applet created this way can fire event that using method showDocument() from AppletContext address to JSP
3.This JSP trying to use tag useBean addressing to the same bean to get result as parameter . Unfortunatelly this
way only new bean created

I know if JSP instantiate bean by useBean, other JSP can get parameters from this bean existing in context.
Whether it possible to share bean between JSP and applet, if yes what is the consequence?
Thanks in advance

[This message has been edited by Vladimir Kositsky (edited May 17, 2001).]
18 years ago
I will be highly appreciated for links and sources advise in above matter.
Thanks
18 years ago
Hi!
I'd like to try using JSP + bean with some logic for implementation. It is simple example so probably Tomcat is good enough.
I created ProJavaServer directory and placed .jsp file, created
ProJavaServer\WEB-INF\classes directory and placed compiled bean there.
In %TOMCAT_HOME%/conf/server.xml i added:
docBase="c:\WORK/ProJavaServer">
I run successfully examples that not included beans, so path and other settings probably set properly.
To exclude typo i downloaded example from coreservlets.com
And it does not work.
C:\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fStringBean_0002ejspStringBean_jsp_0.java:105: Class jsp.StringBean not found.
out.print(JspRuntimeLibrary.toString((((StringBean)pageContext.findAttribute("stringBean")).getMessage())));
I look for advice how to place my files to make it work.
Thanks in advance

18 years ago
Hi!
I'd like to try using JSP + bean with some logic for implementation. It
is simple example so probably Tomcat is good enough.
I created ProJavaServer directory and placed .jsp file, created
ProJavaServer\WEB-INF\classes directory and placed compiled bean there.
In %TOMCAT_HOME%/conf/server.xml i added:
<Context path="/ProJavaServer"<br /> docBase="c:\WORK/ProJavaServer">
</Context>
I run successfully examples that not included beans, so path and other
settings probably set properly.
To exclude typo i downloaded example from coreservlets.com
And it does not work.
^
C:\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fStringBean_0002ejspStrin
gBean_jsp_0.java:105: Class jsp.StringBean not found.
out.print(JspRuntimeLibrary.toString((((StringBean)pageContext.f
indAttribute("stringBean")).getMessage())));
I look for advice how to place my files to make it work.
Thanks in advance
Vladimir