JWS Download Dialog's URL(From:) different from browser's URL

Hi everyone,
My problem:
I have deployed application A.jar at: {color:#0000ff}192.168.0.10{color}
B.jar at:{color:#ff0000} 192.168.0.20{color}
they were alaway launched successfully.
but sometimes when I input {color:#0000ff}192.168.0.10{color} in the browser address, B.jar from {color:#ff0000}192.168.0.20{color} has be launched(*A.jar* has not),
when I clear the JAVA cache , the problem will not happen 。 but After a few days , the problem happened again...
i don't know how to slove it.
anyone can help me ? thanks
my english is poor ,i hope you will get my point.
, :)

Hi!
You might have seen this post in the Automator part
of the forum... but I might have posted it in the
wrong place (got no interest:( )
I've managed to get automator to retrieve (and save
to hdd) an .m3u playlist from a radio's website that
broadcasts a program I like in mp3.
inside this m3u playlist is the link to an actual mp3
file... both the m3u and the mp3 change every week.
If I drag the m3u to TextEdit it opens up and I can
see the 3 lines of "source code" of which the last
line is the full url of the mp3 file (http://www
.thatradiosurl.com/audio/show-shownumber.mp3)
You already got the playlist into a text file, you have two options:
1. use Automator's 'Get Link URLs from Webpages' action to extract the URL. 'Get Link URLs from Webpages' is under Safari lib.
2. run Automator Python script from 'Get Link URLs from Webpages' in AppleScript. The script below with get your mp3 URLs:
set playlist_file to "/path/to/playlist/file.txt" -- change to your actual playlist file path
set _URLs to do shell script "/System/Library/Automator/Get\\ Link\\ URLs\\ from\\ Webpages.action/Contents/Resources/links file://" & quoted form of playlist_file
set mp3_URLs to ""
repeat with _URL in paragraphs of _URLs
if _URL contains ".mp3" then set mp3_URLs to mp3_URLs & _URL & (ASCII character 10)
end repeat
mp3_URLs is the list you want you extract.

Similar Messages

  • File Download Dialog shown unexpectedly on submit (ADF)

    We are getting an issue using ADF v10.1.3.0.4 where the File Download Dialog is being shown by the browser when a user clicks a navigation button or the date picker button. It doesn't happen consistently but often enough to be a issue for us. The download dialog asks the user to download the *.faces page rather than just displaying it! If they click cancel and then click the button again then the page is usually displayed correctly. We are running over SSL and using IE6 SP2. Has anyone seen this before and if so what is the solution to fixing it?
    Thanks, JM

    Hi,
    actually I did run my test app via SSl as wellbut this effect didn't show. You could try and upgrade to a recent version of JDeveloper to see if it reproduces there. Or customer support at metalink.oracle.com is an option to solve the issue.
    Frank

  • I just purchased Acrobat Pro XI i downloaded the installation file from a different computer because mnes has no internet i click to setup/ install ot says "Acrovat instiller encountered an unexpected failure.  please try again. if continues contact dobe

    I just purchased Acrobat Pro XI i downloaded the installation file from a different computer because mnes has no internet i click to setup/ install ot says "Acrovat instiller encountered an unexpected failure.  please try again. if continues contact dobe support. " how can i install ot to my computer whats going on??

    I just purchased Acrobat Pro XI i downloaded the installation file from a different computer because mnes has no internet i click to setup/ install ot says "Acrovat instiller encountered an unexpected failure.  please try again. if continues contact dobe support. " how can i install ot to my computer whats going on??

  • HT1751 I get an error message stating  this computer is already assigned to an Apple ID and can only download every 90 days from a different Apple ID. How do I  get by this?

    I had to get a new external hard drive and now would like to download  my previous purchases from ITunes . I get a message stating " this computer is already associated with an Apple ID - you can download  after 90 days. Please help as I have 3 apple ID and purchases on each which needs to be backed up to my new hard drive.

    Hi Allan, thanks for that. I've already set up a log in for my wife and that is all working fine. The problem is that when she logs in and opens iTunes and trys to associate her library with her iTunes account she gets the error message "This computer is already associated with another iTunes account". Whilst this is true, the computer is associated with my iTunes account under my separate log in, which should have nothing to do with hers. If she transfers the association to her account it will lock me out of my content on my log in for 90 days - I'm trying to work out how to associate each of the log in accounts with a separate iTunes account so we can access our music independently of one another without locking each other out. Hope that makes sense!

  • Can I download my old purchases from a different country store.

    I'm moving from the US to the UK. I want to know once I change stores and update my billing information would I be able to download my old purchases from the US store? I do have ITunes match if that helps.

    No you won't, as well as being tied to the account, content is also tied to the country that it was downloaded in. So before you move here to the UK redownload any item that you might want and take a backup copy of them.
    As far as I know you also won't be able to change countries whilst you have iTunes Match active

  • How can I stop the download dialog from appearing every time I open Firefox 5.o latest version?

    Ever since I downloaded Firefox 5.0 the other day I get the download dialog every time I start Firefox 5.0.1. I told the download dialog to save Firefox 5.0.1 when I downloaded it. If I now say yes to the dialog it will download and save a new copy of the program like 5.0.1 (1). If I say cancel on the dialog I keep getting the dialog every time I start Firefox 5.0.1.

    I have heard that Norton released an update patch for Firefox 5.0 on Tuesday 06-21 when Firefox 5.0 was released. ''(versus taking their normal six to eight weeks)'' Some Norton users have reported that the toolbar may not work if the Norton patch was installed before Firefox 5.0, instead if after Firefox 5.0 was already installed.
    http://community.norton.com/t5/Norton-Internet-Security-Norton/Update-Available-Firefox-5-0-Compatibility-Release-for-Norton/td-p/478160
    http://community.norton.com/t5/Norton-Internet-Security-Norton/Norton-Toolbar-for-Firefox-5/td-p/475704/page/16

  • Michael Miller: Removed Cannot log in (old mail on file?) and cannot download Lightroom 5.6 from inside Lightroom.  Get NO DATA RECEIVED error. Need to get back on Chat.

    This was my previous discussion with Adobe Chat, which I CANNOT FIND a link to now.
    It's a catch 22.  I think Adobe still had my old email address, which I have deleted with Comcast.
    Therefore, Adobe cannot send me a change of password form, nor can I update my email.
    I think Chat is my best bet, but cannot find link.
    Note, I may not be able to receive forum responses, if Adobe notifies my old email address.
    If I need to sign in to get responses, I cannot do that either. Adobe reports an error if I use my old address.
    I cannot update my email address, without signing in.
    Adobe, and everyone else needs to have links for: Forgot Your Password? -AND- Forgot Your Email (or changed it).
    Please reach me outside of Adobe at: <Removed by Moderator>
    I am a registered customer with products on file.
    Chat History:
    Sandesh: May I have the email address to  which you have access ?
    you: Correct address is:<Removed by Moderator>
    But, do I have to login to download updates. I got the dialog directly from LR, when I opened it.
    Sandesh: May I have the serial number of the product please ?
    you: LR 5: <serial number removed by moderator>
    Sandesh: Thank you.
    Sandesh: May I know the exact error message you are getting ?
    you: NO DATA RECEIVED. In the meantime, I found another LR ID: <serial number removed by moderator> in case you need it.
    Sandesh: Sure.
    Sandesh: May I know whether you are using the Dvd or the download ?
    my comment (I already said download above).
    you: Trying to download from your Adobe web site.
    Sandesh: Okay.
    Sandesh: Please allow me  a moment.
    Sandesh: Could you please copy paste the URL of the download link you are using on the chat screen so that I can check ?
    Sandesh: Are we still connected?
    Added today: 8/19/2014:
    The link the download button is on, is:
    http://www.adobe.com/support/downloads/thankyou.jsp?ftpID=5823&fileID=5837
    Loading message says: Waiting for download.adobe.com
    The page the error is on, is:
    http://download.adobe.com/pub/adobe/lightroom/win/5.x/Lightroom_5_LS11_win_5_6.exe
    Then, while Sandesh was researching, I had to leave the room for too long and then had to go out.  So,
    Sandesh: Since we have not heard from you for some time, we will now end this chat.

    Michael Miller please try a different web browser.  You may also want to review your host file to ensure the Adobe servers are not being blocked.  You can find details on how to review your host file at Sign in, activation, or connection errors | CC, CS6, CS5.5 - http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html.
    I was able to download the Lightroom 5.6 update without any errors.  If you continue to face difficulties you may want to try a different Internet connection or download the update onto a USB drive on a different computer.

  • Cannot download GPS Almanac files from navcen.uscg.gov

    Cannot download GPS almanac files (current.alm) from NAVCEN. response from NAVCEN says:Greetings,
    Thank you for contacting the USCG Navigation Center with this issue. We were able to duplicate your issue using Firefox version 3.6. Further testing using earlier versions of Firefox (3.5 and 3.0) and Internet Explorer encountered no issues downloading and saving the GPS almanac files.
    There are many reports of similar downloading issues from other sources on the Mozilla support forums with possible solutions to try so it appears to be a software/web browser issue and we recommend you try another browser or a different version of your current browser and see if that resolves the issue.
    USCG Navigation Center
    Navigation Information Service
    7323 Telegraph Rd.
    Alexandria, VA 22315
    Tel: 703-313-5900
    Website: www.navcen.uscg.gov
    == URL of affected sites ==
    http://www.navcen.uscg.gov/?pageName=gpsAlmanacs

    That's an odd one. The site is not much help either. There is a list of plugins and/or viewers that they claim are used for documents on the site: http://www.navcen.uscg.gov/?pageName=plugIns (the link is at the bottom right corner of the main page, "Download plug-ins").
    Note that those saying "...Viewer 2003" are out of date; the current versions are "...Viewer 2007" and are available free on the Microsoft site: https://encrypted.google.com/search?hl=en&as_q=&as_epq=site:microsoft.com+viewer+2007&as_oq=&as_eq=&num=10&lr=&as_filetype=&as_sitesearch=&as_qdr=all&as_rights=&as_occt=any&cr=&as_nlo=&as_nhi=&safe=images
    I tried to load into:
    Foxit Reader (substitute for Adobe Reader/Acrobat): No go
    Open Office Calc (substitute for MS Excel): had to parse into 2 columns of descriptive text and numbers
    PowerPoint Viewer 2007: no go
    ~~red:Microsoft Word: see attachment, bottom left of my post~~
    I don't have Visio or Visio Viewer.
    ~~red:Is the Word image what you were expecting to see?~~
    The file will not open in Firefox but will open the Word application and display the download there; save it from Word if you want to keep the file.
    When the screen opens to Open or Save file, choose Browse, browse to C:\Program Files\Microsoft Office\Office1# and click on winword.exe ; if you want it to handle all .alm files in Word in the future, check the box "Do this automatically for files like this from now on".
    See:
    http://support.mozilla.com/en-US/kb/Managing+file+types
    http://kb.mozillazine.org/File_types_and_download_actions
    <u>'''''Other Issues'''''</u>: ~~red:You have installed plug-ins with known security issues. You should update them immediately.~~
    <u>'''Update Java'''</u>: your ver. 1.6.0.13; current ver. 1.6.0.20 (<u>important security update 04-15-2010</u>)
    (Firefox 3.6 and above requires Java 1.6.0.10 or higher; see: http://support.mozilla.com/en-US/kb/Java-related+issues#Java_does_not_work_in_Firefox_3_6 )
    ''(Windows users: Do the manual update; very easy.)''
    ~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
    See: '''[http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates Updating Java]'''
    Do the update with Firefox closed.

  • How to download a file version from office 365 using csom

    I need to download an older file version from office 365 and get the data into a byte array. I have no trouble downloading the latest version with File.OpenBinaryStream() and I have no trouble loading the previous file versions with File.Versions. But now
    I need to actually download an older version of the file and it seems the only way is to use File.OpenBinaryDirect. So I am creating a client context using my oAuth access token and providing the correct path, but I am getting a (401) Unauthorized
    error. Looking with Fiddler I can see that the call to OpenBinaryDirect is somehow trying to post to my file URL and the server is responding with 401.
    context = TokenHelper.GetClientContextWithAccessToken(SPHostUrl, AccessToken);
    FileInformation info = File.OpenBinaryDirect(context, "/" + _fileVersion.Url);  //throws 401
    //leading slash required otherwise ArgumentOutOfRangeException
    I have to be able to access the older file versions with my c# code -- I don't have a viable app without that ability -- any help urgently needed and greatly appreciated!

    Thank you SO much (Can't wait for the next release)!
    For anyone else who lands here, here's the code I ended up using:
    // VersionAccessUser and VersionAccessPassword are stored in web.config
    // web.Url is loaded via the clientContext
    // myVersion is the FileVersion I got from the file's Versions.GetById() method
    // probably a lot of ways to get hostUrl, it just needs to be https://yourdomain.sharepoint.com/
    // - I'm running my app from a subweb
    // I had trouble following the links to get the full MsOnlineClaimsHelper code
    // (the one on msdn.com was missing RequestBodyWriter, WSTrustFeb2005ContractClient,
    // and IWSTrustFeb2005Contract
    // so I've included the code I used here.
    string myVersionFullUrl = string.Format("{0}/{1}", web.Url, myVersion.Url);
    string userName = WebConfigurationManager.AppSettings.Get("VersionAccessUser");
    string strPassword = WebConfigurationManager.AppSettings.Get("VersionAccessPassword");
    string hostUrl = Regex.Replace(web.Url, "([^/]+//[^/]+/).*", "$1");
    MsOnlineClaimsHelper claimsHelper = new MsOnlineClaimsHelper(hostUrl, userName, strPassword);
    var client = new WebClient();
    client.Headers["Accept"] = "/";
    client.Headers.Add(HttpRequestHeader.UserAgent, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");
    client.Headers.Add(HttpRequestHeader.Cookie, claimsHelper.CookieContainer.GetCookieHeader(new Uri(hostUrl)));
    var document = client.DownloadString(myVersionFullUrl);
    // These classes are needed to download old versions of files (see: http://social.msdn.microsoft.com/Forums/en-US/7746d857-d351-49cc-b2f0-496663239e02/how-to-download-a-file-version-from-office-365-using-csom?forum=sharepointdevelopment)
    // I cobbled this file from http://social.technet.microsoft.com/Forums/msonline/en-US/4e304493-7ddd-4721-8f46-cb7875078f8b/problem-logging-in-to-office-365-sharepoint-online-from-webole-hosted-in-the-cloud?forum=onlineservicessharepoint
    // and http://fredericloud.com/2011/01/11/connecting-to-sharepoint-with-claims-authentication/
    using Microsoft.IdentityModel.Protocols.WSTrust;
    using Microsoft.SharePoint.Client;
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using System.Net;
    using System.Net.Security;
    using System.ServiceModel;
    using System.ServiceModel.Channels;
    using System.Text;
    using System.Web;
    using System.Xml;
    using System.Xml.Linq;
    namespace DPSiDoxAppWeb.Helpers
    /// <summary>
    /// Create a new contract to use for issue claims for the SharePoint requests
    /// </summary>
    [ServiceContract]
    public interface IWSTrustFeb2005Contract
    [OperationContract(ProtectionLevel = ProtectionLevel.EncryptAndSign,
    Action = "http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue",
    ReplyAction = "http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/Issue",
    AsyncPattern = true)]
    IAsyncResult BeginIssue(Message request, AsyncCallback callback, object state);
    Message EndIssue(IAsyncResult asyncResult);
    /// <summary>
    /// Implement the client contract for the new type
    /// </summary>
    public class WSTrustFeb2005ContractClient : ClientBase<IWSTrustFeb2005Contract>, IWSTrustFeb2005Contract
    public WSTrustFeb2005ContractClient(Binding binding, EndpointAddress remoteAddress)
    : base(binding, remoteAddress)
    public IAsyncResult BeginIssue(Message request, AsyncCallback callback, object state)
    return Channel.BeginIssue(request, callback, state);
    public Message EndIssue(IAsyncResult asyncResult)
    return Channel.EndIssue(asyncResult);
    /// <summary>
    /// Create a class that will serialize the token into the request
    /// </summary>
    class RequestBodyWriter : BodyWriter
    readonly WSTrustRequestSerializer _serializer;
    readonly RequestSecurityToken _rst;
    /// <summary>
    /// Constructs the Body Writer.
    /// </summary>
    /// <param name="serializer">Serializer to use for serializing the rst.</param>
    /// <param name="rst">The RequestSecurityToken object to be serialized to the outgoing Message.</param>
    public RequestBodyWriter(WSTrustRequestSerializer serializer, RequestSecurityToken rst)
    : base(false)
    if (serializer == null)
    throw new ArgumentNullException("serializer");
    _serializer = serializer;
    _rst = rst;
    /// <summary>
    /// Override of the base class method. Serializes the rst to the outgoing stream.
    /// </summary>
    /// <param name="writer">Writer to which the rst should be written.</param>
    protected override void OnWriteBodyContents(XmlDictionaryWriter writer)
    _serializer.WriteXml(_rst, writer, new WSTrustSerializationContext());
    public class MsOnlineClaimsHelper
    #region Properties
    readonly string _username;
    readonly string _password;
    readonly bool _useRtfa;
    readonly Uri _host;
    CookieContainer _cachedCookieContainer = null;
    DateTime _expires = DateTime.MinValue;
    #endregion
    #region Constructors
    public MsOnlineClaimsHelper(string host, string username, string password)
    : this(new Uri(host), username, password)
    public MsOnlineClaimsHelper(Uri host, string username, string password)
    _host = host;
    _username = username;
    _password = password;
    _useRtfa = true;
    public MsOnlineClaimsHelper(Uri host, string username, string password, bool useRtfa)
    _host = host;
    _username = username;
    _password = password;
    _useRtfa = useRtfa;
    #endregion
    #region Constants
    public const string office365STS = "https://login.microsoftonline.com/extSTS.srf";
    public const string office365Login = "https://login.microsoftonline.com/login.srf";
    public const string office365Metadata = "https://nexus.microsoftonline-p.com/federationmetadata/2007-06/federationmetadata.xml";
    public const string wsse = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
    public const string wsu = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
    private const string userAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)";
    #endregion
    class MsoCookies
    public string FedAuth { get; set; }
    public string rtFa { get; set; }
    public DateTime Expires { get; set; }
    public Uri Host { get; set; }
    // Method used to add cookies to CSOM
    public void clientContext_ExecutingWebRequest(object sender, WebRequestEventArgs e)
    e.WebRequestExecutor.WebRequest.CookieContainer = getCookieContainer();
    //e.WebRequestExecutor.WebRequest.UserAgent = userAgent;
    // Creates or loads cached cookie container
    CookieContainer getCookieContainer()
    if (_cachedCookieContainer == null || DateTime.Now > _expires)
    // Get the SAML tokens from SPO STS (via MSO STS) using fed auth passive approach
    MsoCookies cookies = getSamlToken();
    if (cookies != null && !string.IsNullOrEmpty(cookies.FedAuth))
    // Create cookie collection with the SAML token
    _expires = cookies.Expires;
    CookieContainer cc = new CookieContainer();
    // Set the FedAuth cookie
    Cookie samlAuth = new Cookie("FedAuth", cookies.FedAuth)
    Expires = cookies.Expires,
    Path = "/",
    Secure = cookies.Host.Scheme == "https",
    HttpOnly = true,
    Domain = cookies.Host.Host
    cc.Add(samlAuth);
    if (_useRtfa)
    // Set the rtFA (sign-out) cookie, added march 2011
    Cookie rtFa = new Cookie("rtFA", cookies.rtFa)
    Expires = cookies.Expires,
    Path = "/",
    Secure = cookies.Host.Scheme == "https",
    HttpOnly = true,
    Domain = cookies.Host.Host
    cc.Add(rtFa);
    _cachedCookieContainer = cc;
    return cc;
    return null;
    return _cachedCookieContainer;
    public CookieContainer CookieContainer
    get
    if (_cachedCookieContainer == null || DateTime.Now > _expires)
    return getCookieContainer();
    return _cachedCookieContainer;
    private MsoCookies getSamlToken()
    MsoCookies ret = new MsoCookies();
    try
    var sharepointSite = new
    Wctx = office365Login,
    Wreply = _host.GetLeftPart(UriPartial.Authority) + "/_forms/default.aspx?wa=wsignin1.0"
    //get token from STS
    string stsResponse = getResponse(office365STS, sharepointSite.Wreply);
    // parse the token response
    XDocument doc = XDocument.Parse(stsResponse);
    // get the security token
    var crypt = from result in doc.Descendants()
    where result.Name == XName.Get("BinarySecurityToken", wsse)
    select result;
    // get the token expiration
    var expires = from result in doc.Descendants()
    where result.Name == XName.Get("Expires", wsu)
    select result;
    ret.Expires = Convert.ToDateTime(expires.First().Value);
    HttpWebRequest request = createRequest(sharepointSite.Wreply);
    byte[] data = Encoding.UTF8.GetBytes(crypt.FirstOrDefault().Value);
    using (Stream stream = request.GetRequestStream())
    stream.Write(data, 0, data.Length);
    stream.Close();
    using (HttpWebResponse webResponse = request.GetResponse() as HttpWebResponse)
    // Handle redirect, added may 2011 for P-subscriptions
    if (webResponse.StatusCode == HttpStatusCode.MovedPermanently)
    HttpWebRequest request2 = createRequest(webResponse.Headers["Location"]);
    using (Stream stream2 = request2.GetRequestStream())
    stream2.Write(data, 0, data.Length);
    stream2.Close();
    using (HttpWebResponse webResponse2 = request2.GetResponse() as HttpWebResponse)
    ret.FedAuth = webResponse2.Cookies["FedAuth"].Value;
    ret.rtFa = webResponse2.Cookies["rtFa"].Value;
    ret.Host = request2.RequestUri;
    else
    ret.FedAuth = webResponse.Cookies["FedAuth"].Value;
    ret.rtFa = webResponse.Cookies["rtFa"].Value;
    ret.Host = request.RequestUri;
    catch (Exception ex)
    return null;
    return ret;
    static HttpWebRequest createRequest(string url)
    HttpWebRequest request = HttpWebRequest.Create(url) as HttpWebRequest;
    request.Method = "POST";
    request.ContentType = "application/x-www-form-urlencoded";
    request.CookieContainer = new CookieContainer();
    request.AllowAutoRedirect = false; // Do NOT automatically redirect
    request.UserAgent = userAgent;
    return request;
    private string getResponse(string stsUrl, string realm)
    RequestSecurityToken rst = new RequestSecurityToken
    RequestType = WSTrustFeb2005Constants.RequestTypes.Issue,
    AppliesTo = new EndpointAddress(realm),
    KeyType = WSTrustFeb2005Constants.KeyTypes.Bearer,
    TokenType = Microsoft.IdentityModel.Tokens.SecurityTokenTypes.Saml11TokenProfile11
    WSTrustFeb2005RequestSerializer trustSerializer = new WSTrustFeb2005RequestSerializer();
    WSHttpBinding binding = new WSHttpBinding();
    binding.Security.Mode = SecurityMode.TransportWithMessageCredential;
    binding.Security.Message.ClientCredentialType = MessageCredentialType.UserName;
    binding.Security.Message.EstablishSecurityContext = false;
    binding.Security.Message.NegotiateServiceCredential = false;
    binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.None;
    EndpointAddress address = new EndpointAddress(stsUrl);
    using (WSTrustFeb2005ContractClient trustClient = new WSTrustFeb2005ContractClient(binding, address))
    trustClient.ClientCredentials.UserName.UserName = _username;
    trustClient.ClientCredentials.UserName.Password = _password;
    Message response = trustClient.EndIssue(
    trustClient.BeginIssue(
    Message.CreateMessage(
    MessageVersion.Default,
    WSTrustFeb2005Constants.Actions.Issue,
    new RequestBodyWriter(trustSerializer, rst)
    null,
    null));
    trustClient.Close();
    using (XmlDictionaryReader reader = response.GetReaderAtBodyContents())
    return reader.ReadOuterXml();

  • Download a text file from JSP (Urgent Please!)

    Hi,
    I have a issue with this JSP, I need to download a txt file from my webserver to the pc client, the page shows the dialg box but appear the filename (list.jsp) of my jsp instead of the txt file.
    If I click the save buton save the list.jsp page; if I click in the open buton, then appear again the dialg box and now appear the url (download.jsp?filename=...) and if I click in the save button now I can save my txt file in the local pc.!!!!
    Any ideas ??
    list.jsp --> is the jsp from the download.jsp is run.
    download.jsp
    <%@ page import="java.io.*,javax.servlet.*,java.util.* "%><% String filename = request.getParameter("filename");
    response.setContentType("application/download");
    String value = "attachment; filename=\"" + filename + "\";" ;
    response.setHeader("Content-Disposition",value);
    int iRead;
    FileInputStream stream = null;
    try {
    File f = new File("C://test//" + filename);
    stream = new FileInputStream(f);
    while ((iRead = stream.read()) != -1) {
    out.write(iRead);
    out.flush();
    finally {
    if (stream != null) {
    stream.close();
    %>

    Maybe try no quotes around the content disposition header?
    Also, I'm not sure that application/download would be the best content type, maybe "application/octet-stream" instead. You should also probably explicitly set the Content-Length header to the file size.

  • Downloading an XML file from Website through FUSION middleware

    Hi,
    I want to download an xml file from one website through BPEL. I am using jdeveloper 10.1.3.3 to create a BPEL process and Adapters.
    How can i download the xml file from the site through FUSION middleware?

    Another option would be to write a smal Java class the uses URLConnect to connect to the URL in question and use WSIF to bind it to the BPEL process.
    Just google for sample code.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                           

  • How to link individual picker view selections to download an individual file from a website or other location such as dropbox using Xcode?

    Alright, the question I have has to deal with how to link an app to a website to download files. How, or is it even possible to link individual picker view selections to download an individual file from a website or other location such as dropbox using xcode. Sorry if this is the wrong place to post this, but if anyone can help or can send a link to a place that can, I would greatly appreciate it!

    I am not getting anywhere with deploying my application or
    applet.
    I have set up my bc4j project. It contains all my VO info,
    links, application module. (proj a)
    I then have another project with DbInfo in it(has all my rowset
    info), Multiple Frames, and my Applet.java file.
    Actually I have an Applet.java file and a Application.java file
    because I was seeing if both/either worked. Anyway they seem the
    same, except for that extra window that comes up when you run the
    applet.
    I follow the steps in the oracle directions (from earlier post).
    And all seems ok. But at ---->
    [*] Select the subdirectory under myhtml where your applet's HTML
    file
    is located, and enter the directory path of the 'staging'
    directory you
    created in step 3 above, if different from the default.</li>
    [*]Select the HTML files that JDeveloper created to run your
    applet.</li>
    [*]Select all of the Java source files in your project that make
    up the
    applet.</li>
    I have no HTML file associated with my applet, at least that I
    know of.
    So do I need to create one, or should it of been done
    automatically.
    Also, I trying to figure out what will be the best way to deploy
    my project. Applet or stand alone application is what my first
    choices have been so far. I have read that there is some issues
    with applets being served from a different server than the
    database. So a stand alone application was my front runner, but
    I haven't gotten either way to work yet.

  • My iTunes library has completely disappeared during a download of some music from the store

    This morning, during a download of some music from the iTunes store, iTunes appeared to crash, as the downloads all paused and the spinning wheel appeared. Itunes then shut itself. After reopening it, all of my music, apps, vids, etc (everything), had disappeared, and iTunes was basically blank as if I had just opened it for the very first time on my computer, with iTunes match, Home Sharing, etc all signed out.
    I know this has happened for other people but having looked through the discussions they all seem to be under different cirumstances. I'm running a mid 2012 2.9 Ghz macbook pro with 8GB memory, on OS X 10.8.5, with itunes version 11.1.1 which I updated to, around a week ago, when prompted to by the app store.
    I've located all the music files on my hard drive in the iTunes media folder and everything appears to be there, just no longer showing in the iTunes app. I know that if I sign into iTunes match that I'll be able to access my library through that online, but I'd like to access the music on my hard drive so I don't need an internet connection to listen, so is there any way of just re-directing iTunes to the media folder or do I need to just import everything from that folder manually?

    Should also add, that when opening my iTunes preferences that the iTunes Media Folder Location appears to be the same one that supposedly has all the files in it. If I click change then I can see all the music, vids, etc that are on the hard drive, yet still nothing is showing in iTunes.

  • I've downloaded a zip file from noisetrade, but it won't open on my mac...what shall I do?

    Hey guys, wondering if someone could give me some help. I've downloaded a zip file from noisetrade, but it won't open on my mac.I keep clicking and it vhanges to a cgzp file..and even when I changed the end bit to zip, it won't open. I've tried the unarchive app andthat hasn't worked either...what shall I do?
    Thanks in advance :-)

    iWork (no 's') for iOS & iWork for Mac have not gone away.
    iWork.com (beta) (also no 's') is going away the end of July. iWork.com (beta) is/was an online method of sharing iWork files with other users & never moved out of beta in 3+ years. It is a completely different entity than the iWork apps & is not & never has been necessary for the iWork apps to function.
    A Numbers document, as well as Pages or Keynote documents, cannot be opened on a PC. You must first export them to a file that a PC can use. For Numbers that is generally Excel. In Numbers on your iPad tap the wrench & then tap Share & Print & choose Excel as the file type.
    As for transfering a file from a PC to an iPad, I'm not sure as I don't use a PC.

  • How to download the Report .rdl from Sharepoint

    Hi,
    I want to get the server version of the report as I have made so many changes to the local copy of the report.
    Please suggest me in detail so that I can get the copy from the sharepoint.
    Thanks, Subrat Kumar

    Hi KumarSu,
    According to your description, the reporting services is configured to sharepoint integrated mode, you want to download a copy of a report from report server. If that is the case, please refer to the following steps:
    Open the SharePoint site (for example,
    http://servername/site/subsite).
    On the Home page, click View All Site Content.
    In Document Libraries, click the library that contains the reports you want to download.
    In the library, click the drop-down arrow next to the name of report that you want to download.
    Click Send To, then click Download a Copy.
    In File Download dialog box, click Save button.
    In Save As dialog box, select location, then click Save.
    The following screenshot is for your reference:
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu

Maybe you are looking for

  • J2EE Engine cannot start after applying SP11 on WAS 6.40

    Hi SAP I am upgrading my WAS 6.40 SR1 java instance from SP9 to SP11. At the last stages of the installation the Java instance is stopped & started,at the step where Java instance is started, the 'server' process of the Java instance is not coming up

  • Purchase order confirmation control key issue

    Hi, We have an issue about vendor confirmation control key in transactions ME21N/ME22N We have custom document types defined , ZNB - this is normal purchase order for external vendors and ZSTO - this is stock transfer orders between plants belonging

  • Classpath error: packages using packages

    I'm getting an error while doing: javac -classpath x.y.z x\y\z\*.java ---error message: .\x\y\z\SubQueryHelper.java:159: cannot resolve symbol symbol : variable ConvertSQL location: class x.y.z.SubQueryHelper java.sql.ResultSet resultSet = ConvertSQL

  • End to End Testing

    We are going to connect our R/3 Systems with our Supplier network. We are planning to install ARIBA Adapter as our B2B adapter. We are going for an end to end testing soon just to check the connectivity ( Just we will be sending a messgage from a Fil

  • Can I safely delete old versions???

    In add/remove programs I have 3 versions of Java: J2SeRuntime Environment 5.0 update 4 144.00MB Java2Runtime Environment Std Edition v1.3.1 22.15MB Java2Runtime Environment SE v1.4.2_07 130.00MB I sure would like to get rid of some of these huge file