Help coderanch get a
new server
by contributing to the fundraiser

vik nuckchady

Greenhorn
+ Follow
since Apr 25, 2001
Merit badge: grant badges
For More
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 vik nuckchady

Hello

i am having some problems with a particular situation in CORBA. i am trying to invoke a server call and i am getting a BAD_PARAM exception (==? NULL references). Any kind of help would be greatly appreciated. Here is the sample codes:

IDL structure:


Server implementation :


Client implementation :



When i run them, i receive the following error message:



when i add some value to the holder on the client before making the remote call, i still get the same exceptions. Moreover, the system output on the server side is also NULL in this case.

Any kind of help would be most appreciated. This has been annoying me for a while now.

Kind regards,
vik
19 years ago
I think that the JFC is built with an MVC approach. This is what makes it "easy" to change the graphical look or model of JComponents independently of each other. For example one can have round JButtons and yet maintain an identical behaviour as to when it was rectangular.
21 years ago
Hello
i am trying to give another shape (a polygon other than a square) to a JButton by creating another ButtonUI. I am however encountering some problems
1. The fillPolygon(myPolygon) from Graphics does not seem to work when i am trying to paint the new shape. However a drawPolygon(myPolygon) and a fillOval(0, 0, width, height) do work.
2. When the frame containing the JButton is resized, there are traces of the outline of the button (from a call to drawPolygon()) for all the sizes that the button is while the frame is being resized.
Would anyone have an idea of what i could be doing wrong or missing. Thanks in advance.
Here is the code i am using in case it might be helpful:

regards Vik
[ January 16, 2003: Message edited by: vik nuckchady ]
21 years ago
Well i gave some debug output in my code and everytime i have to import the Debug obj in every file i want to verify something. So along this line i was thinking that if i could so something like the System object where one does not have to import java.lang.System in the code.
Thank you anyway. i think i will just have to script something that writes it for me whenver i open a new file
21 years ago
Hi
i was wondering if you could avoid using an import statement by overiding (X)bootclasspath option when compiling (and running). i was wondering that it is not necessary to import java.lang because it is indicated in the default (X)bootclasspath and was thinking that i could do the same by putting one object i use often in a jar and including it in the bootclasspath.
i have tried and it did not work ... so i could be doing something wrong or it is not possible in which case does someone have an explanation no matter how brief.
Thanks in advance.
regards Vik
21 years ago
Hi
I am trying to build an intranet using J2EE. However i was thinking of leavig the access control management to UNIX since it has a strong track record in terms of security. The idea is to let UNIX decide whether a user belonging to some group can have access to the document (object in question).
This idea derives from the possiblity of making system calls as in a CGI approach. i know this defeats some very important rules laid down by Sun.
i would really appreciate any criticism or ideas of how to go about.
Thanks in advance.
Regards Vik
22 years ago
Hi
I am trying to build an intranet using J2EE. However i was thinking of leavig the access control management to UNIX since it has a strong track record in terms of security. The idea is to let UNIX decide whether a user belonging to some group can have access to the document (object in question).
This idea derives from the possiblity of making system calls as in a CGI approach. i know this defeats some very important rules laid down by Sun.
i would really appreciate any criticism or ideas of how to go about.
Thanks in advance.
Regards Vik
22 years ago
Hello
Can someone enlighten me on the following:
Phase 2 of the verification process of a class file by the JVM.


Checking that every class (except Object) must have a superclass


I have 2 questions:
1. How can it be that every classes (except Object) must have a superclass?
2. Can explain with me an example a class definition that would violate that rule.
Thanks so much in advance.
Cheers Vik
23 years ago
Hi Geeta,
I have not understood the question very well. But here are 2 solutions (damn different)
Sol1. Code below is in a jsp page (say first.jsp). This is a client to server communication through a form.

with the above code first.jsp will pass the state of the checkboxes to the second jsp.

Sol2. This one uses javascript. Here is the situation. The 2 jsp files are now (html). So this is a client to client solution.
Let say we have 2 jsp files on a server (first.jsp and second.jsp). So on the client we now have first.html and second.html. Obviously first.html and second.html have to be in either 2 frames or 2 windows.
The solution with frames (Let say first.html is in an frame called A and second.html is in a frame called B).
Now to send data from A to B. You will say from first.html in some javascript function:

The solution with windows. Let say first.html is in Window A and second.html is in Window B. Moreover let say Window B was opened from Window A, that is:
// in first.html there was something like that


Hope this helps
23 years ago
Hello Kiran
I don't think it is possible. What you should do is get an application server(AS) and tie it to IIS.
The idea is that when a client makes a request to a servlet,
http://www.mysite.com/blalblaservlet
IIS knows (because of the tie with the AS) how to invoke the servlet to handle the request.
Cheers
23 years ago
Hello
This can be done using Javascript.
// Inside parent file
....
win=window.open('bla.html');
// bla.html contains java script code that will populate

/*-------- bla.html ------*/
function populateParent()
{
window.opener.document.myform ....
}
I think it is something like that. I any case this can be done in Javascript and does not require servlets.
Cheers
23 years ago
Hello Maha Anna
Thanks a lot for helping out.
I think i've found the cause of these problems. Well i am not sure if they are supposed to be like that. But in any case i get the desired result.
Both ATG Dynamo and jRun3.0 they tend to do session management besides being just plain simple dumb application servers . So they have these settings that are defaulted such that you have situations where cookies die after a session.
For example in ATG Dynamo5.1 they have a component called sessionManager where there is a boolean field called usingCookies set to true. In JRun, a simillar field is also set to true etc.
So what i have done is make the required changes and my app seems to operate more or less ok. That is the cookies persist.
I might be wrong in my understanding of that problem. If it is so can you please comment. Otherwise i think that this thread can be closed
Thanks a zillion for your help and concern
Cheers
Vik
23 years ago
why do you have a , after the set classpath statement ?
23 years ago
Just close the connection box and it should be fine.
23 years ago