Scope of  Presentaion variable in DBPrompt?

Hi All,
If i have dbprompt with "colA" assigned Presentation variable "prsn_a" . on the same db i have master report which i can drill to detail level.
master and details reports have filter on colA prompted. If i click on master report i am unable to see any data on details report.
i.e the value i chose at master level for colA is not propagated to detail report. Can you people tell me work around for this.?
Please ask me if i am unable to convey my problem clearly.
Thanks
user642877

To answer the implied question in your title "Scope of Presentation variable in DBPrompt?" based on your explanation in the details of your post, the problem in not the scope of presentation variables. They will work if you set them up correctly in the type of scenario you describe.
Since you didn't answer one of Sandeep's question about whether you are "drilling down" or "navigating" using Value Interaction, I will make an educated guess.
Since you said that...
master and details reports have filter on colA prompted. ...I will assume that you have done the latter, i.e., that you have Value Interaction>Navigation as your method since you can't put an "Is Prompted" filter on the detail report if you are using drill down.
My question is if you have a prompt on the date value, then the Master report will be filtered for that date. Why would you then put Navigation on the date value to go to your detail report? The report is already filtered on that date from the prompt? Why don't you just put the detail report underneath the Master report since both reports are filtered by the same thing, the date prompt?
But to answer your specific question, try using the presentation variable explicitly as the filter instead of "Is Prompted."

