Win a copy of Head First Android this week in the Android forum!

Jitin Rathod

Greenhorn
+ Follow
since Apr 25, 2001
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 Jitin Rathod

Hello Everybody
I am having a seminar and we have to discuss on the topic "What Is Java and Its Origin" i tried a lot but could not find it anywhere. pls can somebody help in getting some information on it. i would be very glad
Thank You
Regards
Jitin.Rathod
19 years ago
Hello Everybody
I am having a seminar and we have to discuss on the topic "What Is Java and Its Origin" i tried a lot but could not find it anywhere. pls can somebody help in getting some information on it. i would be very glad
Thank You
Regards
Jitin.Rathod
19 years ago
Thanks all for the great guidance. The problem was from my side only. I did not make a .java.policy file. But even i could not help i had not been told about it in my classes
Thank You,
Regards
JITIN.RATHOD
please try solving out my problem
Thanks Shivanath, for ur reply. I do not have a password for my connection so what should i do now.
Please can any help me solving my problem
Hi Xavier
please try to finish off solving my problem.
Thanks
Jitin.Rathod
Hi Xavier
Thanks a lot for your reply. I tried what yoyu had instructed me to do but i am confused which permission should i select from the Permission drop down, what should be the target name and what should be the Action.
Regards
Jitin.Rathod
Hi Thomas
Thanks alot for ypur reply. As you said that i do not run my applet in ie rather run it in appletviewer, but Thomas i am running my applet through appletviewer then i have got that error. Thomas one more thing is can you please just make it more clear about buying the certificate.
And i am sorry again
Thank You
Jitin.Rathod
HI Frank and Thomas,
I am really very sorry about my mail. Hey guys i had no intentions to hurt you or mean anything wrong. Hey guys i m really very sorry about it. I was feeling very guilty when i received your replies. I am sorry again and Thomas when i saw your second reply i was surprised that inspite of my making such a big mistake you checked my JDBC query. Thanks a lot friend
Thanks A Lot and Sorry Again
Jitin.Rathod
20 years ago
HI all,
I have posted a query in the jdbc section as well as in the applet some days back. In the applet for some days i have been getting replies and when i have replied another query its not been answered yet and the query in the jdbc section has not been answered a single time
Please take a look at it, if you'll have time
Thank You
Jitin.Rathod
20 years ago
HI all
I am running an applet in which i am connecting it with sql7.0. I made a permission from the jdbcodbc sriver. My applet runs very well but when i enter some data in the text box and i click on the button to let the data pass to the databasei get the following error:
java.security.AccessControlExveption: access denied(java.lang.RuntimePermission
accessClassPackage.sun.jdbc.odbc)
below is my code for the above:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
public class Example extends JApplet
{
JPanel perPanel;
JLabel lblAppId;
JLabel lblAppName;
JLabel lblAppPosition;

JTextField txtAppId;
JTextField txtAppName;
JComboBox comAppPosition;
JButton butAccept;

GridBagLayout gl;
GridBagConstraints gbc;
public void init()
{
createAppletContent();
}
protected void createAppletContent()
{
FlowLayout flow;
flow=new FlowLayout();
Container content=getContentPane();
content.setLayout(new GridLayout());
JTabbedPane tabbedPane = new JTabbedPane();
content.add(tabbedPane,flow);
perPanel = new JPanel();
perDetail();
tabbedPane.addTab("Personal Details",null,perPanel,"Personal Detail");
}
public void perDetail()
{
gl = new GridBagLayout();
gbc = new GridBagConstraints();
perPanel.setLayout(gl);
lblAppId = new JLabel("Applicant Id");
lblAppName = new JLabel("Applicant Name");
lblAppPosition = new JLabel("Applicant Position");
butAccept = new JButton("Accept");
txtAppId = new JTextField(5);
txtAppName = new JTextField(20);
String positions[] = {"Manager","Sales Executive","Sales Manager"};
comAppPosition = new JComboBox(positions);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 1;
gbc.gridy = 5;
gl.setConstraints(lblAppId,gbc);
perPanel.add(lblAppId);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 4;
gbc.gridy = 5;
gl.setConstraints(txtAppId,gbc);
perPanel.add(txtAppId);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 1;
gbc.gridy = 8;
gl.setConstraints(lblAppName,gbc);
perPanel.add(lblAppName);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 4;
gbc.gridy = 8;
gl.setConstraints(txtAppName,gbc);
perPanel.add(txtAppName);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 1;
gbc.gridy = 11;
gl.setConstraints(lblAppPosition,gbc);
perPanel.add(lblAppPosition);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 4;
gbc.gridy = 11;
gl.setConstraints(comAppPosition,gbc);
perPanel.add(comAppPosition);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 3;
gbc.gridy = 20;
gl.setConstraints(butAccept,gbc);
perPanel.add(butAccept);
validateAction validateButton = new validateAction();
butAccept.addActionListener(validateButton);
}
class validateAction implements ActionListener
{
public void actionPerformed(ActionEvent e)
{
Object obj = e.getSource();
if(obj == butAccept)
{
String appId = txtAppId.getText();
if (appId.length() == 0)
{
getAppletContext().showStatus("Applicant Id cannot be blank");
return;
}

String appName = txtAppName.getText();
if (appName.length() == 0)
{
getAppletContext().showStatus("Applicant Name cannot be blank");
return;
}
String position = String.valueOf(comAppPosition.getSelectedItem());
getAppletContext().showStatus(" ");
}

Object source = e.getSource();
if (source == butAccept)
{
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con;
con = DriverManager.getConnection("jdbc dbc:Example","sa","");
PreparedStatement stat=con.prepareStatement("insert into Example(cAppId,vAppName,vAppPosition)values(?,?,?)");
stat.setString(1,txtAppId.getText());
stat.setString(2,txtAppName.getText());
stat.setString(3,(String)comAppPosition.getSelectedItem());
stat.executeUpdate();
}
catch (Exception exception)
{
System.out.println("Error encountered while entering data in the database:"+ exception);
}
}
}
}
}
please reply soon
Thank You
Jitin.Rathod
[This message has been edited by Jitin Rathod (edited May 09, 2001).]
[This message has been edited by Jitin Rathod (edited May 09, 2001).]
[This message has been edited by Jitin Rathod (edited May 09, 2001).]
Hi Jimi
For the policy tool i am adding permission for the image for my applet. I am having ACDSee installed on my pc, so can this be a problem.
Thank You
------------------
20 years ago
Hi Nathan
Thanks again for your reply. Now the problem is that i have downloaded the plugin and the converter. I am having problem with the converter according to the installation procedurre i was told to unzip the converter file and i did so.
Then i was told to type a path i.e.
java -jar htmlconv1_3.jar -gui
and i got the following error
Exception in thread "main" java.util.zip.ZipException:The system cannot find the file specified
java.util.zip.ZipFile(Native Method)
java.util.zip.ZipFile.<init>(UnknownSource)
java.util.jar.JarFile.<init>(UnknownSource)
java.util.jar.JarFile.<init>(UnknownSource)
please reply soon.
Thank You
------------------
20 years ago
Hi Nathan
Thanks for your advice and I have one more query regarding the .jar files pls can u just make it more clear for me. I would be glad if u would help me and also tell me what is "swingall.jar" file
Thank You
20 years ago