How to parse from different website??

i want to write a code so that i can get info from different webapplication and display it on my page.. suppose user enters a name.. i would search that word in a particular page.. mybe on the homepage of sun site.. if that word appears there i would save it in my database.. and display 5 words following that word on my page.. How to do that.. can someone help??

Just open a java.net.URLConnection and get the content, then treat it as any other string or stream to search through.

Similar Messages

  • Is there any way to download files on my computer from different websites i have created?

    don´t know what happened but by any reason i cannot find my folders that contain all the files of different websites i have created, in my computers.  So my question is if is there any way i can download those files from the business catalyst into my desk again

    Thanks for replying my email.   Well, I guess i was looking a way to get back all the files that I created to make different websites.  Don´t know what happened but suddenly they disappeared from my desktop, i have been looking at them using different alternatives but I haven´t had any success, so that is why I thought maybe there was a chance to get them from BC.    I am a designer, so I don´t know so much about technical issues.  Thanks anyway.
    Erbling 

  • How to print from different wireless connection on same network

    I can print wirelessly when I am in range of the wifi to which my computer and attached printer connect. However, when I go to a different wifi connection within the same network, I cannot print. How can I my wifi connections on same network talk to each other so that I can print from second wifi site on same network?

    The problem is you loaded the printer directly and now do not have it plugged in.. so delete the printer in the control panel.. then setup the printer again.. this time connect to it as network printer. The bonjour should make it available as a network resource..
    Tell me if you still run into trouble doing that. You may need to load the IP of the TC manually..
    Window7 has higher security level than xp.. and that can sometimes also cause issues.
    Are you using SMB compliant names for the TC, wireless and printer??
    Can the windows 7 computer get internet via the TC? Can you ping it?
    Look up how to reduce the security level in windows to match xp.. I don't remember the details but you have to do some nifty footwork.

  • How to implement two different websites with one section that has the same content?

    I have two sister websites, each for a separate but related department in a hospital. On each of these websites, I have a main tab called library, which has about 30 pages within it for related healthcare issues. The library is the exact same content on each site, but the main navigation and header for the site is obviously different. I have been upkeeping this identical content on both sites (if something is changed, then I have to do it twice). This isn't efficient and I would like to find a way to combine them somehow. I don't have a ton of experience but I catch on pretty quickly and I basically need ideas for the best way to handle this. I have considered creating a third site, and the library tab on each of the other sites would take you to this new site. I have also wondered if there is a way to embed duplicate content into two separate pages (maybe with an iframe). That way I would update the original file and it would be updated on both sites.
    The sites also have different body sizes. One is 960 pixels wide and the other is 690 because it has a sidebar that makes it smaller. How would you all recommend I handle this? I use Dreamweaver CS6 and my pages are all HTML

    I looked into Server Side Includes and I think I would like to try it, but I can't seem to get it working. The problem is both of my sites are under a separate domain but hosted the same way I believe. For instance, I have two dreamweaver sites, but when I use my FTP, I have one large folder for the main site, then the sister site is in a folder within the main site folder. Although you can get to the main site using www.ukneurology.com, you can also get to the site using kyneurosurgery.com/neurology/index.html. I think this is what is messing me up because I can't seem to get it to work right.

  • VS2013 CE - how to disable from different Menus / Options temporarely unneeded things (VB,C++ etc)

    Hello,
    I mainly want to use VS2013 for programming things in C# ... In different Menus I get the full Options/Customization for every Language VS2013 supports, that is a bit timeconsuming to sort things out etc. Is there a way to hide these options that I don`t want
    at the moment ..
    Example:
    In TOOLS->Options->Fonts and Colors->Display items Box ... in the listbox exists things like:
    C++ Classtemplate
    C++ Enumerators
    C++....
    VB excluded Code
    VB XML Attributes
    VB .....
    Is there a way to disable the things from C++, VB ... thanks in advance ...

    Hi schnittm,
    As far as I know, we couldn't change it in the default VS IDE, maybe you could submit this feature request:
    http://visualstudio.uservoice.com/forums/121579-visual-studio. The Visual Studio product team is listening to
    user voice there. You can send your idea there and people can vote.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Can't link to MySQL from different website

    I have succcessfully set up a table on my ISP's server
    holding a MySQL database. One of my websites uses the data in one
    table on their website.
    I now want to use another table on the same database, for
    another client (I am only doing it temporarily so no security
    worries).
    The problem is that although I am setting up everything
    exactly the same way I cannot get access to the database. I have
    tried setting up another user name and account to sign into the
    database for the new client but no luck.
    I am also logged into my mac as Root user and have full admin
    privillages.
    The error message I get says: MySQL error # 1045 access
    denied for user 'assistdirect_net'@'wmphpp06.st.lyceu.net' (using
    password: YES)
    Any ideas?

    Check your local firewall/iptables configuration.

  • How to switch from different views when a common button is clicked on using View states concept

    Hi
    i have  made a single form for both Login Screen and Registration screen with two states :
    1. BaseState which is the curret state of  state of My application
    2.registrationstate 
    I have a common button for changing from one view to another view .(Not related to any of the state)
    At first the Login screen is loaded , and when the common  button is clicked , i want to switch to Registration Screen .
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Script>
        <![CDATA[
    // Logic for common button needed .
        public function handleMe(event:MouseEvent):void
        ]]>
    </mx:Script>
        <mx:states>
            <mx:State name="registrationstate">
                <mx:SetProperty target="{formitem1}" name="label" value="Email"/>
                <mx:SetProperty target="{button1}" name="label" value="Change state to Login"/>
            </mx:State>
        </mx:states>
        <mx:Form x="248" y="158">
            <mx:FormItem label="User Name" fontWeight="bold" id="formitem1">
                <mx:TextInput/>
            </mx:FormItem>
        </mx:Form>
    <!-- This is my coomon button-->
        <mx:Button
            click="handleMe(event)"  
            x="297" y="261" label="Change state to Registration" id="button1"/>
    </mx:Application>

    Originally I could not get that to work, but now I have it working:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:Script>
        <![CDATA[
          import mx.controls.Alert;
          public function handleMe(event:MouseEvent):void{  
            trace(this.currentState); 
            if(currentState=="" || currentState == null){
              mx.controls.Alert.show("base state");
              currentState = "registrationstate"; 
            }else if(currentState=="registrationstate"){
              mx.controls.Alert.show("registrationstate");
              currentState = ""; 
        ]]>
      </mx:Script>
      <mx:states>
        <mx:State name="registrationstate">
          <mx:SetProperty target="{formitem1}" name="label" value="Email"/>
          <mx:SetProperty target="{button1}" name="label" value="Change state to Login"/>
        </mx:State>
      </mx:states>
      <mx:Form x="248" y="158">
        <mx:FormItem label="User Name" fontWeight="bold" id="formitem1">
          <mx:TextInput/>
        </mx:FormItem>
      </mx:Form>
      <mx:Button click="handleMe(event)" x="297" y="261"
        label="Change state to Registration" id="button1"/>
    </mx:Application>
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex / AIR Development, Training, and Support Services

  • Database restore from different Database Sid

    I have installed sap ecc6 sr3 on db2 version 9.1 fp5 which is running on WIn2003 Enterprise x64 edition which is working fine. It is my Quality server Database Sid Q11.
    Now i want to restore database from Development server D11 (offline backup) to quality server Q11.
    Development server database Sid is D11.
    How to restore from Different Sid. (In DB2 database).
    Please tell me how to restore database from another Sid.

    Hi,
    what you have to do is a so called "redirected restore".
    The recommended way to that in an SAP-DB2 environment, is to use the tool brdb6brt shipped together with the SAP kernel. For details how to use this tool refer to the DB2-UDS Database Administration Guide.
    kind regards
    Thomas

  • How can we delete the icloud accounts from main website.Iam trying to log in to my account and it says that MAXIMUM NUMBER OF FREE ACCOUNTS ARE ACTIVATED?What can i do guys plz tell me?

    How can we delete the icloud accounts from main website.Iam trying to log in to my account and it says that MAXIMUM NUMBER OF FREE ACCOUNTS ARE ACTIVATED?What can i do guys plz tell me?

    You can't delete an account, you can only stop using it.  If you're getting that error message you won't be able to create a new account on your device.  Your only options are to re-use one of the accounts previously created, or create a new account on a different iOS device or Mac (running OS X Lion or higher), if you have one.

  • How to read data from a website based on user inputs through java programmi

    Hi
    I want to get information from a website based on some inputs that I have. The inputs change everytime and based on them, different output is expected. How do I go about with it? Please advice...
    Will data mining help in this? or is it used only for analysis and predictions?

    you can get the webpage you need very simply like this :
    Test.java
    public class Test{
              public static void main(String[] args) {
                   URLClient client = new URLClient();
                            // URL of a webpage
                   String webPage = client.getDocumentAt("http://content-ind.cricinfo.com/slvind/engine/current/match/343730.html?template=desktop;view=main;wrappertype=desktop");
                   System.out.println(webPage);
         }URLClient.java
         import java.net.*;
         import java.io.*;
         public class URLClient {
              protected URLConnection Connection;               
                   public String getDocumentAt(String urlString) {
                             StringBuffer document = new StringBuffer();
                             try {
                                            URL url = new URL(urlString);
                                            URLConnection conn = url.openConnection();
                                            BufferedReader reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));
                                            String line = null;
                                            while ((line = reader.readLine()) != null)
                                                 document.append(line + "\n");
                                            reader.close();
                                       } catch (MalformedURLException e) {
                                       System.out.println("Unable to connect to URL: " + urlString);
                                       } catch (IOException e) {
                                       System.out.println("IOException when connecting to URL: " + urlString);
                                  return document.toString();
              }

  • 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.

  • How to parse xml file, containing image,  generaged from JAX-RS connector?

    Hi,
    We are using JAX-RS connector and just want to call getBusinessObjects() directly using JerseyMe (basically bypassing sync engine). We have used sync engine so far and want to try as how to bypass it. The method produces the text/xml and verified the xml file in the web by giving the full url. The plan is to call the same URL from the Java Me Client using JerseyMe. When I print the bytes at the client I receive the same xml that I have seen in the web. Actually, I am passing an image that I can see in a different character format in xml (assuming this is bcos of UTF-8 encoding). I am wondering as how to parse this xml file and how to decode the "UTF-8" format? Do we need to use SGMP for this or use kxml or java me webservices spec.
    I would really appreciate if somebody can answer this one.
    I have been observing in this forum that SGMP team is not at all active in answering the questions. Please let us know whether Oracle is keeping this product and we can continue using SGMP1.1. Please let us know so that we can plan accordingly as we are building a product based on SGMP.

    Hi Rajiv,
    The client library is using org.apache.commons.codec.binary.Base64 internally. We don't have the full Commons Codec library bundled, but you can look up the javadoc for the Base64 class online. All you need to do is call Base64.decode(obj.getBytes()) on the objects you get out of the XML.
    In general it isn't a good idea to depend on implementation details of the client library, but in this case, I think it is pretty safe to expect org.apache.commons.codec.binary.Base64 to remain in our library.
    --Ryan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to create session id from different string controls

    how to create session id from different string controls

    fais,
    Please create the VI you are talking about and save some default data into all of the controls. Also on the front panel, place the session ID that should be generated by that data. Now, post your VI to a response so I can download it. I can then take this VI and help you create the functionality. (Please post what version of LabVIEW you are using.)
    My guess it that you are going to need to use a good number of string concatenations as well as a few string indexes to get parts of strings out. As for the date, you can use a Property node with the Numeric Text.Text property to get the actual string displayed on the front panel for the date and parse out the parts that you want.
    Randy Hoskin
    Applications Engineer
    National Instruments
    h
    ttp://www.ni.com/ask

  • How do I change the double-sided print setting when printing from a website

    I used to know how to change my printer settings when I used a PC but now that I'm using a Mac it's a completely different story.  Usually when I print I'm given a print preview screen where I can make choices how to print but some websites just send materials directly to the printer without providing me with a print preview screen so I can change the settings, for example, disabling the double sided feature.  Can anyone provide me with simple directions how to correct this issue?  I have a MacBook Pro & am printing to an Epson WF-3540.  I'm now very computer literate unfortunately.  Appreciate any suggestions, especially those that are fairly simple.  Thanks so much

    Usually when I print I'm given a print preview screen where I can make choices how to print but some websites just send materials directly to the printer without providing me with a print preview screen so I can change the settings,
    I cannot identify with what you are saying, as this has never happened to me.
    This is a print preview dialog box, in its expanded state. The document it is about to print is the print dialog box, in its non-expanded state. The red arrow points to the control.
    Once expanded, there are several screens full of options you can choose from. They are under the pop-up labeled [ Preview ] on this example.

  • How to decode a base64 image that is parsed from an xml

    Hi everyone,
    I'm trying to decode a base64 image that is parsed from an XML. I was able to decode everything except for an image, and it resulted in weird characters such as
    ������?��������?��������f����������?
    I used sun.misc.BASE64Decoder()
    Thanks in advance,
    Squid

    Hi,
    I know that those are wierd characters because I have the correctly decoded data, and it looks different. Does any one know how to decode against the ASCII
    I know the following code would decode my base64 image correctly, but i dont know how to do the same in java for the follwing C# line of code:
    System.Web.HttpUtility.UrlDecode(sXMLString,
    System.Text.Encoding.GetEncoding(1252));
    Below is the entire C# code that successfully decode the base64 image from " test9.xml"
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Text;
    using System.Xml;
    using System.Web;
    namespace DecodeXML
    class Program
    static void Main(string[] args)
    string sFileName = "test9.xml";
    string sXMLString = File.ReadAllText(@"C:\NET 2.0 Projects\ThrowAways\SampleLabels\" + sFileName);
    string resultString =
    System.Web.HttpUtility.UrlDecode(sXMLString,
    System.Text.Encoding.GetEncoding(1252));
    XmlDocument oXML = new XmlDocument();
    oXML.LoadXml(resultString);
    XmlNode oLabel = oXML.SelectSingleNode("//LabelBody");
    // removed the line that saved it to a string variable, because it converts the binary characters to
    // incorrect text representations. However, by saving the bytes directly rectifies this
    File.WriteAllBytes(@"C:\NET 2.0 Projects\ThrowAways\SampleLabels\" + sFileName + ".txt", Convert.FromBase64String(oLabel.InnerText));
    Any suggestion is strongly appreciated.
    Thanks,
    Squid

Maybe you are looking for

  • Safari won't open, claims webcore plugin issue?

    Hello, for some reason, the safari on my macbook won't open. Claims it is some sort of webcore plugin issue. I'll post the problem details here in case it helps. Thank you in advance! Process:     Safari [751] Path:        /Applications/Safari.app/Co

  • On my iPod touch 4th gen the touchscreen doesn't work when I go to my music.  Why is this and how can I stop it?

    This is driving me crazy!!  I think this may be happening becaues sometimes when I put my iPod into my iHome, the iPod says it is temporarily unavailible becaue it is over heated and has to cool down.  I stopped putting it in my iHome right away but

  • Multipe Font in a JTree

    Hello, I want some paticular nodes appear in Bold font and all the others in normal font. I subclass DefaultTreeRenderer with this code : public class ArbreComposantRenderer extends DefaultTreeCellRenderer { Font _f; ImageIcon racineIcone,otherIcone;

  • Vendor Master Info

    Hi All What report can I run or which tables should I join to get the following information on what report 1. Company Code 2. Vendor Number 3. Vendor Primary Address (Postal) 4. Vendor Telephone 5. Vendor Fax 6. Vat Number thanks Vishnu

  • Highest cost element group

    Hi, What is the easiest way to get the highest level of a cost element group from a cost element. I know how to get all the cost elements from a cost element group but I want to do it the other was. Is there a functional Module or a BAPI or a method