Show browse files dialog by listing remote machin files in web application

Hi all,
I want to develop a web application which has "Browse Server" button to browse remote server. After selecting files and folders from remote server, need to read all files and folders from server and store that information in Database. Please provide some ideas and help regarding this.
I think that i need to develop a custom component based on jfilechooser to connect to server and show the selection dialog like windows file upload.
I don't no how to list server files and show as browse dialog to select and read those files.
Thanks in advance.
Regards,
Venkata Subba Reddy

Most web browsers can browse FTP. You can achieve what you want without writing a single line of code. How cool is that?

Similar Messages

  • Showing tiff files using web.show_document

    Hello,
    I want to show tiff files using web.show_document. Tiff files cannot be displayed in a browser, however therr are several plug-ins available to show them.
    Can anyone recommend a plugin to display tiff files in a browser?
    Kind Regards Erik

    We had tried a different approach. We store all type of documents in the database using webutil.
    And we dont directly open any document and we download the document to the local host and then open it using webutil client host ('local folder\file name')
    This way word,excel, pdf etc will be automatically opened with its relevant appln and if there is relevant appln is not found it will prompt the windows standard Open with dialog box.
    Rajesh ALex

  • Browser based InfoPath form deployed on a Claims based Web Application calling a Secure Web Service via Data Connection

    hi,
    We have a Browser based InfoPath Form deployed on a Claims based Web Application. We are tyring to call WCF Services that are secure using Certificates via the Data Connections on Infopath Form.
    Earlier we used to get the Data in BCS External List via the WCF Services and the Data Connections used to get the Data from the BCS External List. Due to Performance Issues, we want to remove the BCS External List and straightaway call the secure WCF Services
    via the Data Connections.
    Have anyone implemented this scenario.
    Thanks
    Ram
    Thanks Ram

    Hi Ram,
    As these are browser based InfoPath forms, you have two options 
    1) Deploy as sandboxed forms
    In this case you have to create a secure store application id and then set the credentials for that account.
    You then have to export the data connection to Data connections library and modify the .udcx file to utilize the newly created secure store application id.
    This may sometime give issues related to sandboxed code service. You have to give permissions on the secure store for the user account which the sandboxed code service is running.
    2) Deploy as administrator approved forms
    This would be ideal way of doing things as you have full control over the web request if you write code behind InfoPath forms.
    3) Deploy as a Hybrid solution
    a) Write a full trust proxy solutions (extend SPProxyOperation class and override execute method) and make the web request call inside this and return the response
    b) Invoke above operation from the sandboxed InfoPath form's code behind by SPUtility.RegisteredProxyOperation(four part assembly name, operation args)
    Hope this helps.
    Thanks,
    Srikanth

  • How to create a file under web application root from java program

    how to create a file under web application root from java program like an action class?

    like an action class?Huh? What exactly is your requirement?
    Creating a file is usually done with java.io API. Read the java.io tutorials how to play with files.

  • Issues showing PDF files in web-browser (Windows 7 x64, 32-bit version of AdobeReader X)

    I'm not sure if this is the right way to share my experience, but at least I know Google will discover this thread eventually and maybe someone else will find what I have been looking for the past 3 hours
    I'm deploying the 32-bit based AdobeReader X (http://www.adobe.com/support/downloads/detail.jsp?ftpID=4950) to Windows7 32-bit and 64-bit based machines. This is a MSI deployement done through our Active Directory. Everything goes well - no errors. Except for the x64-based machines having trouble showing PDF-files in the web-browser.
    I used Adobe Customization Wizard X to customize our MSI installation - this showed out to be the solution once again.
    Common for the installation on Windows7 32-/64-bit were that the value in the registry database for HKCR\Software\Adobe\Acrobat\Exe (Default) was set to "C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe". This is valid for the 32-bit installation as Program Files is situated in C:\Program Files, but since it's a 32-bit edition of AdobeReader that I'm installing on the 64-bit based system as well, it's installed in C:\Program Files (x86) and the reference in the registry database to "C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe" is therefore not valid - which explains why PDF files could not be displayed in the web browser. Changing the registry to "C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.exe" solved it. Now this is a manual solution which might be useful on 1-2 machines but on a bigger scale it's not the right way to do it.
    I could change it with a batch/vbs script but still this is only a solution of the symptom and not a solution to the core issue. I therefore focused on Adobe Customization Wizard X again.
    The problem was easily solved. I opened the MSI file, loaded the transform file that I've made previously. Went to Registry > HKEY_CLASSES_ROOT\Software\Adobe\Acrobat\Exe . I then changed the (Default) value from "C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe" to "[INSTALLDIR]Reader\AcroRd32.exe", generated the MST file and replaced my current one for distribution. Problem solved! :-) The entry in the registry now shows : "C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.exe" and PDF files are open without any issues.
    I hope someone can save a bit of time on this one.
    Best regards!
    Alex Mikkelsen

    I was able install and view the files in adobe reader 10.1.1 and in web browser window 7 64 bit machine.  But when I go to Edit-preferences-internet and  unchecking "display PDF in Browser" , I am not able to view the pdf files in ie 9 browser.  I have used this javscript to check for pdf version.
    Immediately after installing adobe--
    when I do adobe test in ie 9---https://courses.worldcampus.psu.edu/public/diagnostics/Acrobat.html--  launches a test pdf file--Acro_Test.pdf
    After unchecking-- it stays in the  https://courses.worldcampus.psu.edu/public/diagnostics/Acrobat.html instead of showing test pdf file--Acro_Test.pdf
    Tried to go back to "display PDF in Browser"--it is showing it is checked(eventhough I did not check it)
    and in ie
    it stays in the https://courses.worldcampus.psu.edu/public/diagnostics/Acrobat.html instead of showing test pdf file--Acro_Test.pdf

  • Advantages and disadvantages creation of war file in web application......

    Hi friends.... I'm new to java....
    according to my little knowledge creating a war file is optional,
    but i don't know if we directly deployed web application like servlet application in the web server(ex: webapps in TOMCAT)
    what problems may get if my computer system not in the network and what problems may get if my computer system in the network....i know we must create a war file for appropriate application if the server is in remote place....
    please reply.....thank you

    Isn't it easier to deploy one file than it is to deploy dozens, hundreds, even thousands?

  • Problem with Uploading files in Web applications with the iPad

    Hello,
    I have a question. How can I upload a word file in the gmx-Mailserver with my IPad? I can only find the picture library. In this library i cannot upload a word-file or other files-types. I use Safari. The same problem exists by other web applications.
    Thanks for your help.
    Kami2013

    I think I just did something wrong myself. I was finally able to upload the file. However, I wrote the following procedure in my package but wasn't able to download the file from the report. Do I need to grant any privilege from the system user?
    Also, does anyone know how to convert a BLOB table into 11g Securefiles table?
    Thanks.
    <pre>
    procedure download_birth_cert(p_vrds_birth_cert_pk in number) is
    v_mime VARCHAR2(48);
    v_length NUMBER;
    v_file_name VARCHAR2(4000);
    Lob_loc BLOB;
    begin
    select mime_type, blob_content, file_name, dbms_lob.getlength(blob_content)
    into v_mime, lob_loc, v_file_name, v_length
    from vrds_birth_cert
    where vrds_birth_cert_pk = p_vrds_birth_cert_pk;
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    owa_util.mime_header(nvl(v_mime,'application/octet'), FALSE);
    -- set the size so the browser knows how much to download
    htp.p('Content-length: ' || v_length);
    -- the filename will be used by the browser if the user does a save as
    htp.p('Content-Disposition: attachment; filename="'||substr(v_file_name,instr(v_file_name,'/')+1)|| '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( Lob_loc );
    exception
    when others then
    null;                    
    end download_birth_cert;
    </pre>

  • Error executing batch file within web application

    Hi all,
    I am trying to execute a batch file from within my web application (struts 1.2).
    The batch file is being kept inside the 'src' folder. The batch file contains only one command to open NOTEPAD.
    The code inside my Action class is:
    URL url = getClass().getResource("/test.bat");
    java.io.File file = new java.io.File(url.getPath()) ;
    String path = file.getCanonicalPath();
    r.exec(path);
    I have deployed this on tomcat and get an error like this:
    java.io.IOException: Cannot run program "C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%206.0\webapps\CIGTAFAPP\WEB-INF\classes\test.bat": CreateProcess error=2, The system cannot find the file specified
    The problem is not with the batch file because when I try to execute the file directly from the classes folder, it opens up the notepad editor.
    I have a specific requirement where I need to create/read this batch file from within the project structure.
    Can someone please help me with this?
    Regards

    The entire content of the file is as below:
    set javaTestProjectPath=D:\projects\CIGTAF\LRTestCases
    C:
    cd %javaTestProjectPath%
    set path=C:\Program Files\Java\jdk1.6.0_21\bin
    set classpath=%javaTestProjectPath%\bin;%javaTestProjectPath%\lib\selenium-server-standalone-2.20.0.jar;%javaTestProjectPath%\lib\testng-6.4.jar;%javaTestProjectPath%\lib\junit-4.10.jar;%javaTestProjectPath%\lib\poi-3.6-20091214.jar;%javaTestProjectPath%\lib\mail.jar
    javac -verbose %javaTestProjectPath%\src\com\core\testscripts\Mailsetup.java -d %javaTestProjectPath%\bin
    javac -verbose %javaTestProjectPath%\src\com\core\testscripts\MailAuthenticator.java -d %javaTestProjectPath%\bin
    javac -verbose %javaTestProjectPath%\src\com\core\testscripts\ReadData.java -d %javaTestProjectPath%\bin
    javac -verbose %javaTestProjectPath%\src\com\core\testscripts\ReadWriteExcelResults.java -d %javaTestProjectPath%\bin
    javac -verbose %javaTestProjectPath%\src\com\core\testscripts\SeleniumFramework.java -d %javaTestProjectPath%\bin
    java org.testng.TestNG %javaTestProjectPath%\SelXD-Config.xml -d %javaTestProjectPath%\test-output
    none of these are getting executed.
    regards
    Edited by: 887789 on May 4, 2012 1:46 AM

  • How to create a war file of web application

    Hi Techies
    How to create a war file of the web application?
    And plz tell me the utilities used for it.

    hi,
    To compress a 'abc' web application into a "Web Archive" file named abc.war, follow the steps below:
    1> Open a command prompt and cd to the application's dir:
    <TOMCAT_HOME>\webapps\abc
    2> Use the java archive command 'jar' to bundle up your application:
    jar -cvf abc.war *
    3> Move this to any other server and work with it!! :)
    -- Abdel Raoof Olakara
    http://olakara.googlepages.com

  • How can I show unread mail count of Gmail,Yahoo,AOL in my web application.

    I want to show unread mail count for Gmail,Yahoo,AOL,MSN (e.g. Gmail (5) ) on my web application. Also when user click on unread mail count it should open new window for respective mail Inbox say gmail inbox that shows unread mail of user.
    I have exercised on jgmail source code & it has used HttpClient API to login into gmail and access services of gmail but I am not able to execute it successfully.
    what are the options for above questions?
    Thanks In Advance
    Ankit Patel
    Edited by: ankit.patel on Aug 14, 2008 7:10 AM

    JavaMail supports two standard protocols for reading mail POP3 and IMAP.
    As explained in the JavaMail FAQ (you found it, right?), the POP3 protocol
    doesn't provide information on unread messages.
    As far as I know, only Gmail supports IMAP. I don't believe either AOL or MSN
    support even POP3, but I'm not sure.

  • Opening a file in web application

    Hi,
    I have a Web application and I need to open a file using a File object.I am unable to open the file unless I specify the complete path of the file including the name of the drive in which it recides.But this will make the application dependent on the folder structure in the system in which it is deployed.I want to make it independent of the folder structure.I placed the file in the same folder as the java class which tries to open it.But still it is not working unless the folder structure is specified.Please help.
    Thanks,
    Neelambary

    check ServletContext.getResource documentation
    it allows you to retrieve a file within your webapp directory

  • How to select a Hibenrate configuration file for web application/junit?

    Dear all,
    I am using hibernate for a web application.
    I have two configuration files: one ("hibernate-jta.cfg.xml") uses a data source and the other ("hibernate.cfg.xml") directly uses jdbc.
    private static String CONFIG_FILE = "hibernate-jta.cfg.xml"; private static String CONFIG_FILE_WITHOUT_DATASOURCE = "hibernate.cfg.xml";
    When I deplyed my applcation to an application server, I need to use the first one. When I run junit test, I need to use the second one.
    How can I design a mecanism to switch between the two configuration files according the the case: web application or java stand alone application?
    Configuration cfg = new Configuration(); cfg.configure(CONFIG_FILE);
    Thanks.
    Pengyou

    My solution is to add a new public method "initFactoryForJunit() " in the Static singleton.
    In the junit test, this method will be invoked in order to load a second configuration file.
    public class ThreadsafeSessionFactory {
         private static Logger log = Logger
                   .getLogger(ThreadsafeSessionFactory.class);
         private static String CONFIG_FILE = "hibernate-jta.cfg.xml";
         private static String CONFIG_FILE_FOR_JUNIT = "hibernate.cfg.xml";
         private static final Configuration cfg = new Configuration();
         private static org.hibernate.SessionFactory sessionFactory;
         public static SessionFactory getInstance() {
              log.info("getInstance()");
              if (sessionFactory == null) {
                   ThreadsafeSessionFactory.initFactory();
              return sessionFactory;
         /*public synchronized Session openSession() {
              log.debug("openSession()");
              return sessionFactory.getCurrentSession();
         public synchronized Session getCurrentSession() {
              log.debug("getCurrentSession()");
              return sessionFactory.getCurrentSession();
         private static void initFactory() {
              log.debug("initFactory()");
              if (sessionFactory == null) {
                   try {
                        Configuration cfg = new Configuration();
                        cfg.configure(CONFIG_FILE);
                        String factoryJndiName = cfg
                                  .getProperty(Environment.SESSION_FACTORY_NAME);
                        if (factoryJndiName != null) {
                             log.debug("using jndi factory");
                             cfg.buildSessionFactory();
                             sessionFactory = (SessionFactory) (new InitialContext())
                                       .lookup(factoryJndiName);
                        } else {
                             log.info("using default factory");
                             sessionFactory = cfg.buildSessionFactory();
                             log.info("after using default factory");
                   } catch (Exception ex) {
                        ex.printStackTrace();
                        log.error("failed creating session factory");
                        throw new HibernateException(
                                  "initFactory(): failed initializing configuration");
         public static void initFactoryForJunit() {
              log.debug("initFactory()");
              if (sessionFactory == null) {
                   try {
                        Configuration cfg = new Configuration();
                        cfg.configure(CONFIG_FILE_FOR_JUNIT);
                        String factoryJndiName = cfg
                                  .getProperty(Environment.SESSION_FACTORY_NAME);
                        if (factoryJndiName != null) {
                             log.debug("using jndi factory");
                             cfg.buildSessionFactory();
                             sessionFactory = (SessionFactory) (new InitialContext())
                                       .lookup(factoryJndiName);
                        } else {
                             log.info("using default factory");
                             sessionFactory = cfg.buildSessionFactory();
                             log.info("after using default factory");
                   } catch (Exception ex) {
                        ex.printStackTrace();
                        log.error("failed creating session factory");
                        throw new HibernateException(
                                  "initFactory(): failed initializing configuration");
         public static void close() {
              if (sessionFactory != null)
                   sessionFactory.close();
              sessionFactory = null;
    }

  • Run remote batch file from Web Application Server

    Hello,
    I've developyed a Java program and deployed it on WAS v7.1.
    My java program tries to run a remote batch file which is located on remote Windows file system (and not on the WAS file system itself).
    The batch file was launched on the remote server (I saw it on the Task Manager of the remote server), but the remote batch file actually wasn't run (it was stuck).
    In order to run the remote batch file from my java program that is deployed on the WAS I've created a batch file on the WAS file system which its contnet is:
    cd c:\jobs
    psexec.exe 
    iltlvt40 -u SAPServiceCE1 -p a2i2000! c:\automation\DiskSpace\runDiskSpace.bat
    The jobs folder contains the psexec.exe file (you can find more details about the psexec on this link: http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx).
    iltlvt40 is the remote server.
    SAPServiceCE1/a2i2000! is a user/password on the remote server which has a full permissions.
    My java program calls this batch file using the Runtime.exec() java method in order to run the remote batch file.
    Please guide me how to solve this problem?
    Best regards,
    Ahmad

    Hi,
    To which batch file you have meant to add some commands: for the local one or remote?
    I've added to the local one some different commands and it's works.
    I think there is a permission problem when we are trying to go out of the WAS file system.
    Best regards,
    Ahmad

  • Lost of Parameter file in web application

    Hi,
    We develop a java (1.5) application running on Tomcat (5.5 and 6.0).
    In this application, we use a parameter file in YAML format.
    Everything works perfectly except when the tomcat server is restarted.
    At this point, the application is no more able to reach the parameter file.
    We have to re-deploy the whole application to be able to use the parameter file.
    But we lost it again when the server is restarted.
    We don't know if the problem is coming from our tomcat configuration or from our java code.
    The problem is seen on Tomcat 5.5, 6.0 and on Linux and Mac OS X.
    So, it must come from our code.
    Do you have an idea ?
    Thanks
    Here is the code where the parameter file is read:
    final private String YAMLpath = "truc" + File.separator + "META-INF" + File.separator + "Parameters.yaml";
    try
                   Scanner openYAML55 = new Scanner(new File(this.YAMLpath) ); //For Tomcat5.5
                   this.readParameterFile(openYAML55);
                   openYAML55.close();
              catch(FileNotFoundException f)
                   f.printStackTrace();
    private void readParameterFile(Scanner paramFile)
         while(paramFile.hasNextLine())
                   Pattern paramLine = Pattern.compile("(\\w+)\\s*:\\s*(.*)");
                   Matcher paramArg = paramLine.matcher(paramFile.nextLine());
                   if ( paramArg.matches() )
    if ( paramArg.group(1).trim().equals("dbase") )
                             this.dbase = paramArg.group(2).replaceAll("\"", "").trim();
                        else if ( paramArg.group(1).trim().equals("dbport") )
                             this.dbport = Integer.parseInt( paramArg.group(2).replaceAll("\"", "").trim() );
                        else if ( paramArg.group(1).trim().equals("dbhost") )
                             this.dbhost = paramArg.group(2).replaceAll("\"", "").trim();
              this.bgeeRoot = this.serverRoot + this.bgeeRoot;
              this.homePage = this.serverRoot + this.homePage;
    }

    How about simply loading the file or obtaining its input stream as a resource using ClassLoader.getResource[AsStream]? Direct file access to parts of a web app... my oh my.

  • Right click in Screen Sharing causes Expose on remote machine

    I have a Mac Pro at home. I have a hot corner for Exposé. I have a mighty mouse at both the host and client machine. In both cases, Exposé from a mouse pinch is disabled.
    When I try and drag a file from one place to another on the remote machine, Exposé is triggered. I also use RemoteTap on my iPhone - when I connect using it, it forces a "spaces exposé" (shows all the spaces on the remote machine) and quits the Dock. I imagine these two may be related. Has anyone else seen this and know what may be causing it?
    I should add that the desktop machine was a migration from my laptop. I have looked everywhere I can think of, but on the remote machine, when I am in front of it, Exposé is not just triggered without a real trigger. With the remote sessions, I have a hard time using the machine without exposé triggering.
    Thanks in advance for help...

    I have the same problem with the dragging a file activating expose. SO ANNOYING!!!! It makes screen sharing (one of the main reasons I pay for MobileMe) absolutely useless. It can be solved, however, by disabling all hot corners. While that's a semi easy workaround, its incredibly annoying to have to do that each time I want to remotely log in. I really hope they fix it soon or they lost a MobileMe customer. I will just use a free VNC program at that point.

Maybe you are looking for

  • ERROR WHEN CREATING INSPECTION PLAN

    HI GURUS, WHEN CREATE AN INSPECTION PLAN GET THE FOLLOWING ERROR Op. 0010, CH 0180: Char. ident. SMS used for QDI several times in task list. THIS BECAUSE MY CLIENT WANTS TO REPEAT THIS M.I.C TWICE.HOW CAN I SOLVE THIS REGARDS AMIT

  • Creating a Good Receipt PO via DI API No matching records found (ODBC -2028)

    Hi, I trying to create a Good Receipt PO via DI API.  It is working when the user I used to log in to SAP via the DI API is a Professional User but when I changed it to a Limited Logistics User, I'm receiving the No matching records found (ODBC -2028

  • Replaced Superdrive Not Seen in System Profiler 10.5.1

    I just noticed my replaced Superdrive ( Pioneer DVR-111D [Beige Bezel] 'SuperDrive' 16X DVD w/DL + CDRW Burner) does not show in System Profiler under 10.5.1. It did after replacement after using Patch Burn under 10.4.0. Now Patch Burn says that it i

  • Error in external tax system

    Hi Guys I am getting an error when the BAPI is being called by webmethods. The order gets generated but when i go in to it to verify stuff and on running the incompleteness check i get pricing error. On checking the pricing the tax was found not be b

  • Format changes from one computer to another.....how come?

    Just bought a new laptop.......I have been doing all my editing on the computer at home without a problem......all clips are saved in MPEG and everything works fine.....(ultimately posting them all on YouTube).  As I needed to get a new laptop anyway