How to solve page flickering in a jsp page for chat

Hi,
I'm trying to build a very simple chat application. I'm using JSP as the frontend. The problem is that when I want to refresh the messages typed and list of users currently logged in, the page is refreshing using html refresh tag. The result is very bad to the eye since the page flicker. Is there a way to solve this without using Applet ?
Thanks,
Ron

hidden frames for data loading and Javascript for DHTML manipulation, maybe

Similar Messages

  • How to solve the problem "cannot create a datasink for **(datasource)"

    There is a forums that can send and receive RTP streams, and it can play on the client. Now I want to save it. I write the code according to the jmf2_0-guide, how ever it always throws the exception "cannot create a datasink for **(datasource)". The datasource is the RTP stream received from the server. Is there anything wrong with the data source or anything else?
    here is the code:
    public synchronized void update( ReceiveStreamEvent evt){
    if(evt instanceof NewReceiveStreamEvent){
    try{
    stream = ((NewReceiveStreamEvent)evt).getReceiveStream();
    DataSource ds = stream.getDataSource();
    MediaLocator f = new MediaLocator("file://foo.au");
    Manager.createDataSink(ds, f);
    RTPControl ctl = (RTPControl)ds.getControl("javax.media.rtp.RTPControl");
    if (ctl != null) {
         System.err.println(" - Recevied new RTP stream: " + ctl.getFormat());
         } else {
         System.err.println(" - Recevied new RTP stream");
         if (participant == null) {
         System.err.println(" The sender of this stream had yet to be identified.");
         } else {
         System.err.println(" The stream comes from: " + participant.getCNAME());
         // create a player by passing datasource to the Media Manager
         Player p = javax.media.Manager.createPlayer(ds);
         if (p == null) {
         return;
         p.addControllerListener(this);
         p.realize();
         PlayerWindow pw = new PlayerWindow(p, stream);
         playerWindows.addElement(pw);
         // Notify intialize() that a new stream had arrived.
         synchronized (dataSync) {
         dataReceived = true;
         dataSync.notifyAll();
         } catch (Exception e) {
         System.err.println("NewReceiveStreamEvent exception " + e.getMessage());
         return;
    Does any one know how to solve this problem? How to save or how to create a datasink? Please help! Thank you!!

    The complete error message:
    NewReceiveStreamEvent exception Cannot find a DataSink for: com.sun.media.protocol.rtp.DataSource@4741d6

  • How to download Pages for Mac OS X 10.6.8?

    Hi all,
    I have Mac OS X 10.6.8. Version 10.7.4 is required to be able to install Pages.
    Is an upgrade to Mountain Lion worth the money, and will it enable me to download Pages from the Apple Store? If not, is there a possibility to buy an older version of Pages somewhere?
    Also, does an upgrade to OS X Mountain Lion equal an upgrade to OS X 10.8?
    Thanks in advance for your help,
    Herman

    The early bugs were related to Snow Leopard updates, they just affected Pages. It was font issues & was "cured" by using the combo updaters. So, even if you're using Snow Leopard 10.6.8, it would be worth running the combo updater you can download from this page, especially if you're having issues.
    You can read about the iWork 9.1 updater here.
    What software has issues with Lion? I might know of some tips that could help. Personally, I moved from Lion to Mountain Lion as soon as I could. Lion has too many issues itself. But I do keep a couple of older Macs to run stuff that can't be run without Rosetta or other "legacy" systems.

  • How to solve the build fail error when the file below mention cant be found

    Hi,
    i got this build fail but i cant find where the error came from and how to solve it. im stucked at this problem for quite a long time.
    BUILD FAILED
    C:\Infrastructure\Infrastructure\Ant\build.xml:52: The following error occurred while executing this line:
    C:\Infrastructure\Infrastructure\DBSchema\build.xml:262: C:\Infrastructure\Infrastructure\Ant\OracleMiddlewarejdeveloper\modules\oracle.adf.share_11.1.1 not found
    Is there any solutions to it??
    Rgds,
    lx

    Below are my codes for the build.properties.
    # Base Directory for library lookup
    jdeveloper.home=C:\Oracle\Middleware\jdeveloper
    src.home=..//..
    # JDBC info used to create Schema
    jdbc.driver=oracle.jdbc.OracleDriver
    jdbc.urlBase=jdbc:oracle:thin:@localhost
    jdbc.port=1521
    jdbc.sid=fypj
    # Information about the default setup for the demo user.
    db.adminUser=system
    db.demoUser=fusion
    db.demoUser.password=oracle
    db.demoUser.tablespace=USERS
    db.demoUser.tempTablespace=TEMP

  • Flash CS6 How to set up pages for an animated app/book for children

    Hi there,
    I'm quite experienced with flash/ middle ground in AS3 for flash player, but would like now to make apps using AIR. I have two questions:
    1 - Could anyone tell me how to create pages for an animated book (such as Alice on the ipad, etc)? 
    • Should I create all pages on the main timeline, in different frames, or should I use a loader for each time the user turns the page? and how to put a "flip" page effect?
    2 - I don't understand how AIR compiles. All the files should be in the library or there is some sort of "root" folder for dynamic download? (for music, pictures, video etc)
    • When you create an app do you put all your objects in the timeline? Instantiate at runtime with ActionScript? how this affects performance?
    Many thanks

    You can't enter sites in a list to make Firefox remember names and passwords for specific sites.
    If the password manager is enabled (remember passwords is check-marked) then Firefox will ask via a pop-up from the key icon that appears on the location bar whether you want to remember that name and password and that name will then appear in the list in the password manager window.
    *http://kb.mozillazine.org/Password_Manager
    *https://support.mozilla.org/kb/make-firefox-remember-usernames-and-passwords
    Websites can use autocomplete=off to prevent Firefox from saving the name and password.<br />
    You can remove autocomplete=off with a bookmarklet to make Firefox save the name and password in such a case.
    *http://kb.mozillazine.org/User_name_and_password_not_remembered

  • How to solve this internal error in exporting?

    Each time I export photos to my hard drive, there's always an error message displayed at the end of exporting shows:
    Does anyone know how to solve this problem? It troubled me for a long time...
    Any reply would be highly appreciated!

    Thanks Dorin and jjm01403!
    I have checked the post-export field and it was blank indeed. The problem no longer occures after I choose the "Do Nothing" option.
    Thanks again for your help!

  • How to solve this snmpwalk issue?

    how to solve this error:
    this is my code for snmpwalk :
    package snmp;
    import java.io.IOException;
    import org.snmp4j.CommunityTarget;
    import org.snmp4j.PDU;
    import org.snmp4j.Snmp;
    import org.snmp4j.TransportMapping;
    import org.snmp4j.mp.SnmpConstants;
    import org.snmp4j.smi.Address;
    import org.snmp4j.smi.Integer32;
    import org.snmp4j.smi.Null;
    import org.snmp4j.smi.OID;
    import org.snmp4j.smi.OctetString;
    import org.snmp4j.smi.UdpAddress;
    import org.snmp4j.smi.VariableBinding;
    import org.snmp4j.transport.DefaultUdpTransportMapping;
    public class SNMPWalk
    // Command line format:
    // java SNMPWalk targetAddress targetOID
    // EX:
    // java SNMPWalk 192.168.76.15/161 1.3.6.1.4.1.517
    public static void main(String[] args)
    Address targetAddress = new UdpAddress("localhost/161");
    OID targetOID = new OID("1.3.6.1.2.1.1.1.0");
    // OID targetOID = new OID("1.3.6.1.4.1.517");
    PDU requestPDU = new PDU();
    requestPDU.add(new VariableBinding(targetOID));
    //requestPDU.setType(PDU.GETNEXT);
    requestPDU.setType(PDU.GETNEXT);
    CommunityTarget target = new CommunityTarget();
    target.setCommunity(new OctetString("demopublic"));
    target.setAddress(targetAddress);
    target.setVersion(SnmpConstants.version2c);
    try
    TransportMapping transport = new DefaultUdpTransportMapping();
    Snmp snmp = new Snmp(transport);
    transport.listen();
    boolean finished = false;
    while (!finished)
    VariableBinding vb = null;
    //line 57 PDU responsePDU = snmp.sendPDU(requestPDU, target);
    if (responsePDU != null)
    vb = responsePDU.get(0);
    if (responsePDU == null)
    System.out.println("responsePDU == null");
    finished = true;
    else if (responsePDU.getErrorStatus() != 0)
    System.out.println("responsePDU.getErrorStatus() != 0");
    System.out.println(responsePDU.getErrorStatusText());
    finished = true;
    else if (vb.getOid() == null)
    System.out.println("vb.getOid() == null");
    finished = true;
    else if (vb.getOid().size() < targetOID.size())
    System.out.println("vb.getOid().size() < targetOID.size()");
    finished = true;
    else if (targetOID.leftMostCompare(targetOID.size(),
    vb.getOid()) != 0)
    System.out.println("targetOID.leftMostCompare() != 0)");
    finished = true;
    else if (Null.isExceptionSyntax(vb.getVariable().getSyntax()))
    System.out.println(
    "Null.isExceptionSyntax(vb.getVariable().getSyntax())");
    finished = true;
    else if (vb.getOid().compareTo(targetOID) <= 0)
    System.out.println("Variable received is not "+
    "lexicographic successor of requested "+
    "one:");
    System.out.println(vb.toString() + " <= "+targetOID);
    finished = true;
    else
    // Dump response.
    System.out.println(vb.toString());
    // Set up the variable binding for the next entry.
    requestPDU.setRequestID(new Integer32(0));
    requestPDU.set(0, vb);
    snmp.close();
    catch (IOException e)
    System.out.println("IOException: "+e);
    line no. 57 as i have indicated.
    the error say: the method sendPDU is undefined for the type snmp
    i have included snmp4j.jar file.
    or atleast can i get snmpwalk example for java to test on eclipse

    This is a clear case of... (*puts on sunglasses*)
    http://www.snmp4j.org/
    RTFM!

  • My Iphone 4S keeps deleting my address book constantly, how to solve this???

    Im just tired of having this issue. I have reqad every thread about it but none helps to solve this problem. I know I can recover the data with Itunes and Icloud but Im just tired of doing so. I want this problem solved. Anyone can give me a real answer on how to solve this???

    Use bluetooth for what.
    It only supports stereo speakers/headsets, handsfree telephone devices, some keyboards, some apps from the app store, and internet tethering if provided by your carrier.
    Outside of these, it does not connect to other phones or computers.

  • Sequencing pages for me is very confusing.

    Sequencing pages for me is very confusing.
    Are there any step by step instructions somewhere that give detailed instructions on how to sequence pages for Indesign in the "correct" order?
    1) Saddle stitch (CD booklet stapled in the middle) This is the kind where the page order gets shuffled and I'm not sure how InDesign wants to "see" the layout of pages so I can let Indesign do the correct page order.
    2) Spiral Bound (no shuffling of page order here, just front and back 1-2, 3-4, 5-6, etc.) This one is easier, so I succeeded in accomplishing it once, but I still had to do a lot of reordering of the pages, for example, whenever I had to "insert" a new page between other pages that were already numbered in the correct sequence.
    I hope that I was clear. Basically, I get very confused if I cannot physically organize a real paper copy of the pages. My goal is to master the Saddle Stitch and stick with that since I dislike anything spiral bound.
    I was told that I should either let the printer people handle page signature (which in my opinuion would severely confuse things) or that maybe, if I want to sequence pages correctly, InDesign has a feature which just automatically sequence the pages. Thanks for any help!

    I'll repond to everybody's post in one big paragraph, lumping everyone together:
    (My InDesign version is CS3)
    Sorry, I meant to say 'imposition' instead of 'signature', and I was using the term 'page order', because even people who use InDesign and know what I'm talking about, they might not be familiar with creating saddle stitch pages. Mike Trout, the link you provided didn't work!
    Mike Gianino, are you saying i must TELL indesign to use reader spreads, and then when i am finished, tell it to organize everything into 'printer speads' automatically? Is that option a one step process found in the InDesign menu? Because even if I do what you say.. I will still have to visually organize the pages in a way that Heather mentioned (numerically, but shuffled) This is where the battle between visual layout and numerical page order can get confusing if you have InDesign doing some work automatically with one click of the button. ("printer speads")
    Now, I realize that it is wise to ask your printer what they need,
    but I plan on doing a lot of this on my own at home at some point. And so, I will have to be "on my own" in regards to not wasting all that precious paper and ink.
    Heather, I;ll check out InBooklet.
    Now, in other words, to clarify what you said..
    if my saddle stitch book was, say 18 pages, instead of 16,
    it would go like this?
    18/1
    2/17
    16/3
    4/15
    14/5
    6/13
    12/7
    8/11
    10/9...??
    For some reason, it looks like my page 10 comes before my page 9!
    Also, if i want to add a cover to those pages, should i
    put it on a separate document? Because it looks like that
    part of the book will not be numbered!

  • How to solve the error while  Deploy a BC4J JSP Application using tomcat,

    hello,
    how to avoid the following error?
    i am using jdevloper for devloping jsp applications.
    after that i am calling the jsp page using tomcat4.0 ,i followed the steps according docs by jdev team,
    i am getting the following error how to solve this,
    can one help?
    =============================
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    org.apache.jasper.compiler.CompileException: /AccountView_Browse.jsp(4,0) Unable to load class oracle.jbo.html.jsp.datatags.ApplicationModuleTag
    at org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:139)
    at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspParseEventListener.java:829)
    at org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventListener.java:153)
    at org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEventListener.java:1039)
    at org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListener.java:221)
    at org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListener.java:216)
    at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:852)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
    at org.apache.jasper.compiler.ParserController.parse(ParserController.java:214)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
    at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
    at java.lang.Thread.run(Thread.java:536)
    ====================
    thanks
    pullareddy

    I had very similar problems with adding the correct JDeveloper .jar files to Tomcat's lib folder, but did eventually resolve my issues.
    The problem I am having now, however, is the following error message:
    Error Message: oracle.jbo.html.RequestParameters.addParameter(Ljava/lang/String;Ljava/lang/String;)V
    Yes, I have deployed the bc4jhtml.jar file from JDeveloper to Tomcat\common\lib!
    My web-app is a very simple BC4J JSP application. I have one BC4J component in its own project and JAR file, and one JSP referencing that BC4J component - I deploy the BC4J JAR along with the WAR file from the JSP project. Needless to say, the JSP works fine within JDeveloper..!
    I'm using JDev 9.0.3 and Tomcat 4.1.12. Does anyone have any suggestions?
    Thanks,
    S.

  • How do i use Connection pool in JSP pages

    Hey everyone,
    I am using a connection pool in my web application. I am using DbConnectionBroker from Javaexchange.com. It has a class that creates a connection pool available for the servlets. I am trying to figure out that how to use connection pool within the JSP pages if I want to connect to the database. In the servlets i am using DBConnectionBroker pool = (DbConnectionBroker) getServletContext().getAttribute("dbPool") to get database connection. How Can i use this in JSP page to get a db connection.
    Thanks

    If the reference to the connection pool is already stored as an ServletContex attribute, try:
    <jsp:useBean id="dbPool" scope="application" class="com.javaexchange.dbConnectionBroker" />
    <%
    Connection con = dbPool.getConnection();
    %>

  • How to solve problem - " Safari cannot open page because it isn't connected to the internet" but the airport is ok. signal full and i have n IP address.

    How to solve problem - " Safari cannot open page because it isn't connected to the internet" but the airport is ok. signal full and i have n IP address. and i m using Macbook pro.
    OS snow leopard and above...

    Do you have this problem with all websites, or only some? If only some, which ones?

  • How we can generate dynamic menu in jsp page

    Hi all,
    how we can generate dynamic menu in jsp page.
    Thanks
    Manjinder

    by reading more about them on the web or in a good book, OR BY HIRING SOMEBODY TO DO SO. ;)

  • HOW to send a value to another jsp page

    HOW to send a value to another jsp page, like user name in one jsp page to another jsp page

    In the most simplest form...
    // pageA.jsp
    <html>
    <body>
    <form action="pageB.jsp" method="post">
    <b>First Name:</b> <input type="text" name="FNAME" value="Joe">
    <input type="submit" value="Submit">
    </form>
    </body>
    </html>
    // pageB.jsp
    <html>
    <body>
    <b>Name:<b> <%=request.getParameter("FNAME")%>
    </body>
    </html>

  • Print Page stopped working, how to solve?

    Dear,
    Print Page stopped working, how to solve?
    Guys anyone knows a material with step by step how to create a page impression?
    I have an application where there is a page printer which generates a PDF but the PDF page rendering is no longer any more field returned from the sql query.
    If someone does not have a material for me incidar no way give me a hand?
    grateful for the attention
    Edited by: goj1 on 07/05/2013 18:34

    Actually what happened was the following:
    There is a page with a report of 4 fields. This field was rendered in a PDF document is blank in shared components -> Reports
    This PDF with 4 fields are used when you want to print the report.
    After an update the application when I try to print the PDF opens blank.
    Work in a government agency and is not how I use PL / PDF.
    Thanks.

Maybe you are looking for

  • Mac Mini and Apple TV.

    I have a Mac Mini bought about 10 months ago.  It is WiFi enabled.  I would like to use Apple TV.  Will I need anything other than an Apple TV unit to connect with the Mac Mini?

  • Relationship of FI AR item and  its Note in J4I3

    Hi Expert, you know on a FI AR document item, a or several Notes could be created by transaction in J4I3.  but it seems that the function in FI AR and Note are not so closed. meaning that if you created a FI AR document, and load into BW already(by 0

  • Everytime I try to copy and paste, Firefox stops responding. Why?

    Ever since I updated to the latest version of Firefox, if I try to copy and paste anything, Firefox stops responding. If I try to paste in another program such as Skype or AIM, that program stops responding too. What can I do to stop this?

  • Mozilla hangs (not responding)message. I have loaded the latest version and still have the same problem, why?

    Firefox hangs (not Responding message) I tried refreshing Firefox. I tried deleting history. I deleted Firefox and reinstalled the latest version which I already had running before and the same problem occurs. It starts hanging after a few minute whe

  • Connect to database over network

    I have a shared drive set up to multiple computers. How do I go about to connect to a database that is on only on of these computers? Can I put something on the shared drive to access? I am just completely lost here. Thanks.