Opening a webpage using url.getConnection and populating?

Hi
I want to write a tool that opens a webpage given the URL and populates the page with provided information and clicks the button i.e. want a tool that automates this workflow.
I understand I can tweak with url.getConnection and get the page populated but I am clueless about populating the page automatically with the data. Is there any way to do it?
Thanks
Raja

Hi
Thanks for your immediate knowledge sharing, ya right JSP can be accessed as it resides in the server also I understand the HTML coding is more than enough for me to understand the values I need to pass to given the input type of fields with the FORM tag.
Having understood thus far, you people mention getting the HTML code but how do I get that programatically, it is that I can load the JSP/page using URL.getConnection and open the page in the browser, one way is doing VIEW SOURCE manually and getting the code, can you educate me on how to do it programatically to view source of the displaying page on a browser?
Thanks
Raja

Similar Messages

  • Open a webpage using Java

    Hi,
    I am trying to open a webpage in a browser using Java code. I have been reading the tutorials and came across some code that reads the webpage as a simple text using getPageContent etc. I don't need to read the page, I just need to open it.
    Can anyone please guide me, tell me which docs I should refer to etc.
    Thanks,
    M

    import java.awt.Desktop; //Java 1.6
    import java.io.IOException;
    import java.net.URI;
    import java.net.URISyntaxException;
    public class BrowseExample {
        public static void main(String[] args) throws IOException, URISyntaxException {
            URI uri = new URI("http://java.sun.com");
            Desktop.getDesktop().browse(uri);
    }

  • Firefox will not open any webpage - including google, youtube and firefox help.

    Firefox won't open anything. This includes support.mozilla.com - I am currently using my back-up browser, Internet Explorer.
    Firefox is enabled to access the internet, and browser cookies are not blocked.
    All it says every time I try to open any webpage is 'Firefox can't establish a connection to the server at [address of site].' and 'Unable to connect.'

    After upgrading, sometimes your firewall will not recognize the new Firefox version and, therefore, not allow it to access the internet. To remedy that situation,
    #you must remove Firefox from your firewall's allowed applications list,
    #then restart firefox, go to a website, the firewall will detect the new Firefox version and
    #then give the necessary permissions for your firewall to allow Firefox access to the internet
    Click here for more information --> [https://support.mozilla.com/en-US/kb/Cannot%20connect%20after%20upgrading%20Firefox Cannot connect after upgrading Firefox]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • While opening certain webpages ,the cursor flicker and disappear eventually !

    while opening cetain webpages in tabs the cursor flickers, it disappers eventually within the browser page !

    Some web sites may make changes in how the browser displayed their
    page. But if you are saying this is an on and off problem on the same
    page, then it could be something else. Try this out;
    Many site issues can be caused by corrupt cookies or cache.
    * Clear the Cache
    Press the '''<Alt>''' or '''<F10>''' key to bring up the tool bar. Then;
    '''Tools > Options > Advanced > Network > Cached Web Content: Clear Now'''
    and
    * Remove Cookies
    Press the '''<Alt>''' or '''<F10>''' key to bring up the tool bar. Then '''Tools > Options > Privacy.'''
    Under '''History''', select Firefox will '''Use Custom Settings'''.
    There is a button on the right side called '''Show Cookies'''.
    If there is still a problem,
    '''''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''''' {web link}
    While you are in safe mode;
    Press the '''<Alt>''' or '''<F10>''' key to bring up the tool bar.. Then
    '''Tools > Options > Advanced > General.'''
    Look for and turn off '''Use Hardware Acceleration'''.
    Poke around safe web sites and see if there is still a problem. Then restart.

  • Firefox does not open with the tabs I had open when I use the quit and save function. Firefox opens with my home page only. how to fix?

    When I use the "Save and Quit" function it has no effect. The next time I open Firefox it goes to my home page only.
    == This happened ==
    Every time Firefox opened
    == 3 days ago

    This is not a solution, nor a work-around. The only thing this points out is where the problem lies. Settings are meant to be used in all sessions, barring exceptions and the fact that Firefox asks if you'd rather SAVE and then quit, makes it an exception. The user has elected to skip the clear browsing history step.
    However, if the settings are permanently changed as you suggest, then the history will always be remembered for eternity when Firefox is closed. You then have to manually clear your history first at every session before closing.
    Older versions of Firefox never behaved in such manner and recognized that the Save and Quit superseded the setting to Clear History.

  • Unable to open pdf files using Internet Explorer and Adobe 9.1

    We are unable to open any/all pdf files in Internet Explorer 6 or 7 using Adobe Reader 9.1 on Windows XP SP2.
    The error message is that IE has a problem and sorry for the inconvenience.
    Clicking "OK" closes IE.
    We did not have any issue with Adobe Reader 8.1.
    What we did to date:
    1. Uninstall Adobe Reader 9.1
    2. Run Windows Clean Utility to remove any remnant of Adobe Reader 8
    3. Re-install Adobe Reader 9.1
    Any other suggestions?
    Need to have this upgrade.

    I'm having a similar issue. Prior to upgrading to Acrobat 9.1 I was able to view PDFs from IE 6. No longer. Instead I get a message: "Error opening document. File cannot be found."
    Help?

  • Open new window using java code and not in script

    i need some method like sendredirect or forward . where i can make some codes so as to open a new window.
    actually i am calling a jsp from one jsp file where a lot of dynamic parameters are sent. and in the second jsp i call a servlet which works to download a file to the client side. i want the file should open in new window not in the browser from where it is initiated.
    else can any one say the mime type where i can open file(a xls file) in xls window and not in browser which is not needed as user needs to press the back button(present in browser)

    Hi,
    in your code
    the following code, which is used to set the file name that is to be downloded
    response.setHeader("Content-Disposition", "*inline*; filename=somename.xls" );
    to be replaced by
    response.setHeader("Content-Disposition", "*attachment*; filename=somename.xls" );
    it will work fine try it.
    Edited by: Bhaskar.krishna on Jan 17, 2008 12:56 AM

  • How to open GP process using url

    Dear All,
    Our requirement is to open a GP process from a url link. The url link will be sent to the user in an email.
    When going through the GP API we found a function getProcessInstanceID(), but we are not able to figure out how to generate the url from the id so that the process with the particular instance opens up.
    The user who will receive the url link, will have a portal id.
    Could anyone please help us out?
    Thanks and regards,
    Mayuresh

    hi
    Hope this [link|http://help.sap.com/javadocs/NW04S/SPS09/gp/com/sap/caf/eu/gp/process/rt/api/IGPRuntimeManager.html] will be helpful for you
    You can refer [here|Generating Report on currently running GP Processes; too.
    Thanks
    Gopal

  • Open a file using URL

    In my data base I have a field called AgendaDocument. The
    values of this field are just the document name (like JulyAgenda)
    with no file extension. Most of these are pdf. I want the user to
    click a dynamically created link to open the document. Please help
    - see code
    thanks

    From Rockhiker's first post, it looks like the filename is
    stored in the database without a file extension. Just to clarify,
    do you have the full filename (with file extension) stored in your
    database? If not, there are solutions, but I would definitely
    recommend adding a field for file type to your application.
    If you don't have the file extension of the file, but know it
    is one of only a handful of file types, you can use the
    fileExists() method to determine the correct filetype:
    <cfif FileExists("C:\Some\Directory\#myFile#.pdf")>
    <cfset sFullFileName = "#myFile#.pdf">
    <cfelseif FileExists("C:\Some\Directory\#myFile#.doc")>
    <cfset sFullFileName = "#myFile#.doc">
    Otherwise, you could leverage <cfdirectory> to get a
    list of all your files in a query format and then compare your
    filename against the values in the directory.

  • Unable to open local file using af:goLink and anchor link in JSF page.

    Hi,
    I want to open a file at a perticular location on client machine. I am using af:goLink to openg the file. But when i tried to click on the link it is not opening the file. If i give any other value like name of other site, it opens the link. It is not giving any exception also. I tried by puting notmal HTML anchor link. That is also not working. But if i put this anchor link in normal HTML page, it works.
    Following is the JSPX page that i have created. Here c:\dmmsi.log is a temp file on my local system.
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <af:document title="File Upload">
    <af:form usesUpload="true">
    File Uploader Test
    <af:inputFile label="Input File" autoSubmit="true"/>
    <af:spacer height="20" width="50"/>
    <af:goLink targetFrame="_new" destination="file:///c:/dmmsi.log" text="Test"/>
    <af:spacer height="20" width="50"/>
    <!--a id="you" href="c:\dmmsi.log" target="_new">Open File</a-->
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    HTML Page i tried using anchor link
    <html>
    <body>
    <form>
    Please specify a file from your local machine</b>
    <input name="file" type="file" onblur="document.forms[0].hello.value = document.forms[0].file.value; document.getElementById('you').innerHTML =document.forms[0].file.value; document.getElementById('you').href = 'file://'+document.forms[0].file.value;">
    <br><br>
    <input type="text" name="hello" value="">
    <br><br>
    <!-- a id="you" href="c:\dmmsi.log" target="_new">Click Me to Open file< / a -->
    </form>
    </body>
    </html>
    (Note: Please remove the comments that i have added in creating anchor link. I was facing some issue in putting my code in this editor. It was creating the HTML link when i see the preview.)
    I hope you will be able to reproduce my problem.
    Sujay

    What version of IE are you using? IIRC, IE 7 is supposed to prompt you. ("The web site is attempting to open a page in your Trusted Zone. This can let hax0rs pwnz0r you. Continue?" or something to that effect.)
    If you use the verbatim tags, do you get an actual error message? That might help diagnose the problem.

  • Nakisa 2.0. Error while opening the application using URL

    Dear Experts,
    We are using Nakisa 2.0. Orgchart application. When we fire the link in the browser the application is throwing the below mentioned error.
    Please help us to solve this issue.
    Server Error in '/ORGCHART' Application.
    System.ServiceModel.Diagnostics.DiagnosticTrace..ctor(System.ServiceModel.Diagnostics.TraceSourceKind, System.String, System.String)
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.MethodAccessException: System.ServiceModel.Diagnostics.DiagnosticTrace..ctor(System.ServiceModel.Diagnostics.TraceSourceKind, System.String, System.String)
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 
    Stack Trace:
    [MethodAccessException: System.ServiceModel.Diagnostics.DiagnosticTrace..ctor(System.ServiceModel.Diagnostics.TraceSourceKind, System.String, System.String)]
       System.ServiceModel.DiagnosticUtility.InitDiagnosticTraceImpl(TraceSourceKind sourceType, String traceSourceName) +0
       System.ServiceModel.DiagnosticUtility.InitializeTracing() +14
       System.ServiceModel.DiagnosticUtility..cctor() +92
    [TypeInitializationException: The type initializer for 'System.ServiceModel.DiagnosticUtility' threw an exception.]
       System.ServiceModel.Configuration.ConfigurationHelpers.UnsafeGetAssociatedSection(ContextInformation evalContext, String sectionPath) +111
       System.ServiceModel.Configuration.ServiceHostingEnvironmentSection.UnsafeGetSection() +37
       System.ServiceModel.HostingManager.LoadConfigParameters() +32
       System.ServiceModel.HostingManager..ctor() +110
       System.ServiceModel.ServiceHostingEnvironment.EnsureInitialized() +142
       System.ServiceModel.ServiceHostingEnvironment.OnEnsureInitialized(Object state) +4
       System.ServiceModel.PartialTrustHelpers.PartialTrustInvoke(ContextCallback callback, Object state) +52
       System.ServiceModel.Activation.HttpModule.ProcessRequest(Object sender, EventArgs e) +98
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
    Regards,
    Vivek

    Hi Vivek,
    Are you accessing Nakisa through the portal or using the direct link?
    Have you tried stopping and restarting the IIS?
    Are you able to access the Admin Console?
    http://[hostname]/[Nakisa_application_name]/manager.jsp
    http://wiki.sdn.sap.com/wiki/display/ERPHCM/FAQinVisualizationSolutionsbyNakisa%28VSN%29
    Do you have any other Nakisa modules other than OrgChart?
    If so, are you able to test these?
    Have you tested this on more than one user?
    Regards,
    Matthew

  • Gmail has recently started to show my username when opened. Others use this iPad and I do not want them to know I have a Gmail account. How can this be returned to the previous position? ?

    The question is in the heading but I posted it two hours ago and have had no responses at all!

    Try a reset Tony ...
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    If that doesn't help, tap Settings > General > Reset > Reset All Settings
    No data is lost due to a reset.
    By the way. This is a user to user forum. You are not communicating directly with Apple here. We are Apple users helping one another. That's what Apple Support Communities is all about.
    Also, your post may have been replied to sooner if you had posted in the iPad community here > Using iPad: iPad: Apple Support Communitie instead of the Mac OS X - Safari community.
    message edited by:  cs

  • Program opens but becomes unresponsive before opening a webpage

    Firefox became unresponsive earlier in the day. Used alt+ctrl+del to close it. A few hours later tried to open it again. The window opened, but it just stopped working when it tried to load the page. It didn't even try to restore the previous session. I get a blank white window that won't respond at all. I was using an older version, so I tried to get the newest version. It does the same thing. I haven't added anything new in months, possibly a year.

    Hi
    Thanks for your immediate knowledge sharing, ya right JSP can be accessed as it resides in the server also I understand the HTML coding is more than enough for me to understand the values I need to pass to given the input type of fields with the FORM tag.
    Having understood thus far, you people mention getting the HTML code but how do I get that programatically, it is that I can load the JSP/page using URL.getConnection and open the page in the browser, one way is doing VIEW SOURCE manually and getting the code, can you educate me on how to do it programatically to view source of the displaying page on a browser?
    Thanks
    Raja

  • How do I set the screen zoom, so that it doesnt change each time I open Firefox. Because I see the webpages in smaller print, and I want them larger , without having to re zoom each time I open Firefox.

    I need to know how to set the zoom option under "View" Tab, shere I dont have to re zoom each time I open Firefox. I have a wide screen monitor and generally, when viewing webpages, the web content on any page is confined to center of the page, and I was wondering if there was anyway to permanently set the zoom preferences without having to change them each time i open a webpage.
    IE 8 and 9 has a feature to set the magnification and i set mine to 150% which works perfectly for me. I wonder if Firefox has a similar feature.

    TonyE
    Thanks a lot. I downloaded the Default FullZoom Level add-on. My problem is now a history. thanks a million

  • Entering into site using valid id and password through URL class

    hi......
    i need to access the google adwords editor site. I have account on that but i want to access that by using URL class and then i need to use some data on getting response. It is very urgent for me. Whats the drawback is i am unable to handle the cookies send by the server. Can any one help how to get the response from that by handlin cookies or sessions through program. I have valid id and password.
    Thanks in advance.
    Regards...............
    v.suresh

    Thanks for the response.
    I attempted to remove cookies, but I can not identify any of the cookies on the list with the PrimeVest web site. No PrimeVest, no PVs, nothing that looks like it came from them.
    I have also reported the problem to PrimeVest and their tech did answer. He suggested erasing the browsing history (temporary internet files), which I did with no effect. He also had me check for the correct starting page address, which was OK. He stated that they are aware of a problem and it is on their list. No indication of how far down that list though. His only cure was to use IE for now, which I was already doing. Perhaps he can tell me which cookies to remove.

Maybe you are looking for

  • Downloads from iTunes are not going into my library

    When I download songs and podcasts from iTunes on my iPhone they seem to download fine but they do not go into my library. Any ideas? All software is up to date.

  • RH9: Multiple Topics with the Same Map ID

    I'm trying to use the same Map ID with more than one topic, which seems logical to me as a process that contains multiple screens could open an overview of the process, but I get an error that "The map number is already in this project". I've tried m

  • Photoshop CS4 always opens off center

    Everytime I open Photoshop CS4 the center window appears "off center", sometimes waay down and to the right. The menus pop up in the right place but the center comes on messed up. Is there a fix for this?

  • Can't open .CGM images

    According to documentation, Illustrator is supposed to able to open .cgm files, but I can't open a ton of images I have on CD. These are from a pretty old version of PrintMaster Gold for Windows, released sometime after Windows '95. I don't use the p

  • How to code on button click increase cell height ?

    hi, Am new in development .Am creating app same like facebook.i have table view controller in that every cell having button .on perticular button click i want to add view to that cell .on same same when i click second time then it hide the addded vie