How 2 make a function that gets a value from DB without reloading?

Hi every1,
I'm facing this problem where I have to get a value (which always change) from database through a button function which is in Java scriplet.
Now the scriplets (codes within <% and %>) contain calls to the database which get the value, but this is only done when the page loads. So everytime I neeed to get the latest value, I need to reload the code. Is there a way around this?
Thanks!
Regards,
Venus

Add a meta refresh header to let the page refresh itself at certain intervals.
<meta http-equiv="refresh" content="10">This will refresh the current page every 10 seconds.
By the way, Java code belongs in Java classes, not in JSP files. Avoid scriptlets as much as possible. In this case use a Servlet and a DAO.

Similar Messages

  • How to make a functions that gets called when the plug in is loaded?

    I'm making an automate plugin, and I want to make a functiosn that gets called when Photoshop loads my plugin. It doen't matter if my plug is never called fro the File->Automate menu. Is there any way to do this? Thank you.
    Daniel

    Hi There,
    I don't believe there is a way to handle this currently within App-V...Other virtualization products do have the ability to exclude processes and force to run outside or the bubble or exclude them from terminating on shutdown.
    It would be a great feature request for a future release. You can easily request it here:
    http://appv.uservoice.com/forums/280448-microsoft-application-virtualization
    PLEASE MARK ANY ANSWERS TO HELP OTHERS Blog:
    rorymon.com Twitter: @Rorymon

  • How to make labview program to get average value of 200 reading from multimeter (by using loop)

    Hello
    How to make labview program to get average value of 200 reading from multimeter (I using using loop) to read voltage from mulmeter  but I like to get average value of all of 200 reding how can I do that?
    Thanks
    Wee
    Solved!
    Go to Solution.

    Another idea with less programming - take advantage of the "free" array that comes with a Chart - i.e. the  History Data.
    1) Wire your DMM data to a Chart. (You can set the chart to invisible if you don't plan on using it in the GUI).
    2) Set the Chart History Length to 200 (right click on the chart, click on Chart History Length...)
    3) On the block diagram, use the History Data Property Node, wire it to Mean.vi, and you're done.
    Easiest running average ever.
    Message Edited by Broken Arrow on 04-07-2010 11:36 AM
    Richard
    Attachments:
    EasyAvg.jpg ‏8 KB

  • How to call c functions that expects c structs from java program?

    i need to call from my java program to c functions that get
    c structs as a parameters in their prototype.
    as you probablly know java is not working with structs (classes only), so my question is how can i do it , i mean call the c functions that gets structs as parameters form java????

    i believe your c function can accept a jobject and then inside your c function you have to translate that jobject into a c struct by using the jni methods.
    the only reason your c function cant accept structs from java is because java does not have such structures. your c function can accept any data type that has been defined and a jobject has been defined.
    if you have no control over the c functions that are being called, you need to write a wrapper function for those c function. the wrapper functions do the translation from jobject to a struct...then call the c other c functions.

  • How to make A4 Flyer that folds in half from A3 Sized paper On Indesign

    I need to makes a a4 flyer that flds in half from a3 .
    Can someone send me through a step by step how to do this please
    Thank you

    If I am understanding what you are wanting to do, create an A3 size page, put any guidelines on it that you may need. Create two pages (assuming it is two-sided). Use one of the pages as the outside, one of the pages for the inside.
    For the outside (the "cover"), typically the right-hand side is the side one sees first, the left-hand side being the back.
    Communicate with the printer (the print service that is) about it being a folded job.
    Mike

  • How to make validation in Bean and select value from another table

    I want to know how to select data from table in backing bean according to primary key i have
    the problem is that
    i have a table Employee_Salary contains Employee ids and their salary
    Empoloyee_Salary table
         Employee_ID      Number
         Employee_salary Number
    And Another table Called Employees
    Employees table
         Employee_ID     Number
         IsManager Varchar2 its value is [*Yes or NO*]
    and other columns that i don't care about this table
    i have on a jsff page an <af:table> this table is editable this is the Empoloyee_Salary table
    *i want to check before save or after insert if this employee is Manager [from Employees tabke(yes or no)] the salary*
    cannot be less that 100
    i want to know how to make this how to select the value from employees table according to the id i have in the employee_salary table how to make this and make this validation
    i have to select IsManager from Employees Table to see if this manager or no
    i want to know how to make this in a bean
    i use jdeveloper 11g
    and my project is ADF Fusion project
    and the page that have the Emplpyee_Salary table is JSFF
    thanks in advance

    You might want to write this code in a validator on the entity object if it should apply from every screen.
    If you want to access view objects from a backing bean the basics are here: http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/bcservices.htm#sthref918

  • CE function to get distinct values from Column table

    Hi All,
    Could you please let me know the appropriate CE function to get the distinct values from column table.
    IT_WORK = SELECT DISTINCT AUFNR FROM :IT_WO_DETAILS;
    Thank you.

    Hi,
    If you have 10g, you can use Model( with model performance is better than connect by )
    Solution
    ========================================================================
    WITH t AS
    (SELECT '0989.726332, 1234.567432, 3453.736379, 3453.736379, 0989.726332, 3453.736379, 1234.567432, 1234.567432, 0989.726332'
    txt
    FROM DUAL)
    SELECT DISTINCT TRIM(CHAINE)
    FROM T
    MODEL
    RETURN UPDATED ROWS
    DIMENSION BY (0 POSITION)
    MEASURES (CAST( ' ' AS VARCHAR2(50)) AS CHAINE ,txt ,LENGTH(REGEXP_REPLACE(txt,'[^,]+',''))+1 NB_MOT)
    RULES
    (CHAINE[FOR POSITION FROM  1 TO NVL(NB_MOT[0],1) INCREMENT 1] =
    CASE WHEN NB_MOT[0] IS NULL THEN TXT[0] ELSE REGEXP_SUBSTR(txt[0],'[^,]+',1,CV(POSITION)) END );
    =========================================================================
    Demo
    =======================================================================
    SQL> WITH t AS
    2 (SELECT '0989.726332, 1234.567432, 3453.736379, 3453.736379, 0989.726332, 3453.736379, 123
    4.567432, 1234.567432, 0989.726332'
    3 txt
    4 FROM DUAL)
    5 SELECT DISTINCT TRIM(CHAINE)
    6 FROM T
    7 MODEL
    8 RETURN UPDATED ROWS
    9 DIMENSION BY (0 POSITION)
    10 MEASURES (CAST( ' ' AS VARCHAR2(50)) AS CHAINE ,txt ,LENGTH(REGEXP_REPLACE(txt,'[^,]+',''))+1 NB_MOT)
    11 RULES
    12 (CHAINE[FOR POSITION FROM  1 TO NVL(NB_MOT[0],1) INCREMENT 1] =
    13 CASE WHEN NB_MOT[0] IS NULL THEN TXT[0] ELSE REGEXP_SUBSTR(txt[0],'[^,]+',1,CV(POSITION)) END );
    TRIM(CHAINE)
    3453.736379
    1234.567432
    0989.726332
    SQL>
    ========================================================================

  • How to make a cell that recognized the second from last?

    Two tables. First is data and second refers to the second to last column of the first which is always changing. The first table is a weekly table so it is constantly expanding. On that first table has a number that changes with it. I want the second table to show that changing number.
    mon
    tue
    wed
    1
    1
    2
    1
    2
    4
    ^ this is table one for week 1. my second table wants C3 to show on its table because it is a total.
    However, by next week i will have added a new week onto this one
    mon
    tue
    wed
    mon
    tue
    wed
    1
    1
    2
    2
    2
    1
    1
    2
    4
    6
    8
    9
    since i have added, table 2 will still be showing C3 since i, at the time, set it to show the, then current, total.
    Is there a way to make table two always refer to the the last column of the 3 row?

    Hi gaksdd,
    I am feeling bad. I am afraid that your spreadsheet will be ungainly and cranky and hard to update in the future. I want to say this much at least: Numbers tends to work best when the tables are longer than they are wide. I don't expect you to have this problem but while tables can have potentially thousands of lines they cannot have more than 256 columns. Many things will tend to work better if you orient your tables this way. As you are just beginning it makes sense to develop good habits and start thinking more like the program designers expect. It will pay off. If you ever decide to use iOS forms for data input they are designed to input data one row at a time. If you are inputing more than 1 number a day it would make sense to reorient your data table so the weeks run down the page.
    INDEX(range,row-index,column-index,area-index)
    You have specified a range.Then the first comma.
    row-index is where you specify a row. In my example it was "2" for the second row in the range. This is where you would use ROWS(), before the second comma.
    column-index is where I used COLUMN(). then the third comma.
    We don't need area-index.
    I get a certain pleasure in pushing this program in unusual ways and this certainly qualifies. It is not a best practice.
    When you have your formula working, compare it to
    =SUM(Table One::2:2)÷2 or the variation needed for your table. This way of working makes your report table more reliable.
    Simpler is more robust, less likely to bite you in the butt down the line.
    quinn

  • How to get minimal value from children with skip missing values?

    Hi,I would like to get minimum value from children, but I would like to skip missing.Minimal value from children works fine (see following formula):@MIN(@CHILDREN("member_name"));Minimal value with skip missing (see following formula) returns error:@MINSRANGE(SKIPMISSING,@CHILDREN("member_name"));Error message: "This function must be a macro".Question: How can I write a formule to get minimal value from children without missing values.What is a macro and how can I write it? If possible I would like to write formule instread of macro!Thanks,Grofaty

    Hi,I have found out solution:@MINS(SKIPMISSING,@CHILDREN "member_name")); No more help is needed.Thanks,Grofaty

  • How to make a JScrollPane not getting Focus?

    How to make a JScrollPane not getting Focus?
    When i tab out from a textfield inside a scroll pane focus is going to ScrollPane .And if i press tab once more then only focus is going to other textField which is outside the scrollpane.
    For me when i press tab from a text field inside a scrollPane ,i should go to textfield out side the scroll pane.
    satish

    Hi,
    I've the same problem, that I have to double click on tab
    to step from a textfield with a scrollpane to the next textfield in my panel.
    I tried to implement a FocusListener on my JScrollPane, but without success.
    Can you tell me in detail how to implement this listener ?
    Kind regards
    Andy Kanzlers

  • I have a modem and a separate router in a part of my house that gets poor reception from the modem.My iPad won't connect to the auxillary router like my laptop does with ease. How do I get the iPad to connect?

    I have a modem, and a separate (hard wired from modem) router in a part of my house that gets poor reception from the modem.My iPad won't connect to the auxillary router like my laptop does with ease. How do I get the iPad to connect? It does see the router in my wi-fi connections list - just won't connect. !

    This article will provide a troubleshooting framework.
    http://support.apple.com/kb/TS1398

  • How to make a function return number(10,0) data type (ORACLE 10g)?

    With 10g, how to make a function return number(10,0) data type?
    here is the function, it returns a number type :
    create or replace FUNCTION Get_portfolio_Id3 (p_HistObjTable In Varchar2,p_LHISTOBJID IN NUMBER) RETURN view_cpu_STD_Asset.LPORTFOLIOITEMID%Type IS
    v_Id view_cpu_STD_Asset.LPORTFOLIOITEMID%Type;
    BEGIN
    If p_HistObjTable ='amPortfolio'
    then v_Id:=p_LHISTOBJID ;
    elsIf p_HistObjTable = 'amComputer' then
    select litemid into v_Id from smcdba.amComputer c where c.LCOMPUTERID=p_LHISTOBJID ;
    else v_Id:=-99;
    End If;
    RETURN v_Id;
    END Get_portfolio_Id3;
    Thanks.
    Message was edited by:
    user631701

    create or replace FUNCTION Get_portfolio_Id3 (p_HistObjTable In Varchar2,p_LHISTOBJID IN NUMBER) RETURN view_cpu_STD_Asset.LPORTFOLIOITEMID%Type IS
    v_Id view_cpu_STD_Asset.LPORTFOLIOITEMID%Type;
    BEGIN
    If p_HistObjTable ='amPortfolio'
    then v_Id:=p_LHISTOBJID ;
    elsIf p_HistObjTable = 'amComputer' then
    select litemid into v_Id from smcdba.amComputer c where c.LCOMPUTERID=p_LHISTOBJID ;
    else v_Id:=-99;
    End If;
    RETURN round(v_Id);
    END Get_portfolio_Id3;

  • Can someone tell me how to make the letters that look like fabric?

    Can someone tell me how to make the letters that look like fabric?

    pharrout wrote:
    Can someone tell me how to make the letters that look like fabric?
    It could be as simple as clipping an image of the fabric of your choice, to a text layer.
    In this example the Hessian texture was downloaded from Google images, and placed over a Type layer.  You then Alt (Opt) click the intersection of the Type and Hessian layer to clip them together.  This just means that only the shape of the underlying layer will show in the clipped layer.

  • How to make a function in separate thread

    i need to make a function that is running in a separate thread
    Thank's in advance

    Thank's
    but in my program i have a main class which is a server it runs forever.
    from the main class when i call a function it runs in a separate thread and returns the result to the callee and the main function continue it's work
    class server
    //this function when called must be in separate thread
    public int function(int x)
    //there could be wait here or sleep
    return x*2;
    public static void main(String[] args)
    // Run RMI server
    i hope u understand me!!!
    Thank's

  • How to make pics visible that was received through mobil/PC/Bluetooth?

    Does anyone know how to make pics visble, that has been recieved through emails/mobil/PC/Bluetooth to Mac or vs?
    I am able to see some pics, but some again I am not able to see in anyway, and these are standard pics taken from typically commercially available cameras, and some pics are too small to be useful. But than other they are that well to be used in many ways!
    Anyone faced similar issues?

    Hello @_goma,
    Welcome to the HP Forums, I hope you enjoy your experience! 
    I have read your post on how you are looking to make your computer send all the audio through an optical audio cable instead of the headphone jack, and I would be happy to assist you in this matter!
    To configure your desktop to enable the optical audio cable, I recommend following the steps below:
    Step 1. Click the Windows Key Button on your desktop
    Step 2. Type "Control Panel"
    Step 3. Select "Control Panel" in the top right-hand corner
    Step 4. Select Sound
    Step 5. Under the Playback tab, right-click the white area below the devices available
    Step 6. Select "Show Disabled" and "Show Disconnected Devices"
    Step 7. Connect your Optical Audio Cable
    Step 8. Select your Optical Audio Cable as the default device and click "Enable"
    Since it is not possible to convert the HDMI out to audio out on your notebook computer, it is unfortunate that the notebook is not able to connect with an optical audio cord.
    Please re-post with the results of your troubleshooting, and I look forward to your reply!
    Regards
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

Maybe you are looking for

  • My ipad doesn't want to connect to my computer.. Help.!!!

    When i try to add some music to my ipad, i can't. My computer Sees my ipad as an digital camera, i can only see my fotos. Please help:)

  • Do I need to manually back up my iphone photos if I have auto downloads already set up in iphoto?

    I'm a relatively new iPhone user. I don't take a ton of photos, but the ones I take are important to me. I've been trying to make sure that photos I take with my phone are backed up and in iPhoto. I have a few questions regarding how it all works. 1)

  • Error while trying to access shopping cart

    When trying to add songs to my cart, I keep receiving this message: We could not complete your iTunes request. There is not enough memoryavailable. What does this mean? How do I correct this? Thanks.

  • BT Cloud - such slow uploads

    I recently upgraded to unlimited BB, partly because I wanted 50GB on BT Cloud. However it has taken literally weeks to upload about 20GB of files. I think this is just because uploads are very slow on regular broadband. Perhaps they are faster with f

  • Updating base table with Materialized View's data

    Hi, In order to update base table with MVs data, I am trying real time data transfer between two databases. One is Oracle 8i and other is Oracle 9i. I have created an updatable MV in 9i on a base table using database link. The base table is in 8i. Ma