How can I put a value in Request or session?

hi,
I have the following code in the hash table for storing the date in an Action Class.
*ht.put("date", new Timestamp(new Date().getTime()));*and I want to retrieve this date after 10 days. Shall i put the value in Session or Request for retrieving the date? and what code do i need for writing it in the Action class as well as the JSP? Can any1 please help me in this?
Thanks.
Priti.
Edited by: ferrari on Feb 20, 2008 10:30 PM

If you need tos tore information for 10 days you should not store it in you webcontainer. Write it to a DB

Similar Messages

  • How can i get the value stored in the session object using its sessionid

    how can i get the value stored in the session object using its sessionid by running stand alone java application

    myforum wrote:
    how can i get the value stored in the session object using its sessionid by running stand alone java applicationThis does not seem to make sense! You need at least to give a lot more detail of what you are doing.

  • How can i put the values of the position of a pixel in an array ?

    Hello. I wanted to know if someone can help me with my problem. In fact i have to make an image treatment. For this i put my immage in an array and i work in this array thanks to two For loops. I wanted to know which pixel is white and which one is grey so i made a software and this works very well but know i would like to put the value of X and Y of each white pixel. unfortunately i don t know how to use Labview very well. So i tought about a system based on a conditional loop who put the value of X and Y in two 1D arrays. But i am not able to achieve it. This is what i tried but i don t know how to achieve it. If you guy or girls have solutions to my problem or an other way to do it go on ^^.
    Thanks every one.
    Attachments:
    Untitled.png ‏15 KB

    I am sure you can adapt one of the two solutions shown here.
    LabVIEW Champion . Do more with less code and in less time .

  • How can i put the value of a variable in an SQL statement?

    Hi,
    Can someone please tell me how i can use a variable as part of an sql statement.
    So instead of "SELECT * FROM tablename WHERE username='john'"
    I can put in "SELECT * FROM tablename WHERE username.text"

    What would happen if someone entered "(delete *
    from tablename)" into the username field?The SELECT would fail and the DELETE
    would never run.
    Or am I missing something?Ok, that wasn't valid SQL, so lets change it into valid SQL. What would this do
    "SELECT * FROM tablename WHERE username=" + user
    where user is "blah;DROP TABLE tablename;"
    The SQL would become
    SELECT * FROM tablename WHERE username=blah;DROP TABLE tablename;
    And that would select, and then drop the table
    Kaj
    Message was edited by:
    kajbj

  • How can I pass a value into a page fragment?

    How can I pass a value into a page fragment?
    I am implementing four search screens. And the only thing different about them will be their backing bean.
    So I’d like to do something like have four pages, each which retrieves its appropriate backing bean, sets that bean to a variable, and then includes a page fragment which contains the generic search page code (which will make use of that variable).
    The code in the four pages would be something like this:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:c="http://java.sun.com/jsp/jstl/core">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <c:set var="searchPageBackingBean"
    value="#{pageFlowScope.employeeSearchPageBean}"
    scope="page"/>
    <jsp:include page="./SearchPageBody.jsff"/>
    </jsp:root>
    At this point, what I’m seeing is that the fragment page, SearchPageBody.jsff, has no visibility of the searchPageBackingBean variable, either referencing it as #{pageFlowScope.searchPageBackingBean} or just #{searchPageBackingBean}

    The following will work, assuming you are needing to access a managed bean:
    Put this in the parent page:
    <c:set var="nameOfSearchPageBackingBean"
    value="employeeSearchPageBean"
    scope="request"/>
    Put this in the child, SearchPageBody.jsff:
    <c:set var="searchPageBean"
    value="#{pageFlowScope[nameOfSearchPageBackingBean]}"
    scope="page"/>

  • How can I get approver of a request in request based provisioning

    How can I get the approver of a request in Request Based Provisioning if the request is assigned to a group of user.
    I need to get the actual approver (the one who logged in and approved amongst the approver group ) while the provisioning process gets executed.
    Also,
    as provisioning is triggered , can i put some value into a feild of the obj/process form.
    Thanks

    You can see the OSI table..
    Also you can see Request History API.

  • How can I put a parenthesis around the number?

    Hi expert people!!!
    One question:  How can I put a parenthesis around the number because I have this
    write:   /123 t_bsid-pago1, 141 t_bsid-pago2,
              157 t_bsid-pago3, 175 t_bsid-pago4,
              193 t_bsid-pago5.
    and if I put the parenthesis hardcoded like this:
    write:   /123 '(', t_bsid-pago1,')'.
    when the variable are printed the parenthesis is write very separated from the amount.
    I know that maybe I can use the CONDENSE or CONCATENATE statement but for that I need to create a variable type N, or STRING and if I do that I don't know how can I put the decimals points back.
    Thanks!!

    Hi Carlos,
    Try this:
    REPORT  ZTESTRAJ.
    data: v_val(10) type p decimals 2 value '123456.75',
          v_text type string.
    start-of-selection.
      write:/ v_val.
      v_text = v_val.
      concatenate '(' v_text ')' into v_text.
      condense v_text no-gaps.
      write:/ v_text.
    <b>Output:</b>
    test program...      
    123,456.75 
    <b>(123456.75)</b>          
    Regards,
    Raj
    Message was edited by: Rajasekhar Dinavahi

  • How can we get the value of the key field in a custom data model using governance API?

    Dear Team,
    How can we get the value of the key field in a custom data model, to be used for manipulation of the change request fields using governance API?
    Any kind of help would be sincerely appreciated.
    Thanks & Regards,
    Tushar.

    Hi Michael,
    Thanks for direction. Let me give more context on this as I'm interested to get more details..One of the issue was to read cross entity field values on UI based on user action and set other entity field behaviour...It is similar to what is being posted here.
    For ex: Reading MTART from Basic Data UIBB in MM MDG UI and set the field properties in some other custom entities say ZZETEST. This cannot be done using UI BADI as it only supports single entity at a time and not cross entity. So alternatively we found a solution where we can enhance existing PLMB feederclass cl_mdg_bs_mat_feeder_form by reading the model and the entity as needed as it it proved that it supports cross entity UI field behaviours and so business requirements.
    This is a workaround for now.
    So the question is How do we achive it using governance API for cross entity field behiaviours.?or what is the right way doing this.
    Can we do that using governance API and its' methods?
    In the Governance API doc you provided below has referring to below external model as part of gevernance API.
    The active or inactive data (before or during the derivation or the check) can be read
    with the external data model interface IF_USMD_MODEL_EXT with the method READ_CHAR_VALUE and
    the corresponding READ_MODE parameter. To avoid unnecessary flushes (derivations), the NO_FLUSH
    parameter should b
    e set to ‘X’.
    Thanks
    Praveen

  • How can we show selected values of a tree in a selectmanylistbox

    how can we show selected values of a tree in a selectmanylistbox??

    Hi,
    you can use a reference to a RichTree component instance and call  getSelectedRowKeys on it. The selected rowKey then allow you to look-uo the nodes in the tree. You can use a custom selection listener on the tree to be notified about each selection. There also is an API for the de-selected row keys, which you need to remove nodes from the select many list. The select many list will get its data from a managed bean in view scope (so the values survive subsequent requests)
    Frank

  • How can I put an image of a painting centered on to a blank 4x6 postcard?

    How can I put an image of a painting centered on to a blank 4x6 postcard?

    moopartist wrote:
    How can I put an image of a painting centered on to a blank 4x6 postcard?
    Go to File>new>blank file. Enter the dimensions, background color to suit. For resolution, it's best to have the same value as that of the image. For printing, it is desirable to have the resolution in the 240-300px/in range, although I have printed below this range.
    Open the file with the painting. Use one of the selection tools, e.g. selection brush, lasso tool, and select the image.
    Go to Edit>copy
    Open the blank file
    Go to Edit>paste. The selection will come in on its own layer
    Use the move tool to position, and, to resize (if necessary) with the corner handles of the bounding box.

  • HT1918 I have 0.31 $ balance in my account and I want to change my country of my account. how can I put the credit balance to 0?

    I have 0.31 $ balance in my account and I want to change my country of my account. how can I put the credit balance to 0?

    Click here and request assistance.
    (71876)

  • How can add some suggested value to a propert on a Declarative Component,

    how can add some suggested value to a propert on a Declarative Component?

    kenyatta,
    Where you want to add the value ?
    If you want put some UIComponent(Value) to your declarative Component than follow my blog ( http://jneelmani.blogspot.com/2009/02/11g-how-to-create-declarative-component.html ) and add your value in STEP-5.
    You can watch live-demo at http://www.oracle.com/technology/products/jdev/viewlets/viewlet.html
    --Neelmani Jaiswal
    Edited by: Neelmani Jaiswal on Mar 23, 2009 11:11 AM

  • How can i get all values from jtable with out selecting?

    i have one input table and two output tables (name it as output1, output2). Selected rows from input table are displayed in output1 table. The data in output1 table is temporary(means the dat wont store in database just for display purpose).
    Actually what i want is how can i get all values from output1 table to output2 table with out selecting the data in output1 table?
    thanks in advance.
    raja

    You could set the table's data model to be the same:
    output2.setModel( output1.getModel() );

  • How can i put apps from one ipod to a new ipod?

    how can i put apps from one ipod to a new ipod?

    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device

  • How can I pass field value betwen view in ICWC?

    Hi experts,
    I am new to this BSP programming. I have some requirements to modify standard ICWC in CRM 5.0
    Hope can get some advices and helps here.
    I have added a new field called <status> to context note SEARCHCUSTOMER in BupaSearchB2B view and also the same field name to context note CUSTOMER in BupaCreate view.
    I have added the field into both the HTM views and able to execute thru WebClient. However, I have one problem in passing the <status> value from BupaSearchB2B view  to the BupaCreate view when I click on the 'create' button.
    I do search and saw this thread How can I pass field value beetwen view in IC Web Client? , but i cant figure out how it works.
    Do I need to create the field <status> to context note CUSTOMER in BupaSearchB2B? Currently the context note does not have any attributes.
    Really appreciate for any help.
    Edited by: mervyn tay on Apr 7, 2009 11:42 AM

    solved by myself...
    code in the CREATE_ACCOUNT method.
            ev_entity->set_property( iv_attr_name = 'ZZICNO'
                                     iv_value = lv_icnum1 ).

Maybe you are looking for