Develop applet

i am new to java
i need to develope java applet
can i develope java like .net application mean drag button n drop on form and write code on click event
for .net application Visual studio
for applet ?
i just want to develop applet oni
so i not prefer heavy like visual studio
Edited by: 786363 on Jan 7, 2012 12:30 AM

786363 wrote:
i am new to java
i need to develope java applet
can i develope java like .net application mean drag button n drop on form and write code on click eventYou can use NetBeans. But my suggestion is, as you are a new bee to java, do not go with the IDE to learn the basics. Search in the google for some beginner tutorials in applet and whatever you want. Lesson: Java Applets is a quick guide for that.

Similar Messages

  • Developing applets using ocf

    Hello
    The wallet demo is a frame window based application using swing
    We wanted an applet version of the same
    So we changed the extends frame part to extends JFrame
    But there are security exceptions which are thrown
    So we refered the programmers guide for OCF
    But it discusses only for java platform versions 1.1 and 1.2
    It is mentioned that the security models are changing
    Where do we get information on how to develop applets using OCF framework for java platform 1.3
    Are there some examples for the same
    Thanks in advance
    Regards
    Kumar

    Hello
    Thanks once again
    But what are the resources that the applet is trying to access?
    What are the permissions to be given.
    Any small examples could be given
    Infact now we are able to run it in appletviewer but not using IE.
    The exception thrown is
    java.security.AccessControlException access denied java.io.FilePermission images/initialize.gif read
    So what permissions to set and where
    Is it possible to grant all permissions to start with
    policy.grant(All)
    Are there seperate permissions so that one directory alone or a file alone is accessed
    Thanks once again
    kumar
    It's related to J2SE not Java Card.
    Applets run in a sandbox by default, whic offers very
    little access to resources of the machine it's running
    on. It's a security feature that prevents your machine
    from very easily being compromised. To set outside
    that sandbox requires changes to the java.policies and
    java.security.policies, and certificates.

  • Best IDE for developing Applets,Servlets,JSP

    Hi,
    I'm looking for a little bit of advise. I have been developing prototypes using Apache Tomcat. Now I need to go into a full development phase, and I need an IDE to help speedup my work, especially when it comes to debugging applets and servlets. So the following are my questions:
    1. What is the best IDE to use in conjunction with Apache Tomcat? Does JBuilder, for example, fit this bill?
    2. Outside of Apache, I believe there is for example IBM's Websphere, which includes an IDE and a Servlet/JSP container. Which is the best of these packages?
    Thank you for your help.
    Miguel

    Check out NetBeans 3.5 at www.netbeans.org

  • Accessing a web service from an applet

    Using NetBeans 5.5.1, I have created a web application consisting of a web service, an applet and a jsp. The applet is the client of the web service. The application is deployed on Tomcat 5.5.17, which comes with the IDE. Since the web service and the applet reside on the same server, I do not need to sign the applet to contact the web service�at least that was what I thought. Asking for the jsp in my browser, however, results in a java.security.AccessControlException:
    access denied (java.util.PropertyPermission xml.catalog.ignoreMissing read)
    To my best knowledge, my applet is not accessing local resources or doing other things that require it to leave the sandbox, so I don't understand why it needs extra permissions. Could it be the generated web service client code that is causing the exception? What is it doing that it needs extra permissions? By bundling everything in one application, I was really hoping to avoid having to sign my applet...

    I performed some additional tests and it appears that when processing XML, java classes under the hood often need access to PropertyPermissions, ReflectPermissions, etc. So although your own code does not need to step out of the sandbox, system classes do. For example, try to create a JAXB context in an applet: unless you sign your applet or change your policy file, it will not work. Something to bear in mind when developing applets or deploying applications via JWS.

  • Can't run JRE 1.2.2 applets once 1.4.1 installed

    I have an applet developed with JDK 1.2.2 (uses 3rd-party jars) which was working perfectly with the 1.2.2 plug-in
    that comes with the JDK.
    The OBJECT tag specifies the dynamic versioning clsid clsid:8AD9C840-044E-11D1-B3E9-00805F499D93 (which is the
    only possibility for 1.2.2?).
    However, when users who have downloaded the 1.4.1 plug-in run the applet (quite apart from the fact that I have had
    to solve a problem where plug-in 1.2.2 accepts PARAMs with initail _ but plug-in 1.4.1 does not!) they are
    getting an ExceptionInInitializerError inside one of the 3rd-party libraries. I have reproduced this
    error on my Windows XP PC (IE 6). The stack trace is as follows :
    (this has been reproduced outside of the browser using JRE 1.4.1 because the 1.4.1 plug-in console won't display,
    even after manually running the Console and setting the Show Console checkbox,
    and the icon doesn't appear on the System menu, presumably all because I have JDK 1.2.2 + plug-in installed)
    java.lang.ExceptionInInitializerError
    at javax.crypto.Mac.getInstance(DashoA6275)
    at com.baltimore.jpkiplus.pkcs12.PFX.fromASN1Object([DashoPro-V1.3-01300
    0])
    at com.baltimore.jpkiplus.pkcs12.PFX.fromBER([DashoPro-V1.3-013000])
    at com.baltimore.jpkiplus.pkcs12.PFX.<init>([DashoPro-V1.3-013000])
    at com.baltimore.jpkiplus.pkidevice.PKCS12Provider.openFile([DashoPro-V1
    .3-013000])
    at com.baltimore.jpkiplus.pkidevice.PKCS12Provider.openFile([DashoPro-V1
    .3-013000])
    at com.baltimore.jpkiplus.pkidevice.PKCS12Device.initInstance([DashoPro-
    V1.3-013000])
    at com.baltimore.jpkiplus.pkidevice.PKIDeviceManager.getPKIDevice([Dasho
    Pro-V1.3-013000])
    at com.baltimore.jpkiplus.vaults.Vault.a([DashoPro-V1.3-013000])
    at com.baltimore.jpkiplus.vaults.Vault.openVault([DashoPro-V1.3-013000])
    at mailsign.signer.signAndSend(signer.java:262)
    at mailsign.AppletSigner.signAndSend(AppletSigner.java:329)
    at mailsign.AppletSigner.action(AppletSigner.java:521)
    at java.awt.Component.handleEvent(Unknown Source)
    at java.awt.Component.postEvent(Unknown Source)
    at java.awt.Component.postEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs
    at javax.crypto.SunJCE_b.<clinit>(DashoA6275)
    ... 24 more
    Caused by: java.lang.UnsupportedOperationException
    at java.security.cert.CertificateFactorySpi.engineGenerateCertPath(Unkno
    wn Source)
    at java.security.cert.CertificateFactory.generateCertPath(Unknown Source
    at javax.crypto.SunJCE_d.a(DashoA6275)
    at javax.crypto.SunJCE_d.a(DashoA6275)
    at javax.crypto.SunJCE_b.i(DashoA6275)
    at javax.crypto.SunJCE_b.h(DashoA6275)
    at javax.crypto.SunJCE_v.run(DashoA6275)
    at java.security.AccessController.doPrivileged(Native Method)
    ... 25 more
    In my opinion, this has something to do with the way service providers are handled. The 3rd party jar requires
    a Security.insertProviderAt () call. My suspicion is that there is some kind of conflict with the JCE stuff
    that comes bundled with JRE 1.4.1 to handle RSA signed applets. I found a similar conflict with the 1.2.2 JRE
    when I tried to jarsign the 3rd-party libraries - I was getting, at runtime, either some kind of infinite loop hanging or
    a stack overflow due to recursive function calls.
    The fact that I can run the applet as a main and that I get the exact same error running the app from the DOS
    prompt would indicate that this is a JRE 1.4.1 problem (surely the JREs are supposed to be downwardly-
    compatible??!!! - i.e. the JRE 1.4 should run apps compiled with JDK 1.2.2 without any problem). Yes, I have
    run the app as a main with JRE 1.2.2 and all works fine.
    However, I could get around this if I could force the 1.2.2 plug-in to run instead of the 1.4.1 plug-in (quite
    how the users are going to be able to get the 1.2.2 plug-in if they have plug-in 1.4.1 installed
    without being Java experts is a problem I will leave
    till later when I try to figure out how to make my applet an RSA signed applet (which if the documentation is
    correct are only available from 1.3 onwards, hence solving this 1.4.1 problem would be VERY nice)).
    But the problem is that once the 1.4.1 plug-in is installed, it always takes precedence over lower versions.
    It's not obvious from the documentation whether older plug-in versions get executed when static versioning
    is used for the clsid in the OBJECT tag. I can't be bothered to download a 1.3 plug-in and try.
    However, unless I am mistaken, there is not a static versioning clsid for plug-in 1.2.2 ?????
    In summary, once users download a plug-in version greater than 1.2.2 (presumably by running another applet from some
    other site that requires eg 1.4.1 - I guess Sun's aim is to make the Plug-In as prevalent as possible, hence
    this is not a far-fetched scenario), it is no longer possible for my applet to be run by a 1.2.2 JRE !!!!!!!
    Because the 1.4.1 JRE is not downwardly-compatible, it can't run my 1.2.2-developed applet and my deployed
    application is broke.
    Unless I am missing something somewhere (which is possible because I am getting fed up of solving problem after
    problem with the Plug-In - eg the mess of setting the right codebase to get different plug-ins to be downloaded
    automatically - the HTML converter doesn't always set up the codebase correctly), this seems like a nightmare
    for applet developers - from one day to the next your applications will break because of Sun's plug-in upgrading.
    Please tell me there is a way to force the 1.2.2 JRE/plug-in to execute instead of 1.4.1 and that there is a
    way for the 1.2.2 plug-in to be downloaded automatically by users even when they have 1.4.1 already installed.

    Are you using signtool? I had a problem where applets stopped working when I went from JRE 1.3.1_01a to 1.3.1_07. I updated the signtool from 1.1 to 1.3 and now my applets run.
    Mark

  • Java 5.0 might prevent visitors having old browses from viewing my applet?

    I am using Java 5.0 to develop applets, but if I use all the possibilities that 5.0 version offers (such as enum) that means that clients viewing my applet must have JRE 5.0 as well. Does that mean a very recent browser will be required?
    I found which browsers support Java 5.0 on the page
    J2SE 5.0 "Supported System Configurations" at
    http://java.sun.com/j2se/1.5.0/system-configurations.html
    In short, what I take from there is that browsers required would be:
    - Mozilla 1.4+
    - Internet Explorer 5.5 (SP2+), 6.x on Windows platforms
    - Netscape 4.7.x on Solaris 8 on SPARC and x86
    - Netscape 7 and 7.1 are not offically supported, but should work
    I have no idea how recent these versions are and whether it is acceptable to assume that web visitors will have these versions.
    I appreciate some guidance here. In my country Internet is not so developped and I am affraid the applet won't run on visitors browsers.
    Thank you.

    I am using Java 5.0 to develop applets, but if I use
    all the possibilities that 5.0 version offers (such
    as enum) that means that clients viewing my applet
    must have JRE 5.0 as well. Does that mean a very
    recent browser will be required?no.
    I found which browsers support Java 5.0 on the page
    J2SE 5.0 "Supported System Configurations" at
    http://java.sun.com/j2se/1.5.0/system-configurations.h
    tml
    In short, what I take from there is that browsers
    required would be:
    - Mozilla 1.4+
    - Internet Explorer 5.5 (SP2+), 6.x on Windows
    platforms
    - Netscape 4.7.x on Solaris 8 on SPARC and x86
    - Netscape 7 and 7.1 are not offically supported, but
    should work
    I have no idea how recent these versions are and
    whether it is acceptable to assume that web visitors
    will have these versions. I'd think it is almost safe to assume people have those, they're not that young. the question is rather "do they have the JRE 1.5.0?"

  • Seeking Help for Guidance in developing a product using JAVA CARD

    Hi All,
    I am using windows environment with netbeans 6.8 as developer tool and MySql Server connectivity for back end process.My requirement is to develop applets and installing them to my Smart card and reader.my question is
    1. how i am supposed to create applets to get the student id of particular student whose id is already registered in the database?
    2. how to install them into the smart card?
    3.what are the commands i am supposed to follow if other than APDU commands?
    4.i found there is APDU commands but what do that each CLA,INS,p1,p2,Lc,le..commands used for?how can i use them in my creation of applets.i found the command varies for certain requirements.
    5.if possible please help me with a small example so that i will start developing it.
    can anyone help me in developing this application.i will be so helpful if anyone helps me in guiding me to develop the java card product.
    Edited by: Sijukj on Mar 4, 2010 7:04 AM

    Hi,
    Welcome to the wonderful world of embedded Java development!
    Sijukj wrote:
    1. how i am supposed to create applets to get the student id of particular student whose id is already registered in the database?The first step is to download the Java Card Development Kit (JCDK) from the Sun website (along with the related documentation/specifications). If you plan on using your code on a real card, I would recommend JC version 2.2.1 or 2.2.2. If it is sufficient to run your applet on a simulator (as a proof of concept or for assignments) with no intention on running on real hardware you could go for JC 3.0.2 and use the supplied simulator. This version of JC does not have commercially available cards as of yet.
    Once you have the applet coded and installed on your card, you would personalise the card for the card holder. This means loading card holder specific data into your application. This may also involve registering the smart card ID with the student in your database.
    2. how to install them into the smart card?The procedure for loading and installing applets is outlined in the Java Card documentation (available with the JC development kits from Sun) and the GlobalPlatform card specifications (available from [http://www.globalplatform.org]). You can look into some open source tools for doing this (GPShell and the Java Card Development Kit).
    3.what are the commands i am supposed to follow if other than APDU commands?This depends on what you are trying to achieve with your applet. If you want interoperability you could implement a standard like ISO7816 or IOS24727. This is a lot of work so you may just want to implement the proprietary you require for each operation you need (e.g. set student ID, get student ID etc).
    4.i found there is APDU commands but what do that each CLA,INS,p1,p2,Lc,le..commands used for?how can i use them in my creation of applets.i found the command varies for certain requirements.These are defined in ISO7816 part 4.
    The CLA byte gives information on the command you are sending such as secure messaging, command chaining, ISO or proprietary command
    The INS is the instruction or command you are trying to perform
    P1 and P2 are parameters to the command. These may not be required for each command but are able to be used to convey further information to the applet.
    Lc is the length of the data field you are sending (e.g. for a PUT DATA command this would be the amount of data you are sending)
    Le is the length of the data you expect to receive back from the card. If this is absent you do not expect the card to return any data, 0x00 means send all the data you have left (up to the limit of the response APDU)
    5.if possible please help me with a small example so that i will start developing it.You can find example code in the Java Card Development Kit. There are a wide range of examples there that can help you get started.
    Cheers,
    Shane

  • Can I Use Jce in applet

    Hi all,
    Thanks for everybody first if you look at my question and try to help me to find out the problem.
    I need to write a applet which can let people to use
    the jce's des function to encipher the user's password and
    id from the homepage.
    I write a applet already. It work fine as a application.
    But it doesn't work when I run it as a applet. Does the problem come from the security problem because I need
    to Load a sun_jce provider in a clien machine ?
    Can I use JCE in applet ?
    If it is ok to use jce in developing applet do I need to sign the applet before run it in web and which file I need to sign.
    Btw, I use the archive tag in html file to make user get the whole jce jar file. does it Ok.
    Followin is my source code
    import javax.crypto.*;
    import javax.crypto.spec.*;
    import java.security.*;
    import sun.misc.*;
    import java.applet.*;
    import java.awt.*;
    public class DesApplet extends Applet{
         public static void main(String[] arg) throws Exception{
              DesApplet des = new DesApplet();
              des.CallDes();
         public void init(){
              CallDes();
         public void paint(Graphics g){
         public CallDes(){
              Cipher desCipher;
              int i;                              
              try{
                   Security.addProvider(new com.sun.crypto.provider.SunJCE());
                   KeyGenerator keygen = KeyGenerator.getInstance("DES");
                   SecretKey desKey = new SecretKeySpec("11111111".getBytes(),"DES");
                   System.out.println("Hello");
                   desCipher = Cipher.getInstance("DES/ECB/NoPadding");
                   desCipher.init(Cipher.ENCRYPT_MODE,desKey);
                   byte[] cleartext = "00000000".getBytes();
                   String value = convert_int_to_hex(cleartext,8);
                   System.out.println("cleartext is:"+value);
                   byte[] ciphertext = desCipher.doFinal(cleartext);
                   value = convert_int_to_hex(ciphertext,8);
                   System.out.println("ciphertext is:"+value);
                   desCipher.init(Cipher.DECRYPT_MODE,desKey);
                   byte[] cleartext1 = desCipher.doFinal(ciphertext);;
                   value = convert_int_to_hex(cleartext1,8);
                   System.out.println("cleartext1 is:"+value);
              }catch(Exception e){System.err.println(e);}
         public String convert_int_to_hex(byte[] value, int len) {
         int i;
         int j;
         byte tmp;
         byte[] temp = new byte[len*2];
         char[] chars = new char[len*2];
         String result = new String();
         for (i=0; i<len; i++)
         if (value[i] < 0)
         temp[i*2] = (byte)((value[i] & 0xF0) >>> 4);
         temp[i*2+1] = (byte)(value[i] & 0x0F);
         else
         temp[i*2] = (byte)(value[i] / 16);
         temp[i*2+1] = (byte)(value[i] % 16);
         for (i=0; i<len*2; i++)
         if (temp[i] > 9)
         chars[i] = (char)(temp[i] - 10 + 65);
         else
         chars[i] = (char)(temp[i] + 48);
         result = result.concat(result.valueOf(chars));
         return result;

    I have a server and a client.
    Server has jdk1.4. client is an applet. I need to encrypt the username and password that are sent from client to the server.
    I am able to encrypt and decrypt using JCE's DES on server side, since jdk1.4 has JCE provider installed by default. Since the applet may be running on any browser which may not have JCE supported. Is it possible for me to send the JCE jar file along with the applet and somehow enable the client applet to encrypt the user name and password and send to server.
    Thanks a lot,
    Gagan.

  • Unsigned applet: some machines can copy to clipboard, others can't

    My understanding of Java applet security says that an unsigned applet cannot copy-to or paste-from the system clipboard. However, on at least two systems at my office (but not mine) the user can highlight text in one of our applets, hit Ctrl-C and copy the text to the clipboard. All machines are current vintage, running MS XP and Java 1.4.2. I've checked the java.policy files and they are identical--there are no non-standard permissions in them.
    Now my boss is complaining that I told him this couldn't be done without going the signed applet route. Does anybody know what's going on?

    First of all if you're developing applets for your company (or another one) make sure they
    have the jre set up correctly.
    Any respectfull IT person within a company has IE security set up so why not the jre as
    wel?
    Using the default jre installation in your company? Are you allso using the default IE
    install or did you not agree with some settings there?
    Anyway here is how I think you should set up the jre for your companys people:
    I think a good configuration would be a keystore and policy on the company's
    Intranet to be used by everyone and if so needed a keystore and policy in the user home
    folder to be edited only by admins. Add the 2 keystores to the java.security and the
    admins can configure any special privileges to special applets (like IE security zones
    but more detailed).
    Add the following line to all codebases: "grant { " section in the java.policy/
    permission java.lang.RuntimePermission "usePolicy";
    Now the user does not have the option of "do you trust" for signed applets. I think this
    is a verry good idea because anyone with a jdk can sign their jar.     
    About someone beeing able to copy and the other one not, I guess you've given the
    user too much freedom in changing their settings (the msjvm settings in IE). The
    applet is probably not even run with the SUN jre because you are using the Applet tag.
    Now I am not even sure if hitting crl + c does anyting with an unsigned applet but I would guess that accessing the clipboard from code should not be possible.

  • Plugin: 3rd Party applets not working

    I have an internally developed applet that requires us to install the Plug-In under our IE 5.5 and 6.0 browsers (about 10,000 of them). Upon doing that, I will now have a handful of 3rd party applications that employ applet technology, and that will not work with the Plugin (lots of classnotfoundexceptions being floated around). The only way that I've found I can make these applets work is to turn off use of the Sun Plugin within IE. I am wondering if this is a plugin, or vendor, problem.
    * What is the basic problem here?
    * Is it that these other 3rd party system are written to an older spec and the 1.4 plugin will not support them?
    * Is Sun's plugin not backward compatible with older applets?
    * Did these vendors screw up in some fashion in their applets or HTML?
    * Is the whole idea of applets inherently flawed?
    What are other folks doing to get around these incompatibilities?

    I don't your exact problem with the ClassNotFoundExceptions, but it may be because those applets are using Microsoft specific APIs that caused all the lawsuits to fly.
    I have had success mixing applets requiring the Java Plug-in with those that need or run best under the Microsoft JDK, as follows:
    When the Java Plug-in installs, do NOT take the option that makes it the default plug-in for the browser.
    In your web site:
    Launch the JDK 1.4 applets with the OBJECT tag.
    Launch Microsoft specific applets with the APPLET tag.

  • Recompile Applet, see old vers in browser

    I am developing an Applet.
    I make changes to the code.
    I recompile it successfully.
    I load its' associated HTML file into my browser (IE6).
    Instead of seeing the new version, I see the old.
    I have clicked on 'Tools', then 'Internet Options...', then the button 'Delete Files...', checked the box 'Delete all offline content', and 'Okay'ed everything, but I still see the old version.
    What am I missing? Please help. Thx.

    From the original author:
    Thanks to all for your input. The Duke Dollars were awarded to user 'jajenkins', who hit the nail on the head. Using the Java Console is the easiest and best way to force the latest and greatest version of you under-developement applet into the browser.
    Here's how it worked for me.
    Using Internet Explorer 6 and Java Plug-in 1.4.
    In IE6, choose menu item 'View', submenu item 'Java Console'. A Java console for the Microsoft VM appears, and at the same time, an icon appears in the systray for the Java Plug-in Java Console (looks like a steaming cup of java, of course). Close the Microsoft VM Java Console, as it is useless. Double-click the systray icon - the Java Plug-in Java Console appears. When you have a modified and recompiled applet ready, navigate off the document containing the old version of your applet, type 'x' in the Java Console, then navigate back to the applet containing document. Vwala - your new applet, running just the way you coded it. No more need to clear the temporary internet files cache. No need to close any browser instances.
    Again, thanks to 'tajenkins', and to all other contributors :)

  • JC 2.2.1 contact and contactless applets

    Hello there.
    I need some help regarding the interfaces supported by Java Cards.
    1. My first question is: Do contact and contactless on-card applets differ in any way?
    I mean, in case i am willing to suppot both contact (t=0, t=1) and contactless (t=cl) protocols,
    do i have to develop applet in some specific way to be aware of the type of the connection chosen by an off-card application?
    Or,in contrary, on-card JC 2.2.1 application development is independent of the protocol chosen
    (i.e. application selection and APDUs communication remain the same as while using T=0 or T= 1 for an on-card applet)?
    2. One more question: Why ISO/IEC 14443 is only writtent as supported in JC 2.2.2, but not mentioned in JC2.1.1?
    Isn't it supported by the latter?
    3. How to connect to the card through contactless interface through JCOP tools.
    Waiting for your reply.
    Best regards,
    eveline-z

    Hello,
    Here is a topic you might be interested in:
    "application to r/w Mifare Card via Pegoda CL RD 701 reader",
    http://forums.sun.com/thread.jspa?threadID=5327981
    1. Writing a javacard applet is very similar no matter what's the protocol is used, however not exactly the same. Ideally you want your applet to be able to run on any card. For most commands (application selection, simple exchange), however things become a little bit more if your exchange involved large amout of data or complex sequence. Note some readers have drivers that emulate T=CL over PCSC (see above thread).
    2. I have seen both contactless JC 2.2.2 and JC2.1.1, but note that a JC 2.2.2 and JC2.1.1 doesn't have necessarily a contactless interface (even if it has, the chip module must be connected to an antenna inserted on the card).
    3. If you use a reader that emulate T=CL over PCSC, then you connect to a contactless card as for any other reader. Some readers are both contact and contactless.

  • Passing a file as parameter from applet to servlet

    hi
    i have just started to use servlets. i have developed applet gui interface. when i click the button i want a file "abc.txt" to be send to the servlet. i am doing like this:
    URL serv_url = new URL(null,"http://host:port/xyz/servlet/TestServlet);
    URLConnection connect = (URLConnection)serv_url.openConnection();
    output = new File("abc.txt");
    connect.setDoOutput(true);
    connect.setDoInput(true);
    connect.setUseCaches(false);
    connect.setDefaultUseCaches(false);
    connect.setRequestProperty("content-type","application/x-www-form-urlencoded");
    ObjectOutputStream outputToServlet = new ObjectOutputStream(connect.getOutputStream());
    outputToServlet.writeObject(output);
    outputToServlet.flush();
    outputToServlet.close();
    //for printing purpose on the gui listbox          
    listmodel1.addElement("ConnectingToRemoteServlet");
    BufferedReader in = new BufferedReader ( new InputStreamReader (connect.getInputStream()));
              while((line = in.readLine())!= null)
              listmodel1.addElement("Response:"+line);
              in.close();
    but i am not sure if this is correct. because when i tried to print the file that is send to servlet. it is giving some ascii characters...
    please tell me how to make sure if the file has reached the servlet. or any other method!!
    thanks
    pre_pra

    i don't want to use any third party packages to achieve this. I have looking into forums and i understand that some object serialization stuff has to be done. but i am still not clear abt how to proceed. any example code or details of steps regarding to pass file object from applet to the servlet would be greatly appreciated. i have already spend two full days on this. i wish i can get a better understanding wiht you help
    thanks a lot:)

  • Java Studio Applet Newbie Tutorials?

    Hello,
    I am a newbie to Java Studio and java in general. However, I do have a vague idea of java thanks to my C++ programming experience.
    I am interested mainly in building java applets with Java Studio Enterprise. Can anyone please direct me to some good tutorials for developing applets with Java Studio, preferebly with "swing". (The only tutorials I could find were for web applications or portlets or things other than applets)
    Thanks a bundle,
    Aviv.

    A few useful links:
    Creating a GUI with JFC/Swing
    http://java.sun.com/docs/books/tutorial/uiswing/index.html
    Writing Applets
    http://java.sun.com/docs/books/tutorial/applet/index.html

  • Jcop javacard mifare sample applet

    env : winXP
    IDE : JCOP Tools 2.2
    card : JCOP BIO 31 engineering sample card
    how can i develope applet which communicate with mifare protocol??
    is there any sample?
    thanks..

    Is it JCOP or a vendor card ? I know of vendors that have bio cards with the MoC for the DoD. I don't know of any vendors that have JavaCard Forums Biometry with the JCOP mask on them. In all honesty, ALL vendors probably have it, you just have to call them and a$k for it !$$!

Maybe you are looking for

  • Cannot change password from OS X

    I just tried to change my Skype password from my Mac running OS X 10.6.8. I tried in both Safari and Chrome, but once I put my old password in, I could not tab into the next field not select it with my mouse. I finally got my password changed by logg

  • Labview is using stale command line arguments

    I've created a vi to test passing command line arguments to Labview. I've attached it below. All it does is display the 1st and 2nd arguments. Also in VI Properties in the Execution category, it's set to 'Run when opened'. In the command prompt I'm e

  • Phone Line Problem - URGENT

    Hi All New to the forum and at breaking point so hopefully someone can help resolve an urgent problem with my mother in laws phone. Although her phone provider is the Post Office Home Phone, ultimately the fault lies with the BT underground cable. My

  • Why do some songs I've imported from cd's skip to the next song after a few seconds of play?

    This causes the songs to do the same once i've put them on my ipod. Songs purchased through iTunes play properly...

  • Help!  Access to internet problem

    I'm running two computers. On my desktop, I've loaded Itunes 7 which works fine until I hook up the ipod and try and sync it. Firstly it says that There is a file error then when I try and restore the ipod, Itunes can no longer access the internet. I