Fix for Data across domains (need java servlet)

Hi I can resolve accessing data across domains using php from
info i found here:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16520&sliceId=1#proxy
however php is not and option, i need to use java. how can i
make a java file that does what this php does:
<?php
$dataURL = "
http://targetdata.xml";
//note that this will not follow redirects
readfile($dataURL);
?>

will this work if the PDF pages are already created?
we are going to be provided about 300 already made PDF pages in which I need to do something like , put JSP or Java tags in a form field that will fill the form field with data that the tag queries for....

Similar Messages

  • Pulling data across domains

    Hello. I have hit a real deadend with this problem. I would
    appreciate some help.
    I have designed a website in Flash (
    http://www.clarkhulings.com).
    Under "Store" on the navigation bar, it contains a PayPal "View
    Cart" button that is not working. This is because the Flash does
    not allow direct access to data on the PayPal site. For security
    reasons, a Macromedia Flash movie playing in a web browser is not
    allowed to access data that resides outside the exact web domain
    from which the SWF originated. See
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14213
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16520
    I have created a crossdomain.xml file and added it to the
    webserver of clarkhuling.com. The file looks like this:
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "
    http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
    <allow-access-from domain="*.paypal.com"
    secure="false"/>
    </cross-domain-policy>
    Because clarkhulings.com is not using SSL and PayPal is, I
    have used secure="false" in the code above.
    My Actionscript code that is attached to the View Cart
    button, looks like this:
    view_cart_btn.onRelease = function() {
    var paypal_lv:LoadVars = new LoadVars();
    paypal_lv.onLoad = function(p_success:Boolean) {
    if (p_success) {
    for (var i in this) {
    trace("PayPal Responce "+i+": "+this
    } else {
    trace("PayPal Responce: Error connecting to server.");
    paypal_lv.cmd = "_cart";
    paypal_lv.business = "[email protected]";
    paypal_lv.display = "1";
    paypal_lv.page_style = "hulings";
    paypal_lv.sendAndLoad("https://www.paypal.com/cgi-bin/webscr",
    paypal_lv, "POST");
    As you can see, by going to the website (
    http://www.clarkhulings.com),
    clicking "View Cart" under STORE does not work. What am I doing
    wrong? I would appreciate the help of more learned developers out
    there!
    You can download a copy of one of my FLA files at
    http://www.clarkhulings.com/gallery_affiliates.fla.zip

    الحمد لله
    thanks for Allah,
    and thans for Justin "Cartoon Smart" http://www.cartoonsmart.com/
    i fix this problem using the proxy file which he upload with the RSS Reader tutorial,
    http://www.cartoonsmart.com/rss_reader.html
    so, for any people who have the same problem which is called
    Loading data across domains
    here you are the solution,
    i used the proxy.php file
    just Note if you are using Flash Player 10, you must upload it in the root domain
    like :
    www.yourdomain.com/proxy.php
    Note that you don't need to make any modefications to this file at all, just upload it as it is
    then you point to it in the flash file or in the XML fle which you control the flash form it,
    im my case i control the flash form a xml file called controls.xml and i make variable to load rss feeds from a variable in it called LinkRss
    so in this file i must point to the feed using this way
    Code:
    LinkRss="http://www.yourdomain.com/proxy.php?url=http://rss.news.yahoo.com/rss/topstories"
    sure you will change yourdomain to be any domain name you are putting the flash in it,
    for example
    Code:
    LinkRss="http://www.cartoonsmart.com/proxy.php?url=http://rss.news.yahoo.com/rss/topstories"
    that's all,

  • [svn:osmf:] 14007: Partial fix for FM-383: ProxyElement needs to dispatch traitRemove/ traitAdd event pairs when the proxy adds or removes a trait that also exists on the proxied element .

    Revision: 14007
    Revision: 14007
    Author:   [email protected]
    Date:     2010-02-05 11:54:43 -0800 (Fri, 05 Feb 2010)
    Log Message:
    Partial fix for FM-383:  ProxyElement needs to dispatch traitRemove/traitAdd event pairs when the proxy adds or removes a trait that also exists on the proxied element.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-383
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/media/MediaElement.as
        osmf/trunk/framework/OSMF/org/osmf/proxies/ProxyElement.as
        osmf/trunk/framework/OSMFTest/org/osmf/proxies/TestProxyElementAsDynamicProxy.as

  • I downloaded Lion onto my Mac, and now cannot open or access any of my Microsoft word documents or Power Points. Is there a fix for this? I need my documents

    I downloaded Lion onto my Mac, and now cannot open or access any of my Microsoft word documents or Power Points. Is there a fix for this? I need my documents

    If it's because you were using Office 2004, the eight year old version of Office that was written when Intel processors were not used in Macs, then there will be no fix. Lion dropped support for PowerPC applications, as has been widely reported since Lion's release last August.
    You can upgrade Office 2004 to Office 2008 or Office 2011. You can use iWorks 2009 that can open Microsoft files. You can use a number of free applications that are also capable of working with Microsoft documents. You can go back to Snow Leopard, if you have a backup. Or, if you have an external drive or room to add a partition to your current drive, you can install Snow Leopard on it.
    Search these forums for more information. If this is your issue, it's been posted and answered several times a day since August 2011.

  • Wallpaper fixed for the entire domain with group policy but some systems are getting the updated wallpaper

    Hi , 
    I fixed the wallpaper for the entire domain and It was applied to entire domain. 
    After some day, I have changed the domain wallpaper. Then some systems are showing New wallpaper and some systems are showing old wallpaper.
    I have applied the gpudate /force command for those system who didn't get wallpaper. 
    Could you please suggest. 

    Hi Srikanth,
    First, please make sure that the GPO is applied to client properly.
    To check that, please follow the steps below:
    gpupdate /force
    gpresult /h C:\report.html
    Note: This procedure needs the privilege of the Administrator.
    If the GPO is applied properly, please try to reboot the client.
    If issue persists after reboot, please check if the following link is helpful:
    The "Desktop Wallpaper" Group Policy setting is not applied in Windows 7 or in Windows Server 2008 R2
    https://support.microsoft.com/en-us/kb/977944
    Best Regards.
    Steven Lee Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Fix for data that isn't returned in responseXML field

    I have a problem where I have a very simple JSP that returns
    me back a list of URLs that are modified to use the correct path
    for where my application is running. This JSP doesn't return as a
    text/xml MIME type, so XMLHttpRequest is returning the data in the
    responseText field, no the responseXML field. Spry doesn't handle
    it, but the fix is simple.
    In
    Spry.Data.XMLDataSet.LoadManager.CachedRequest.prototype.loadDataCallback,
    I add this code:
    if (!xmlDoc && req.xhRequest.responseText)
    xmlDoc =
    Spry.Utils.stringToXMLDoc(req.xhRequest.responseText);
    right above:
    this.doc = xmlDoc;
    this.state =
    Spry.Data.XMLDataSet.LoadManager.CachedRequest.LOAD_SUCCESSFUL;
    This will check to see if the data could be in the
    responseText field, and setup things appropriately.
    I did figure out how to change my JSP so it returns, but the
    above still could possibly useful, so I post it here.
    -d

    Thanks for posting the workaround doug!
    I was actually thinking of modifying the XMLDataSet so that
    callers could get a hook when cases like this came up so they could
    either flag an error if it was unexpected, or if they knew that
    this non text/xml mime-type was really an XML format, go ahead and
    parse the doc like you did in your case.
    Another thing I was thinking of doing was splitting out some
    of the XMLDataSet code into a class that it could derive from so
    folks that wanted support for other HTTP based protocols had a
    starting point which had most of the functionality they needed.
    --== Kin ==--

  • Workflow not working for users across domains

    Hi,
    The workflow that i have created works perfectly for me, but they work intermittently for my colleague who sits in another country and hence domain. 
    They sometimes work for him, when he creates a new item but they don't work most of the time and below is the error that he gets.
    RequestorId: 38647461-0f47-8efc-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ApplicationException:
    HTTP 404 {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPClientServiceRequestDuration":["48"],"SPRequestGuid":["38647461-0f47-8efc-8848-9c92f6979b64"],"request-id":["38647461-0f47-8efc-8848-9c92f6979b64"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["15.0.0.4569"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1;
    RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Fri, 13 Feb 2015 18:57:19 GMT"],"Server":["Microsoft-IIS\/7.5"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]}
    at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor
    executor, BookmarkManager bookmarkManager, Location resultLocation)
    Please help me to resolve this issue. I need your guidance. 
    Thank you !
    Kind Regards

    Hi Bruno,
    Thanks for your response. 
    I'm not much in to SharePoint. Me and my colleague have just front end access to the site, we can't access the server. We both are SCA on the site. We are just geographically apart. 
    All we can do is "SharePoint Branding". Does this make any sense ? Sorry if couldn't give you much information.
    I designed some SP2013 workflows and they don't always work for my colleague. When i go to Designer -> All files -> workflows, i don't see any of my SP2013 workflows, i see only SP2010 Workflows.
    I will try to contact the team that has got the server access and will convey them your inputs. 
    Kind Regards

  • Here's a fix for Safari hanging and taking down the system..

    There appears to be a serious bug in Mac OS X's lookupd which can pull the rug right out from under Mac OS X Tiger. While this bug could possibly be triggered in a number of different ways, there has been a recent rash of reports that have been tracked to some mainstream Web sites such as FoxNews.com using links to an adware site js.adsonar.com. This document describes a quick way out of the hang and a simple way to block links to js.adsonar.com from taking down Tiger again. While this doesn't fix the underlying lookupd bug itself, it prevents Mac OS X from hanging, while allowing you to continue using Web sites like FoxNews.com with full Java and JavaScript access enabled.
    The symptoms of this problem are as follows:
    • You're surfing the web and the page you are on fails to completely load.
    • No further pages will load in your browser.
    • You can switch to other applications that may already be running and save any open files.
    • You can no longer launch any additional applications, their icons will bounce in the dock for a while and then they will just stop bouncing.
    • You can no longer use any other Finder functions.
    • You can no longer use command-option-escape to force quit.
    • You can not log out, restart or shut down.
    Apparently these symptoms indicate that a low-level component of Mac OS X, lookupd, has hung. Since lookupd is used by many other parts of Mac OS X, it effectively hangs Mac OS X itself.
    If this sounds like a problem you are having, try the steps in the following link to fix it.
    Mac OS X Tiger lookupd bug & adsonar fix
    Hope it helps,
    -MikeS
    Disclaimer:
    [The above link goes to a bug fix on DreamLight.com, my commercial website. While neither I nor DreamLight receives any compensation for this fix, or for visits to the site, increased traffic to the site could of course indirectly lead to additional business opportunities.]

    Hi Bee,
    There is indeed "such a bug", though you may be fortunate enough to not be affected. Unfortunately MANY others are affected by this. I spent three days helping track this down (many of those 38 posts were while tracking it down in the Tiger discussions) and find a fix to this and thought that others might benefit by my efforts... By the way it's NOT a Safari bug, it happens in any browser, it's a "lookupd" bug which may be triggered by surfing to certain sites which contain links to "js.adsonar.com", which if you have JavaScript enabled can hang lookupd and take down your entire system... consider yourself lucky that it hasn't happened to you...
    Here is some background information if you don't believe me:
    Apple Discussions: "Fixes" for lookupd Problems, some via Java Updates
    Apple Discussions: System unresponsive within the last week
    MacFixit Discussions: Progressive Freeze and Network Access under Tiger
    MacFixIt Special Report
    MacFixit Follow-up: Another fix for system-wide freezes when Web browsing
    I only posted this fix to the specific threads where people were having Safari hang, incase it might help them. Forgive me for trying to help them... I thought that was the point of these boards and that was why they started threads about their issues... I'd be willing to bet that this fix will indeed fix many of their problems...
    I also posted one additional new topic here on the Safari board and one on the Tiger board for new readers looking for solutions to the same system hangs they may be getting while surfing.
    If this fix does indeed help any of you other readers, please post back here so that Bee can indeed see that I'm not just posting here to waste my time...
    -MikeS

  • Where should I put Java Servlet Spec

    Dear all,
    I'm in the process of installing Oracle Application Express Listener where it needs Java Servlet Spec 2.3. I got the Spec downloaded, but I don't know where should I put it. How come it's hard to find documentation about this? Please help....
    Currently I'm using Linux 64.
    Best regards,
    Val

    Oh,
    haha.. I just realized that....
    About System Requirements
    Oracle Application Express Listener system and space requirements are as follows:
          Oracle Database (Enterprise Edition, Standard Edition or Standard Edition One) release 10.2.0.3 or higher, or Oracle Database 10g Release 2 Express Edition or higher.
          Java 6 Update 20 JDK or higher.
          Java Servlet Specification 2.3 or higher.
          Web browser requirements:
              o
                Microsoft Internet Explorer 8.0 or higher.
              o
                Mozilla Firefox 3.0 or higher.
              o
                Google Chrome 2.0 or higher.

  • 8.0.2 - problem 1 - unable to scroll screen when the keyboard is present. Huge problem for emails and other cloud based providers that allow for data entry. We need a fix ASAP!

    8.0.2 - problem 1 - unable to scroll screen down or up when the keyboard is present. When typing text, I am unable to see the text I am writing due to this problem. Huge problem for emails and other cloud based providers that allow for data text entry. While the keyboard is present, I am unable to scroll down to see the text, the screen automatically scrolls back up to the top of the screen. We need a fix ASAP!

    Have you tried resetting your iPad? You will not lose any data. Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Java servlet: how to store large data result across multiple web session

    Hi, I am writing a java servlet to process some large data.
    Here is the process
    1), user will submit a query,
    2) servlet return a lot of results for user to make selection,
    3). user submit their selections (with checkboxes).
    4). servlet send back the complete selected items in a file.
    The part I have trouble with (new to servlet) is that how I can store the results arraylist (or vector) after step 2 so I needn't re-search again in step 4.
    I think Session may be helpful here. But from what I read from tutorial, session seems only store small item instead of large dataset. Is it possible for session to store large dataset? Can you point me to an example or provide some example code?
    Thanks for your attention.
    Mike

    I don't know whether you connect the databases and store the resultset?

  • [svn] 3779: Continue fix for BLZ-262: null pointer exception on redeploy of web app/servlet.

    Revision: 3779
    Author: [email protected]
    Date: 2008-10-21 10:23:55 -0700 (Tue, 21 Oct 2008)
    Log Message:
    Continue fix for BLZ-262: null pointer exception on redeploy of web app/servlet.
    Remove finally block in servlet init() as the call to destroy() in the catch block will clear ThreadLocals
    if there is an error. Move it to the end of try block instead since the init() thread doesn't need any
    thread locals set.
    Log the startup error before calling destroy() in init() catch clause.
    QA: Yes
    Doc: No
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-262
    Modified Paths:
    blazeds/branches/3.0.x/modules/core/src/java/flex/messaging/MessageBrokerServlet.java

    Hello!
    I had a similar problem under WebLogic 6.1 SP4 after deploying a war-file with
    a bug.
    After deploying the corrected file, it seemed that the old version was deployed
    again.
    Perhaps this behaviour will help you to load the new application/ejb:
    - undeploy
    - remove from targets
    - move to targets
    - deploy
    Claudia
    "Marco" <[email protected]> wrote:
    >
    hi all,
    i have found a werid problem in deploying applications in Solaris 8
    for weblogic
    7.0.
    i have deployed one EJB, and the first time i access it (thru teh web
    app embedded
    in the .ear) it gave me a null pointer exception because i was failing
    to lookup
    one environment variable.
    so, i fix the code, rebuild the ear and redeployed, and the same error
    happened
    again.
    i am sure i did not do any mistakees because i have put some system.err
    statements
    in the bean code to show the workflow, and when i have deployed it on
    Window 2k
    the statemens appeared.
    but in solaris they didnot appear, and i got the same exception that
    i had before..
    it looks like wls is caching teh ejb, because whenever i redeploy it
    (adding more
    and more system.err statements) it always execute the faulty code of
    when deployed
    the very first time.
    anyone can help?
    regards
    marco

  • HT5228 What about a security fix for Java under Mac OS 10.4 and 10.5?

    Apple recognized and offered a fix for the Flashback trojan here:
    http://support.apple.com/kb/HT5228?viewlocale=en_US&locale=en_US
    But it is only for OS 10.7 and 10.6.  Presumably, users of 10.5 and 10.4 are still vulnerable.  Because Apple insisted on providing Java support, rather than Oracle, the fix that was released in February doesn't work unless Apple were to make it work.
    If Apple is unwilling to support Java for 10.5 and 10.4, they need to hand over whatever documentation Oracle would need so they can keep the Java environment (and security) up to date.  10.5 and 10.4 are still viable OSes and to not patch obvious security flaws in one way or another is irresponsible, at best.

    http://www.apple.com/feedback/ - Apple products feedback links
    I wouldn't expect anything to come of it.
    I have disabled Java on my browsers.  It isn't really neded all that often.

  • Is java servlet a good way for developing a website

    Hi,
    i am developing a website that has to download huge data and upload huge data .also money transactions through credit cards need to be involved.is java servlet a good way to do this or should i use an ejb or any other technology.
    Any help is appreciated.

    Thanks for the reply.But di i need to use threading of some sort or can i directly write private methods to fulfill the purpose.Also is there any way my servlet can recognise when a device is connected to a usb port of local machine
    any help is appreciated

  • [svn] 1543: Bug: BLZ-152-lcds custom Date serialization issue - need to add java.io. Externalizable as the first type tested in AMF writeObject() functions

    Revision: 1543
    Author: [email protected]
    Date: 2008-05-02 15:32:59 -0700 (Fri, 02 May 2008)
    Log Message:
    Bug: BLZ-152-lcds custom Date serialization issue - need to add java.io.Externalizable as the first type tested in AMF writeObject() functions
    QA: Yes - please check that the fix is working with AMF3 and AMFX and you can turn on/off the fix with the config option.
    Doc: No
    Checkintests: Pass
    Details: The problem in this case was that MyDate.as was serialized to MyDate.java on the server but on the way back, MyDate.java was serialized back to Date.as. As the bug suggests, added an Externalizable check in AMF writeObject functions. However, I didn't do this for AMF0Output as AMF0 does not support Externalizable. To be on the safe side, I also added legacy-externalizable option which is false by default but when it's true, it restores the current behavior.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-152
    Modified Paths:
    blazeds/branches/3.0.x/modules/core/src/java/flex/messaging/endpoints/AbstractEndpoint.ja va
    blazeds/branches/3.0.x/modules/core/src/java/flex/messaging/io/SerializationContext.java
    blazeds/branches/3.0.x/modules/core/src/java/flex/messaging/io/amf/Amf3Output.java
    blazeds/branches/3.0.x/modules/core/src/java/flex/messaging/io/amfx/AmfxOutput.java
    blazeds/branches/3.0.x/resources/config/services-config.xml

Maybe you are looking for

  • Behaviour of Microsoft Transporter Suite (Notes migration to Exchange 2007)

    Dear Sir,       I have a question about configuraiton of Microsoft transporter, not sure whether it is a behaviour or it can be fixed. Question 1: Lotus Notes 7.04 --> Exchange 2007 Microsft Transport: Scheduler set to every 15 min. Q1. Does it mean

  • Correct File Size-Web Photo Gallery?

    I've optimized my photos in photoshop and now its time to display the photos at their best quality on the web. I'm curious how working photographers proceed at this point. What methods are used to get your final image optimized for best quality viewi

  • For a target based production creation of Number of planned orders reg

    For a target based production, can anybody explain as to how the planned orders created/altered. The main question is the system generated planned orders can be altered, suppose the system generates 10 planned orders can we alter to 8 planned orders

  • Mini Display malfunctioning Macbook Air 2012

    I can only get my mini display port to work if I put in the adapter and then angle the computer so that pressure is put on the adapter/port. I can accomplish this by closing the computer and flipping it upside down or twisting the cable, etc. I have

  • ClassCastException using Update Batching

    Oracle 9.2.0.4/Linux, JDBC driver 9.2.0.5 I'm trying to use update batching but always get a ClassCastException when doing: ((oracle.jdbc.driver.OraclePreparedStatement) pstmt).setExecuteBatch(10); I've followed chapter 12 of the "Oracle9i JDBC Devel