Working with markups through servlet

Hello,
There is several problems with using Autovue through servlet.
Fabula:
Servlet receives http request, connect to the vue server (vue servlet via ServerControl), load .dwg file into
vuebean by vuebean.setFile(new DocID(fileName)) and load markup by simple calling markupbean.readMarkup(FileInputStream instance) method.
I get a markup file name by parsing 'markups.map'. Servlet modifies markup by http request parameters (set new FillColor, for example) and saves markup file -
markupbean.writeMarkup(FileOutputStream) - very simple process.
Problems:
1. After markup changing i need to open dwg with markup (in applet), but i don't know how i can to do this. jVue.openMarkup() doesn't work - i don't understand what parameters are needed.
2. When markup open via jVue applet GUI, changed TextBox elements are not visible, but presents in markup items list.
If TextBox is selected it becomes visible! If I change the text or position of TextBox, it will become visible (without selection). This situation applies only to TextBoxes.
Any suggestions how I can load markups into GUI and fix visibility of TextBoxes after saving via FileOutputStream.

Hello,
May I point out some issues where you are implementing code that is not supported nor documented (and probably will not) and consequently help on those topics is not available
1. I get a markup file name by parsing 'markups.map' -> not documented, not supported, could change on any release.
2. markupbean.writeMarkup(FileOutputStream) -> where? local datastore is not documented, will need synching, writing to it directly not supported, could change on any release.
Stating it as a simple action is probably not the best way to describe a over-complicated solution piggybacking on a closed (undocumented) implementation
Hence my recommendation for an open and properly documented platform
Perhaps you should have started by describing what you are trying to do
If what you want to implement is to save markups with a predefined name, then your solution is an overkill (and goes in the wrong direction)
If you would be kind enough to
1. follow this forum's rules ie https://forums.oracle.com/forums/ann.jspa?annID=1527
2. properly state what you are trying to implement in another thread, if possible as it will make search/review easier to the rest of the community
3. Have a tittle that is descriptive enough
4. is this solution required to work on a cluster (ie more than one AV server)?

