Abhilash Vasudevan

Greenhorn
+ Follow
since Mar 31, 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 Abhilash Vasudevan


[ September 21, 2004: Message edited by: Abhilash Vasudevan ]
17 years ago
Thank you very much

I got 3 invites in total,

Used one for me, and forwarded 2 to my friends,

Thank you ranchers , u r great
17 years ago
Oh you missed me Map!!

Any more left out??

id: abhilash_iv@yahoo.com

Thanks
[ September 07, 2004: Message edited by: Abhilash Vasudevan ]
17 years ago
I also would like to get an account, so please send me an invite to my id:

abhilash_iv@yahoo.com

Thanks
17 years ago
You can copy the image to a location and save the absolute path of the image as text in the database.
This can be accessed from the jsp page.
Regards
Abhilash
[ May 14, 2003: Message edited by: Abhilash Vasudevan ]
Hi,
I am not so sure that I have understood your scenario properly.
Still assuming that you will be generating job after job and these have to be distributed among executives in the database uniformly, i would suggest the following.
Create a table of executives where there are fields alloted_jobs and completed_jobs (number datatypes) other than name, id, etc.
Each time you come across a new job just check the least value of alloted_jobs-completed_jobs (the difference) for each executive and allot it to that person. By doing so you will be loading all your executives almost uniformly. Take care to increase the alloted_jobs field by 1 as soon as you allot a new job and to increase the completed_jobs by 1 when it is reported completed.
Also you can get the least alloted persons list in an alphabetical or id wise order so that you can take the first person from the select always,if there are more than one with the least allots.
This saves from making a logic to give the jobs one after other executives.
Regards
As I can understand from your question, the Executives are only 5 and jobs can be any number.
So if you are sure that all your job names will be as Job1,Job2,....Job25,... you can hard code this "Job" while creating a substring of that variable and get only the number.
As,

Now you can easily get the executive from the database I suppose.
This is the logic which came first to mind may be there is some other easy way.
Hope this will do the job for you
Regards
[ May 13, 2003: Message edited by: Abhilash Vasudevan ]
You can create a new FileOutputStream() with a new File() object as parameter. The File() object takes the file path as argument where you can give your newly created serial number. The entered details can be writen in the fileinputstream.
As:

Hope this helps you
Regards
[ May 13, 2003: Message edited by: Abhilash Vasudevan ]
Hi,
could you please clarify your question.
In my thinking, it is not a problem to create a File object with a field value as long as you can get it as String.
regards
I m from Kerala , Kannur.
Bit new to the ranch
18 years ago
Try this example code. Hope this will do.

regarding refreshing the JDialog each time you press the button, you can write a method in this class and call them each time and call show().

18 years ago
It seems you are parsing the textfields for the val1 and val2 in the init(). But at initialising time you will not have anything in there.
This has to be done once you have typed in some number in there and clicked the calculate button.
So include the val1,val2 assigning statements inside your action performed method and then it should work
Regards
18 years ago
OK let me be more specific.
Instead of making your subFrame extend a Panel let it extend a JDialog. In the Constructor of the subFrame, you just call the super's(JDialogs) constructor with 'modal' argument true.
ie, super(parent,true);
Here parent is a JFrame variable which you will pass as 'this' from your main window.
This will make your new window modal ie, the control can never be passed back to your parent frame, unless the JDialog window is closed. So it will restrict the user from clicking the 'open' button again when the new window is open.
Hope this clears the matter and hope this solves your problem.
Regards
18 years ago
Hi Alexan,
what you think is right it is the assignment which is first done and then the if().
And note, this is the only place where you are allowed to use an assignment operator inside an if()condition by the compiler.
If you try to assign an int variable to some value it never returns a boolean for the condition check to decide on, and in java it is always required that what we put inside condition checking stmt has to return a boolean
Oh, but I am getting a runtime exception in the l=Long.parseLong("2L") assignment, why?
Regards