To refresh content of jsp

actulli i wanted to work on bidding web site,and requirement is that i need to refresh data as they changed from different login,updation must be taken place just after 2 sec.so please suggest me how can i do ?
insort my website is functionally working like stock market software
please halp me to do the same

Ajax polling?
Javascript timeout?
m

Similar Messages

  • How to display Arabic content in JSP ?

    Hi all,
    I used the following encoding method to display arabic content in JSP page.
    <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
    I also set -Dfile encoding=ISO-8859-6 in the JVM Options.As a result the arabic data is getting displayed .
    Variable "data" contains the actual arabic data.
    function updateArabicData(data){
    try{
    document.getElementById('divtag').innerHTML=""+data;
    }catch(err){
    <html>
    <body>
    <div id="divtag" lang="ar-sa"></div>
    </body>
    </html>
    But the problem is the arabic data getting displayed in JSP (within the <div>)seems to be jumbled up.The users say that the arabic words within a single sentence are not arranged correctly.They are mixed up.Please help me with a solution.
    Edited by: Alance on May 27, 2010 5:34 AM

    Data is retrieved as follows
    if(msg.getField("GEN_UNICODE_MESSAGE_1")!=null){
    resultString=resultString+"N"+""+new String((byte[])msg.getField("GEN_UNICODE_MESSAGE_1").value.get(0),"ISO-8859-6");
    with content Type set as response.setContentType("text/html;charset=ISO-8859-6");
    ISO-8859-6 -since the data contains arabic news.
    Edited by: Alance on May 27, 2010 11:05 PM

  • To put WML Content  in JSP.?

    hi all....i m working with one mobile application ..in that i want to put my wml content in jsp ....can i put all wml content and tag in jsp ......if yes then could u give me sample for that one so it will be appriciate me....
    regards.....

    The only thing you can watch on AppleTV that ISNT in your iTunes library is photos. Everything else must be there.
    I'm not sure why you remove things from iTunes after syncing with your iPod, but that shouldn't be necessary...
    Your media does not have to "live" on your MBPro hard drive to be in your iTunes library. I highly recommend using an external drive to store everything and just use a "home" and "travel" iTunes library if needed to keep things separate. As it is, I use a single iTunes library and manually sync to my iPhone.

  • Display error message without refreshing the entire jsp

    Hi,
    I want to display the server side error messages in the jsp without refreshing the entire jsp. How can this be achieved?
    I think there is some way with use of AJAX. If yes can you please elaborate on the same as to how to do this.
    Regards,
    Shwetha

    In the project it's presented:
    1) how the servlet can send JSON data depending on the request's parameter
    2) how to obtain this data on the client side and show in on the page using jQuery without refreshing the whole site
    What You need to do is just to send the error (as JSON data) insetad of the values that are passed now and display this error on the page.

  • CF Builder 2 --Zzz Refresh Content (Sleeping) ... frustrating

    What is this "Zzz Refresh Content (Sleeping) in the progress of CF Builder 2? Any time this comes up, it freezes CF Builder.
    This is thing in CF Builder 2 is becoming so frustrating. You can hardly save codes without this thing hanging.

    I get this exact same issue and it's incredibly frustrating, to the point that I may have to switch IDE's.
    To check, Umuayo are you editing files over a network?
    This is how I work - projects held on my local Windows Server 2003 development server (for working on multiple work stations and on the same platform as deployment).
    I suspect that CFBuilder has issues with network editing as I've noticed problems with this since version 1.
    Is there any fix to this? I've turned off just about every option that has been shown to improve performance from various guides.
    Would be really good to resolve this as I don't really want to switch to a different IDE.
    I'm running the latest 2.0.1 with the Java 7 jvm.dll (though had the same issue with the stock JVM and Java 6).

  • Hyperlinked JSP Page does not refresh contents

    I have a very typical problem.
    In my application whenever I call a jsp page using hyperlink without any querystring attached to it the page called does not refresh. However when I press refresh on the browser it does refresh the contents. Basically in this page I am using some session variables to fetch data. So I do not call the page by passing querystring instead set the attributes of session variables and then the page is called as a hyperlink.
    However if I call the same page using submit the values are refreshed.
    Help on this urgently will be appreciated.
    Thanks
    Manish

    Just set 'no-cache' option for the jsp page and test it. It should work. only you need to do is
    response.setDateHeader("Expires",0);
         response.setHeader("Pragma","no-cache");
         if(request.getProtocol().equals("HTTP/1.1")) {
              response.setHeader("Cache-Control","no-cache");
    have fun!!
    ---rajsekhar

  • Can not refresh contents of finder windows

    I can not get my finder windows to refresh their contents. My picture folder is the one that really bothers me. When I am trying to upload pictures to the internet, the picture folder is never accurate. I have tried the refresh finder apple script, restarting the computer, opening and closing the window, nothing seems to work.
    The content is there, when I search for a specific picture file it is there, but it is not located in the right subfolder. I download and manage my pictures on kodak easyshare.

    Hi there,
    The content is there, when I search for a specific picture file it is there, but it is not located in the right subfolder.
    Hmmm, are you saying something is moving them? Or the Finder isn't opening them to the right folder?
    Have you tried this one...
    http://www.versiontracker.com/dyn/moreinfo/macosx/10958253
    Safe Boot, (holding Shift key down at bootup), & use Disk Utility from there to Repair Permissions, reboot once more.
    Then Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions...
    Move this file to the desktop...
    /Users/YourUserName/Library/Preferences/com.apple.finder.plist
    reboot when it completes.

  • How to display a document content in JSP page

    Hi friends,
    I am trying to display a document's content in a JSP page after user authentication.For that I mapped a jsp file with extension .sens in Content Management SDK manager,and put it the file in the directory '/ifs/jsp-bin' of webstarterapp,but it is not working.Down I am giving the code snippet,please help me.I need this to be done fast.
    <HTML>
    <HEAD>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ page import="oracle.j2ee.connector.Login" %>
    <%@ page import="oracle.ifs.adk.filesystem.IfsFileSystem"%>
    <%@ page import="oracle.ifs.adk.http.HttpUtils"%>
    <%@ page import="oracle.ifs.beans.LibrarySession"%>
    <%@ page import="oracle.ifs.beans.DirectoryUser"%>
    <%@ page import="oracle.ifs.beans.PublicObject"%>
    <%@ page import="oracle.ifs.beans.Document"%>
    <%@ page import="java.io.*"%>
    <jsp:useBean id="login" scope="page" class="oracle.j2ee.connector.Login">
    <TITLE>FileExtension.jsp</TITLE>
    </HEAD>
    <BODY BGCOLOR="SILVER">
    <%
    String theDisplay = "initialized";
    String theHidden = "initialized";
    boolean theAdminRights = false;
    try
    login = (Login) request.getSession(true).getValue("IfsHttpLogin");
    LibrarySession ifsSession = login.getSession();
    IfsFileSystem ifsFile = new IfsFileSystem(ifsSession);
    DirectoryUser du = ifsSession.getDirectoryUser();
    String path = HttpUtils.getIfsPathFromJSPRedirect(request) ;
    PublicObject po = ifsFile.findPublicObjectByPath(path);
    if(po instanceof Document)
    Document doc =(Document) po;
    InputStream in= ifsFile.getDocumentContent(doc);
    int i=in.read();
    while(i!=-1)
    out.write(i);
    in.close();
    out.flush();
    out.close();
    theAdminRights = du.isAdminEnabled();
    theDisplay = po.getAttributeByUpperCaseName("DISPLAY").toString();
    theHidden = po.getAttributeByUpperCaseName("HIDDEN").toString();
    catch (Exception e)
    e.printStackTrace();
    %>
    Here is some static content.
    <P>
    The Display Value: <%= theDisplay %>
    <P>
    <%
    if (theAdminRights)
    %>
    The Hidden Value: <%= theHidden %>
    <%
    %>
    </jsp:useBean>
    </BODY>
    </HTML>

    these may help you.
    Google map integration to EBS

  • Steps to refresh content DB

    Hey SharePoint Fam,
    Trying to figure out easiest way to refresh main content DB every 5 months.  Have QA & Staging environment that I'd like to refresh prod content db quarterly but not sure of correct process/steps to take in sql studio.  Do i need to detach/dismount
    source DB before i do anything else first?
    Below are my steps but I think I am doing something wrong due to DB's needing to be seperated from farm 
    My Steps:
    1) Copy previous day backup Prod SQL ContentDB to targeted SQL machine
    2) Detach DB from both sites
    3) Then do restore using SQL Server Management Restore Option From Device and point to file that was copied over from prod
    4) Double check the file and log locations under restore the database files and then click ok
    5) Once it completes run the Dismount-SPContentDatabse "DBNameHere"
    6) then run Mount-SPContenetDatabase "DBNameHere" -DatabaseServer "DBServerHere" -WebApplication http://sitename
    Thanks N Advance

    Hi,
    Thanks for posting your query, Kindly browse the below mentioned URL to Refresh development and test environment databases with production database
    https://gallery.technet.microsoft.com/Refresh-development-and-9c088a18
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Display request contents in JSP page

    i need to display the contents in a request in my JSP.
    meaning:
    i have a hashmap (containing string and a list) coming from the EJB tier to struts action in an event response object, I'm sure that the request has these values. cuz i tested it in struts action using the following code:
    HashMap result = (HashMap)((EventResponseSupport)request.getAttribute(WebKeys.EVENT_RESPONSE)).getPayload();
    System.out.println("Sponsor name = " + result.get("sponsor"));I am able to print it in the console but i need to know how to display it in the jsp. i tried many things but i can't get it right.
    first i need to display the string and then i need to iterate through the list to display its contents in a table.
    any help would be appreciated.

    Kindly use JSP Scriplet to load the HashMap into the Page Context.
    Then you can use the Struts iterate tags to paint the contents of the HashMap

  • Refreshing contents of ALV grid

    I am displaying 2 ALV grids in a splitter container on screen 100. There is an option for refresh on this screen to refresh the entries in both the grids (if any change). This refresh works fine using method REFRESH_TABLE_DISPLAY for both top and bottom grid contents.
    After processing the contents in screen 100, the user can navigate to screen 200 to view results of the current run. This screen also holds an ALV grid display of results on a custom container. When returning to screen 100 from 200, the results in top grid of screen 100 are fixed. The refresh option now only works with the grid on bottom container and not the top. I have tried using both REFRESH_TABLE_DISPLAY and SET_TABLE_FOR_FIRST_DISPLAY options and neither worked.
    How do I refresh the ALV to use the contents from the new dataset?
    Regards,
    Suri.

    Are you used refresh in PBO of 100 ?
    Like
        call method g_grid->refresh_table_display.   " Top grid
        call method g_grid1->refresh_table_display. " bottom grid

  • Cannot pass content to JSP in JSPDynpro

    Hi everyone:
    I have an issue. I use nw developer studio wizard to create a JSPDynpro. But it seems JSP cannot get bean's value by useBean tag. Please give me some advice. I will reward the reply. thanks
    The source is below:
    package Exercise2;
    import Exercise2.AddressBean;
    import com.sapportals.htmlb.*;
    import com.sapportals.htmlb.enum.*;
    import com.sapportals.htmlb.event.*;
    import com.sapportals.htmlb.page.*;
    import com.sapportals.portal.htmlb.page.*;
    import com.sapportals.portal.prt.component.*;
    public class addresslist extends PageProcessorComponent {
      public DynPage getPage(){
        return new addresslistDynPage();
      public static class addresslistDynPage extends JSPDynPage{
        private AddressBean addrBean = null;
        public void doInitialization(){
          IPortalComponentProfile profile = ((IPortalComponentRequest)getRequest()).getComponentContext().getProfile();
          Object o = profile.getValue("addrBean");
          if(o==null || !(o instanceof AddressBean)){
            addrBean = new AddressBean();
            profile.putValue("addrBean",addrBean);
          } else {
              addrBean = (AddressBean) o;
          // fill your bean with data here...
          addrBean.setLocation("Home");
        public void doProcessAfterInput() throws PageException {
        public void doProcessBeforeOutput() throws PageException {
          this.setJspName("chooselocation.jsp");
    Bean:
    package Exercise2;
    import java.io.Serializable;
    public class AddressBean implements Serializable {
         public String location;
    @return
         public String getLocation()
              return location;
    @param string
         public void setLocation(String string)
              location = string;
    JSP:
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <jsp:useBean id="addrBean" scope="application" class="Exercise2.AddressBean" />
    <hbj:content id="myContext" >
      <hbj:page title="PageTitle">
       <hbj:form id="myFormId" >
          <hbj:textView id="Location" text="<%=addrBean.getLocation()%>"/>
       </hbj:form>
      </hbj:page>
    </hbj:content>
    portalapp.xml:
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
      </application-config>
      <components>
        <component name="addresslist">
          <component-config>
            <property name="ClassName" value="Exercise2.addresslist"/>
            <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="pagelet/chooselocation.jsp"/>
          </component-config>
          <component-profile>
         <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
      </components>
      <services/>
    </application>

    Hi.
    U need to remove the following line from the portalapps.xml .
    <property name="ComponentType" value="jspnative"/>
    <property name="JSP" value="pagelet/chooselocation.jsp"/>
    I think now u r problem will
    be solved .... as using the above
    line the page on submisson didn't
    move to the controller <b>"addresslist"</b>
    and it was directed to the jsp page.
    And therfore on the romoving the above
    line from the portal apps.xml will
    direct the page on submission
    to the controller.
    If the suggestion is helpful please reward with points.
    Thanks
    ritu
    Message was edited by:
            Ritushree Saha

  • Displaying content in JSP page, want BR but not other Html tags

    I have a page and am reading files and displaying the contents of the files onto the page in a <div> Oneissue is that in the file the end of line are \n or \r\n whichever operation system. I replaced those with <BR> no problem. Now my issue is that I display that in the JSP page:
    <c:out value="${filecontents}" escapeXml="false" />I use escapeXml so that <BR> will add the line breaks. Now my issue is that the file might contains other HTML tags that I want to display simply as text - I don't want the browser to render the other HTML tags.
    Is there a way to do that? Would I have to replace HTML tags with something special?

    Hmm... your file contains HTML tags, but you don't want the browser to interpret them as HTML tags, right? So the way to do that is to use escapeXml="true" in your c:out element.
    But then that also escapes the <BR> tags that you carefully put in there. And you don't want that. You want the browser to interpret those as HTML tags.
    I guess you can't have it both ways. Can you do something like outputting one line of the file at a time with <c:out ... escapeXml="true"> followed by <br>?

  • Show file content in jsp

    i want to get an xml file and give the client user.maybe in the jsp i write the XML content to notepad.But i don't know how can i open notepad and write the content to it.
    pls tell me the the right way! thanks a lot a lot!

    Why don't you use Java Script to reference the xml file and open it in a new window from your JSP?
    String browserFilePath = request.getContextPath() + "/some_directory/myfile.xml";
    then in your jsp
    <% if (...???) { %>
    <Script>window.open('<%=browserFilePath%>')</Script>
    {% } %>

  • Content in Jsp to be converted to Word Doc

    I have .jsp page. with some generated content. In that page, there is an option Convert to Word DOC PAGE. When the link is clicked , the content in the JSP page has to be converted to a Word Doc. How to do?

    <%@ page language="java" %>
    <%@ page import="java.util.*" %>
    <%@ page import = "java.io.*" %>
    <HTML>
    <HEAD>
    <script language="JavaScript">
    var fso = new ActiveXObject('Scripting.FileSystemObject');
    var wdApp = new ActiveXObject("Word.Application");
    function readFromFile(fileName)
         if (fileName == "C:\\Award_Ltr.TXT")
    var fs = fso.OpenTextFile(fileName);
    var result = fs.ReadAll();
    return result;
    function readFromWord()
    alert("PLEASE SAVE THE FILE AS C:\PPY Letter for Annuities to Retirees and Alternate Payees wi_temp.doc");
    var pause = 0;
    var wdDialogFileOpen = 80;
    var wdApp = new ActiveXObject("Word.Application");
    var dialog = wdApp.Dialogs(wdDialogFileOpen);
    var button = dialog.Show(pause);
    </SCRIPT>
    </HEAD>
    <BODY>
    <FORM NAME="formName">
    <INPUT TYPE="file" NAME="fileName">
    <INPUT TYPE="button" VALUE="show"
    ONCLICK="this.form.fileContent.value = readFromFile(this.form.fileName.value)">
    <BR>
    <TEXTAREA NAME="fileContent" ROWS="20" COLS="90" WRAP="off"></TEXTAREA>
    <BR>
    <INPUT TYPE="button" VALUE="SaveExtract" >
    <BR>
    <INPUT TYPE="button" VALUE="Modify Template" onClick = "readFromWord()">
    </FORM>
    </BODY>
    </HTML>

Maybe you are looking for

  • Logistics and CO-PA

    what is the difference between logistic extraction and CO-PA extraction with an example plz? Edited by: merugu arun on Feb 27, 2008 9:48 AM

  • Ringer/Silent Timeset?? New Feature Suggestion!!

    Can Apple come up with a way of automatically switching the phone back to RING from SILENT Mode on specific time? That would be awesome!!

  • Tab page is missing

    Hi, I m planing to show the Pharmaceutical tab page on creation of bp role which is avaiable in screens PHA010 (Pharmaceuticals) . In that Pharmaceuticals tab I want to bring Views like PHA101 to PHA301 and all the sections and fields are assigned to

  • [ANN] Changes in the Java Newsletter subscription process

    We have changed the mechanism for subscribing to the Monthly Java Newsletter - if you want to keep (or start) getting this monthly Java newsletter please follow these instructions: http://www.oracle.com/technology/products/jdev/java_newsletter.html F

  • Adding text (editing) while using Adobe on an iPad

    Can I make Adobe allow me to edit or add text while doing so on my iPad? I cannot figure it out yet, my laptop is easy to do this with.