Opening a Powerpoint in JSP and run under Linux

Hi,
I need to have a JSP page that provides a link to open a powerpoint file and this JSP is to be run under Linux. When I try to click on the link in Linux to open the powerpoint, it gives me a lot of junk characters. Can somebody please help mi, thanks a million!

You have the mimetype for the HTTP response set to something other than what will make the browser start a powerpoint viewer and direct the content of the HTTP response to it.
In your jsp use the setHeader(String key,String key) method to set the value of "Content-Type" to the mimetype for powerpoint.
Of course the users must have browsers that are configured to launch a powerpoint viewer or plug-in. If you provide the correct mimetype and peoples browsers desn't have this, then they will get the "save to file" dialog box.

Similar Messages

  • Loss of keyboard focus in Java appl running under linux

    I have a small sample program that replicates my problem. When this program is run a window is created. If you select File->New another instance of the program window is created. Now if you try to go back and bring to front the first window, keyboard focus is not
    transferred when run under linux. You can only type in the second window. The expected behavior does happen in Windows.
    > uname -a
    Linux watson 2.6.20-1.2933.fc6 #1 SMP Mon Mar 19 11:38:26 EDT 2007 i686 i686 i386 GNU/Linux
    java -versionjava version "1.5.0_11"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
    Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)
    javac -versionjavac 1.5.0_11
    import java.awt.event.*;
    import javax.swing.*;
    class SwingWindow extends JFrame {
        SwingWindow() {
         super("SwingWindow");
         JMenuBar menuBar = new JMenuBar();     
            JMenu fileMenu = new JMenu("File");
            JMenuItem newItem = new JMenuItem("New");
            newItem.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent event) {
              SwingWindow.createAndShowGUI();
         fileMenu.add(newItem);
            menuBar.add(fileMenu);
            setJMenuBar(menuBar);
            setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);       
         JTextField text = new JTextField(200);
         getContentPane().add(text);
         pack();
         setSize(700, 275);
        public static void createAndShowGUI() {
            JFrame frame = new SwingWindow();
            frame.setVisible(true);
        public static void main(String[] args) {
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }

    You can implement the FocusListener interface. When
    the first JFrame gains focus, call
    text.requestFocusInWindow(). I hope this helps.The call requestFocusInWindow is not helping, perhaps even making it worse.
    The problem seems to be that I am in the situation where the call
    KeyboardFocusManager.getCurrentKeyboardFocusManager().getPermanentFocusOwner()
    is returning the expected Component. The problem is that the KeyListener class that is registered with the Component is not being called when a key is being pressed.
    The issue is that I have a component that has the keyboard focus, but the KeyListener class
    is not responding.
    This seems to be a linux only problem which makes it only mysterious.

  • Vhost configuration for Adobe Media Server running under linux.

    Please help me with Vhost configuration for Adobe Media Server running under linux.
    I was running a media sharing website for which I wanted to use Adobe Media Server.
    To use, AMS, I disabled the already installed Apache server and installed AMS along with the built in Apache server. I could successfully install AMS and could login to AMS Admin Console through my IP number.
    My existing website, www.mydomain.com is having its contents located at:
    /home/mydomain/public_html
    (Directory created under the old version of Apache not bundled with AMS)
    Users will be uploading their videos, which will get transcoded and will be delivered to the website visitors in the existing scenario.
    To use this website with AMS, this is what I did:
    I created a folder for my domain, www.mydomain.com as below
    /opt/adobe/ams/conf/_defaultRoot_/www.mydomain.com
    Copied Application.xml and Vhost.xml from /opt/adobe/ams/conf/_defaultRoot_/   and pasted them in /opt/adobe/ams/conf/_defaultRoot_/www.mydomain.com
    In the Application.xml file there are 2 entries:
    <Alias name="mydomain.com"></Alias>
    <AppsDir>${/home/mydomain/public_html}</AppsDir>
    Please help me with further steps to be completed:
    Do I need to create a separate VirtualHost entry in the Apache installed with AMS?
    If yes, can I specify already existing document root for my website (/home/mydomain/public_html) or do I need to create a separate folder under webroot/Apache ?
    If yes to point 2 above, then do I need to copy all the existing contents from /home/mydomain/public_html to the newly created folder ?
    I hope, I can serve all my static contents like html pages and php and media like video/audio. In that case do I need create alias to my Media/Alias folder or AMS will automatically start streaming when a video/audio is requested ?
    What other steps do i need to complete?
    Any help in this regard would be highly appreciated.
    Thanks and Regards

    Dear sir or madam,
    Here is Letswin Technology, which specializes in global servers, web hosting, VPS, VPNj. If anything I can do for you, pls contact us!
    Have a nice day!

  • JSP's running under Resin server engine???

    I have a JSP application that I am trying to move from running under Tomcat 4.0 to Resin web server engine.
    When trying to run the application, I get this error:
    java.util.MissingResourceException: Can't find bundle for base name AppProperties, locale
    I think the error is happening because I have the AppProperties file in the wrong place under the Resin directory. Could someone please let me know how to properly use a Resource Bundle Properties file using Resin for my JSP's to run???
    Please help...
    Thank you...

    Never mind....I got it....

  • Installing and running Arch linux on the new MacBook 2015

    So Apple has just started taking orders for the new 2015 MacBook. You know --
    the thinnest and lightest MacBook to date (even thinner than the MacBook Air),
    with a 12 inch retina display, the Intel Core M processor, a single USB-C port,
    and the new force touch trackpad.
    I'm pretty sure there are a few people like me who'd like to buy this new
    MacBook and then install and run Arch (or some other flavor of linux) on it.
    But of course, this MacBook is in many ways very dissimilar to previous MacBook
    Pros and MacBook Airs. So this thread is a shout out to likeminded individuals
    who are willing to brave the odds and install Linux on this new machine, so we
    can help each other figure out (and hopefully fix) the inevitable issues that
    will arise when we venture into this uncharted territory!
    I have a little bit of experience installing and running Arch on MacBook Pros
    and other Apple computers, but I'm (very) far from being an expert. But based
    on my limited experience, I think the following areas will pose the biggest
    challenges to getting Linux properly up and running on the new MacBook:
    1. Installation: it's possible that booting a live USB will fail. So we might
       have to use a CD. Indeed, perhaps we may even have to build a special ISO
       image for this laptop. And once the install is complete, EFI/EFISTUB booting
       with/without refit/refind may or may not work. Also, installing a bootloader
       (grub, gummiboot, etc.) for dual booting Mac OS X and Linux may be a
       challenge. We might have to endure kernel panics and deal with cryptic error
       messages while booting.
    2. Wifi may or may not work reliably. We might have to do some tinkering with
       different drivers, etc.
    3. Battery life may not be very good. We might have to fix a few things here.
    4. The HiDPI retina display may or may not work properly with specific window
       managers/desktop environments. Fonts/icons might be too tiny, may not scale,
       etc.
    5. The new Force touch trackpad may not work out of the box. In fact, I'm
       fairly sure the regular xf86-input-synaptics package won't play nice with
       this trackpad. There may not be support for features like the trackpad's
       haptic feedback, multi-finger gestures, pressure sensitivity, etc. Indeed,
       this might actually take a while to get properly working under Linux.
    6. I don't know if the new USB-C port will work out of the box. It may not
       play nice with USB flash drives and other peripherals and there may be
       issues with ehci/uhci/whatever.
    I tried Googling around trying to learn as much as I could about the issues
    above, but since the laptop is going on sale only today and most users are
    probably not interested in running Linux on it, I came up quite empty. I think
    many others on this forum might also have faced the same issue.
    So here's an open invitation. Let's share our experiences trying to get linux
    working on this laptop. If you buy this laptop and try to install Arch on
    it, please let us know how it went! Even if some things work out of the box, it
    might be useful for others to know, so please share.
    And of course, if you have more information/gotchas: for example, if you
    encountered and managed to fix one or more of the issues above, or you
    encountered a problem that's not on the list above, or even if you tried
    something and it didn't work out as expected, please post below. I'm sure this
    will be a very big help to others trying to solve similar issues on the same
    hardware. Thanks!

    It would probably be beneficial to post the output of lsusb -vvvv and dmesg. 
    FS1RTG77 wrote:
    2. Broadcom BCM4360 AirPort Extreme, not supported.
    5. The new Force touch trackpad and keyboard, both SPI bus devices, do not work.
    On 2, it may just be a case of needing firmware, my laptop has a BCM43602 card, and the firmware required has only just been added to the linux-firmware package.  Prior to that I had to install it manually.
    On 5, I'm wondering if you identified them as SPI devices by looking in OS X, I ask because my laptop categorises my keyboard and trackpad in the same way.  But they are actually still both connected to the USB bus, and presumably using SPI as an interconnect between the keyboard/trackpad and the microcontroller that tie them together.

  • Java running under linux with crontab

    I'm having a problem:
    i want to run a java program under linux with crontab.
    my classes are in a directory and aren't in a package. i run em by invoking ./start which is a small script that i wrote. The script is in the same dir as the classes and invokes java by "java Main >>logjava.txt " but this doesn't seem to work all i get is an empty logfile
    i need to run the program every day at 0800 so i inserted the following in crontab:
    0 8 * 1-5 /var/"path"/start > logjava (where path is the path to the classes dir)
    if i run the cmdline from anywhere on the prompt i get the result i want. I think it's because the cron runs it from the root dir thus making java unable to find the classes
    Any suggestions would be welcome. or can some1 tell me how to make linux executables from the java (i usually use jsmooth for the windows exe)

    You can execute several commands in the process started by cron. You separate them using semicolons.
    Have you tried a cron entry like this:
    0 8 * 1-5 cd /var/"path";pwd;echo $PATH; ./start > logjavaOr, you may need to make sure the process started by cron gets the same environment as your interactive shells do, by explicitly loading your setup or .login scripts:
    0 8 * 1-5 . $HOME/.setup;cd /var/"path";pwd;echo $PATH; ./start > logjava

  • Firefox running under Linux Mint (based on Ubuntu) 12 (KDE) won't install extensions for Firefox

    Linux Mint (based on Ubuntu) 12, KDE desktop
    Firefox 10.0
    Started up Firefox right after Mint was installed. On the add-ons page video download helper was shown as a featured extension and I installed it, then rebooted when prompted. After that, Firefox would never install another extension again. Just gives download error.
    I google searched and in a forum I found a post about uninstalling and reinstalling Firefox. I tried it. First time I started it up, it installed video download helper again, but then would not install any other extension after that. I tried numerous extensions I '''KNOW''' are working in Firefox 10.0 because they are working in Firefox over on my Win 7. Everytime I get a download error, either from the addons site or from the Add-ons Manager in Firefox.
    Someone told me on the Mint forums that I needed to add a subdirectory on a certain directory, so I did that. Didn't work.
    It seems Ubuntu disables the root, or cripples it, and I guess Mint does too. You can still use sudo when doing things in Ubuntu (and Mint I would assume, since it's based on Ubuntu) but you can't get true 'superuser' access as I understand it. But, I don't think this would have any bearing on the problem, or my search of the Mint forums would have come up with all kinds of threads screaming about this.

    Problem solved - it was caused by an add-on called "PDF Download 3.0.0.2)
    To fix - in Firefox :
    Click on '''Tools''' command (top of screen)
    Select '''Extensions'''
    click on "'''disable''' button beside '''PDF Download'''
    Close Firefox and restart it.
    Clicking on any pdf file should open a new tab now and the document will appear there.

  • Can iMac boot and run SUSE Linux?

    I have a requirement for an SLES 11 server. I really don't want to buy another machine for this so I was wondering if it was possible for an 2010 iMac C2D to boot and run SLES? What I would like to do is use an external FireWire drive as the boot & O/S device. Is that possible too?
    My only other option is to create a Fusion image but I'm going to need 500 GB or more of disk space and I'd rather deal with that in a native environment.
    Thanks

    bwhit:
    Welcome to Apple Discussions.
    No reason why you should not be able to do it using Firewire Target Disk Mode. Here's what you do:
    1. With both computers shut down connect both via firewire.
    2. Startup the Mini and hold down "T" key immediately after chime.
    3. Startup the PB and immediately after chime hold down Option key.
    4. Select second HDD icon on the screen and click on the right pointing arrow.
    5. Computer will boot from Mini's HDD.
    Be sure to shut down PB completely before shutting down Mini.
    Please do post back with an update or with further questions or comments.
    Cheers
    cornelius

  • Using cinepak codec and JMF under linux mandrake

    Hello,
    I have a big problem using JMF under linux to read video files encoded with the Cinepak codec.
    I don't know if i'm the only one in this situation, so if you are too please let me know :)
    I tested my project under both windows and linux. Under Windows, no problem : the cinepak encoded file is read perfectly. Under linux, it doesn't work. Even if i try to read it with JMStudio. So i think it may be a problem of codec under linux, but it isn't because i can read the video file with a linux video player.
    I don't know what to do and it's very important for my project that i can read cinepak under linux.
    Thanks in advance for any help
    Alex

    well, your not the only one.
    I have it working in Debian, and JDS.(JMF is setup automatically in JDS).(2.6.6 kernel)
    I looked at the installation structure of JDS, and was able to duplicate what they did for Debian.
    Maybe it will work for Mandrake two??
    ok, all you have to do is copy or create soft links from your Mozilla directory, just like you did with the java plugin, and link to all the *.so files in JMF-2.1.1e/lib directory.
    Should work.
    I also read that not haveing the native files only matters if you are doing Capture. not play.
    to get your ATI All-in-Wonder 128 to work, make sure you install the correct driver, and have it working under linux, then try it in JMSTUDIO

  • Do JSP applications run under Oracle 8i?

    How can I run my JSP application under Oracle 8i?
    Do Oracle 8.1.5 or 8.1.6 include JSP server?

    Oracle 8.1.7 (the next release of Oracle8i) will have the webserver to support JavaServlets and JavaServer Pages
    raghu

  • Opening a document in photoshop and running a ps script

    I'm trying to write a script which will open a link in photoshop (which I have managed to do with Link.editOriginal) and also run a photoshop script after the file is opened. I have looked in online references and the PDF's found on this site, but I can't seem to find a function which will let me run a ps script from inside Indesign. Is there any method of doing this, or am I out of luck?
    Thanks for your time.

    Gerald Singelman told me to check the status of a link in a loop before executing the update()-command.
    This is the updated version:
    // resizeInPS04.jsx 
    //DESCRIPTION: Resizes every link in PhotoShop 
    var theScale = 150; // scaling factor in % 
    var theResolution = 72; 
    var theResampleMethod =  'ResampleMethod.BICUBIC'; 
    var myChoice = confirm ('Warnung! \rBei Ausfühurng dieses Skriptes werden unwiderruflich alle verknüpften Bild-Dateien verändert. Machen Sie vorher Backups der Dateien.' ); 
    if (myChoice == false) 
      exit(); 
    var myLinks = app.activeDocument.links; 
    for ( var i = myLinks.length-1; i >= 0; i-- ) 
    ResizeInPS( myLinks[i].filePath, theScale, theScale, theResolution, theResampleMethod ); 
    while (myLinks[0].status == LinkStatus.NORMAL )
    // think about the weather
    myLinks.everyItem().update(); 
    for ( var x = myLinks.length-1; x >= 0; x-- ) 
    myLinks[x].parent.fit( FitOptions.FRAME_TO_CONTENT ); 
    function ResizeInPS(myPath, myHorScale, myVerScale, myResolution, myResampleMethod) {  
       var bt = new BridgeTalk;  
       bt.target = "photoshop";  
       var myScript = 'try {\n';  
       myScript += 'var myPsDoc = app.open(File(\"' + myPath + '\"));\n';  
       myScript += 'app.preferences.rulerUnits = Units.PERCENT; \n' ;  
       myScript += 'myPsDoc.resizeImage(' + myHorScale +', ' + myVerScale + ', ' + myResolution + ', ' + myResampleMethod + '); \n' ;  
       myScript += 'myPsDoc.close(SaveOptions.SAVECHANGES);\n';  
       myScript += '}\n';  
       myScript += 'catch (myError) {\n';  
       myScript += 'myPsError += \"myError' + myPath + '\";\n';  
       myScript += '}';  
       bt.body = myScript;  
       bt.send();  
    Martin

  • Embeddding WML in Jsp and running in TOMCAT?

    I have written wml programs...and the required connection class to extract data from the database...i have also made a jsp page in which i have embedde the wml..as is done with html.
    The problem is i am not able to run these wml programs in the browser?

    Probably the Context named test has not been
    created. Check on the admin console!I do this http://localhost:8080/manager/deploy?path=/test that's work but each time I stop Tomcat, when I restart, I have to do it test is not in the list after restart
    An idea ?
    Thanks,

  • How do I Open a Vi reference to and run a Polymorphic VI?

    In my case, I was trying to use a PolyVI Refnum to an instance of PID.vi. Even though I set the inputs for some of the controls, I have no output.the Invoke Method of 'Run VI' does not return an error. The Invoke Method of Ctrl Val. Get All does not return an error, but also returns an empty array on the character array.
    The problem seems to be with how VI server handles PolyVI Refnums, the constant for Polymorphic VIs. There does not seem to be an explicit way to determine which instance of the polymorphic VI should be used.
    Consequently, 'Ctrl Val.Get All' does not return any results from a 'Run VI' call. The array size is #0.
    Any ideas on what might be going on? Is there a better way to use a PolyVI Reference with VI server calls? I can't use Call By Reference Node since I can't seem to strictly type a Polymorphic VI (I can't select that check box on the Static VI Reference).

    Polymorphic VIs are an edit-time feature. They make no sense in run-time. Since you know at edit time which VI from the polymorphic group is actully going to be used, just open a reference directly to it. The polyVI itself only keeps a list of all the VIs that belong to it.
    Try to take over the world!

  • Compiled with jdk1.3.1_01 and run under VM 2.0

    I have compilied all my source code with jdk1.3.1_01 and ias6.0 sp3 uses jdk1.2.2 or 2.0VM....is this difference going to affect my application?

    Hi,
    It depends upon how your application is coded. If you use some of
    the functionalities which JDK 1.2 uses and incase JDK 1.3 doesn't likes
    that, you are likely to get errors. Infact, iAS encourages you to use
    the JVM which is bundled along with iAS SP3 and using JDK apart from
    that troubles. Please refer to my previous posting on iAS SP3 & JDK 1.3,
    I've tested them, which threw lots of errors. Hope this helps.
    Regards
    Raj
    Mansoor Quraishi wrote:
    I have compilied all my source code with jdk1.3.1_01 and ias6.0 sp3
    uses jdk1.2.2 or 2.0VM....is this difference going to affect my
    application?
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • I use elements 9 all of a sudden now when I open Organizer the updater starts and runs for 20-40 min

    how can I fix this? Can I reload the software without losing my files created? HELP   Thank you

    how can I fix this? Can I reload the software without losing my files created? HELP   Thank you

Maybe you are looking for

  • How do I clean the fans on my 2011 macbook pro 13inch

    I have a early 2011 macbook pro 13 inch. It travels with me every where I go. I have had the computer almost three months now and have not had a problem with it.  Some how, debris got in to the fans. I am thinking it some how got sucked in to one of

  • Directions do not sync from Mac to iPhone

    I am trying to get the "send to iphone" feature working with Apple Maps on the Mac. MacBook Pro - Mavericks OS iPhone 5 - iOS 7 1. Open maps on Mac. 2. Request my directions. 3. Click the Share button. 4. Select my iphone from the list. 5. See the An

  • How do you configure multiple PXI 1011 chassis' in MAX?

    I have two PXI 1011 chassis'. The first has the MXI-3 card hooked to a MXI-3 PC card through fiber. The second chassis has an 8176 controller and the 6052e GPIB card. Both chassis have multiple SCXI cards. The problem is the configuration in MAX. MAX

  • Parent-child hierarchy (Value based hierarchy)

    As anyone created a parent-child hierarchy using Oracle Warehouse Builder or Analytic Workspace Manager. I am using Oracle 10g Rel2 (and AWM) and OWB 10g Rel2. The values in the dimension table defines the hierarchy. I don't see an option of creating

  • Using K Means in a Calculation View

    Hi Experts, Can you please help me with the below scenario. I am trying to use K-Means function to perform clustering on customer data. I have the below columns: Attributes: Customer ID, Home Ownership Status Measures: Customers Debt to Income Ratio,