Read HttpSession Variables in Multiples Projects...

I'm using JDeveloper 9.0.3 with BC4J+UIXML, and I have the problem:
One session varible using HttpSession created in the Project "A", don't be used in Classes of Project "B", after deploy processes.
Example:
Project "A"
file1.uix - invoking Java Class FunSessionVar (create session variables and call file2.uix in Project "B"):
import oracle.cabo.servlet.BajaContext;
import oracle.cabo.servlet.Page;
import oracle.cabo.servlet.event.PageEvent;
import oracle.cabo.servlet.event.EventResult;
import oracle.cabo.data.jbo.servlet.bind.*;
import oracle.cabo.ui.data.BoundValue;
import oracle.cabo.ui.data.DataBoundValue;
import oracle.cabo.servlet.util.RedirectUtils;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpServletRequest;
public class FunSessionVar
public static EventResult FunPrepSessionVar(BajaContext context
,Page page
,PageEvent event) throws Throwable
     HttpServletRequest req = context.getServletRequest();
     HttpSession sess = req.getSession(true);
     sess.setAttribute("CodPessoaEscola", event.getParameter("CodPessoaEscola"));
     sess.setAttribute("DspNomEscola", event.getParameter("DspNomEscola"));
     Page browsePage = new Page(page, "../ProjectB/file2.uix");
     return new EventResult(RedirectUtils.getRedirectPage(context, browsePage));
Project "B"
file2.uix - have a "null" event invoking Java Class FunReadSessionVar (read session variables and set View Object Query):
import oracle.jbo.ViewObject;
import oracle.cabo.servlet.BajaContext;
import oracle.cabo.servlet.Page;
import oracle.cabo.servlet.event.PageEvent;
import oracle.cabo.servlet.event.EventResult;
import oracle.cabo.data.jbo.servlet.bind.*;
import oracle.cabo.ui.data.BoundValue;
import oracle.cabo.ui.data.DataBoundValue;
import oracle.cabo.servlet.util.RedirectUtils;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpServletRequest;
public class FunReadSessionVar
public static EventResult FunPrepReadSessionVar(BajaContext context
,Page page
,PageEvent event) throws Throwable
     HttpServletRequest req = context.getServletRequest();
     HttpSession sess = req.getSession(true);
     String valor1 = sess.getAttribute("CodPessoaEscola");
     String valor2 = sess.getAttribute("DspNomEscola");
     ViewObject view = ServletBindingUtils.getViewObject(context);
     view.setWhereClauseParam(0,valor1);
     view.setWhereClauseParam(1,valor2);
     view.executeQuery();
     return new EventResult(page);
Well, the method [b]sess.getAttribute("CodPessoaEscola"); return null value, but the correct value passed in
FunSessionVar (Project "A") is equal "180".
Any body have a solution for this problem ?
Thans,
Danilo

John, thanks for your help...
The event parameters does not have null values, because if I write this command in the Pages of Project "A", the show values are correct:
<flowLayout>
<contents>
CodPessoaEscola:
<styledText data:text="text@getCodPessoaEscola" />
</contents>
</flowLayout>
(The Data Provider return HttpSession variable of CodPessoaEscola).
May be HttpSession variables have restrict scope inside Project ? Does the web.xml file have properties to configurations of this feature, before make deploy ?
Thanks,
Danilo