Similar Messages

  • Hasn't anyone out here worked with cut-through proxy

    hasn't enyone out here worked with cut-through proxy with acs. is there no one out here to help me out with cut-through proxy.
    sebastan

    Hi Sebastan,
    For your case, what's the scenario looks like?
    Rgds,
    AK

  • Working with the HTTP Servlet

    Hello,
    I am using Apache Axis to utilize a webservice. I am running this service on the Tomcat localhost:8080. I want to be able to utilize the getServletConfig().getInitParameter() method and I know to do this I must include the HttpServlet library.
    My code read as follows:
    file_base = new File(getServletConfig().getInitParameter("accounts_db_dir") + "admins\\" + this_user);
    This did not work so I then tried to create an instance of HttpServlet and get it that way
    HttpServlet s = new HttpServlet();
    This did not work either. I am getting "cannot resolve symbol" errors! I am pretty sure that this is a classpath error. Is there a special way to import such a class? I am using:
    import javax.servlet.HttpServlet;
    And the TOMCAT_COMMON_LIB\servlet.jar IS in my classpath.
    Would somebody please help me with this?
    Thanks,
    James

    I've figured out how to get the libraries included, however
    String ho = getServletConfig().getInitParameter("accounts_db_dir");
    This causes an exception.
    I've got the accounts_db_dir declared as an Init-parameter in the tomcat server.xml. . . not in the axis/web-inf/server.xml
    when using axis, which server.xml is used?
    Thanks
    James

  • Work with Outlook through Java WebStart?

    I have two questions:
    1. I want my Java app to be able to change stuff in outlook. So when the user uses my app and then opens outlook, it'll be diff. How do I do this?
    2. Is it possible to do the above through Java WebStart? WebStart makes everything over http (i think) or can I also do sockets/SOAP (which yes I know is http, but a bit diff.)? Does anyone know if i can do this?
    Can anyone give me some sample code of even talking to any Microsoft COM through webstart?

    There is a freebie tool we use called bridge2java that makes this fairly easy. You can integrate WebStart as you would with any Java class.

  • Working with EAR file & (Servlet/JSP) Clustering - Please Help

              Hi,
              In my project we pack our application using EAR file. We read BEA's article, which
              discussed the class loaders hierarchy and it looks like this problem should not occur:
              When the garbage collection is being invoked - it somehow fails to resolve the class
              weblogic.jndi.WLInitialContextFactory.
              We have encountered the following error (stack trace):
              Message: severity="ERROR" sessionId="9IUUN4xoQf1wOkfEN8m62SFjEpNC1e4lLHSzyc2s01GPk5Up25cJ!-1680906364!182460375!7559!7002!1728341859!182464192!7559!7002!1023972500766"
              date="Jun 13, 2002" time="3:49:05 PM" threadId="Finalizer"
              Description:
              Throw:     amdocs.jspInfra.exceptions.FailedToRemoveEjbException: [an error occurred
              while trying to remove an ejb.]
              null- caused by: amdocs.jspInfra.exceptions.InitialContextCreationFailureException:
              [an error occurred while trying to create a new initial context.]
              null- caused by: javax.naming.NoInitialContextException: Cannot instantiate class:
              weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException:
              weblogic/jndi/WLInitialContextFactory]
              amdocs.jspInfra.exceptions.InitialContextCreationFailureException: [an error occurred
              while trying to create a new initial context.]
              null- caused by: javax.naming.NoInitialContextException: Cannot instantiate class:
              weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException:
              weblogic/jndi/WLInitialContextFactory]
              javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory.
              Root exception is java.lang.ClassNotFoundException: weblogic/jndi/WLInitialContextFactory
                   at java.lang.Class.forName0(Native Method)
                   at java.lang.Class.forName(Class.java:195)
                   at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:45)
                   at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:652)
                   at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
                   at javax.naming.InitialContext.init(InitialContext.java:222)
                   at javax.naming.InitialContext.<init>(InitialContext.java:198)
                   at amdocs.jspInfra.userManagement.RequestContext._createContext(RequestContext.java:550)
                   at amdocs.jspInfra.userManagement.RequestContext.createContext(RequestContext.java:391)
                   at amdocs.jspInfra.userManagement.RequestContext.createContext(RequestContext.java:415)
                   at amdocs.jspInfra.beans.GenericJspBean._removeConversation(GenericJspBean.java:466)
                   at amdocs.jspInfra.beans.GenericJspBean._cleanUp_(GenericJspBean.java:413)
                   at amdocs.jspInfra.beans.GenericJspBean.cleanUp_(GenericJspBean.java:117)
                   at amdocs.jspInfra.beans.GenericJspBean.finalize(GenericJspBean.java:593)
                   at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
                   at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:86)
                   at java.lang.ref.Finalizer.access$100(Finalizer.java:17)
                   at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:163)
              

    The context classloader needs to be set so that the thread can load the
              Weblogic context factory class inside the finalizer thread.
              Simply save the context classloader when running inside the ejb code and set
              that inside finalize method so that the class can get loaded correctly.
              1) keep a member variable
              ClassLoader myccl;
              2) Instantiate it in the regular application thread as
              myccl = Thread.currentThread().getContextClassLoader();
              3) In the finalize() method keep this as the first line.
              Thread.currentThread().setContextClassLoader(myccl);
              -Sabha
              "Yossi Cohen" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Hi,
              >
              > In my project we pack our application using EAR file. We read BEA's
              article, which
              > discussed the class loaders hierarchy and it looks like this problem
              should not occur:
              > When the garbage collection is being invoked - it somehow fails to resolve
              the class
              > weblogic.jndi.WLInitialContextFactory.
              > We have encountered the following error (stack trace):
              >
              > Message: severity="ERROR"
              sessionId="9IUUN4xoQf1wOkfEN8m62SFjEpNC1e4lLHSzyc2s01GPk5Up25cJ!-1680906364!
              182460375!7559!7002!1728341859!182464192!7559!7002!1023972500766"
              > date="Jun 13, 2002" time="3:49:05 PM" threadId="Finalizer"
              > Description:
              > Throw: amdocs.jspInfra.exceptions.FailedToRemoveEjbException: [an error
              occurred
              > while trying to remove an ejb.]
              > null- caused by:
              amdocs.jspInfra.exceptions.InitialContextCreationFailureException:
              > [an error occurred while trying to create a new initial context.]
              > null- caused by: javax.naming.NoInitialContextException: Cannot
              instantiate class:
              > weblogic.jndi.WLInitialContextFactory [Root exception is
              java.lang.ClassNotFoundException:
              > weblogic/jndi/WLInitialContextFactory]
              > amdocs.jspInfra.exceptions.InitialContextCreationFailureException: [an
              error occurred
              > while trying to create a new initial context.]
              > null- caused by: javax.naming.NoInitialContextException: Cannot
              instantiate class:
              > weblogic.jndi.WLInitialContextFactory [Root exception is
              java.lang.ClassNotFoundException:
              > weblogic/jndi/WLInitialContextFactory]
              > javax.naming.NoInitialContextException: Cannot instantiate class:
              weblogic.jndi.WLInitialContextFactory.
              > Root exception is java.lang.ClassNotFoundException:
              weblogic/jndi/WLInitialContextFactory
              > at java.lang.Class.forName0(Native Method)
              > at java.lang.Class.forName(Class.java:195)
              > at
              com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:45)
              > at
              javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:652)
              > at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
              > at javax.naming.InitialContext.init(InitialContext.java:222)
              > at javax.naming.InitialContext.<init>(InitialContext.java:198)
              > at
              amdocs.jspInfra.userManagement.RequestContext._createContext(RequestContext.
              java:550)
              > at
              amdocs.jspInfra.userManagement.RequestContext.createContext(RequestContext.j
              ava:391)
              > at
              amdocs.jspInfra.userManagement.RequestContext.createContext(RequestContext.j
              ava:415)
              > at
              amdocs.jspInfra.beans.GenericJspBean._removeConversation(GenericJspBean.java
              :466)
              > at amdocs.jspInfra.beans.GenericJspBean._cleanUp_(GenericJspBean.java:413)
              > at amdocs.jspInfra.beans.GenericJspBean.cleanUp_(GenericJspBean.java:117)
              > at amdocs.jspInfra.beans.GenericJspBean.finalize(GenericJspBean.java:593)
              > at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
              > at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:86)
              > at java.lang.ref.Finalizer.access$100(Finalizer.java:17)
              > at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:163)
              >
              

  • Anyone know if the StarTech Express eSATA card works with MBP/10.6?

    Hi - maybe a bad assumption, but according to StarTech, their eSATA ExpressCard works with 10.4 and 10.4 - so I assumed it would work with 10.6. The model number is ECESATA1.
    My original MacBook Pro recognizes the card because I see the icon in the top bar - however none of the two eSATA drives I've tried to connect get recognize or can be accessed via Finder or Disk Utility.
    I verified that the drive, cable, and card works because I verified on a Windows XP machine.
    StarTech's support is not open this weekend and nothing definitive via Googling - so I thought I'd ask here.
    Thanks
    JC

    Hi John -
    I am about to buy a StarTech duplicating dock, but finding out which card will work with it through my expresscard slot is a nightmare.
    Are you using the card that has two ports on it, and so has one drive per port, or are you using Port Multiplication to have two drives through one port ?
    I want to get this one, which I think is the same one you are using:
    http://www.startech.com/product/ECESATA1-1-Port-Flush-Mount-ExpressCard-34mm-eSA TA-II-Controller-Adapter-Card
    Startech support tell me to download the new driver from silicon website, but I still read threads which say there is a problem with it.
    Its the PMultiplication feature that is essential for what I need.
    Your experience and also driver that you are using would be very helpful before i blow £300 on kit that isnt going to work properly !
    Robert

  • Can ECM work with T510?

    I am implementing ECM in an organization where they have their salary structure in Pay Scale (T510). The organization is not ready for migration to T710. Can ECM run on T510? I need this information ASAP as we are in a critical phase.
    Thanks and regards,
    Sanjoy

    Hi,
    Please let me update this post (in time).
    The problem is not using T710 or T510, however you must thing about Inditect or Direct valuation.
    In the direct valuation the amounts are saved in table PA0008 from infotype 0008 and could be read by ECM.
    In the indirect valuation the amounts are stored in tabele T510, T528C, T511k, etc, and cannot be read by ECM without a enhancement. Is very common work with INVAL through T510 but it is not exclusive.
    You must implement the Badi HRECM00_ACTIVATION to work with indirect valuation.
    You must use this Badi too, if you consider a salary increase for multiples waretypes.
    Regards,
    Eduardo Marcelino

  • Approach in working with NetWeaver 2004s BI Business Content

    Hi,
    I was able to find the Netweaver 2004s BI Help documentation for the business contents available for the Industry Sector that I am working on. It is using the correct terminology, for example, instead ODS it is saying Datastore object. Would that mean the NetWeaver 2004s BI version is compatible to any R3 system versions for that Industry Sector?
    Would you cautiously test this BI version to that of the R3 Indusrty Sector version before you actually implement and integrate both for real? Or would you just implement it and resolve issues with OSS during the implementation and integration? How would you a pproach this?
    Thanks
    "<i>Confrontation lacks elegance and dignity, but most prefer to tell others how hateful they are toward another rather than maintain that elegance and dignity.</i>" ~ Anonymous

    I am actually working with the Industry Sector 'Media Enterprise' and not 'AFS'. 
    I totally agree that you would have to test test test and work with SAP through OSS. You can't sit there worry about the unknowns and blow things out of proportion and accuse others of being new to this kind of work. You can't be narrow minded about these things and insist on selling 3.5; you got to be on top of things if you're going to call yourself Mr. and Mrs. Victor and Victoria PeopleWannabeManagerTheGreat
    Anyway, there are no new implementations doing 3.5 anymore while 7.0 has already been released 1 year ago. It's not rocket science. We have a sandbox that is 3.5 and we could have installed nw2004s on this thing and test the heck out of it, but nooo... it is still 3.5; I tell you...Technical people want to put their misery out in no time by beating the heck out of this thing until they get it to work, but non-technical people want to create misery for others by talking and pointing talking and blaming and pointing until ...they become Senior Mr. and Mrs. Victor and Victoria PeopleWannabeManagerTheGreat. (That's funny...)
    I smell envy...;-)
    The highlight of the day for me...thought I'd throw out some humor if anyone would find it amusing.
    Thanks,
    "<i>The evil implanted in man by nature spreads so imperceptibly, when the habit of wrong-doing is unchecked, that he himself can set no limit to his shamelessness.</i>" ~    Cicero (106 BC - 43 BC)
    "<i>Man...You people have no shame</i>" ~ Anonymous
    Message was edited by:

  • Getting Headstart to work with 9iAS Release 2

    We have been working with Headstart6i through web forms using forms server that comes with 9iAS 1.0.2.2.2a on windows 2000.
    We moved to a 9i database and 9iAS Release 2. The new Forms server is running but I can't get Headstart to work through the web with the new 9iAS.
    I can get the starting page (hsustart.htm) and save the configuration of the new server, but when I hit Lanuch, I get an internal error.
    [Fri Aug  2 09:56:16 2002] [error] (8)Exec format error: exec of /mnt/rubella/apps/Oracle/hsd65/html/hsdcgi65 failed
    [Fri Aug  2 09:56:16 2002] [error] [client 10.1.1.31] Premature end of script headers: /mnt/rubella/apps/Oracle/hsd65/html/hsdcgi65
    I have checked the configuration files and they seem to be O.K.
    I am not sure if Headstart will work at all with the new app server. If it will work what do I need to setup differently?

    It seems that you don't have comm.jar in your classpath.

  • E4200 Not Working with ATV2 when wired

    I have an E4200 router & am trying to get it to work with ATV2 through HomeSharing & iTunes. It works fine when my PC is wireless & the ATV2 is wireless. BUT, when the ATV2 is wired via ethernet & the PC is wireless -- nothing! 
    PC is Win 7 64 - SP1
    ATV2 is 4.4.3 (3323) and the router is:
    E4200 is 1.0.03 build 14
    Help!!!!!

    Check the settings on the APTV2  for Airplay . The airplay symbol appears at the bottom right in iTunes and turn the APTV2 on...
    You can try the following steps:
    A] With the help of Cisco Connect Software (if at all you have installed the router with the help of this software)
    1] Open the software and go to the option which says "Router Settings"
    2] Then click on the option which says "Advanced Settings" which will take you to the router's configuration page.
    3] Then click on Security tab disable SPI Firewall Protection, uncheck Filter Anonymous Internet Requests...
    B] If you haven't installed Cisco Connect then you can log on to the router's user interface using it's default IP address in the browser which is 192.168.1.1 and type in 'admin' as the password leaving the username field blank. This will take you to the router's web interface and then follow steps as mentioned above to make the changes.

  • Unable  to work with Workflow Variable through SPML launchProcess Request ?

    Hi,
    I am trying to work with launch process request, which worked well with no error message when I am just using the workflow call through SPML "launchProcess Request " call. But when trying to use any workflow variable then getting exceptions. I don't undertsand about the error message. Is this trying to convert the variable in SIM variable.
    <spml:extendedResponse xmlns:spml='urn:oasis:names:tc:SPML:1:0' xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' result='urn:oasis:names:tc:SPML:1:0#failure'>
    <spml:operationalAttributes>
    <dsml:attr name='errorMessages'>
    <dsml:value>Couldn't find method get4() in class java.lang.String</dsml:value>
    <dsml:value>java.lang.String.get4()</dsml:value>
    <dsml:value>Missing view id.</dsml:value>
    <dsml:value>Missing view id.</dsml:value>
    <dsml:value>Unable to checkin view, missing view id</dsml:value>
    <dsml:value>XPRESS <get> exception:</dsml:value>
    <dsml:value>Couldn't find method get3() in class java.lang.String</dsml:value>
    <dsml:value>java.lang.String.get3()</dsml:value>
    <dsml:value>Missing view id.</dsml:value>
    <dsml:value>Missing view id.</dsml:value>
    <dsml:value>Unable to checkin view, missing view id</dsml:value>
    <dsml:value>XPRESS <get> exception:</dsml:value>
    <dsml:value>Couldn't find method get2() in class java.lang.String</dsml:value>
    <dsml:value>java.lang.String.get2()</dsml:value>
    <dsml:value>Missing view id.</dsml:value>
    <dsml:value>Missing view id.</dsml:value>
    <dsml:value>Unable to checkin view, missing view id</dsml:value>
    <dsml:value>XPRESS <get> exception:</dsml:value>
    <dsml:value>Couldn't find method get1() in class java.lang.String</dsml:value>
    <dsml:value>java.lang.String.get1()</dsml:value>
    <dsml:value>Missing view id.</dsml:value>
    <dsml:value>Missing view id.</dsml:value>
    <dsml:value>Unable to checkin view, missing view id</dsml:value>
    <dsml:value>XPRESS <get> exception:</dsml:value>
    <dsml:value>Couldn't find method get0() in class java.lang.String</dsml:value>
    <dsml:value>java.lang.String.get0()</dsml:value>
    <dsml:value>Missing view id.</dsml:value>
    <dsml:value>Missing view id.</dsml:value>
    <dsml:value>Unable to checkin view, missing view id</dsml:value>
    </dsml:attr>
    Below is the code I am using .
    LighthouseClient client = new LighthouseClient();
         client.setUser("configurator");
         client.setPassword("configurator");
         String url = "http://xyz:8080/idm/servlet/rpcrouter2";
    client.setUrl(url);
         ArrayList mslist = new ArrayList();
         idlist.add("12345");
         System.out.println("UserList :- "+idlist);
         ExtendedRequest extReq = new ExtendedRequest();
         extReq.setOperationIdentifier("launchProcess");
         extReq.setAttribute("process", "TEST_WF");
         extReq.setAttribute("idList",idlist); //workflow Global variable
         ExtendedResponse res = (ExtendedResponse)client.request(extReq);
         if (res.getResult() .equals(ExtendedResponse.RESULT_SUCCESS))
         System.out.println("Workflow was successfully executed");
              } catch (Exception e) {System.out.println("Error : " + e.getMessage());}
    Please suggest me if I am using anything wrong. Its urgent... it halted my work.
    Regards,
    vinash.

    hi,
    in java code you set variable:
    extReq.setAttribute("my_email", "[email protected]");in express code of your workflow (you also can see it in your debugger if you set a breakpoint a the beginning of your workflow):
    <ref>my_email</ref>

  • IPod 3g works with usb, not through firewire

    Hello everybody.
    That's a long time the problem happened, but now it gives me a big trouble because I can't change music on my iPod 3G 10go.
    In fact, iPod was recognized through firewire by my iMac G3 until I installed Tiger. But charging is OK. After having installed that great OS, I can interract with iPod only through USB. That's a big problem because there's only USB 1 on iMac G3.
    I've restored iPod, reinstalled it, having too repaired my iMac G3 disk with Disk Utility. But it still doesn't work.
    So here's a resumee of all things I've done :
    -Reinstalled iPod softwae (last version available)
    -It does not work with my new iMac Core2duo, so that's not a problem with one of my two computers.
    -That shouldn't be a problem with firewire cable because charging is OK.
    -That shouldn't be a problem with dock connector because it works fine when I use iPod on Universal Dock with Apple Remote.

    Hi Xavier
    Yes many people seem to be having this problem since installing the new iTunes 7 and ipod software 2.3, however no one seems to know what is the real cause. My 3G iPod was perfect for years, and since last week I have been unable to connect to my Macbook Pro with firewire. However it is fine with USB.
    People keep telling me to restore my ipod to an older software version (older than 2.3), however the 3G ipod is unable to restore using USB, and requests the firewire connection to restore.
    Thus, I connected with USB and restored using iTunes on windows (using bootcamp on my MBP). However now my ipod is Windows formatted, and is having problems importing music in OS X.
    Just wanted to let you know that others are having this problem, and we are waiting for Apple to issue a response/fix/update.

  • I need help getting my Thunderbolt display to work with Windows 7 through Bootcamp.

    I recently bought a thunderbolt display and it works great in my Mac environment.  But I recently added Bootcamp and Windows 7 (I need since my Broker Dealer only uses Internet Explorer).  Unfortunately, I can't seem to get Windows to recognize my Thunderbolt display.  Today, I spent 2 hours with a very kind advisor from Apple Support but we didn't have any success.
    Here's my setup:
    MacBook Pro (purchased new in 2011) with i7 processor
    Thunderbolt Display
    Lion OS (all updates installed)
    Bootcamp with Windows 7 Ultimate 64-bit (all updates installed)
    With the help of Apple Support, I downloaded and reinstalled (through the repair option) all the Bootcamp drivers.  I shut down my computer, plugged in the Thunderbolt display, turned it on and booted into Windows 7.  When the Windows Welcome screen appears, it shows on my Thunderbolt display for about 2-3 seconds.  But the thunderbolt quickly goes black.  My MacBook Pro changes to a 640x480 resolution and the Thunderbolt remains blacked out--with no signs of even a single flicker.  Once the computer finishes the start-up, my MacBook Pro remains in a 640x480 resolution, with no option to change the resolution (it's grayed out in Windows control panel).  If I unplug the Thunderbolt cable from my MacBook pro, the high resolution of my MacBook pro snaps back to normal.
    To me, this seems like some type of driver problem but I must be missing something simple because it appears that Thunderbolt works with Bootcamp and Windows 7--based on some of the readings I've found here in the Apple support community.  I'm most appreciative of anyone's help here.

    Moving the discussion to OnLocation
    Thanks,
    Atul Saini

  • File download via servlet doesn't work with IE via https

    I have a URL from a jsp page which points to a struts action servlet. This works with firefox via http and https. With IE it works via http but it doesn't work via https. The error message I get is "Internet Explorer cannot download ...File_name.doc from Server_name.
    Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later."
    Here is my code.
    public ActionForward execute(ActionMapping mapping, ActionForm form,
                   HttpServletRequest request, HttpServletResponse response)
                   throws Exception {
              String attachmentURL = AppSettings.get("EAIAttachmentURL");
              String encodingScheme = AppSettings.get("EAI_encoding");
              String filename = request.getParameter("URL");
              String fileStr = URLEncoder.encode(filename, encodingScheme);
              fileStr = fileStr.replaceAll("\\+","%20");
              URL targetURL = new URL(attachmentURL + "/" + fileStr);
              URLConnection connection = targetURL.openConnection();
              connection.setDoInput(true);
              connection.setDoOutput(false);
              connection.setAllowUserInteraction(false);
              BufferedInputStream attachmentStream = new BufferedInputStream(
                        connection.getInputStream());
              * Setting the content disposition filename, so that the
              * attachment preserves the original filename
              response.setHeader("Content-Disposition",
                        " attachment; filename=" + filename);
              if (connection.getContentType() != null) {
                   response.setContentType(connection.getContentType());
              else {
                   response.setContentType("application/octet-stream");
              response.setContentLength(connection.getContentLength());
              response.setHeader("Pragma", "public");
              response.setHeader("Cache-Control", "public, max-age=-1, must-revalidate");
              if ( connection.getContentEncoding() != null ) {
                   response.setHeader("Content-Encoding",
                             connection.getContentEncoding());
              BufferedOutputStream responseStream = new BufferedOutputStream(
                        response.getOutputStream());
              byte[] buffer = new byte[4096];
              int bytesRead;
              try {
                   while ((bytesRead = attachmentStream.read(buffer)) != -1) {
                        responseStream.write(buffer, 0, bytesRead);
              } catch (Exception e) {
                   log.error("AttachmentProxy error: " + e.getMessage());
              } finally {
                   if (attachmentStream != null) {
                        attachmentStream.close();
                   if (responseStream != null) {
                        responseStream.flush();
                        responseStream.close();
              return null;
    There is a bug with IE when downloading via https according to Microsoft support site. Refer to http://support.microsoft.com/default.aspx?scid=kb;en-us;812935
    According to this bug, I have set the response header - "pragma" to public and "cache-control" to public. I've also unchecked the Do not save encrypted pages to disk setting in IE Options, Advanced tab.
    Has anyone come across this problem or a similar problem. Any help is appreciated. Thanks.

    I have a URL from a jsp page which points to a struts action servlet. This works with firefox via http and https. With IE it works via http but it doesn't work via https. The error message I get is "Internet Explorer cannot download ...File_name.doc from Server_name.
    Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later."
    Here is my code.
    public ActionForward execute(ActionMapping mapping, ActionForm form,
                   HttpServletRequest request, HttpServletResponse response)
                   throws Exception {
              String attachmentURL = AppSettings.get("EAIAttachmentURL");
              String encodingScheme = AppSettings.get("EAI_encoding");
              String filename = request.getParameter("URL");
              String fileStr = URLEncoder.encode(filename, encodingScheme);
              fileStr = fileStr.replaceAll("\\+","%20");
              URL targetURL = new URL(attachmentURL + "/" + fileStr);
              URLConnection connection = targetURL.openConnection();
              connection.setDoInput(true);
              connection.setDoOutput(false);
              connection.setAllowUserInteraction(false);
              BufferedInputStream attachmentStream = new BufferedInputStream(
                        connection.getInputStream());
              * Setting the content disposition filename, so that the
              * attachment preserves the original filename
              response.setHeader("Content-Disposition",
                        " attachment; filename=" + filename);
              if (connection.getContentType() != null) {
                   response.setContentType(connection.getContentType());
              else {
                   response.setContentType("application/octet-stream");
              response.setContentLength(connection.getContentLength());
              response.setHeader("Pragma", "public");
              response.setHeader("Cache-Control", "public, max-age=-1, must-revalidate");
              if ( connection.getContentEncoding() != null ) {
                   response.setHeader("Content-Encoding",
                             connection.getContentEncoding());
              BufferedOutputStream responseStream = new BufferedOutputStream(
                        response.getOutputStream());
              byte[] buffer = new byte[4096];
              int bytesRead;
              try {
                   while ((bytesRead = attachmentStream.read(buffer)) != -1) {
                        responseStream.write(buffer, 0, bytesRead);
              } catch (Exception e) {
                   log.error("AttachmentProxy error: " + e.getMessage());
              } finally {
                   if (attachmentStream != null) {
                        attachmentStream.close();
                   if (responseStream != null) {
                        responseStream.flush();
                        responseStream.close();
              return null;
    There is a bug with IE when downloading via https according to Microsoft support site. Refer to http://support.microsoft.com/default.aspx?scid=kb;en-us;812935
    According to this bug, I have set the response header - "pragma" to public and "cache-control" to public. I've also unchecked the Do not save encrypted pages to disk setting in IE Options, Advanced tab.
    Has anyone come across this problem or a similar problem. Any help is appreciated. Thanks.

  • Wifi is not available where I come from. I have broadband connection where data transmission is through cell sites then to USB modem connected to a computer. The modem draws power from the computer. Will this setup work with the ipad?

    Wifi is not available where I come from. I have broadband connection where data transmission is through cell sites then to USB modem connected to a computer. The modem draws power from the computer. Will this setup work with the ipad?

    iPad requires Wifi (or 3G /LTE) to connect to the Internet. You cannot connect a USB modem to the iPad.
    You can create your own WiFi hotspot through your computer for your iPad to connect to, if your computer supports this functionality. All Wifi Macs and many Wifi PCs do. Check your computer manual for how to do it.

Maybe you are looking for

  • Two Apple IDs entered into one iPad- help needed!

    My wife used to have an Apple ID (let's call it the 'first' ID) on her iPad and had bought many games. Recently she decided to change her Apple ID as the email address for the 'first' ID was now an account that she never used. So she changed her Appl

  • How to delete multi contacts in one time

    i need to  delete multi contacts in one time there is any way for this.

  • Specify Calendar in Nokia Weather & Calendar app w...

    I recently bought the DT-910. After some initial trouble adding the Nokia Accessories section to Settings (I found a QR code link in these forums to install it, because it doesn't appear in the Store and wasn't on my Lumia 928 otherwise), I was enjoy

  • Wrt54G2 issues

    Hello:  I have Wrt54G2 v1.5, I did latest code upgrade recently, and I still have two issues. 1) after code upgrade, I could use cisco IPSEC vpn, after I switch to Netgear wireless router, vpn is fine. 2) It has a lot of problem with Comcast scientif

  • Can I start a new forum?

    I would like to establish a new forum called RBAC/SOD/ACM. We would use this forum to discuss Enterprise Oracle Application Controls Solutions using Role Based Access Control (RBAC), Segregation of Duties (SOD) and Applications Controls Monitoring (A