Java Applet that reads from file

I'm quite new to java, I'm fiddling around with it for a nonprofit organization.
I have a java program that reads from a specified file and generates output but my final goal is a search box on the website that will take user input, run it through my program which searches through a prespecified file, and generate output.
I'd appreciate any help.

What can I do with this? I need it to be a String because I'm breaking it down to Tokens.
Thanks,
-Grant
Scanner input = null; //input is going to be the Scanner object
input = new Scanner(new BufferedReader(new FileReader("test.txt"))); /*setting up the Scanner object "input" to read the file "test.txt"*/
String words = null;
String MyArray[] = new String[5000];
while (input.hasNext()) { //Puts ALL the file's data into one string
words = words + " " + input.next(); /*Without that space the string "words" contains is all just one word making it unTokenizable*/
}

Similar Messages

  • Trying to write an applet that reads/displays a file from a remote server

    Hey all,
    I'm trying to make a little applet that launches from a browser that allows me to read a file from a server, reads it line by line and displays each line, and continues to read/monitor the file until I get a specific line of text.
    I've tried to do some code and although I can read the file (and display it), I can't seem to detect the end string (the if statement that tests if the line == "--END--" seems to have no effect, i.e. constant false).
    I have a feeling the approach I took is wrong since this seems insecure and just looks bad (I've seen stuff that seems to indicate I need to do something with implements Runnable or something.) Even if anyone doesn't have the time to actually do the framework of this, if they could perhaps outline an approach and any necessary topics I need to look at (such as
    1. Go and read the threads tutorial.
    2. Go and read the X section in the Y tutorial.
    3. Check out this <link>, as they seem to be doing something similar to what you're doing.
    Thanks in advance.
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    import java.awt.*;
    import java.net.*;
    public class FaxTest extends JApplet {
         JTextArea area;
         JScrollPane pane;
         String display;
         String old_display;
         String tmp;
         boolean end = false;
         java.util.Timer FileTimer = new java.util.Timer();
         TimerTask FileReadTask = new readFile();
         public void init() {
              area = new JTextArea();
              area.setWrapStyleWord(true);
              area.setLineWrap(true);
              area.setEditable(false);
              pane = new JScrollPane(area);
              Container c = getContentPane();
              c.add(pane);
              FileTimer.schedule(FileReadTask, 500,5000);
         public void stop()
              FileTimer.stop();
         class readFile extends TimerTask {
              public void run() {
              java.util.Timer timer = new java.util.Timer();
              TimerTask task = new FaxUpdate();
              timer.schedule(task, 1000,1000);
              try {
              display = "";
              String filename = getParameter("FILENAME");
              URL url = new URL(filename);
              InputStreamReader in = new InputStreamReader(url.openStream());
              BufferedReader br = new BufferedReader(in);
              while( (tmp = br.readLine()) != null) {
                   if (tmp == "--END--\n") end = true;
                   display += tmp;
              catch(IOException error) {
              display = "Error" + error;
         class FaxUpdate extends TimerTask {
              public void run() {
              if(end == true) {
                   area.setText("finito");
              else area.setText(display);
    }

    use tmp.equals("--END--\n") instead of tmp == "--END--\n"
    The == means does tmp reference the same object as "--END--\n" which will probably never be true. Using the equals method means does tmp contains the same characters as "--END--\n"

  • Writing applets that read files hosted on a webserver.

    I have a java applet that I need to be able to read files on the webserver. IE open and render images. I know ultimately the user will end up downloading these images that are hosted on the websserver, but the java applet is set to read from it's local directory, for example, when I open up a text files, I use the path someFolder\someFile.txt. If the applet was placed in the same folder as someFolder on the webserver, how would I set it up to read from there opposed to on the machine executing the java code? Would I have to force the user to download all the resources, in thus case, wouldn't I need to to have the applet signed?

    ++++ to everything by malcolmmc (use class.getResource())
    Jeremy.W wrote:
    ...I could perform a CRC check and compare the archives with the ones on the server, but it still means I'd need to compress the archives manually every time an update is made to the files on the server.I am not sure whether you are concerned with the effort of doing this from your side. If so, use Ant to make your ..war file or whatever and just upload it (and restart the server?).
    If it is the archives (Jar or Zip) updating on the client that is your major concern, then I would definitely recommend the JNLP based option, which gives the client not only automatic update (the JWS client manages the time checks with the server), but if you want to go that far, direct programmatic access to the download API. I made a crude example (never properly finished) of downloading resources using the JNLP APIs DownloadService. (Though the standard 'auto-update' is known to be quite effective).
    Oh, and.. Of course, if you have a Java enabled server, the download servlet is known to be best for updates, incremental or otherwise.
    Does this applet really need to be embedded in a web page at all? JWS has offered these things to free-floating applets since Java 1.2, it is only recently an embedded applet could hook into the JNLP API.
    As to the 'Zip' archives of resources. Some points:
    1) It pays to split them up, especially if resources are likely to change frequently in one, but rarely for others. If you do that, webstart ensures the user only downloads the updated Jars. The only way to achieve a class/resource refresh in a conventional embedded applet ('plugin1') was to flush the class cache which would force refresh of all classes/resources.
    2) Splitting the archives according to type of resource can provide benefits in that the Jars can have different compression levels appropriate to the format.
    3) I would recommend deploying all resources, whether classes or other resources, in Jar and not Zip files. Sun has decided that no Zip will be checked to see if it is digitally signed, so Zip archives can cause problems for apps. which might need extended permissions (if it ever comes to that).

  • Crystal Report that reads from an XML file Datetime or Date

    I have a Crystal Report 2008 that reads from an XML file, the source File XML Date data looks like this: 2008-03-10
    But the Crystal Report interpreted by datatime, I need the Crystal Report to look like this: 2008/03/10 (date) not 2008-03-10T00:00:00-05:00 (datatime)
    Look at an example (source file xml, report, and parameter file to execute report) at url: http://www.5websoft.com/sample.zip
    Import the file in the design and will to verify that interpret incorrectly the fields of type date as datetime
    not mapped currently for fields..
    Help.....
    Thanks!

    You could always reformat the field to only display the date portion:
    Format Field > Date and Time tab; choose the date style you need here.
    Or create a formula to extract just the date and use this field in your report:
    date({table.field})

  • Adobe Illustrator CS4 Error: Error 1603. Error 1305.Error reading from file C:\Program Files\Adobe\Adobe Illustrator CS4\Support Files\Required\Fonts\AdobeSongStd-Light.otf.  Verify that the file exists and that you can access it.  AdobeColorCommonSetRGB

    Iam trying to load illustator in my PC i get following error while loading Application CD 2
    Adobe Illustrator CS4
    Error:
    Error 1603. Error 1305.Error reading from file C:\Program Files\Adobe\Adobe Illustrator CS4\Support Files\Required\Fonts\AdobeSongStd-Light.otf. Verify that the file exists and that you can access it.
    AdobeColorCommonSetRGB
    Error:
    Error 2.
    My serial no. [Removed by moderator]

    Download a copy an installer for CS4 from the links on this page:
    Other downloads

  • Java applets that worked fine under 10.6 don't work under 10.7. What can I do to correct this?

    Java applets that worked just fine are no longer working after upgrading to MacOS X 10.7 (Lion).  Here is one example: 
    So far, I've found two Java Applets that have become inoperative under 10.7.  Here's one example: http://www.vimas.com/videoLarge.php
    I did download and install the Java  VM for Lion and I did "activate" the applet when prompted to do so.  However, the example  cited above fails to load.
    A second example is  JFileUpload which enables a drag & drop UI with which to upload files.  Worked great under 10.6 but under 10.7 dropping a file on the UI only causes the web browser to display the file, not upload it.

    @etresoft: "You have old cache files left over from you Snow Leopard Java installation. Just run the Jave Preferences application and delete your cache files."
    I did that right off but this is not the issue and that tactic didn't work.  Apple has acknowledged the issue and the workaround (extract the applet from the web page) seems to suggest that Safari is at fault.  Safari 5.2 was just released today but, unfortunately, doesn't correct this issue.
    In the case of the applet that I use most often (JFileUpload), it also has a File menu so I use that instead.  Nonetheless, I sure do miss drag & drop.  As more and more of our Mac users upgrade to Lion and bump into this issue, we expect our  support effort to be challenged with an increasing number of irate users.  It doesn't help to be able to say "It's Apple's Fault" but that's all we can say.

  • Is there a loader that reads max files ?

    i am using inspector3ds to load 3ds files but since i will get 3d studio max 5 soon i would like to use max models, is there a loader whatsoever that reads those files ? if not, is there any application that converts file's extention from max to 3ds ? or simply, is there any possible way to use max models in java 3d?
    regards, Lukasz

    Take a try on this ASE loader:
    http://home.no.net/tabusd/main.php
    Hope this helps.

  • [Error] Microsoft SQL Server 2008 Setup. Error reading from file msdbdata.mdf

    Hi all
    I'm trying to install SQL 2008 Express on my Computer: Hp compact DX7300 Slim tower.
    and get this error:
    TITLE: Microsoft SQL Server 2008 Setup
    The following error has occurred:Error reading from file d:\8268cd7b247d294de359c9\x86\setup\sql_engine_core_inst_msi\PFiles\SqlServr\MSSQL.X\MSSQL\Binn\Template\msdbdata.mdf.  Verify that the file exists and that you can access it.
    Click 'Retry' to retry the failed action, or click 'Cancel' to cancel this action and continue setup.
    For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.0.1823.0&EvtType=0xF45F6601%25401201%25401
    Log file
    Overall summary:
      Final result:                  SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then rerun SQL Server Setup.
      Exit code (Decimal):           -2068643839
      Exit facility code:            1203
      Exit error code:               1
      Exit message:                  SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then rerun SQL Server Setup.
      Start time:                    2014-12-09 23:22:03
      End time:                      2014-12-09 23:40:28
      Requested action:              Install
      Log with failure:              C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141209_232121\sql_engine_core_inst_Cpu32_1.log
      Exception help link:           http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.0.1823.0
    Machine Properties:
      Machine name:                  VISTA-PC
      Machine processor count:       2
      OS version:                    Windows Vista
      OS service pack:               Service Pack 1
      OS region:                     United States
      OS language:                   English (United States)
      OS architecture:               x86
      Process architecture:          32 Bit
      OS clustered:                  No
    Product features discovered:
      Product              Instance             Instance ID                    Feature                
                     Language             Edition              Version         Clustered 
    Package properties:
      Description:                   SQL Server Database Services 2008
      SQLProductFamilyCode:          {628F8F38-600E-493D-9946-F4178F20A8A9}
      ProductName:                   SQL2008
      Type:                          RTM
      Version:                       10
      SPLevel:                       0
      Installation location:         d:\8268cd7b247d294de359c9\x86\setup\
      Installation edition:          EXPRESS
    User Input Settings:
      ACTION:                        Install
      ADDCURRENTUSERASSQLADMIN:      False
      AGTSVCACCOUNT:                 NT AUTHORITY\NETWORK SERVICE
      AGTSVCPASSWORD:                *****
      AGTSVCSTARTUPTYPE:             Disabled
      ASBACKUPDIR:                   Backup
      ASCOLLATION:                   Latin1_General_CI_AS
      ASCONFIGDIR:                   Config
      ASDATADIR:                     Data
      ASDOMAINGROUP:                 <empty>
      ASLOGDIR:                      Log
      ASPROVIDERMSOLAP:              1
      ASSVCACCOUNT:                  <empty>
      ASSVCPASSWORD:                 *****
      ASSVCSTARTUPTYPE:              Automatic
      ASSYSADMINACCOUNTS:            <empty>
      ASTEMPDIR:                     Temp
      BROWSERSVCSTARTUPTYPE:         Disabled
      CONFIGURATIONFILE:             C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141209_232121\ConfigurationFile.ini
      ENABLERANU:                    True
      ERRORREPORTING:                False
      FEATURES:                      SQLENGINE,REPLICATION
      FILESTREAMLEVEL:               0
      FILESTREAMSHARENAME:           <empty>
      FTSVCACCOUNT:                  <empty>
      FTSVCPASSWORD:                 *****
      HELP:                          False
      INDICATEPROGRESS:              False
      INSTALLSHAREDDIR:              C:\Program Files\Microsoft SQL Server\
      INSTALLSHAREDWOWDIR:           C:\Program Files\Microsoft SQL Server\
      INSTALLSQLDATADIR:             <empty>
      INSTANCEDIR:                   C:\Program Files\Microsoft SQL Server\
      INSTANCEID:                    SQLExpress
      INSTANCENAME:                  SQLEXPRESS
      ISSVCACCOUNT:                  NT AUTHORITY\NetworkService
      ISSVCPASSWORD:                 *****
      ISSVCSTARTUPTYPE:              Automatic
      MEDIASOURCE:                   d:\8268cd7b247d294de359c9\
      NPENABLED:                     0
      PID:                           *****
      QUIET:                         False
      QUIETSIMPLE:                   False
      RSINSTALLMODE:                 FilesOnlyMode
      RSSVCACCOUNT:                  <empty>
      RSSVCPASSWORD:                 *****
      RSSVCSTARTUPTYPE:              Automatic
      SAPWD:                         *****
      SECURITYMODE:                  <empty>
      SQLBACKUPDIR:                  <empty>
      SQLCOLLATION:                  SQL_Latin1_General_CP1_CI_AS
      SQLSVCACCOUNT:                 NT AUTHORITY\NETWORK SERVICE
      SQLSVCPASSWORD:                *****
      SQLSVCSTARTUPTYPE:             Automatic
      SQLSYSADMINACCOUNTS:           VISTA-PC\VISTA
      SQLTEMPDBDIR:                  <empty>
      SQLTEMPDBLOGDIR:               <empty>
      SQLUSERDBDIR:                  <empty>
      SQLUSERDBLOGDIR:               <empty>
      SQMREPORTING:                  False
      TCPENABLED:                    0
      X86:                           False
      Configuration file:            C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141209_232121\ConfigurationFile.ini
    Detailed results:
      Feature:                       Database Engine Services
      Status:                        Failed: see logs for details
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       SQL Server Replication
      Status:                        Failed: see logs for details
      MSI status:                    Passed
      Configuration status:          Passed
    Rules with failures:
    Global rules:
    Scenario specific rules:
    Rules report file:               C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141209_232121\SystemConfigurationCheck_Report.htm
    I will very appriciate if someone can help me solve it. I was trying to set Full control for my account in Properties/Security of root folder and try again but error is still.
    Many thanks

    Hi Foreverduy,
    Before you run SQL Server 2008 express setup, make sure that you have installed Windows installer 4.5 and.NET Framework 3.5 SP1 manually. For more information about the process, please refer to the article:
    http://msdn.microsoft.com/en-us/library/ms143506(v=sql.100).aspx. Moreover, please turn off all the third-party softwares which could prohibit the installation process.
    According to your error message, the issue could be due to that your account has no rights to install SQL Server, or the corruption on the media.
    Firstly, please ensure that your account has admin rights. Also make sure that you right-click the setup.exe and choose “Run as administrator” to complete the installation.
    Secondly, please check if "msdbdata.mdf" file exists at d:\8268cd7b247d294de359c9\x86\setup\sql_engine_core_inst_msi\PFiles\SqlServr\MSSQL.X\MSSQL\Binn\Template. If it exists, please make sure that your account has read permission to the extracted
    folder.
    However, if the file doesn't exist in the extraction, the media could be corrupt. Please download the
    media
    again and check if the issue still occurs.
    Regards,
    Michelle Li

  • Read from file and plot data against timestamp

    Hello,
    I know that there are already many posts regarding the question I m about to ask. But, I somehow dont seem to achieve what I want using the suggestions given in the other posts.
    My problem is that, I have a file with the first column as a time stamp containing hour, minute, second and millisecond. The second column in a set of pressure values. I want to plot a graph of these pressure values against the timestamp recorded in this .txt file. Whatever I do, the timestamp values seem to skip by a couple of seconds.
    How do i do this correctly?
    Also, Is it advisable to use the read from file or the read from spreadsheet file vi? Kindly help me out.
    Thanks and regards.

    Hey, I was having a similar issue the other day.  The first problem I had was how to open the file and actually get the timestamp information.  Since I'm using LabView 8.0, I had to go into Read Spreadsheet File and create a new vi to open strings (in an array form).  That's the Read Spreadsheet File (string) vi below.  Then, I had to figure out how to convert the string of a timestamp to something meaningful to me.  The Timestamp2.vi is how I did that below.  I'm also including a little test file.  So, to run Timestamp2.vi, you will have to input the right base path, and have the Read Spreadsheet File (string).vi in the same place as Timestamp2.  Hope that helps.  I think I'm finally getting this stuff, so let me know if it doesn't work.
    Attachments:
    Test.txt ‏1 KB
    Timestamp2.vi ‏28 KB
    Read From Spreadsheet File (String).vi ‏25 KB

  • Web Service; Error attempting to read from file

    I'm trying to connect to a web service as outlined by the book "Creating Dynamic Forms with Adobe LiveCycle Designer" which is an excellent book by the way.
    I'm receiving the following error "Error attempting to read from file. http://www.webservicex.net/BibleWebservice.asmx"
    I've successfully created the Data Connection to
    http://www.webservicex.net/BibleWebservice.asmx?wsdl
    I dragged and dropped the bookTitle, chapter & Versie onto the form. I also dragged and dropped the GetBibleWordsByChapterAndVerseResult and the GetBibleWordsByChapterAndVerseBtn.
    I Preview PDF and click the button I get the above error.
    Does anyone have experience using Web Services with Adobe LiveCycle ES and have advice on how to resolve this. Any Suggestions would be greatly appreciated.
    -Todd

    Well, I have more news on the error I'm getting. - NO I didn't find the problem. Yet
    I checked and made sure that web.config had "None" selected " in authentication mode. I.E. <authentication mode="None" /> This should eliminate any authentication problems since that turns off IIS's authentication checking.
    At first I was thinking the form was generating the error trying to read the result coming back from the web service, but I put in some code that writes the result to a log file when the method fires off.
    I noticed that when I clicked on the button on the form, the error message would pop up from Acrobat, but when I check the log file, there was NO entry. This means that Acrobat failed before it could execute the method.
    Here is the web method:
    [WebMethod(CacheDuration = 30,
    Description="Returns the String 'True' or 'False' whether or
    not you entered a 'T' or 't'.")]
    public string TF(string Tf)
    string result="False";
    if(Tf.Substring(0,1).ToLower()=="t"){
    result= "True";}
    LogFile.Write("Sent: "+result);
    return result;

  • BDC read from file!

    Dear friends,
           I have one problem. When we are creating abap program by clicking on program button on recording screen it asks for the program name and there are 2 oprions..
    1) read from file and
    2)transfer from recording....second one is fine...but i am not able to use first option...how to use that and why it is used...
    Thanks And Regards,
    Bhavin Shah.

    Hi Bhavin,
          The basic difference between read from file & transfer from recording is that...
        In transfer from recording you have to give a session name or you have to choose call transaction. Here you have to give the data manually.
        The Read from file will generate a dataset where who have to give that path of your flat file. When you execute it the data from the flat file will go into the necessary fields you have choosen before. You can process the job in the back ground which will be executed and a log file will be generated so that you can check whether it is updated correctly or not.
          In general we use read from file option when we know that the data are correctly arranged for recording.
          For eg. if you want to update the database with the file you have to know the datatype and length of each database-field so that you can specify the data in a file.
          i.e Assume that you are having 2 fields in db-table of type char and length 10 & 20. Assume that you are going to give values for these fields as mala & kala.
    In the file... you should specify like this...
    mala      kala                xxx
    123456789012345678901234567890
    <---Ten--><-----Twenty------->
    In a Real Time scenario you have a very large table with 50 to 100 fields to update with a very large data like 1000 - 10,000 records and if you are not sure with the flat file data. Then you should not go for the file option.
    Hope this helps you.
    Regards,
    Maheswaran.B

  • ERROR WSNAT_CAT:1287 When Reading from file

    Hi,
    I'm new in Tuxedo and hope you understand my lack of knowledge
    During an execution of a procedure that reads from a file in the server it shows the error in ULOG:
    "121620.prod240!WSH.22478.1.0: WSNAT_CAT:1287: WARN: Forced shutdown of client; user name ''; client name ''; workstation address '//192.168.1.8:6386677'"
    after reading/inserting the first record.
    I alter the file, erase that first record and execute the proc. In some cases it reads all the file or just another record, so i have to alter the file again
    After some attempts, it runs fine and reads all the records remaining.
    The version of Tuxedo 8.1
    The file may have as much as 50 records.
    Any suggestion will be appreciated

    Hi,
    Does the WSNAT_CAT:1287 error message occur every time? I don't see how that error message relates to what you are doing as it basically says that a workstation client timed out which is likely due to client inactivity and isn't related to your service. If timing out your client is an issue, try setting or changing the -T option on the WSL.
    Regards,
    Todd Little
    Oracle Tuxedo Chief Architect

  • Error reading from file glibc-2.5-24.i686.rpm RHEL 5 Setup stuck at 80%

    Hi, I am installing Oracle 10g on RHEL 5 (Red Hat Enterprise Linux 5) machine I am facing two problems
    1) while installing the rpm packages the following package gave an error
    Error reading from file glibc-2.5-24.i686.rpm
    2) I still gave a try to runInstaller command the installer opened but was stuck at 80%
    I have 3 GB ram and 320GB hard drive I am not sure what to put in the swap memory and other settings i blindly followed instructions given here
    http://www.oracle-base.com/articles/10g/OracleDB10gR2InstallationOnRHEL5.php
    What could be the problem where do I find the error log if its created
    Please help me
    Thanks
    Edited by: 891355 on Nov 6, 2011 12:06 PM

    I found the installActions file in the installer folder and I think this could be the problem
    INFO: The 'shiphomeproperties.xml' file is missing from shiphome location '/home/oracle/Desktop/database/install/../stage/products.xml.' Add this file to the 'Disk1/stage' directory of the shiphome.
    though I am attaching the log file for more details do you think the installer is corrupt :(
    InstallActions log file ==> http://www.mediafire.com/?nh7mx7bxqht9ovu
    Edited by: 891355 on Nov 6, 2011 1:35 PM

  • Is there is abetter performance to read from file than my code for longfile

    Hi
    This is my code to read from file and show it in a text area ,but for long file it wait for along time to show the file ,Is there is better performance code?
    chooser=new JFileChooser();
                        chooser.showOpenDialog(sav);
                        File fe=new File(chooser.getSelectedFile().getAbsolutePath());
                        //out = new PrintWriter(new FileOutputStream(f));
                         in2 = new BufferedReader(new FileReader(fe));
                         str=in2.readLine();
                         if(str!=null)
                             nn2=str;
                         str=in2.readLine();
                        try{
                         while((str)!=null)
                         { nn2=nn2+"\n"+str;
                             str=in2.readLine();
                         }}catch(NullPointerException e){}
                         jta2.setText(nn2);
                          in2.close();
                       // in2 = new BufferedReader(new FileReader(fe));
                    } catch (IOException ex) {
              }catch(NullPointerException e){}
                  nn1=str;

    Yes you code would be slow because you are continually creating new string by concatenating one string to another.
    The easiest way is to simply use the read(...) method of the text area.

  • Java Applet: choose, read and write local file

    Can some body please help in writing a Java Applet with the following features:
    1. FileChooser button to select a local text file
    2. Load button
    3. Read the file line by line, process it and write into a text file.

    AnilK wrote: Thank you very much.
    Those are just empty words. You can show your thanks in ways that are more useful both to me and you.
    To better show your thanks you might..
    1) Stop treating me as though I were your servant. In a conversation, you might ask a question that I try to answer. As part of my answer, I might need to ask you some questions. A question is a sentence followed by '?'. I did ask you some questions. There are four questions I asked in my first reply. Please answer my questions so I can provide you the best advice.
    2) Do not ignore things I say. (see below*)
    AnilK wrote: However, I still have a problem where the applet can not write a local text file.
    * That is probably because you ignored what I mentioned about digitally signing the applet. If you do not understand anything I write, please do a search and if that does not help you to understand it, ask me what I mean.
    AnilK wrote: Can some body please help me out.
    I was happy to help, but my enthusiasm is dropping quickly. Unless you can manage to improve your replies, I will not help further.
    I will supply some more tips before I finish this message and wait to see your reply, to decide whether I will help further.
    1) If you use 'code' delimiters, the Java code will be colored nicely for people to read. Here is an example (e.g.).
    } catch (Exception e) {
    ret = "problem found. Please reload.";
    return ret;
    2) I had a point here about indenting code, but when I went to reply, the code was indented, which makes me think that using code delimiters would also fix the problem where the code looks as if it has no indentation.
    3) It is 'best practice' (unless you are an expert and can justify otherwise) to dump every stacktrace to find out what really happened. e.g.
      } catch (Exception e) {
        // Very important!  Find out why it failed!
        e.printStackTrace();
        // now go on to do the other things..
        ret = "problem found. Please reload.";
      return ret;
    } 4) When you get a stacktrace, copy/paste at least the first few lines into the message. If my guess about the cause of the problem is correct, the word 'security' will appear somewhere in the stacktrace.
    5) To encourage people to help, post compilable examples, rather than code snippets.
    <http://homepage1.nifty.com/algafield/sscce.html>
    By the way - congratulations on getting as far as you have. You have surprised me that you got so far already. Improve on the other things I mentioned, and I would be happy to help further.

