Need to update content on web page in real time...

Hi all,
I am using jsp with struts to display some information in a web page.
Let's imagine i am displaying a list of stocks and its price in a web page. I want to upload the price of the stock as they are changing. I like to do it in a smart way: it is... i don't like to refresh the whole page every x seconds, i just like to change the value of the field that changed in the server in real time.
Which are your suggestions? My coworked told me to hava a look in Ajax... What do you think about it?
Thanks,
Dani.

Well first thing which i wanna emphasise on AJAX is not the replacement of this it still uses similar logic refreshing of X secs.
Rather instead of refreshing the whole page one would only refresh a view.
If you are using looking at a solution to achieve via struts here is where you should go in read it and look for a solution.
http://today.java.net/pub/a/today/2005/10/27/sprinkle-ajax-magic-into-struts-webapp.html
http://wiki.apache.org/struts/AjaxStruts
http://www.omnytex.com/articles/xhrstruts/
Hope this might help :)
REGARDS,
RaHuL

Similar Messages

  • Need help accessing the router web page.  I have been tol...

    Need help accessing the router web page.  I have been told my router is acting like a switch and the IP address is not in the proper range.  I have tried reseting the router (hold for 30 sec and unplug for 5 mins).  Didn't work.
    thanks

    What router are you using?  Almost all Linksys routers use 192.168.1.1 as the default local IP address, but there is at least one that uses 192.168.16.1 , namely the WTR54GS  (not the WRT54GS).
    You need to try again to reset the router to factory defaults.
    To reset your router to factory defaults, use the following procedure:
    1) Power down all computers, the router, and the modem, and unplug them from the wall.
    2) Disconnect all wires from the router.
    3) Power up the router and allow it to fully boot (1-2 minutes).
    4) Press and hold the reset button for 30 seconds, then release it, then let the router reset and reboot (2-3 minutes).
    5) Power down the router.
    6) Connect one computer by wire to port 1 on the router (NOT to the internet port).
    7) Power up the router and allow it to fully boot (1-2 minutes).
    8) Power up the computer (if the computer has a wireless card, make sure it is off).
    9) Try to ping the router. To do this, click the "Start" button > All Programs > Accessories > Command Prompt. A black DOS box will appear. Enter the following: "ping 192.168.1.1" (no quotes), and hit the Enter key. You will see 3 or 4 lines that start either with "Reply from ... " or "Request timed out." If you see "Reply from ...", your computer has found your router.
    10) Open your browser and point it to 192.168.1.1. This will take you to your router's login page. Leave the user name blank (note: a few Linksys routers have a default user name of "admin" (with no quotes)), and in the password field, enter "admin" (with no quotes). This will take you to your router setup page. Note the version number of your firmware (usually listed near upper right corner of screen). Exit your browser.
    If you get this far without problems, try the setup disk (or setup the router manually, if you prefer), and see if you can get your router setup and working.
    If you cannot get "Reply from ..." in step 9 above, your router is dead.
    If you get a reply in step 9, but cannot complete step 10, then either your router is dead or the firmware is corrupt. In this case, use the Linksys tftp.exe program to try to reload your router with the latest firmware. After reloading the firmware, repeat the above procedure starting with step 1.
    If you need additional help, please state your ISP, the make and model of your modem, your router's firmware version, and the results of steps 9 and 10. Also, if you get any error messages, copy them exactly and report back.
    Please let me know how things turn out for you.
    Message Edited by toomanydonuts on 01-21-2008 04:40 AM

  • ABAP to get content of web-page

    Hello everyone! _
    Can somebody help me with subject?
    I want to get a content of web page in Internet, for example strings 'Hello world', and put in data base or on a screen.
    May be you can give me some hints?
    Thanks

    Hello,
    Try with These Fm's
    Name of function module        Short text for function module
    RMPO
    RM_GET_WEBLNR_FROM_PRTNR
    SADA
    GET_WEBDBMSRV_URL_ADA
    SFES
    GET_WEBGUI_HELP_MODE
    SHTM
    GET_VERSION_WEB_OBJECT
    SWRXML
    SWR_GET_WEB_SERVER
    W3_API
    W3_GET_WEBAPP_DEFINITIONX
    W3_API_MINIAPP
    W3_GET_FGROUPS_FOR_WEBAPP
    W3_GET_WEBAPP_DEFINITION
    Regards,
    Vasanth

  • Dynamic content of web pages sample

    Dear ALL,
    I WANT TO BUILD DYNAMIC CONTENTS OF WEB PAGES/SITE BY
    JDEVELOPER 9I/10G. PLS TELL ME WHERE HAVE BEST SAMPLES/EXAMPLES/TUTORIALS.
    I KNOW OTN HAVE VSM TUTORIALS. BUT NOT ENOUGH.
    BEST REGARDS
    BORIS

    Boris
    BC4J Toy Store is a very good example.
    http://otn.oracle.com/sample_code/products/jdev/bc4jtoystore/bc4jtoystore.zip
    success
    -Jan

  • Summarizing content of web page

    Right now i am doing my final project which is summarizing the content of web page. After summarize, the system can read aloud the summary text.
    Anyone have any idea how to summarize text?
    Can you give me some source code or reference?
    Please... HELP ME...

    You could try using the summary="" attribute of tables in HTML, but that will only work if the site is compliant with web accessibility (Section 508) requirements. Other than that, it's probably not an easy thing to do at all. Apple tried to do this with documents on OS X, but they failed miserably as well.

  • Monitering web users at real time using weblogic console?

    Is there a way to monitor web users at real time using weblogic console.
    I want to see no. of active HTTP sessions, no. of HTTP requests at any
    point of time, opening and closing of a session...etc..
    thanks in advance

    See recent discussion in "servlet" newsgroup.
    Cameron Purdy, LiveWater
    "Manjunath Kalmani" <[email protected]> wrote in message
    news:[email protected]..
    Is there a way to monitor web users at real time using weblogic console.
    I want to see no. of active HTTP sessions, no. of HTTP requests at any
    point of time, opening and closing of a session...etc..
    thanks in advance

  • Safari (and other browsers) very slow loading "content rich" web pages

    Hi,
    I'm a very "light" user of my mac, using it basically for surfing the web, uploading pictures and music, etc... and recently any web page that has a lot of content (examples are nfl.com, nba.com, nhl.com, mlb.com, united.com, continental.com) takes a very long time to load (most other web pages load normally). Safari (and Firefox as well) gets to the web page in an instant, but then sits there trying to load content (mostly high res pictures and ads I suppose), which sometimes takes minutes or just never fully downloads the content. I'm connected to the internet via ethernet (high speed cable modem from Time Warner), and they've already come out and verified that everything on their end is fine. I've followed the instructions posted on some of the other similar posts (emptying cache, deleting cookies, disenabling add on's, reseting safari, logging in as another user, etc..), and this has not helped. Since this problem is persistent with both browsers, I'm wondering if this may be an OS issue as opposed to a browser issue. If someone can walk me through a solution (keep in mind that I'm a novice), that would be much appreciated.
    Thanks!
    Message was edited by: Mr. Cady

    HI and welcome....
    Since this problem is persistent with both browsers, I'm wondering if this may be an OS issue as opposed to a browser issue
    Could be.
    Since the problems exist with multiple browsers, login to another user account on your Mac. Try Safari there. If you see the same behavior with Safari there, then follow the instructions here. You will need your install disc. The startup disk may need repairing. Even if Safari is ok in another account, it's still a good idea to check the startup disk. That way you can rule that out.
    Insert your install disk and Restart, holding down the "C" key until grey Apple appears.
    Go to Installer menu and launch Disk Utility.
    (In Mac OS X 10.4 or later, you must select your language first from the installer menu)
    Select your HDD (manufacturer ID) in the left panel.
    Select First Aid in the Main panel.
    (Check S.M.A.R.T Status of HDD at the bottom of right panel. It should say: Verified)
    Click Repair Disk on the bottom right.
    If DU reports disk does not need repairs quit DU and restart.
    If DU reports errors Repair again and again until DU reports disk is repaired.
    When you are finished with DU, from the Menu Bar, select Utilities/Startup Manager.
    Select your startup disk and click Restart
    While you have the Disk Utility window open, look at the bottom of the window. Where you see Capacity and Available. Make sure there is always 15% free space.
    Carolyn

  • Unable to create a Site Content in Web Page Composer

    Hi All,
    I am new to WPC and would like to explore more on the same. I tried following some blogs inorder to create and publish Web Pages.
    I was stuck at a point where we need to create a site content. I guess all the permissions required to access each folder is properly set.
    When I tried to create a content like for example an article... A window pops up which says please select a document type and I dont have any option to select whereas I have a cancel and next button at the bottom of the screen. When I click next nothing happens.
    Did anyone went through this issue? What am I doing wrong? Did I fail to set some role to the author creating content?? Author has wpc_editor_role though.
    Regards,
    Rekha Malavathu

    Hi Sandeep,
    The popup window (which I suppose is an XML Editor) doesnt have any UI Element to select when I try to create any content... may it be an Article, Linklist, etc...
    I am using WAS 2004S SP 14. As I mentioned, all the xml and xsl files are available in the folder and even in the KM Configuration.
    My problem is, I am unable to create a content as the popup window is blank... No UI Element to select or enter.
    Regards,
    Rekha Malavathu

  • Acrobat X Pro - Header & Footer content ? (web pages)

    We have thousands of Acrobat documents of converted web pages with this convention:
    Header (L-R): Title - [empty] - Date
    Footer: URL - [empty] - Page number
    This convention needs to be retained, but *many* web pages in Internet Explorer 10/11 simply will not convert using File | Print, and there seems to be no obvious way to reformat the header/footer content for use with the Acrobat X Pro IE10/11 'Convert' button.
    E.g. Acrobat X Preferences 'Convert to PDF' says 'There are no settings that can be edited in HTML'.
    Is there any way to reformat the default Header & Footer contents in IE10/11 'Convert web page contents to PDF' ? I'm using Win7 x64 Pro.  TIA
    Dave.

    It's a bit obscure, but the settings are on the conversion dialog.
    Open Acrobat on the desktop but don't open any documents.
    Tools > Pages > More Insert Options > Create PDF From Web Page
    Click 'Settings' and make changes as required, then cancel out of the creation dialog.

  • How do I save contents from web page to iWork

    This may be the wrong community so please let me know if it is? I want to save a document from a web page in Safari to iWork on iCloud.com. The document is of my son's USA hockey membership confirmation and I don't know how to save it to iWork or which application to save it to once I do? Numbers, Pages? Thank you in advance..

    I thought I was clear about what I'm trying to achieve... I want to view my document in either Pages or Numbers, because they are on both my Macs and iPhone/iPod touch's.
    Aug 25, 2012 2:57 PM (in response to Winston Churchill)   
    It's really just content on a web page but its information I need to have access to across all my devices from a MacBook Pro to iPhone and iPod touch. I want to be able to view it in the Pages iOS app and the OS X app.
    I just need to know the best way to save it, & in the fewest amount of clicks preferably.   

  • Local Intranet App needs to run app from web page

    I have a vb.net executible app that resides on a group of users on our local network and I want to integrate an ASP.Net website that is also local to our internal users so they can select an item on the web page and it would open the executable passing in
    a parameter to the app (the vb.net app currently accepts these command line parameters I want to pass in).
    I have tried several types of examples ranging from ActiveXObject("WScript.Shell") in JS to Response.ConetentType in code behind. Although there are several posts saying you can run the shell command, I am not having any luck. All users have Win
    7 Pro with IE8 and IE10.
    I know this is not a good way to do this, but I need to show a proof of concept, and just need to show it can work. I would like to ultinmately create an Accelerator of Add-in that could do this properly.
    Can anyone provide some help please?
    Here is snippets of code tried:
    code behind page with Grid of records:
    Private Sub GridView1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles GridView1.SelectedIndexChanged
        Response.Clear()
        Dim AppPath As String = "\\\\MyPC\\MyShare\\Winforms.exe"
        Dim TestApp As String = System.IO.Path.GetFileName(TripleAPath)
        Response.ContentType = "application/octet-stream"
        Response.AddHeader("content-disposition", "filename=" + TestApp)
        Response.TransmitFile(AppPath)
        Response.End()
    End Sub
    And here is the js scriptmanager example I am trying to run from a button click. I get error about shell failure:
    Specifically automation error cannot create object, and here is the line in break mode:
    <script type="text/javascript"> function OpenApp() {var ws = new ActiveXObject("WScript.Shell"); ws.Exec("g:\\Winform.exe");} </script>
    And here is the code:
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
        ' Define the name and type of the client script on the page. 
        Dim csName As [String] = "ButtonClickScript"
        Dim csType As Type = Me.[GetType]()
        ' Get a ClientScriptManager reference from the Page class. 
        Dim cs As ClientScriptManager = Page.ClientScript
        ' Check to see if the client script is already registered. 
        If Not cs.IsClientScriptBlockRegistered(csType, csName) Then
            Dim csText As New StringBuilder()
            csText.Append("<script type=""text/javascript""> function OpenApp() {")
            csText.Append("var ws = new ActiveXObject(""WScript.Shell""); ")
            csText.Append("ws.Exec(""g:\\Winform.exe"");")
            csText.Append("} </script>")
            cs.RegisterClientScriptBlock(csType, csName, csText.ToString())
        End If
    End Sub
    <input id="Button1" type="button" value="Click to open App" onClick="OpenApp()"/></p>
    Daniel R Gleason

    Hi Daniel,
    this forum is for questions about html, css and scripting for website development.
    I have a vb.net executible app that resides on a group of users on our local network and I want to integrate an ASP.Net website that is also local to our internal users so they can select an item on the web page and it would open the executable passing in
    a parameter to the app (the vb.net app currently accepts these command line parameters I want to pass in).
    I think an ActiveX control or a hosted WBC in your VB.net app are the only viable solutions.
    Rob^_^

  • How can i update an html web page from Labview?

    I intend to publish the "status" of an experiment online through an web page. I mean, if my vi is running i would like to have a phrase or indicator set on at my web page. If my Vi is not running i would like this indicator set off. This page is hosted in a server and I would like to know if its possible to update the html file from labview through an ftp connection.
    Thanks in advance...
    MSc. Alexandre Michel Maul
    Parana Federal Univeristy - Brasil

    The system exec function is on the Communication palette. Its for executing system commands. On my Win2K system, the help for FTP is:
    "Ftp
    Transfers files to and from a computer running an FTP server service (sometimes called a daemon). Ftp can be used interactively. Click ftp commands in the Related Topics list for a description of available ftp subcommands. This command is available only if the TCP/IP protocol has been installed. Ftp is a service, that, once started, creates a sub-environment in which you can use ftp commands, and from which you can return to the Windows 2000 command prompt by typing the quit subcommand. When the ftp sub-environment is running, it is indicated by the ftp command prompt.
    ftp [-v] [-n] [-i] [-d] [-g]
    [-s:filename] [-a] [-w:windowsize] [computer]
    Parameters
    -v
    Suppresses display of remote server responses.
    -n
    Suppresses autologin upon initial connection.
    -i
    Turns off interactive prompting during multiple file transfers.
    -d
    Enables debugging, displaying all ftp commands passed between the client and server.
    -g
    Disables file name globbing, which permits the use of wildcard characters (* and ?) in local file and path names. (See the glob command in the online Command Reference.)
    -s:filename
    Specifies a text file containing ftp commands; the commands automatically run after ftp starts. No spaces are allowed in this parameter. Use this switch instead of redirection (>).
    -a
    Use any local interface when binding data connection.
    -w:windowsize
    Overrides the default transfer buffer size of 4096.
    computer
    Specifies the computer name or IP address of the remote computer to connect to. The computer, if specified, must be the last paramete
    r on the line."
    I use tftp all of the time to transfer files in a similar manner. Test the transfer from the Windows command line and copy it into a VI. Pass the command line to system exec and wait until it's done.

  • How can I add a Last Update to a web page with a web app.

    I would like to know how to update a webpage whenever a web app item has been added or updated last.
    I have the tag {tag_lastupdatedate}  but it only works is only for the web app list or details page.
    I want to be able to add the date and time as to when the entire list was last updated. Any suggestions? thanks!

    Hi DLSAgency,
    There is a module called {module_lastupdated} and it will display the date when the web page it's on has been last updated, but there is no module that will display when the web app list inside that page was last updated. There no such functionality in BC.
    Cheers,
    Mario

  • Need help to access a web page using midlet to retrieve some informations

    Hi everyone i'm trying to access a web page using midlet to retrieve some informations in text format, the web page is [http://daviddurand.info/D228/?villes|http://daviddurand.info/D228/?villes] for my project.
    the problem is that i always get error 10049 in socket::open meaning no adresse could be found i tried IP adresse and still the same.
    i managed to recreate the same web page to test it on local and the surprise that it works fine but when accessing it online i have this error.
    i tried also to get the page i created on a webserver i own to try it saying that there might be security issues but the same error appears again. so help plz
    here is my code :
    package mobileapplication5;
    import java.io.*;
    import javax.microedition.io.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    public class GetMidlet extends MIDlet {
    private Display display;
    String url = "http://dayaati.com/villes/index.php?villes";
    public GetMidlet() {
    display = Display.getDisplay(this);
    public void startApp() {
    try {
    getBirthdayFromNameUsingGet(url);
    } catch (IOException e) {
    System.out.println("IOException " + e);
    e.printStackTrace();
    public void pauseApp() {   }
    public void destroyApp(boolean unconditional) {  }
    public void getBirthdayFromNameUsingGet(String url) throws IOException {
              HttpConnection httpConn = null;
              InputStream is = null;
              OutputStream os = null;
              try {
    httpConn = (HttpConnection)Connector.open(url);
    httpConn.setRequestProperty("User-Agent", "Profile/MIDP-2.1 Configuration/CLDC-1.1");
    httpConn.setRequestProperty("Content-Language", "en-US" );
    httpConn.setRequestProperty("Content-Type", "text/html; charset=iso-8859-1");
    httpConn.setRequestProperty( "Connection", "keep-alive" );
    httpConn.setRequestProperty("Content-Length","51200");
              getConnectionInformation(httpConn);
              int respCode = httpConn.getResponseCode();
              if (respCode == httpConn.HTTP_OK) {
                   StringBuffer sb = new StringBuffer();
                   os = httpConn.openOutputStream();
                   is = httpConn.openDataInputStream();
                   int chr;
                   while ((chr = is.read()) != -1)
                   sb.append((char) chr);
                   // Web Server just returns the birthday in mm/dd/yy format.
                   System.out.println(sb.toString());
              else {
                   System.out.println("Error in opening HTTP Connection. Error#" + respCode);
              } finally {
                   if(is!= null)
                   is.close();
                   if(os != null)
                        os.close();
              if(httpConn != null)
                        httpConn.close();
    void getConnectionInformation(HttpConnection hc) {
    System.out.println("Request Method for this connection is " + hc.getRequestMethod());
    System.out.println("URL in this connection is " + hc.getURL());
    System.out.println("Protocol for this connection is " + hc.getProtocol());
    System.out.println("This object is connected to " + hc.getHost() + " host");
    System.out.println("HTTP Port in use is " + hc.getPort());
    System.out.println("Query parameter in this request are " + hc.getQuery());
    **Heeeeeeelp Please**

    [http://java.sun.com/javase/6/webnotes/trouble/TSG-VM/html/crashes.html]
    SIGSEGV (0xb)Most common cause of that is JNI code used directly or indirectly through a 3rd party library.
    64-Bit Server VM (11.2-b01 mixed mode linux-amd64)Conversely that VM gets less traffic than others so you might have hit a bug in it.

  • Need help with iPad 2 web page access requiring Adobe Flash Player

    New to apple have iPad 2 WiFi and need to access web pages that utilize adobe flash player what are my options since adobe and apple are not friends

    There are options in the app store, which may or may not work.  iSwifter and puffin are two you may try.......

Maybe you are looking for

  • Help: Airport Remote Speakers No Longer Showing in iTunes

    Hello! After 2 years of streaming music to my remote speakers via iTunes and Airport Express (AX), I've had my first real issue. I have not been able to figure this out, and am at my last strand of sanity. My AX is connected to a pair of speakers in

  • Invoke BDC from external system

    Hi Everybody,     Is there a mechanism to upload a BDC recording with the data from outside the R/3 system without invoking it through the session screen ? What I am essentially looking for is either a command line way or an RFC or BAPI to trigger th

  • Failed to wake NIC for hcmd

    Hi,    Very recently my wifi has been "vanishing" all of a sudden, with no good determined scenario. Rebooting fixes the problem temporarily (so I was hoping it's software related).    The following error messages are shown by dmesg: [ 2058.691869] i

  • Time machine space questions, not the same as Activity Monitor

    Hello I am new here and kindly ask your thoughts on what I am seeing. I have a 13" MacBook Pro early 2011 with OS 10.7.5 Earlier this year I tried an upgrade to a new OS and experienced a failure that required me to make a visit to the Apple store. I

  • EANCOM Message for APO planning module

    Hi  , Currently we are working on Integration of APO - Planning module with our Business Partner . We have SAP PI in the landscape   APO Planning Messages have to be delivered to the external Partner through  SAP PI as EANCOM message . If any one has