Similar Messages

  • Doubt about scope of instance variable

    Hi All,
    i have a doubt about scope of instance variable.
    if i declare a instance variable in servlet , i want to know whether it can be shared(means everywhere ) or not.
    thanks in advance
    Gopal

    The servlet container will create one servlet object, and run multiple threads through its service() / doGet() / doPost() methods.
    That means that any instance variables of the servlet are shared between multiple requests, and can cause problems with threads accessing the same variable..
    To make your servlets thread-safe
    1 - have no instance variables - only use local variables in the doGet/doPost method.
    2 - use the session scope for storing variables you need over multiple calls.
    Cheers,
    evnafets

  • Scope of instance variables in servlets..

    Hi all,
              Sorry for asking a dumb question..
              What is the scope of instance variables in a servlet? Is the scope is
              limited to thread?
              In other words, in the following example, i am setting "testStr", in one
              request and when i tried to access the same instance variable from another
              request, i am getting it as null. Does it mean instance variable is limited
              to that particular thread/request?
              thanks in advance..
              -ramu
              

    Oops ... I had misunderstood and had the problem backwards ;-)
              > Is it known behavior? With registered servlet its working fine (a
              > instance variable is shared by all requests)
              I believe so; I typically deploy in a WAR so have not seen the problem that
              you describe. Servlets can be reloaded, so what you saw could have been
              caused bye a date/time mismatch between the .class file and the server's
              current time. On the other hand, that could be how WebLogic works.
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com
              +1.617.623.5782
              WebLogic Consulting Available
              "Ramu" <[email protected]> wrote in message
              news:[email protected]...
              > Hi Purdy,
              >
              > I got it. I am testing the servlet as a unregistered servlet, which is
              > creating instance for every new request!!!, which created this whole
              > confusion. Is it known behavior? With registered servlet its working fine
              (a
              > instance variable is shared by all requests)
              >
              > > What theory? ;-) Instance variables are on the object, and the object
              can
              > > be used by multiple threads, thus allowing multiple threads to access
              the
              > > same instance variables.
              > what i mean by theory here is, all instance variables in servlet should
              be
              > shared by all requests. Now i got it sir.
              >
              > Thank you..
              > -ramu
              >
              >
              > >
              > > Peace,
              > >
              > > --
              > > Cameron Purdy
              > > Tangosol, Inc.
              > > http://www.tangosol.com
              > > +1.617.623.5782
              > > WebLogic Consulting Available
              > >
              > >
              > > "Ramu" <[email protected]> wrote in message
              > > news:[email protected]...
              > > > Hi,
              > > >
              > > > > No, an instance variable in a servlet class is not limited to a
              > thread.
              > > > There
              > > > > is exactly one copy of the servlet created in memory and all
              requests
              > > pass
              > > > > through the same instance, thus sharing any instance variables. A
              > > couple
              > > > of
              > > > > things to remember:
              > > > I totally agree with you, But i am wondering why my sample servlet(i
              am
              > > > attaching the file) is not sharing the instance variables across
              > > > threads/reqs. (in 1st request set some string to "testStr" instance
              > > > variable, in next request if you read the same instance variable, you
              > will
              > > > get null!!)
              > > > Our current code is having instance variables. But right now we are
              not
              > > > getting any problems. But as per theory, instance variables should be
              > > shared
              > > > across threads/requests..
              > > >
              > > > Any how we are changing our code to remove all instance variables.
              > > >
              > > > thanks,
              > > > -ramu
              > > >
              > > > >
              > > > > 1.) Using instance or class variables in servlets that are not
              > read-only
              > > > is not
              > > > > a good thing to do. This makes the servlet not thread-safe. To
              > > maintain
              > > > > variables across requests, sessions, etc., use the servlet-defined
              > > objects
              > > > to
              > > > > store the state (e.g., request, session, etc.).
              > > > >
              > > > > 2.) If you modify the servlet class on disk, WebLogic will reload
              the
              > > > servlet
              > > > > class thus discarding the old instance and creating a new one (of
              > > course,
              > > > this
              > > > > depends on some configuration parameters for servlet reloading).
              > > > >
              > > > > Hope this helps,
              > > > > Robert
              > > > >
              > > > > Ramu wrote:
              > > > >
              > > > > > Hi,
              > > > > > thanks for quick reply.
              > > > > > I am not at all using SingleThreadModel. See the following code.
              > > > > > In first request i am passing "abc" value to testStr. But in
              second
              > > > request,
              > > > > > I am getting null for testStr in second request. It looks like
              (for
              > > me)
              > > > for
              > > > > > non single threaded model also, scope of instance variables is
              > > limited
              > > > to
              > > > > > Thread/Request.. But as per theory, because its not single
              threaded
              > > > model,
              > > > > > only one instance should be there AND testStr(instace variables)
              > > should
              > > > be
              > > > > > shared across the all threads. But i am not able see that
              behaviour
              > > > here.
              > > > > > But if declare instance variable as static, o am able to share
              it
              > > > across
              > > > > > all threads/requests.
              > > > > >
              > > > > > note:
              > > > > > From browser i am setting testStr to "abc" with URL like
              > > > > > "localhost/test1?testStr=abc"
              > > > > > And 2nd req from browser is like "localhost/test1" (on server
              > output
              > > i
              > > > am
              > > > > > getting null for testStr)
              > > > > >
              > > > > > Any ideas?
              > > > > >
              > > > > > thanks,
              > > > > > -ravi
              > > > > >
              > > > > > import java.io.*;
              > > > > > import javax.servlet.*;
              > > > > > import javax.servlet.http.*;
              > > > > >
              > > > > > public class test1 extends HttpServlet
              > > > > > {
              > > > > > public String testStr;
              > > > > >
              > > > > > public void doGet (HttpServletRequest req, HttpServletResponse
              res)
              > > > > > throws ServletException, IOException
              > > > > > {
              > > > > > doPost(req, res);
              > > > > > }
              > > > > >
              > > > > > public void doPost (HttpServletRequest req,
              HttpServletResponse
              > > res)
              > > > > > throws ServletException, IOException
              > > > > > {
              > > > > > try {
              > > > > > res.setContentType("text/html");
              > > > > > PrintWriter out = res.getWriter();
              > > > > > if(req.getParameter("testStr") != null)
              > > > > > {
              > > > > > testStr = req.getParameter("testStr");
              > > > > > System.out.println("set testStr = " + testStr);
              > > > > > }
              > > > > > else{
              > > > > > System.out.println("get testStr = " + testStr);
              > > > > > }
              > > > > >
              > > > > > }
              > > > > > catch(Exception e){
              > > > > > e.printStackTrace();
              > > > > > }
              > > > > >
              > > > > > }
              > > > > > }
              > > > > >
              > > > > > "Cameron Purdy" <[email protected]> wrote in message
              > > > > > news:[email protected]...
              > > > > > > Yes or no, depending on if your servlet implements
              > > SingleThreadModel.
              > > > > > >
              > > > > > > See the servlet 2.2 spec for documentation on how many instances
              > of
              > > a
              > > > > > > servlet will be created. See the doc for the SingleThreadModel
              > > > interface.
              > > > > > >
              > > > > > > Peace,
              > > > > > >
              > > > > > > --
              > > > > > > Cameron Purdy
              > > > > > > Tangosol, Inc.
              > > > > > > http://www.tangosol.com
              > > > > > > +1.617.623.5782
              > > > > > > WebLogic Consulting Available
              > > > > > >
              > > > > > >
              > > > > > > "Ramu" <[email protected]> wrote in message
              > > > > > > news:[email protected]...
              > > > > > > > Hi all,
              > > > > > > >
              > > > > > > > Sorry for asking a dumb question..
              > > > > > > >
              > > > > > > > What is the scope of instance variables in a servlet? Is the
              > scope
              > > > is
              > > > > > > > limited to thread?
              > > > > > > >
              > > > > > > > In other words, in the following example, i am setting
              > "testStr",
              > > in
              > > > one
              > > > > > > > request and when i tried to access the same instance variable
              > from
              > > > > > another
              > > > > > > > request, i am getting it as null. Does it mean instance
              variable
              > > is
              > > > > > > limited
              > > > > > > > to that particular thread/request?
              > > > > > > >
              > > > > > > > thanks in advance..
              > > > > > > >
              > > > > > > > -ramu
              > > > > > > >
              > > > > > > >
              > > > > > > >
              > > > > > >
              > > > > > >
              > > > >
              > > >
              > > >
              > > >
              > >
              > >
              >
              >
              

  • Scope of instance variables clarification requested

    under the topic "Scope of instance variables" in the class notes for the course i'm doing it is stated:
    inside the class definition, the name can be prefixed by the keyword "this".
    e.g. available = this.balance + overdraft;
    in simple words, please explain what it means
    or:
    what is a class definition? and what does using "this" mean?
    i'll gladly take internet links on where i can find the answer to my own question if you don't have time.
    thanks a million!

    this can be regarded simply as a reference variable which points to the intance of the class it's used in.
    So this.fieldOne referer to the instance field fieldOne withing the current instance just as theOther.fieldOne refers to the instance field in another object.

  • Stateless Bean - scope of instance variable in EJB Timer call back function

    Hi,
    I would like to know on the scope of an instance variable of a Stateless Bean object,
    when used in a EJB Timer call back.Let me explain this in more detail below.
    I have a requirement to use a EJB Timer.
    For this, I have created a stateless object since Timer creation needs to be done
    from a stateless bean. I have a member variable "count" of the stateless bean class.
    In the timer call back(ejbTimeout), I am able to use this count variable during
    each time of the call back, and the value of this variable is also updated properly.
    I have a few queries with respect to the above behaviour:
    1) Does stateless bean object not get destroyed once the Timer is created from the Bean?
    2) If the Bean object is not destroyed, then when does the bean object get destroyed?
    3) If both (1) and (2) are not true, then can anyone explain on how the above behaviour is possible?
    Thanks in advance,
    Ulrich

    Hi Ulrich,
    The ejb timer is associated with the stateless session bean component, not with a particular bean instance. There is no formal relationship between the bean instance that called createTimer() and the bean instance on which the timer callback happens. If they're the same in your test run that's just a coincidence and not something your application should be depending on.
    In the stateless session bean model, the container can create and destroy stateless session bean instances at any time. The container is free to pick any stateless session bean instance to service any client invocation or timer callback. If you need to pass context into a timer callback, one way to do it is via the timer "info" object. However, the info object is immutable so it wouldn't be a good match for a counter. You could of course always just use a database for any necessary coordinated state.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Cannot find scope's local variable

    I am doing the soa tutorial. In the step of 5.11.5 Task 5: Reference the RequriesApprovalRule Dictionary in the BPEL Designer, I cannot find the variable of IorderApproved when I add "assign output facts" in the business rule activity.
    A local variable named "lOrderApproved" was defined in the scope Scope_CheckApprovalLimit. According to the tutorial, I create the business rule and refered it in BPEL.
    However, in the step of Assign Input Facts, I cannot see the lOrderApproved under the Scope_CheckApprovalLimit.

    There are lot of sequence of steps in this tutorial. If you miss something you cannot proceed further. I would redo from first step.
    post here in the BPEL forum
    BPEL

  • Scope when using variables in modules

    Hello,
    I'm using the 03/09 Sunstudio 12 version to compile and debug a fortran code, and I've some problems when I try to display variables which are in shared modules.
    The program made of subroutines which store variables in shared modules. For example : (I know that this example doesn't "bug". Just to show the way things are.)
    file_main.f90 :
    program PROG
       use MOD
       implicit none
       real :: var_prog = 12.76
       var_mod = 0.4
       write(*,*) 'var_prog = ',var_prog,', var_mod = ',var_mod
       call SUB
    end program PROGfile_sub.f90
    subroutine SUB
       use MOD
       write(*,*) var_mod
    end subroutine SUBfile_mod.f90
    module MOD
       implicit none
       real :: var_mod
    end module MODAnd when I try to debug the code using DBX I have an 'out of scope' message in the SUB subroutine. I tried all the simple things (relax the scope using the `` operator, check that the debuggin information is there and read) without success, the only way I can print the values of my var_mod variable is to use a :: operator :
    (dbx) print MOD::var_modThe use of the 'only' statement (use MOD, only: var_mod) allows me to avoid this problem, but of course, the actual program is much bigger (about 400 subroutines) than this example, and therefore I c(an't always use it.
    Has anyone already encountred this bug ? Maybe there is a limit to the number of variables stored while debugging ? Or maybe dbx is mixing C classes and Fortran modules ?

    Hello,
    As I said in the first message, the program is more complex. I spend some time trying to reduce and isolate the 'bug', and here it is:
    (Sorry, I couldn't simplify if further...)
    prog.f90
    program PROG
       ! kind parameters' definitions
       use F90_KIND , only: HIGH
       !....include version and build information
       use VERSION
       implicit none
       external AAMAIN
       real(kind=HIGH) :: XJOBSTA = 0._HIGH
       real(kind=HIGH) :: XJOBEND = 0._HIGH
       call CPU_TIME(XJOBSTA)
       !....print out version and build information
       write (*,*) CURRENT_VERSION
       write (*,*) PRGBST
       write (*,*) PRGBTI
       call AAMAIN
       call CPU_TIME(XJOBEND)
       write (*,1000) XJOBEND-XJOBSTA
    1000 format ( &
              ///' Total computer time used for this case = ', f10.3,1x, &
              'seconds')
    end program PROGversion.F
          MODULE VERSION
          IMPLICIT NONE
          CHARACTER(LEN=50),  PARAMETER :: CURRENT_VERSION =               
         & ' CODE       BUG_SCOPE     0 0           0000_00_00'
    #ifndef program_built_time
          CHARACTER (LEN=30), PARAMETER ::                                 
         &     PRGBTI = " "
    #else
          CHARACTER (LEN=30), PARAMETER ::                                 
         &     PRGBTI = program_built_time
    #endif
    #ifndef program_built_string
          CHARACTER (LEN=50), PARAMETER ::                                 
         &     PRGBST = " "
    #else
          CHARACTER (LEN=50), PARAMETER ::                                 
         &     PRGBST = program_built_string
    #endif
          END MODULE VERSIONf90_kind.f90
    module F90_KIND
       ! REAL kinds : a conservative number of digits is used
       !              to get the right size across various machine float formats
       implicit none
       integer, parameter :: LOW = 4
       integer, parameter :: HIGH = 8
    end module F90_KINDaamain.f90
    subroutine AAMAIN
       ! kind parameters' definitions
       use F90_KIND
       use B10
       implicit none
       integer :: IHILF = 0
       T = 0.
       call SUB1
       T = T + TIMEAN(1)
    end subroutine AAMAINconstants.f90
    module CONSTANTS
       use F90_KIND
       implicit none
       ! numeric values
       integer, parameter :: MINF = -999999999
       real(KIND=HIGH), parameter :: SNINF = -1.e30_HIGH
       real(KIND=HIGH), parameter :: DNINF = -1.e30_HIGH
       real(KIND=HIGH), parameter :: SPREC = 1.e-7_HIGH
       real(KIND=HIGH), parameter :: DPREC = 1.e-15_HIGH
       real(KIND=HIGH), parameter :: THIRD = 1._HIGH/3._HIGH
       real(KIND=HIGH), parameter :: TWOTHIRD = 2._HIGH/3._HIGH
    end module CONSTANTSparametr.f90
    module PARAMETR
       implicit none
       integer, parameter :: IGRMAX = 2
       integer, parameter :: IFEMAX = 20
       integer, parameter :: M3MAX = 50
       integer, parameter :: M31MAX = M3MAX+1
       integer, parameter :: PLMIN = 10
       integer, parameter :: PLMAX = 10
    end module PARAMETRb08.f90
    module B08
       use F90_KIND
       use PARAMETR , only: IGRMAX, IFEMAX, M31MAX
       use PARAMETR , only: PLMIN,PLMAX
       use CONSTANTS , only: SNINF
       implicit none
       real(kind=HIGH), dimension(IFEMAX,IGRMAX,4,M31MAX) :: TETA 
    end module B08b10.f90
    module B10
       use F90_KIND
       implicit none
       real(kind=HIGH) :: T
       real(kind=HIGH), dimension(30) :: TIMEAN
    end module B10sub1.f90
    subroutine SUB1
       use F90_KIND
       use B10
       call SUB2
       write (*,1000) T
    1000 format ( /1x,'Subroutine sub1, time T = ',d24.16)
    end subroutine SUB1sub2.f90
    subroutine SUB2
       use F90_KIND
       ! include module data
       use B10
       implicit none
       integer I
       call SUB3(2)
    end subroutine SUB2sub3.f90
    subroutine SUB3(IKENN)
       use F90_KIND, only: HIGH
       ! include module data
       use B10
       use B08, only: TETA
       integer :: IKENN
       integer, parameter :: ILL =100
       logical :: L_DEBUG = .FALSE.
       if (IKENN == 2) then
          if (L_DEBUG) write(*, '(F11.5, 3I4, 6F13.8, 1X, 2L1)')  &
          T,IKEN,ILL,L_DEBUG
       end if
       return
    end subroutine SUB3If you set a breakpoint in SUB3, you can't see the content of the T variable. The only way to access it is to use b10::T.
    Maybe this is important, I'm not sure I precised I was working using Linux.
    Thanks for your help, and again I'm sorry for the quantity of code !
    Edited by: Felix on May 20, 2009 1:54 AM

  • How to use presentaion variable in the SQL statement

    Is there any special syntax to use a presentation variable in the SQL Statement?
    I am setting a presentation variable (Fscl_Qtr_Var)in the dashboard prompt.
    If i set the filter as ADD->VARIABLE->PRESENTATION, it shows the statement as 'Contract Request Fiscal Quarter is equal to / is in @{Fscl_Qtr_Var} '.
    And this works fine but when i convert this to SQL, it returns
    "Contract Request Date"."Contract Request Fiscal Quarter" = 'Fscl_Qtr_Var'
    And this does not work.It is not being set to the value in the prompt.
    I need to combine this condition with other conditions in the SQL Statement. Any help is appreciated. Thanks

    Try this: '@{Fscl_Qtr_Var}'

  • Increase Scope of Custom variables in Oracle JVM

    We on our project are facing the following problem, any suggestions to work around this would be appreciated :
    We our using Oracle 9i JVM for development
    Our Sample problem flow is as follows :
    A package PKG1 has three procedures PROC1/PROC2/PROC3
    A java class JC1 is invoked by a procedure PROC1 - JC1 is running under oracle JVM.
    JC1 does the task of mapping a custom user defined java object to an oracle collection and invokes a procedure PROC2 (we are using thin client connection object in JAVA by means of simple JDBC calls to connect to the database.) which takes the oracle collection as input parameter and does processing over it.
    A procedure PROC3 does the task of calling PROC1 and then tries to access global variables defined in the package set by PROC2 , which comes out as a failed operation throwing the error as:
         ORA-06531: Reference to uninitialized collection
    The reason for the above behavior is : In the parent oracle session invoked by PROC1 the class JC1 opens another child database session for PROC2 and thus values set in the child thread are not visible to the parent.
    Required support: Is there a means for setting up of some property in ORACLE or Java which can enforce the JAVA CLASS to use its parent / invoking oracle session or if there is any other approach to overcome the above situation.

    Anand,
    I believe the Java in the Oracle Database forum is more appropriate for your question.
    You said:
    The reason for the above behavior is the parent oracle session opens
    another child database session
    How do you do this? And why? And what evidence makes you certain that this is the problem?
    Good Luck,
    Avi.

  • Scope a private variable

    Hi,
    Is it possible scoping a private param?
    Function Execute-vctest {
    [CmdletBinding()]
    Param (
    [Parameter(Mandatory=$false)]
    [ValidateNotNullorEmpty()]
    [string]$private:LogName
    execute-vctest -logname "test"
    That script is just failing saying it cannot find LogName...

    All parameters are local to the function or script they are defined in.  There is no point to declaring them private.  Parameters cannot be scoped.
    ¯\_(ツ)_/¯

  • Having Truble Reading and Echoing Using PHP in HTML. Possible Variable Scope Problem?

    Hey guys,
       Thanks for your always knowledgable help! Today I am working with displaying text from a text file in an HTML table using PHP. I can't get the data to display properly, I think it has something to do with the scope of the variables, but I am not sure. Here is the code I am struggeling with:
    <table width="357" border="1" cellspacing="0" cellpadding="0">
      <tr>
        <td width="165">Pizza 1</td>
        <td width="186"><? echo  $price['0']; ?></td>
      </tr>
      <tr>
        <td>Burger 1</td>
        <td><? echo $price['1']; ?></td>
      </tr>
      <tr>
        <td>Drink 1</td>
        <td><? echo $price['2']; ?></td>
      </tr>
    </table>
    In the above PHP (not shown) the array $price is filled properly (I tested by echoing each bit line by line) but by the time we get into the HTML it seems the array is empty or it is not liking how I am calling it. Does the scope of a PHP variable end with the closing "?>" tag? Am I missing something? Bellow is the full code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    body {
        background-color: #333;
        color: #FFF;
    </style>
    </head>
    <body>
    <?php
    $menu=fopen("prices.txt","r") or exit("Unable to open file!");
    $price=array();
    $priceposition=null;
    $tempstring;
    //This loop does all of the READING and populating of variables
    while(!feof($menu))
        //Check to see if this is the first pass, if not add one to the array possition
        if ($priceposition==null){
            $priceposition=0;
        else{
        $priceposition++;
        //populate the temparary string
        $tempstring = fgets($menu);
        //Populate the array if the temporary string is not a comment
        if(substr($tempstring,0,2) != "//"){
            $price['$priceposition']= $tempstring;
            echo $price['$priceposition'];
      //End of reading loop
    fclose($menu);
    ?>
    <table width="357" border="1" cellspacing="0" cellpadding="0">
      <tr>
        <td width="165">Pizza 1</td>
        <td width="186"><? echo  $price['0']; ?></td>
      </tr>
      <tr>
        <td>Burger 1</td>
        <td><? echo $price['1']; ?></td>
      </tr>
      <tr>
        <td>Drink 1</td>
        <td><? echo $price['2']; ?></td>
      </tr>
    </table>
    </body>
    </html>
    and you can run the code on my test server here: christianstest.info/phptest/readwritetesting/readtest.php
    thanks guys!

    MurraySummers wrote:
    Try changing this -
    fclose($menu);
    to this -
    fclose($menu);
    echo "<pre>";exit(print_r($price));
    and see what you get.
    Wow, what a great little peice of testing code, thanks! That showed me the problem right away! Is there any way to test your php line by line in Dreamweaver CS6? I am used to computer programing in Visual Studio and Eclipse where they have an option of running code line by line and seing how variables populate and change with each line of code execution. Or is thier a program that can do this for PHP?

  • Session-scope variable for JSP page used in a frame

    Hi,
    I don't know if there's a way to do this at the same time:
    (1)- assign session scope to a variable (in order to be able to retrieve recurrently the previous value each time the JSP is called);
    (2)- set its visibility in a way that it could be accessed only by the page that defines it. The JSP is used in a frameset along with an other JSP that can potentially define identical session-scoped variable (You understand why I want to keep them separate)
    session.setAttribute():
    seems not to be the thing I need
    pageContext.setAttribute():
    with SESSION_SCOPE, it behaves the same way as session.setAttribute(). with PAGE_SCOPE, condition (1) can't be satisfied.
    Does anybody have an idea ?
    Thanx in advance.

    I can see that you will not want to maintain two different files for every possible page on the site!
    It may be possible to do something like <frameset rows="*" cols="50%,*">
      <frame name="content1" src="file.jsp?frame=one" >
      <frame name="content2" src="file.jsp?frame=two" >
    </frameset>and then in the jsp<%
    String frame=request.getParameter("frame");
    session.setAttribute(frame+"AttributeName",attributeValue);
    %>This will set up two session attributes - "oneAttributeName" and "twoAttributeName". Depending on how many variables you have, this may prove just as difficult to maintain.
    You may end up having to simply pass url parameters between pages to maintain state within the individual frames, which is far from elegant also.
    I am interested in how you end up solving this one.

  • Scope from variable

    I work with servlets some time, but I don't understand the scope from variable not complete.
    Like in JSP with Beans you can store objects in differnt scope:
    1. request: --> variable within function (get/post)
    2. session: --> HttpSession Object
    3. page: --> private variable in servlet or ServletContext???
    4. application: -->
    every answer is useful
    regards Dietmar

    With tomcat you can set up more contexts for different applications...
    Is the ServletContext different in every application or
    is it the same in the whole servlet container?
    Thanks Dietmar

  • Variable Scope in OSB Proxy Services

    Hi,
            I want to understand the visibility (scope) of the variables that are created in the request pipe line and response pipe line . for example ,  can we access the variable in response pipe that we have created in request pipe line.
    Thank n regards
    Guru...

    Hi guru,
    in case of OSB the variables that we have declared are always global ,because the variables that we are declared either inside the request or response pipelines [or]  inside the pipeline pair  are avilable for entire proxy[means you can use any where in the proxy  even in outer error handler stage also .]
    but yes we can declare local and global variables in OSB in case of Split joins.
    thanks
    bala

  • Simple question Of variable scope

    If u do not define any scope for a variable waht is the default scope for the variable.
    is it private Public or some thing in between the two ????

    The default access has no keyword, but it is commonly referred to as "friendly"
    It means that all the other classes in the current package have access to the friendly member, but to all the classes outside of this package the member appears to be private.

Maybe you are looking for

  • Spry menu changes - How to:

    First. I'm not a developer or programmer. I'm a hacker (dabble unknowingly by trial and errororor). I looked deeply for how to change font characteristics and found nothing helpful except comments that it can't be done or BEWARE! Horse puckey! Don't

  • Been trying to fix spinning wheel for over a week HELP!

    My Snow Leopard IMac has been stuck in spinning wheel mode forever    I have used utility to verify permission and to repair disk but no matter what each time I start the computer I get a message that Firefox hasn't logged out because there is a scri

  • Setting up a static value in a field then saving it

    if i have the case of a field, and i add a dynamic action to set a static value for it (e.g. a status field and when accessing a certain form it should change the STATUS field to CONFIRMED as a static text), how do i make sure that this value gets sa

  • Anyone successfully using WL 6.0 and oracle.jdbc.xa.client.OracleXADataSource?

    My final goal is to have two xa pools pointing to different db's and have them in the same user transaction and do a 2 phase commit. I can't get past connecting to a single xa datasource. I have "Grant Select on DBA_PENDING_TRANSACTIONS to public". M

  • Indesign CS5 and CS2 upgrade/compatibility issues

    Hi, I have recently upgraded from CS2 to CS5 and I am having printing issues. If I open a CS2 file in CS5, I can not print direct from Indesign.  It prints part of the page with big white boxes and then spits out 5 odd pages of error messages. I had