Help coderanch get a
new server
by contributing to the fundraiser

s srikanth

Greenhorn
+ Follow
since Jul 06, 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 s srikanth

Hi Gregg,
u told one site for reference to this problem .
i gone through that site ..But it basically concerned with the GUI and all..
Can u provide any further help ? I am also in need of that solution .
Regards,
Srikanth
22 years ago
Hi ,
I want to make a local directory sharable through a java program . Is it possible to make a directory sharable through a java program ?
If so , give me some idea regarding that .
Code samples are welcome .
Regards,
Srikanth
22 years ago
Hi bedi ,
you can use TFormula class for displaying chemical formulae.
The corresponding API says ------>
TFormula provides a simple mechanism for displaying Chemical Formulae.
By default this puts all numbers as subscripts, thus formula can be entered in the form "CH3CH2OH".
However the autoscripting option can be turned off, thus formulae should be input in the following form
"CH3CH2OH" . (actually here 3 and 2 are subscripts..but i m not able to write them as subscripts :-))
If u have any doubts,just check the API Documentation.
Cheers,
Srikanth
[ January 20, 2002: Message edited by: s srikanth ]
22 years ago
Hi ,
Is there anyway to open media player or sound player (real player or win amp ) through a java program ?
i have no idea about the corresponding API's . Can u tell me how this is possible thr a java program .
java program means .. i can say like ... suppose i have one GUI in swing .. if i press one button then the
real player or media player should be opened as a part of GUI Frame ( say some JFrame ) and the corresponding
video or audio file should be executed from there ..is it possibe ?
if anyone have idea then plz help me out ..
Code samples are also welcome .
Thanx in advance ,
Srikanth S
22 years ago
Hi ,
how to call a html from a servlet ?
i dont want to write html code in the servlet.
i want to call the seperate html file.
also how can i call jsp from a servlet?
sample code is welcome .
thanx in advance ,
Srikanth
22 years ago
Hi ,
i am populating my combo box, that i was created using <select>
and <option> tags, with some values.I have one requrement like this . On selecting one particular value from the combo box , i
have to print that value on the browser.
How can i achieve this . Examples are also welcome.
My sample code is :
<html>
<title> Dynamic values </title>
<head>
</head>

<body>
<br>
<br>
<select name="name" >
<% int a=10;
int b=20;
for(int y=a;y<b;y++) { %>
<option)><%=y%></option>
<% } %>
</select>
</body>
</html>
bye
thanx in advance ,
Hi ,
recently i started learning EJB. I want to deploy EJB on weblogic6.1 server . i want to look at a step by step example
for that . Can anyone help me out where i can find a step by
step example for deploying EJB on Weblogic6.1 application server.
Thanx in advance ,
Srikanth S
Thanx to Brown and Kishore .
Keep going .
cheers ,
Srikanth
Can anyone help me out how to familier with J2EE ?
i am calling a "C" function from java code.(using JNI)
i need to call that function when i click some button from GUI.
also i m sending some arguments from the GUI to that C function.
in that C function i m supposed to call another C function.
when i m clicking on that button , the C function is getting called . ( i know this because i m printing the arguments in
the C function those which i have sent from the GUI. the values are
reaching that C function correctly).
now the problem is , when i m trying to call another C function (from this C function)it is giving the following error :
# # An unexpected exception has been detected in native code outside the VM.
# Program counter=0x40043350
# Problematic Thread: prio=1 tid=0x804db68 nid=0x139f runnable
please anybody help me as early as possible.
thanks in advance,
srikanth
22 years ago
u can't use JFileChooser with an applet.
srikanth
23 years ago
Hi trupti ,
here i m giving two samples.Hope they will help u to some extent.
i m not able to make user id as a key to the hash table.
i think it will accept string type only.
i have to check it again.
if any queries let me know.
my mail id is : sreek_s@yahoo.com
samples:
import java.io.*;
class userDetails
{
String user_name;
int user_id;
String user_birth;
String user_pwd;

userDetails()
{
user_name = new String();
user_birth = new String();
user_pwd = new String();

}
// copy constructor
userDetails(userDetails copy)
{
user_name = copy.user_name;
user_id = copy.user_id;
user_birth = copy.user_birth;
user_pwd = copy.user_pwd;
}
public String toString() {
return "user name = "+user_name+";user id = "+user_id+";user birth = "+user_birth+";user pwd = "+user_pwd;

}
void setuser_name(String n)
{
user_name=n;
}
void setuser_id(int i)
{
user_id=i;
}
void setuser_birth(String b)
{
user_birth=b;
}
void setuser_pwd(String p)
{
user_pwd = p;
}


String getuser_name()
{
return user_name;
}
int getuser_id()
{
return user_id;
}
// similarly u can write other get methods

}

import java.io.*;
import java.util.*;
class storeDetails
{
public static void main(String[] args)
{
userDetails info = new userDetails();
info.setuser_name(" srikanth");
info.setuser_id(10);
info.setuser_birth("21-08-77");
info.setuser_pwd("sreek");
Hashtable user = new Hashtable();
user.put(info.getuser_name(),info);
System.out.println(user);
}
}

cheers,
Srikanth
23 years ago
JNI
Can anybody tell what is UnsatisfiedLinkError in JNI ?
23 years ago