Can Java Interact with Web Pages??

I wonder if it possible to develop an application or applet that can automate the process of signing up for courses at Notre Dame.
Currently, we have to use a pretty plane text-based web system. I wonder if it's feasible to use Java to provide a more user-friendly front-end to this system. The program would need to read HTML, view different web pages, and write to web forms. Any tips on where to go from here?
I realize that some other language might work too, but I'd like to advance my Java skills ;-)
Thanks!!!
- Brian

From what you've posted so far it sounds like you want to make a specialized web browser. Is this what you had in mind? The Java API includes two classes that can be used to construct such a beast relatively easily: JEditorPane and JTextPane. The Swing tutorial has a page on how they can be used:
http://java.sun.com/docs/books/tutorial/uiswing/components/editorpane.html
However, their capabilities are rather limited (only support HTML 3.2). They will let you change text styles and the way pages look, but will hardly be more "user friendly" than the original site because it'll be only the old thing with a new look.
There's also a HTML parser that can be used independently of the gui components, in principle you can use it to extract information from the site and show it in a completely new user interface that has nothing to do with the original site but I haven't used it much and i'm too tired to look up and example on the 'net (been a long day, i'm off to bed)

Similar Messages

  • [WP8.1][C#]Interacting with web pages in WinRT

    I'm writing a Windows Phone 8.1 application. How would I programmatically interact with web pages- for example, search something on Google?
    The main problem seems to be, I can't access the underlying HTML document of the WebView control.
    What I have tried so far:
    using HtmlAgilityPack (only supports parsing, can't interact)
    trying to get underlying document w/ reflection (limited WinRT reflection APIs)
    looking into other cross-platform GUI toolkits, such as Qt# (also do not provide access to document object)

    Hi James.Ko,
    To help clarify your post and let people easily tell what it is about, please use a clear and concise subject and include applicable tags.
    We will help to modify the title tag base on this sticky post
    or you can modify it by yourself(recommended), and thanks for your cooperation.
    Before trying to answer your question, I would recommend you a blog:
    http://blogs.msdn.com/b/wsdevsol/archive/2014/04/03/ten-things-you-need-to-know-about-webview-_2d00_-an-update-for-windows-8.1.aspx
    You should be able to know how to invoke script into the pages and also how to get the return value. By the way, not quite understand what do you mean by underlying HTML document, means the HTML code?
    --James
    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.

  • Interacting with Web pages

    We have developed a J2EE application (jsp, struts, ejbs, etc.) and now have a requirement to interact with hardware at the client's site. The application needs to interact with printers, check readers and DL readers. Can a JWS application interact with the web pages?
    For example, when a check is scanned, can the information be displayed on the web page? Additionally, we need to be able to print on both sides of the check. If I tell the application to print, can it respond back to the web application when it is done so the check can be flipped over and printed on the other side?

    Java WebStart is "just" a deployment mechanism. An application deployed through JWS can do anything a regular Java application can do (provided it has the appriopriate permissions). This includes talking to whatever kind of server you can think of.
    If staying within the sandbox is an issue for your app, you should take a look at the JNLP API, which allows you to do some "safe" things (like printing) on the user's system through interaction with the user. The advantage of staying within the sandbox is not having to sign your app and not having to ask the user for elevated permissions.

  • Can't interact with Web Content Overlay when article is zoomed in

    I have a problem with Web Content Overlay. It's working (interacting) only when article is viewed in 1:1 scale. Articles are added as PDF's, and when i do pinch zoom on them - Web Content Overlay stops reacting on click events.
    Is it a general WCO limitation?
    Can article with Web Content Overlay be zoomed in and still give user the ability to play with HTML content?
    Piotr

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • How can I print a web page to a hard copy with Adobe?

    How can I print a web page to a hard copy with Adobe? When I print this particular page in the usual way it prints only the text of that page, not the photo that's also part of that page.

    I have Adobe SendNow, but I can buy another Adobe product if it will solve my web page printing problem.

  • Haveing problems with Safari. It gives me an error message. Safari can't open the web page, because it can't establish a secure connection to the server. It only seams to have a problem on https sites. Any help would be apreciated.

    Safari keeps giving  and error message. " Safari can't open the web page( insert web page here) , because it can't establish a secure connetion to the server.
    It only seams to have a problem with https sites.
    Any help would be appreciated

    The "s" in "https" indicates the site is a secure server--usually a site that will require a password.  Connections to secure servers can be blocked by parental controls.  Are you using any parental controls, either through OSX's settings (in System Preferences) or third party parental control software (such as Netnanny)?  If so, check the settings to make sure they will allow the connection.

  • HT4597 can I publish the web pages made with aperture in icloud?

    can I publish the web pages made with aperture in icloud?
    thank you.
    Luis da Cruz

    iCloud does not provide website hosting: you will need to find another hosting service - there are plenty to choose from.

  • TS3274 I can't access some web pages with safari like, forever 21, express. Even though I used to access them previously. Why?

    I can't access some web pages with safari like forever 21, express .com. Even though I used to access them previously

    Ashlee...
    Since the apps you mentioned require an internet connection try running the connectivity tests >  iTunes for Windows: Network Connectivity Tests

  • Can't access teaming web page

    Hi, I've installed teaming 2.1 on a sles11 x64 virtual machine. I've used sun java jdk 1.6.21. After install I start the teaming server but then can't access the web page (I've used port 8080 in the URL). I used default network settings. I believe the mysql database has been created correctly. I think the problem is with Tomcat/java. I've included the output of tail --f catalina.out
    /opt/novell/teaming/apache-tomcat-6.0.18/bin/catalina.sh: line 309: /usr/jre/bin/java: No such file or directory
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine.
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine.
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine.
    the path shown in the first line of this output is not what I specified for java during the installation of teaming (I used /usr/java/jdk1.6.0_21). Any help would be greatly appreciated
    Lou

    Hi Lou,
    Have you set an environment var for the JAVA_HOME?
    you can set it system wide, create or edit /etc/profile.local, and add:
    export JAVA_HOME=/usr/java/jdk1.6.0_21
    Then reboot the system so the env var gets set globally.
    If the site is still not accessible, rerun the Teaming install choosing to reconfigure, double check the JAVA_HOME path set and see if that does the trick.
    Cheers,
    Willem

  • After upgrading to Mac OS Lion, even after installing Java manually, some web pages don't download and appear blank whereas Firefox works

    After upgrading to Mac OS Lion, even after installing Java manually, some web pages don't download and appear blank whereas Firefox and Opera work. Can someone help?

    Might be a third party Safari addon that was compatible with Snow Leopard but not Lion that's preventing pages to load. That add on may not have any effect on the other browsers, just Safari.
    Read here  >  Safari: Unsupported third-party add-ons may cause Safari to unexpectedly quit or have performance issues
    Also, if you have Little Snitch or Peer Guardian or anti virus sofware installed on your Mac, that might prevent pages to load also.

  • How does Openscript Interact with web components ?

    I was wondering how does openscript interact with web objects (eg Edit boxes, buttons), is it through some JNI api ? If yes in which package I can find this ?

    I am going to make the assumption from your comments that you are asking about using OpenScript to test applications based on Apple's WebObjects server. If that is a bad assumption let me know ...
    The scripts you build against the application will work in a similar manner to those that are built against other java based application servers in that the tool will be using the various key attributes of the html objects to locate them and replicate actions against them. Typical UI driven scripting ... That said, if your testing brings you down a level from the UI and you are trying to test some of the components of the application server tier specifically, well, then you might have to write your own java code to do it.

  • Can't export a web page

    I've just upgradded to iLife '08. When I try to save a web page the same as I had with the previous version of iPhoto, it doesn't work. The following steps are taken:
    Highlight eight photos in a folder
    Select File>Export
    In the Export Photos window, select Web Page tab
    Make other selections on the page and click Export
    Then I've tried various file destination folders and the Desktop
    When I click OK, an Exporting sub-window appears for a moment, then it changes to say
    Unable to generate web page and only gives me the option to Cancel
    It gives me no clues as to why it is unable to generate a web page. It has created the folders for the Images, Pages and Thumbnails but there isn't anything in those folders. I believe this is the same steps I used many times with iPhoto '06 to create a web pages.
    Does anyone have an idea on how to save web pages with the new iPhoto? How can I revert back to the old version of iPhoto?
    Thank you for you help.
    Bill H

    Bill:
    Welcome to the Apple Discussions. Try the following:download and run BatChmod on the iPhoto Library folder with the settings shown here, putting your administrator login name, long or short, in the owner and group sections. You can either type in the path to the folder or just drag the folder into that field. See if this will help.
    Next, log into another account or boot into Safe Mode and see if you can export to a web page. If so then there's something amiss with your account. If not, then a reinstall of iPhoto seems appropriate.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • How to add Portal iViews with Web Page Composer

    Hi,
    We are working with Web Page Composer in EP7.0 SP13.
    We are creating web pages and we would need to add Portal iViews into. When we try to add an iView, we cannot select it from Web Content Browser to drop into the web page container.
    How can we add iViews into our web pages?
    Helpful answers will be rewarded!!
    Thanks in advance,
    Samantha.

    Hi,
    See these:
    [http://help.sap.com/saphelp_nw70/helpdata/en/06/4776399abf4b73945acb8fb4f41473/frameset.htm]
    [/message/4414263#4414263 [original link is broken];
    Best regards,
    Avishai Zamir

  • It was updated and i can't see the web page. It is only a white page. Android for tablet

    I was able to see a webpage which starts with https. However the browser was updated and 1 can't see the web page anymore. I can see it in chrome but I need Firefox due to the plug ins.

    I installed FLASH PLAYER and it doesn´t work. Everything started when Firefox was installed automatically. Does anybody knows how to install a complement in google chrome for android (it is a scanned document) since i could not open the web page in firefox or dolphin, I used chrome but now I cannot see the content. I already installed PDF reader. I do not know how to enable the plug in. I read that I should go to
    chrome://plugins but this page doesn´t not exist.
    How can I enable it in a tablet android?
    Thank you in advance.

  • I Just bought a ipad 2 and I can conect to my home wifi but I cant connect to any free hotspots. my ipad shows the network and connection but I can't get any web pages.

    I Just bought a IPAD2 and I can connect to my home wifi but I can't connect to any free hotspots. My Ipad shows the connections but I can't get any web pages. what do I do?

    Many free wi-fi hotspots require that you register first - agreeing to their terms and conditions, etc. This is usually provided via a web page with Safari provided immediately after connecting. If the register page is provided via Flash, you won't see it and you won't be able to register.

Maybe you are looking for