Similar Messages

  • How can I pass variables from one project to another using Javascript?

    Hi all, I am trying to do this: let learners take one course and finish a quiz. Then based on their quiz scores, they will be sent to other differenct courses.
    However, I wish keep track on their previous quiz scores as well as many other variables.
    I found this nice widge of upload/download variables by CPguru (http://www.cpguru.com/2011/05/18/save-and-load-data-widget-for-adobe-captivate-4-and-adobe -captivate-5/). However, this widget works by storing variables from one project in local computer and then upload it to another project.
    My targeted learners may not always use the same computer though, so using this widget seems not work.
    All these courses resided in a local-made LMS which I don't have access to their code. Therefore, passing variables to PHP html files seems not work.
    Based on my limited programing knowledge, I assume that using Javascript to pass variables may be the only possible way.
    Can someone instruct me how to do this?
    Thank you very much.

    If you create two MIDlet in a midlet suite, it will display as you mentioned means you can't change the display style.

  • How can I share a *.java source file across multiple projects in NetBeans?

    I'm sure this simple and a pretty common operation but how can I share a *.java source file across multiple projects in NetBeans? Right now I keep cut, coping and pasting the same source file between multiple projects to re-use the same code. But I could I make this source file a library file or something like that so that I could access it from any project. I assume this would be a generic operation but I mentioned NetBeans for clarity. Thanks.

    fiebigc wrote:
    I know I mentioned NetBeans but I'm most interested in the generic method for creating a library of source files that I can call into whatever program I am developing. I've done such a thing in C using header files and such but I'm trying to get a direction on how this is accomplished in Java. I'm sorry if I could edit the title I would. If anyone wants to be specific about NetBeans I welcome that too.
    Edited by: fiebigc on Jun 20, 2008 5:57 PM
    >I know I mentioned NetBeans but I'm most interested in the generic method for creating a library of source files that I can call into whatever program I am developing. I've done such a thing in C using header files and such but I'm trying to get a direction on how this is accomplished in Java. I'm sorry if I could edit the title I would. If anyone wants to be specific about NetBeans I welcome that too.
    Edited by: fiebigc on Jun 20, 2008 5:57 PM
    Create a class library.
    Write your code, compile it to .class files, put those class files in a .jar file and include the jar file in the classpath whenever you want to compile a project against it.

  • How do you purchase multiple projects?

    How do you purchase multiple projects in iPhoto? I am trying to buy a calendar and 4 different books that I created on iPhoto. WHen I click the buy button it takes me to a purchasing page, but I can't figure out how to get other projects. There isn't a "shopping cart" that I can find. I'd like to pay just 1 shipping fee. Is this possible?

    You can't combine those into one order.
    (117833)

  • Weird delay reading shared variables

    Hello,
    I'm working on a project were I'm monitoring some prodution lines. I'm using DSC module's OPC server to connect to PLCs on the production line and I've created bound variables on my labview project of the PLC's tags.
    On my project I have one main VI were I show information about the production lines and were I can access several subVIs were I show other information about those lines. Then I have a VI that is running in background were I'm reading about 50 shared variables from the PLC and where I'm registering some data in a MySQL database, datalogging data on the Citadel database and registering alarms.
    The problem I'm having is that on the VI that runs in background I noticed a delay reading the variables that are reading containers weights from the production line. It seems that all the other shared variables don't suffer any delay, only the weight variables start having some delay when the values are increasing. It also seems like that, when I'm only running that VI alone, without running the main VI, there isn't any kind of delay. I'm reading the shared variables as shared variable nodes.
    Can anybody help me understand what's happening and how can I fix this delay? The VI that runs in background is time critical and a weird delay like that messes up my data.
    Solved!
    Go to Solution.

    Hi Mateus23,
    The shared variable has various buffering capabilites, including integration with the Real-Time FIFO feature in LabVIEW Real-Time.
    I guess that the buffering settings are causing the unexpected behavior.
    Check these resources:
    Buffered Network-Published Shared Variables (whitepaper)
    Shared Variables Properties Dialog
       - Network Page
       - Real-Time FIFO Page
    ~~

  • Looking for a better way to determine string variable from multiple options

    Hi,
    I trying to figure out a better way to determine a string variable from multiple options.
    Say i have five pictures each with a different filename: img1 - img5...these file names could be named anything really but for this example i will keep them as img1, img2, img3, img4 and img5.
    I want to display a messagebox with the string depending on what a certain variable is.
    So for example, we have the number X, if X = 1 then i want the messagebox to show "img1" as the message
    Essentially the way I have been doing it so far is:
    Private Sub WhichImage()
    Dim ImageName As String = ""
    Dim i as integer
    If i = 0 Then
    ImageName = "img1"
    End If
    If i = 1 Then
    ImageName = "img2"
    End If
    If i = 2 Then
    ImageName = "img3"
    End If
    If i = 3 Then
    ImageName = "img4"
    End If
    If i = 4 Then
    ImageName = "img5"
    End If
    MessageBox.show(imagename, "Name of image", MsgBox.Style.OkOnly, MsgBoxResult.Ok)
    end
    Up until now, this has been fine, but what if I have 50 images, do I have to do this for all 50 images? or is there an easier way like putting the image names into a text file and have it read from the file depending on what the variable i equals? If so,
    how do I go about this? Does each image name go on a separate line? can it just be separated by a comma instead? or is there a better way?
    Please note that i know that i have declared "i" above in my code and not intialised it with anything, in reality "i" comes from somewhere else in the program so please ignore that part, it is not what I am concerned with.
    Thanks
    Mersec

    Does each image name go on a separate line? can it just be separated by a comma instead? or is there a better way?
    Arrays are useful for this.
    Dim imagenames() As String = {"img1", "img2", "img3", "img4", "img5"}
    Dim imagename As String = imagenames(i)
    MessageBox.Show(imagename, "Name of image")
    Any sort of collection will do instead of an array, and may be simpler to manage. There are many other options - the most suitable one probably depends on where the names originally come from.  For instance, if you are getting them from a folder
    using the FileSystem.GetFiles method, then they are already in a collection.
    If the files names never change then you may as well include them in the program code, using something like the code above.  If they can change, then you could use a text file, but that means you need a file update routine.  If that is required
    then the way you store the names will dictate how you access them.

  • What is the concept of multiple projects

    Hi All,
    We have multiple development projects and support as well. Now my problem is say in Project1 we are working on OBJECT1, simultaneously the support team is also working on the same object (which is unknown to us). Now while transporting OBJECT1 as part of Project1 it has a dependent objects of support team, thus resulting in transportation errors and object conflicts. From SAP help I read about the concept of using multiple project assignment in transportation. Can anyone clearly explain what is multiple project concept in terms of transportation.
    One most important thing I would like to know is how, whilst transportation how SAP is identifying the missing object. For example I am trying to transport a request number, but while transporting it has given an error something like object 'XXXX' is missing. Now my question is how SAP is identifying that object 'XXXX' is missing?
    I would really appreciate any useful information.
    Thanks,
    Venkat
    Edited by: putcha venkatesh on Feb 4, 2009 12:14 PM

    Multiple projects in terms of transportation should make it possible to have a better overview of your transports. This way, a transport request can be assigned to a certain project, making it easier for logging purposes.
    During import of the transport request, a check is done on the database (for example if a data element is available) to find out if a certain object is available or not. If not, an error is generated.
    So it would be wise, before releasing the transport, to check if all objects you are using are part of another transport as well and if these transports have already been imported before your transport. Check all possible dependencies. It would be better though, to check this before making use of objects which you haven't created yourself in your development objects.

  • Multiple projects, multiple lists on Share Point

    Hi, I am hoping someone can provide me guidance here.
    I am trying to create a project list on SharePoint that shows the Gantt Chart of the task duration. However, there are multiple projects with the same tasks which I would like to capture. For example: Project A has task 1, task 2, .... task 20; Project B
    has the same tasks 1, 2... and 20. These tasks and projects are being worked on by different individuals.
    What I would like to capture is the duration of each tasks for these projects in one list on Share Point. Is it possible?
    any response would be greatly appreciated.
    thanks in advance for your time.

    Making this more complex adds potential rendering difficulty down the line.
    One list is indeed better and can be managed more easily. you'll be able to present different views of the data on different web part pages if needed, along with additional metadata,
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • FCPX 10.0.7 hangs when loading multiple projects - a non-destructive work around

    FCPX 10.0.7 hangs when loading multiple projects - a non-destructive work around....
    Hi Guys, I upgraded from FCPX 10.0.6 to 10.0.78 and discovered to my immense frustration that many of my 100+ FCPX projects would not load.
    Symptom:
    FCPX 10.0.7 appears to hang ("spinning beachball") with either high CPU% on a single core or  with 1-2% CPU busy (activity monitor.app) when a FINAL CUT PROJECT is selected. No logs error information in /var/logs ..hmm
    notices that the "status circle" spins around endlessly.
    Actvity Monitor.app shows "Final Cut Pro (Not Responding)
    and also I notice in some cases that an OEM filter ("NEAT VIDEO NOISE REDUCTION") is in progress to be loaded. FCPX V10.0.7 must be FORCED QUITtted to remove it from system.
    History: Upgraded FCPX from V10.0.6 to V10.0.07.
    "FINAL CUT EVENTS" and "FINAL CUT PROJECTS" on a single file system on SAS 16TB disk array (768MB/sec read via AJA system test) and 60% utilised capacity… FCP EVENTS has 400 events in it .. some 5.2TB of Prores essence etc .. all works fine! (i.e. the storage system is first class and is NOT the issue)
    32GB of RAM on MAC PRO 2009 Nehalem 16 x Vcore with ATI 5780 card and ATTO HBA's (i.e. plenty of resources!)
    As usual with any "upgrade" to FCPX 10.0.? all the EVENT objects need to be upgraded. In my case this takes an hour or two.. so I do that when asleep.
    After experiencing above, I restored the FCPX EVENTS LIbrary of that file system from LTO4 tape archive (BRU-PE ) and still had the same issues as above.
    WORKAROUND:
    FORCEd QUIT FCPX V10.0.7
    RENAMEd "/volumes/some_file_system_volume/Final Cut Projects" to "/volumes/some_file_system_volume/Final Cut Projects_original"
    created (make) a new "/volumes/some_file_system_volume/Final Cut Projects" (use finder)
    For each project !!! in "/volumes/some_file_system_volume/Final Cut Projects_original", (do one project at a time!!!)
    MOVE "/volumes/some_file_system_volume/Final Cut Projects_original/one_fcpx_projext_nnnn_folder" to "/volumes/some_file_system_volume/Final Cut Projects"
    Make sure you move ONLY one project at a time. If you have a subfolder of projects, please do each project one at a time (serially!)
    Launch FCPX V10.0.7 and BE PATIENT!!! .. DONT click or fiddle with the UI.. it seems when you intervene it locks up as well…
    Let FCPX V10.0.7 settle….
    select the project you just added above  and RELINK any objects it needs. Thumbnails and proxies will be rendered again.. just be patient
    wait until ALL the rendering as stopped.
    QUIT FCPX V10.0.7
    (now if FCPX locks up, just force it out and start again as above).
    repeat for all projects in "/volumes/some_file_system_volume/Final Cut Projects_original" (go to step 4 ad do until all projects moved)
    When all is COMPLETED MAKE SURE YOU ARCHIVE an instance (or make a backup ) of "/volumes/some_file_system_volume/Final Cut Projects"
    If this procedure has worked the folder "/volumes/some_file_system_volume/Final Cut Projects_original" will have zero (nill, none) projects in it.
    I have managed to restore ALL my  "/volumes/some_file_system_volume/Final Cut Projects" this xmas between drinking etc. I'm satisfied that its all ok.
    Other issues:
    use DISK WARRIOR or TT PRO 6 to make sure that the file system volume where your  "/volumes/some_file_system_volume/Final Cut Projects" are is physically ok. I noticed some entries in file system's  volume table that represented objects in  "/volumes/some_file_system_volume/Final Cut Projects" were at fault when I used these utilities… FWIW.
    SUMMARY: yes this took ages to d, however luckily I had everything in at least 3 instances in an archive which has saved me many time in the old FCP& and prior days… it was just a matter of time to put it back together.
    I put this outage down to may be my own impatience when I first fired up FCPX 10.0.7 after the upgrade.
    I'm interested if this workaround is helpful to others and in addtiion if others have a more satisfactory remedy.
    HTH
    warwick
    Hong Kong

    Hi Eb, yeah I could not see any "memory leak" or unusual consumption of REAL memory whose less availability would cause excessive PAGEing and SWAPping as seen in the Activty Monitor.app
    I watch this carefully especially the use of REAL MEMORY by 3rd Paryy apps. BTW there are a few that cause ALLOCATED but NOT USED memory (blue in the A.M.app UI). Simply a unix PURGE command can release that memory and help clean up the PAGE and VM swap files (its alleged!).
    Yes, you may be might with the element of "Luck" involved. I would add though, that having MULTIPLE project displaying in the STORYLINE window and loading always caused my FCP 10.0.7 jam up at startup with h symtoms and observations I described.
    TIP: I might also add that for a super speedy launch of FCPX one may also emply setting each PROJECT's UI to show only AUDIO thus negating the need to contstruct or reneder out a PREVIEW ui in each clip in the storyline.
    Your/Apples  suggestion of the movememt (rename) of "Final Cut Pro Projects" to "Final Cut Pro Projects Hidden" is similar to what I proposed above to stop FCPX 10.0.7 accessing and building it up at startup. This workaround has been useful inthe past as well.
    ALso one might also get the stick out and remove (delete/rm) the ~/Library/Saved Application State/com.apple.FinalCut.savedState in one's home ~/Library so that FCPX wont do such a neat job reinstating FCPX last time you crashed it... This has been helpful also in diagnosing my issues.
    Lastly I have noticed that:
    impatience clicking on the FCPX UI when in the unstable state causes it to lock up with NO visible CPU% busy.... as if its waiting on something which is usually me MEMTERMing it via FORCE QUIT and
    the projects where I have employed the NEAT VIDEO Noise Reduction OEM filter for FCPX seem to exasserbate the PROJECT loading issues when several PROJECTS are available at FCPX startup time.
    As of yesterday I have some 400+ EVENTS Final Cut Pro Events and 130+ projects of varying compexites in a single file system on Final Cut Pro Projects all working fine and as good as gold again!
    Oh and one more thing, I had to RE-RENDER many projects of them again... strange as the FCP PROJECT library was renstated from a recent LTO archive as of V10.0.6 FCPX.. strange that...I would have expected if the projects and events were 10.0.6/7 compatable as proposed by Tom, that this would not be necessary... hmm straneg that
    I'll monitor this thread.
    Thanks for your comments lads!

  • Purchase Orders_ Multiple projects not permitted on a single purchase order

    Hi Guru
    Please assist:
    We are using the MM & PS for Purchase Requisition, the Account Assignment N and the buyers created PO with different Network numbers on one Purchase Order,
    I want to delete the purchase order and i am getting the message Multiple projects not permitted on a single purchase order
    How do i delete this PO, i have tried the delivery complete and final invoice tick its not working
    Regards
    Susan

    The Apple Configurator tool robbed my school of @ 60×4 apps.
    Here's my mistake. I bought all the apps needed for the whole school in one lump sum. i.e. 350 copies of Pages. Then happily went to Configurator and loaded the spreadsheet. Installed on all the student iPads. Then need the remaining licenses to gift to the teachers and @ 30 for the cart. NOPE! Once they are loaded in to Configurator you can never get them back. Apple said, “sorry”.
    I did this for the iWorks suite, iPhoto, &amp; neu.Annotate before I realized what was happening.
    This is what to do, in short. From the VPP account, buy the number needed for exactly what you need, just make sure, it's over 20, even if you only need 11, 20 copies is cheaper than 11 because they are half off at 20 or more. Get the spreadsheet generated by the VPP site for the 20 then buy for the next cart or site, it will generate a new spreadsheet of 20 you can give to the computer and its copy of Configurator.
    https://schoolipads.wordpress.com/2013/03/23/vpp-configurator-multiple-carts-or- locations/

  • Mass change Tcode for  status of multiple projects

    Dear All,
    Any SAP Standard t code for mass Status change for multiple Projects
    (like TECO,AALK).
    Thanks.
    Arun

    Hi
    You dont have this option in any STD SAP t.codes, where you can change the status of the projects/WBSE collectively.
    So use this BAPI to Read  the status of Project/WBSE
    BAPI_BUS2001_GET_STATUS   To get both the active system statuses and the user statuses for a project definition
    use this BAPI to Change  the status of Project/WBSE
    BAPI_BUS2001_SET_STATUS
    one system status and one user status  can be revoked each time, and one system status  and one user status  can be set each time for a project definition 
    For Network order status change
    BAPI_BUS2002_SET_STATUS
    Set/Reset Network Status. At the same time, you can revoke one system status and one user status, or set one system status and one user status in a list of activities for the network.
    Thanks
    S.Murali
    Edited by: S. Murali on Jul 24, 2009 3:43 PM

  • How to Select Multiple Projects?

    Another: "Wait a sec -- you mean Aperture still can't...?" question...
    So I'm in the Inspector's Projects tab. I've just created and named a new sub-folder, into which I want to drag several dozen projects. I've tried Cmd-clicking; I've tried Shift-clicking. But so far I only seem to be able to select (and then drag) one Project at a time.
    Does this mean, in the above scenario, I have to select, drag, and drop each of my 47 (or however many) Projects into that new sub-folder separately -- one at a time?
    Please tell me there's a way to select multiple Projects (and multiple Folders for that matter) in order to do some quick re-organizing/re-arranging in the Inspector. Or is this going to be yet another should've-been-there-in-the-Beta-version Feature Request?
    Thanks,
    John Bertram
    Toronto

    I'm also frustrated by not being able to select multiple projects. I guess we should leave feedback.

  • What is the best way to create shared variable for multiple PXI(Real-Time) to GUI PC?

    What is the best way to create shared variable for multiple Real time (PXI) to GUI PC? I have 16 Nos of PXI system in network and 1 nos of GUI PC. I want to send command to all the PXI system with using single variable from GUI PC(Like Start Data acquisition, Stop data Acquisition) and I also want data from each PXI system to GUI PC display purpose. Can anybody suggest me best performance system configuration. Where to create variable?(Host PC or at  individual PXI system).

    Dear Ravens,
    I want to control real-time application from host(Command from GUI PC to PXI).Host PC should have access to all 16 sets PXI's variable. During communication failure with PXI, Host will stop data display for particular station.
    Ravens Fan wrote:
    Either.  For the best performance, you need to determine what that means.  Is it more important for each PXI machine to have access to the shared variable, or for the host PC to have access to all 16 sets of variables?  If you have slowdown or issue with the network communication, what kinds of problems would it cause for each machine?
    You want to located the shared variable library on whatever machine is more critical.  That is probably each PXI machine, but only you know your application.
    Ravens Fan wrote:
    Either.  For the best performance, you need to determine what that means.  Is it more important for each PXI machine to have access to the shared variable, or for the host PC to have access to all 16 sets of variables?  If you have slowdown or issue with the network communication, what kinds of problems would it cause for each machine?
    You want to located the shared variable library on whatever machine is more critical.  That is probably each PXI machine, but only you know your application.

  • VS2013 Community Edition : How to add multiple projects in one solution?

    I am an experienced .Net developer. I am using Visual Studio since 2005.
    Yesterday, I just installed “Visual Studio 2013 Community Edition”. Suddenly I came to know that I can’t add multiple projects to a solution. Even a project does not have
    solution !!
    I had also tried to create a blank Visual Studio solution and then tried to add projects to that solution. But after creation of project, it will not be added to that solution.
    Infact it even doesn’t have solution !!
    How can I add multiple projects to a solution in VS2013 Community Edition?

    Glad to see the problem was resolved. Thank you for sharing the solution here.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Use of MS Project Management 2010 to Manage Multiple projects over a given time period

    Is there some information (article/s) I can research about using MS Project Management 2010 for managing multiple projects over a given time period? I'm being asked by a potential client to take a job as a Program Manager to manage five projects all
    at once. Each of the projects has it's own MS Project Management software, project leader, and project team. An overall project plan has to be put together to manage this large project. There are some dependencies with these projects inorder to complete
    on a specific date.
    Thanks

    SSCDML --
    In order to manage this program of five projects using Microsoft Project 2010, I would recommend you do the following:
    Create a shared resource pool file containing the resources in all five projects.
    Connect each of the five projects as sharing files with the shared resource pool file to share the resources.
    Create a master project for the program containing each of the five projects as subprojects.
    In the master project, set cross-project links as needed to show dependencies between projects.
    Hope this helps.
    Dale A. Howard [MVP]

Maybe you are looking for