Maybe you are looking for

  • How to hide Database Logon option when scheduling Crystal Report in BOE?

    Hi All, For security reason, we are try to hide the Database Logon option in Crystal Report Schedule page in InfoView. There is option in CMC which we can configure the default Database logon option so that users do not have to enter the logon everyt

  • Setting Photoshop CC as default

    Since installing Mac OS 10.9 and Photoshop CC, my .psd files do not want to open with Photoshop CC. If I open the "Get Info" window on a .psd file, I can set "Open with" to Adobe Photoshop CC for an individual file, but if I click "Change All" and cl

  • How to import stuff from SLD to Integration Builder ?

    Hi All , I have done all my definition and configuration in SLD - Product definiton, Technical System, Business system,  SWCV , SWC , logical system - everything is in SDL. When I go to' IB:design' and 'IB:config' I don't see anything I created in SL

  • Java.lang.NoClassDefFoundError: org/jdesktop/layout/GroupLayout

    Hello, what is this error? I imported import org.jdesktop.layout.*; any suggestions?

  • PDF Reader plug-in not recognized by Firefox

    Using the latest version of Firefox on a Mac running OS Snow Tiger. In my browser prefs I have "Use Adobe Reader (default)" selected for all PDF documents presented to me online yet EVERY TIME I click on the PDF document, I get the error message: "It