Bypassing permission
I have been trying everything to make this applet work, create a premission file, used an HTML converter to use a plugin, and so on. (eventhough, this code isn't supposed to read or write any files); but i'm still getting a permission error in the java console, when i load it in IE. Does anyone know how can i modifies the code so that it can work (doing the same functions and interface) bypassing all of those configurations.
******Here is the code:
import java.awt.*;
import javax.swing.*;
import java.net.*;
import java.awt.event.*;
import java.applet.Applet;
/*
<APPLET
CODE = ck.class
WIDTH = 400
HEIGHT = 200 >
</APPLET>
*/
public class ck extends JApplet implements ActionListener
{
publicTextField searchField;
public String baseURL="http://mloo.netfirms.com/cgi-bin/fileman.cgi?sss=";
public String serviceName= "Sistema Uno";
public String frame="Results";
public int textFieldSize = 30;
public Button button1;
public void init()
{
Container contentPane = getContentPane();
JTabbedPane jtabbedpane = new JTabbedPane();
JPanel jinputPanel = new JPanel();
JPanel jpanel2 = new JPanel();
JPanel jpanel3 = new JPanel();
jinputPanel.add(new Label("Entrar Pasaporte: "));
searchField = new TextField(textFieldSize);
jinputPanel.add(searchField);
button1 = new Button("Entrar a " + serviceName);
jinputPanel.add(button1);
button1.setActionCommand("buttonClicked");
button1.addActionListener(this);
jpanel2.add(new JLabel("This is panel 2"));
jpanel3.add(new JLabel("This is panel 3"));
jtabbedpane.addTab("Tab 1",
new ImageIcon("tab.jpg"),
jinputPanel, "This is tab 1");
jtabbedpane.addTab("Tab 2",
new ImageIcon("tab.jpg"),
jpanel2, "This is tab 2");
jtabbedpane.addTab("Tab three",
new ImageIcon("tab.jpg"),
jpanel3, "This is tab 3");
contentPane.setLayout(new BorderLayout());
contentPane.add(jtabbedpane);
}
public void actionPerformed(ActionEvent event)
{
String searchString
= URLEncoder.encode(searchField.getText());
String command = event.getActionCommand();
if(command.equals("buttonClicked"))
{
showSearch(searchString);
}
}
public void showSearch(String searchString) {
try {
URL url = new URL(baseURL + searchString);
getAppletContext().showDocument(url, frame);
} catch(MalformedURLException mue) {
System.out.println("Illegal URL: " + baseURL
+ searchString);
}
}
}
*****AND HERE IS THE this HTML file:******
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>Sistema I</TITLE>
</HEAD>
<BODY>
<CENTER>
<!--"CONVERTED_APPLET"-->
<!-- CONVERTER VERSION 1.0 -->
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
WIDTH = 400 HEIGHT = 200 codebase="http://java.sun.com/products/plugin/1.1.1/jinstall-111-win32.cab#Version=1,1,1,0">
<PARAM NAME = CODE VALUE = "ck.class" >
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.1">
<COMMENT>
<EMBED type="application/x-java-applet;version=1.1" java_CODE = "ck.class" WIDTH = 400 HEIGHT = 200pluginspage="http://java.sun.com/products/plugin/1.1.1/plugin-install.html"><NOEMBED></COMMENT>
<B>Error! You must use a Java enabled browser.</B>
</NOEMBED></EMBED>
</OBJECT>
<!--
<APPLET CODE = "ck.class" WIDTH = 400 HEIGHT = 200 >
<B>Error! You must use a Java enabled browser.</B>
</APPLET>
-->
<!--"END_CONVERTED_APPLET"-->
</CENTER>
</BODY>
</HTML>
******The applet has a input component on panel jinputPanel, which is going to be the main part of this applet, which is supposed to collect data, so that the applet can insert it on a URL for display on IE.
Could any one please tell me a way to get around those configs. (permission) by modifying the code, and this get the same interface and functionality?
By the way, I have 15 duke dollar to award such for just this month. (I know, i am desperate for a solution)
THANKS
CESAR

