Want to get ApEx session in JSP

Hi Pals,
From my ApEx application, I am calling a JSP by providing a direct URL.
THe JSP does some specific function here.
If the user get the JSP url by right click and view source, they can very well use this outside my ApEx application.
I want to apply security like, the JSP url only works inside my ApEx application.
My thought, if I can share ApEx session with JSP session I can impose the security check in JSP level.
Any idea would be appreciable.

Hi,
Im using below method to call jsp page and passing UserName, application id and Session as
<iframe src="http://apex.oracle.com/pls/otn/...javaapplication.jsp?userId=&USER.&appId=&APP_ID.&sessId=&SESSION."></iframe>
Vailidation is done against the table "wwv_flow_sessions$" of schema : flows_030100 ,whether those values are exist in table.
But if user is already logged into apex application, he can run the jsp independantly taking the url from "view source".
Im also looking for more solid validation
Regards,
Benz

Similar Messages

  • How to get apex session id to insert into a table....mimic of a global temp

    Hi,
    I want to mimic the beavior of a global temporary table by using a regular table and feed a column that will contain session id...but i don't get how to obtain the session id in APEX ?
    Any suggestion ?
    Regards.

    You can use the APP_SESSION variable.
    See:
    http://download-west.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32471/concept.htm#BEIEHEJI

  • Making  a session in jsp.

    I want ti make a session in jsp.
    suppose if any budy can login through login page which is
    www.harshworld.info/login.jsp
    they will just direct open that page
    www.harshworld.info/wallpage.jsp
    then this page will not open . & user will see The login page it self.
    So after making session in jsp what can i do ?
    & how to Do can one help me.
    PL Thanks for Giving time to me

    THk dear
    there's always a session...
    if(session.getAttribute("username") == null) {
    response.sendRedirect("login.jsp");
    return;
    and put the attribute in the session on successful
    login..
    Or look up other security modes.

  • Get the session trace files and also the TKPROF reports for storedprocedure

    Hi ,
    I am trying to find out the bottlenecks on a storedprocedure, which does a insert into a table, where the target table has lot of indexes/constraints, so i want to see, which indexes/constraints is causing the problem. so in order to do I want to get the session trace files and also the TKPROF reports to see the bottlenecks for a oracle stored procedure,
    Could you please give us the list of steps to get the tracefiles and tkprof reports.

    781649 wrote:
    Thanks for input, i am using oracle10g standard edition. i dont think i have these tools available (DBMS_PROFILER or DBMS_HPROF). Did you even bother to try the following?
    SQL> DESC DBMS_PROFILER
    SQL> DESC DBMS_HPROF
    I understand it would be too much to expect you to actually Read The Fine Manual
    I am using bulk collect for all in my storedprocedure to insert the rows into a big table. In order to perform analysis on this bulk collect which tool will help me to identify the bottlenecks .
    I want to compare background session properties for both runs (like inserting the data with indexes/constraints vs without indexes/constraints). please let me know..I am willing to bet you the problem/slowness is on the SELECT side & not the INSERT!
    Just Curious
    Handle:      781649
    Status Level:      Newbie
    Registered:      Jul 12, 2010
    Total Posts:      35
    Total Questions:      17 (14 unresolved)
    Why so many unanswered questions?
    Edited by: sb92075 on Jan 17, 2012 3:13 PM

  • Get ssl session key after handshaking

    hi..i want to get ssl session key (after ssl handshaking) to insert in cookie (hashed using HMAC) to avoid reply attack. but i don't know how to get that from container (i used tomcat). what must i do?

    i mean reply attack for cookieDo you mean replay+ attack for cookie?
    I have read the paperWhat paper? Reference? URL?
    are you sure there is no way to get session key from container into servlet?I've answered that, but it isn't the container that has the session key. It is the SSLSession actually.

  • Get session in JSP

    I have got a problem, would like to seek help. thanks in advance:P
    HttpSession httpsession=request.getSession(true);
    httpsession.setAttribute("user", getUser(userid));//getUser(userid) will return a user
    User user=(User)httpsession.getAttribute("user");
    i have set a session for a user in a class and i can get the user in the same class, but how can i get the user in JSP??
    i have tried as follows:
    <% HttpSession httpsession=request.getSession(true);
    User user=(User)httpsession.getAttribute("user");
    if (user.getRole().equals("user")){ %>
    but when i compile the JSP, it said "User not found"
    what wrong with the code??
    it seems that can't call a bean

    Hi,
    You are using a custom 'User' class, so need to import it. Add this line at the top of the JSP page:
    <%@ page import="pack.name.User" %>
    // put the fully qualified User class name hereif you already have the <%@ page %> directive, just add the import attribute to it.
    -Srinath

  • Keep getting 'Well that's Embarassing" message starting previous session, I do not want to start previous session, I always want new session. Need an option for this.

    Keep getting "Well that's Embarrassing" message starting previous session. I do not want to start previous session. I always want a new session. Need an option to always start a new session.

    Both of the above cited options help ONLY if "sites to be restored" ''are listed''.
    They used to be(when I first switched to Firefox); now they are not(even with the "Oops! This is embarassing..." message from FF where the "Restore Session" option is shown but with nothing IN it, y'see?).
    I've been going through the FAQs &c in the Mozilla Support sites/linx. Lots of interesting things but not quite that for which I search.
    Open to suggestions, I remain, ~=DVexedVixen

  • Handling Session in jsp and bean scope

    i have problems with handling session in jsp
    I want to check on all jsp pages
    first thing is session is null
    i want to him to be redirected to first page
    and he should not be able to go ahead
    I tried
    if(session ==null)
    response.sendRedirect("Login.jsp");
    but this does not seem to work
    It is very crtical problem can any one answer
    this asap
    Also i wanted to know that
    I have bean which in turn calls static methods of another class which holds all DomainTable(database tables which do not change frequently)
    Information .
    This is bean is being implemented by me
    in seession scope in a jsp
    Do u guys think it would be goo idea to change
    scop of this bean as Application in jsp
    if so what would be advantages for same
    I would appericate if i could a quick reply on both
    question
    as i am time crunch
    arsh

    You will always get some value of session and your code wont work. At the end of your Login.jsp, you should create a sesssion and store attributes. Check for these attributes in session, rather than checking session==null.

  • Maintain session in JSP frame

    Hi,
    I am having trouble in maintaining session in jsp frames. -
    Here is sample code
    parent.jsp
    <HTML>
    <HEAD>
    <LINK rel=stylesheet type="text/css" href="defaults.css">
    <TITLE>abc</TITLE>
    <%     
         String checkAmount = "100.00";
         session.setAttribute("checkAmount", checkAmount);
         System.out.println("checkAmount in ppmain"+session.getAttribute("checkAmount"));
    %>
    <FRAMESET rows="235,*" frameborder="no" >     
    <FRAME NAME="pptop" SRC="top.jsp" frameborder=0 scrolling=no noresize >
    <FRAME NAME="ppbottom" SRC="bottom.jsp" frameborder=0 scrolling=no marginwidth=0 marginheight=0 noresize>
    </FRAMESET>
    </HTML>
    top.jsp -
    <HTML>
    <HEAD>
    <LINK rel=stylesheet type="text/css" href="defaults.css">
    <TITLE>top</TITLE>
    <%     
    System.out.println("session in top "+session);
    System.out.println("checkAmount in top "+session.getAttribute("checkAmount"));
    %>
    </HTML>
    It is not able to retain session in the top.jsp ( in SOP for session I get different session ID in parent.jsp and top.jsp
    This Works well in local but when gets deployed to WAS6 server troubles starts.
    Any help is appreciated.
    Thanks

    When you create URLs, you might want to try using JSTL to rewrite them:
    <FRAME NAME="pptop"
           SRC="<c:url value='top.jsp'/>"
           frameborder=0
           scrolling=no
           noresize >
    <FRAME NAME="ppbottom"
           SRC="<c:url value='bottom.jsp'/>"
           frameborder=0
           scrolling=no
           marginwidth=0
           marginheight=0
           noresize>Or you can use:
    SRC='<%= response.encodeURL("top.jsp") %>'

  • New session in JSP?

    I'm currently working in a project that's basically a search-engine. The
              application is running on BEA's WebLogic server and the logic is placed in
              JavaBeans and EnterpriseJavaBeans. The JavaBeans that I access from my
              JSP-pages has the scope set to 'session'.
              As long as every user runs the application in different webbrowsers
              everything is fine, but if I open a second window (pressing Ctrl+N in IE) it
              seems like I'm stuck in the same session which means that I've got two
              references to the same object of my JavaBean.
              The outcome is that I either get the same result from two different querys,
              or that my application crashes. The server executes the querys in different
              threads, but since the EJB that holds the result is a stateful sessionbean
              the result is dependet on the last query.
              Are there any way of detecting that a request is made from a new window in
              the same browser (http-headers?), and creating a new session? Are there any
              way at all to force a client into a new session?
              /Johan
              

              "Johan Kindgren" <[email protected]> wrote in message
              news:[email protected]...
              > The database that we searching in contains about one million rows in
              several
              > tables, and the design-specification we've got demands that 90% of the
              > querys should return a result within three seconds, from anywhere in the
              > world.
              > Our idea to solve this is to divide the application into three layers,
              where
              > the first one is the JSP and JavaBeans. The middle layer is our stateful
              > sessionbean and the last is an stateless entitybean that executes the
              > querys to the database. When a query is made, the entitybean returns an
              > array of id's to the stateful sessionbean that match the query, and
              > sessionbean then retreives details from the database in batches of 15
              > records.
              > With this design it takes less than half a second to retreive the next
              batch
              > by making a query from id's, instead of making a query from a name (which
              in
              > worst case can take up to a minute right now, we have not optimized the
              > database yet).
              >
              > The JavaBean that I use in the JSP-pages creates a connection to the
              > sessionbean, and this connection is kept throughout the session.
              To fix your initial problem, you should assoicate your stateful session
              beans with a HTTP request rather than a HTTP session. This will get around
              your current problems (crashes & synchronisation). Or a more complex
              approach could be to remove the EJB from the HTTP session before you use it
              (so that no other request can use it at the same time).
              Browsers can and will make multiple concurrent requests with what appears to
              be (from the Servlet engines perspective) the same HTTP session - so don't
              associate a stateful session bean with a HTTP session. Associate it with a
              request instead. (In fact this is true of any EJB).
              >
              > If I understand your suggestion correct, we would have to skip the middle
              > layer. I suspect that we would have significant loss of performance in
              that
              > case. Are there any way to work around this? Any ideas in another design
              > that would eliminate this problem?
              Layering is often useful. The trick is to layer things correctly. I don't
              really have the bandwidth to understand your use cases correctly to
              formulate the correct architecture to follow. I'll give you a brief 30,000
              foot view of how I tend to do things...
              Briefly, I've never been terribly convinced of the value of entity beans at
              all. I personally think they are a bit of a mistake because they are remote.
              I far prefer the JDO idea which will hopefully replace entity beans one
              day.(http://access1.sun.com/jdo/) Generally the current thinking is that
              whether you use JDBC, JDO or Entity Beans - they should be wrapped inside
              session beans anyway. So from your layering perspective, entity beans are
              implementation detail inside the session beans layer.
              Mostly the client side wants go get 'data objects' back from queries which
              can then be used to do other navigations / queries / operations. It also
              helps to have client side helper beans to abstract the complications of
              using session beans (handling lookups, pooling, timeouts etc.).
              So the layers I prefer to focus on are
              Server side: Session beans - implementation I don't care - maybe internally
              using entity beans or JDBC or JDO. These should be stateless wherever
              possible. Should return Java beans to clients.
              Client side: Java beans - wrap use of session beans
              (timeout/pooling/creation stuff and sesion bean API). These client side Java
              beans often pass client side state (e.g. user id) into sesssion bean methods
              to allow the session beans to be stateless. Usually the client side will
              include Servlets, JSP, custom JSP tags here too.
              The Session beans on the server side may be split into the main stateless
              session beans that do most of the work with some small stateful session
              beans for doing things like query paging etc - though I've often found its
              easy to do this in stateless beans with a clever caching model.
              > The application will serve about 30 concurrent users, but there are a tota
              l
              > of 400 users.
              Though the same user may use multiple web browser windows on a desktop, so 1
              real user can become several concurrent users.
              J.
              James Strachan
              =============
              email: [email protected]
              web: http://www.metastuff.com
              

  • Is Collection APEX session specific

    I think I know the answer to this but I want to be 100% sure. My application uses a collection that gets populated and is then the source SQL for the region. What happens if two users are running the applicaiton at the same time? Will I run into any problems, or is a colleciton local to each specific Apex session?
    Thanks!

    Hi,
    Yes, collection is application and session specific
    Regards,
    Jari
    Edited by: jarola on Oct 28, 2010 8:05 PM
    >
    Collections enable you to temporarily capture one or more nonscalar values. You can use collections to store rows and columns currently in session state so they can be accessed, manipulated, or processed during a user's specific session. You can think of a collection as a bucket in which you temporarily store and name rows of information.
    >
    http://download.oracle.com/docs/cd/E17556_01/doc/apirefs.40/e15519/apex_collection.htm#CACFAICJ

  • How to get multiple selections from jsp page in my servlet

    Hello Everyone,
    I've a list that allows users to make multiple selections.
    <select name=location multiple="multiple">
        <option>
             All
        </option>
        <option>
             Hyd
        </option>
        <option>
             Dub
        </option>
        <option>
             Mtv
        </option>
      </select>I want to get the selections made by user in jsp page from my servlet, selections can be multiple too.
    ArrayList locList = new ArrayList();
    locList = request.getParameter("location");when I do so, I get compilation error as the request returns string type. How do I then get multiple selections made by the user.
    Please let me know.

    For those kind of basic questions it would help a lot if you just gently consult the javadocs and tutorials.
    HttpServletRequest API: [http://java.sun.com/javaee/5/docs/api/javax/servlet/http/HttpServletRequest.html]
    Java EE tutorial part II: [http://java.sun.com/javaee/5/docs/tutorial/doc/]
    Coreservlet tutorials: [http://courses.coreservlets.com/Course-Materials/]

  • Want to get my new HP-ENVY-k073 Back to Clean PC State

    I don't like Windows, except for Win2kPro, and the more they change it, the less I like it.  When I first got this laptop, which is last week, it drove me crazy with the rapid shifts from one view to another, and it is a hard drive hog, so I decided to replace it with Ubuntu 14.04, which being a variation on Linux, is completely free.  I use it sucessfully on my older but less capable laptop and desktop.  So I booted from an external usb DVD/CD drive to a LiveCD (actually a LiveDVD) image I had downloaded and burned to a DVD, and got Ubuntu installed in place of Windows 8.1.  I was able to boot up and run Ubuntu fine. But then I needed to copy a usb HDD drive's contents to the new laptop's HDD so as to free up the usb HDD to allow me to reformat it as an ext4 drive, and replace the corrupted NTFS file system on it.  The only tool that would tackle the NTFS drive was chkdsk.exe, and I had to run that off my wife's laptop with Win7 on it.   Win8.1 proved too difficult to work with, which is why I gave up on trying to run chkdsk.exe from it when I first got the new laptop.  Chkdsk.exe "fixed" some file and folder issues, but finally failed when it ran out of clusters to remap the drive's contents to.  At least it appeared to give me back access to the dtored folders and files there, but appearances can be misleading.  There was a lot of cross-threading there that spoiled things going forward. So, using a terminal in Ubuntu on the new laptop, I made some command line entries:     mkdir ~/tmpdrive:    sudo cp -rfp /media/oldefoxx/My\ Passport/* ~/tmpdrive/ The My\ Passport drive had already been mounted by clicking on it under Places in the GUI.  So it started copying all the folders and files from the "My Passport" (usb HDD ) to the new /home/oldefoxx/tmpdrive folder, a process that would take hours.  So I set it aside and went on to other things with my older laptop.  And then I slept. The sudo statement?  Gave me super-user powers for that one command.  Dealt with any folders and files that I, oldefoxx, might not have access to otherwise. The cp command?  Unix shorthand for the word "copy".  I could have used mv ("move") in its place, but I allow for human error and leave the original in its place for later efforts in case something goes wrong. The -rfp flags on the cp command?  r means reiterate (repeat) for each subfolder and file found within.  f means force the replacement of any filder or file that has the same name on the destination end.  p means preserve the owner/group/user flagged bits associated with the different folders and files being dealt with. Otherwise, everything gets reflagged as being "root" (what my temporary super-user status marks me as). On reviving the darkened screen (happens after a certain timeout period), I was unpleasently surprized to see I had completely run out of hard drive space on my new laptop, so the copy over was incomplete.  Run out of hard drive space?  No way!.  I had a bit over 620GB of contents on that usb HDD, and way more than that on my new laptop!  What went wrong?  Two things: (1)  Unfortunately, instead of just manually deleting and recreating my new ext4 and swap partitions, I had left it to the installer to do it for me, and with Ubuntu 14.04, it now recommends using a LV approach, which is suppose to simplify future partitions moves and relocations.  So I allowed this, and that made the new format more bulky than I had allowed for.  I won't make that mistake again. (2)  The real space eater though turned out to be that chkdsk.exe had cross-threaded files and folders among each other, so that both folders and files were showing up all over the map of the usb HDD drive.  The total apparent drive space required to hold all these as separate entities must have been not only gigantic (multi-Gs) but possibly tremendous (into the T's).    No wonder I had not only run out of destination drive space, but had reaced zero bytes left. I had access to Ubuntu's GUI still,  but with no drive space left, there was nothing I could do.   To see if it would help, I decided to first do a reboot.  Ubuntu came up, but gave me no login screen.  So I decided to reboot to a LiveCD.  But that didn't work, because the LiveCD has to build some temporary map structures somewhere, and apparently instead of using a temporary RAM (Random Access Memory) structure in memory, it must go to the internal hard drive, which at this point is so full that it won't permit this.  So the LiveCD approach failed.  I decided to just try and recover part of what I had had already copied over later, and just go ahead and wipe the My Passport drive of its contents and use my older laptop to run LiveCD and install Ubuntu to it, along with a complete reformat of the drive as ext4.  I did that, but this effort was flawed in two respects: (1)  I got the install done okay, but the install made the usb HDD the primary boot drive for GRUB2, while GRUB2 did not allow for the fact that a usb HDD is non-permanent.  My old laptop lost the ability to boot when the usb HDD drive was not connected, and the usb HDD drive did not have GROB2 on it to serve as a stand-alone bootable device.  I had to use two new sets of terminal commands to take carfe of this.  With the usb HDD drive attached, I booted up on my old laptop,and did this in the terminal window:    sudo grub-install /dev/sda    sudo update-grub    sudo grub-install /dev/sdb    sudo update-grub That took care of it.  With or without my usb HDD being attached to my old laptop, it is now bootable.  the /dev/sda is how my first internal hard drive is identified.  Since I only have one internal drive, my usb HDD drive becomes the next lettered drive, or /dev/sdb.  Haf I two internal drives, it would be /dev/sdc, and so on.  In Unix and Linux, drives are treated as folders under the /dev folder (dev being shorthand for devices).  When a user mounts a device, it is added to the mounted devices list kept under /media/[username] folder.  When a user is created, they get a new folder under /home and a new one under /media (in earlier times, they used /mnt instead of /media, and mnt stands for mount). There is a file named /etc/fstab that identifies what devices are mounted sutomatically whenever the system boots up.As super-user, you can make changes to this table file, but screw up, and you can make your system unbootable. All this seems aside from the point of this post.  At some point, my new HP ENVY 17-k073 became unbootable.  I can't get to it any more, though I;ve tried F9 (select boot device), F10 *BIOS Setup), ESC, and every other function key to try and make progress.  EXC brings up a mini-grub, but I don;t know how to use it.  I can type in help but the list seems endless, and I can't see most od it before it goes off screen.  Working with the part I can see, I can see what a few commands say, but in most cases I don;t have enough insight to know what parameter(s) to supply.  It does tell me that hd0 (hdo,msdos) has errors, but so apparently do the internal and usb CD drives.  If I want to do a boot, I have to load the kernel first, but it doesn't tell me how to load the kernel.  There is a lot I am missing here, and this might be the one tool at my disposal to deal with it, and I don't know how. Under F9, of devices I can pick from, is listed my old My Passport designation, but that's no longer available.  I see no way to add usb-ext4 as a choice to this brief list.  None of the choices shown are bringing my new laptop to life again.  The one I really haven't explored at length involves the internal CD-ROM drive, for two reasons:  (1)  It is extremely difficult to get the drive tray to extend.  Probably the flimiest thing on this Laptop, aside from getting the battery pack to properly latch in and not drop out.  (2)  When I could get the tray to extend and put a LiveCD in it, the PC refused to boot from it.  I' can use this LiveCD elsewhere and it does it's thing, but on this laptop, it won't.  I've tried other LiveCDs with no better success.  But it did finally read from the usb DVD/CD RW frive for my initial install of Ubuntu.  I wonder id I have a bad DVD/CD RW drive in this thing?  What can I do about that?  I've only had this HP EMVY 17-K073 drive three days now, taking delivery on this last Thursday, and it is now only Sunday. Anyway, I'm in a tight spot here, and want to get back to one of a few possible states here.  The first one is my first choice: (1) Be able to boot from my usb-connected usb-ext4 HDD so that I can recover my transferred folders and files from the crammed-full 17-K073 drive first. (2)  Be able to reboot from my externally-connected DVD/CD RW drive so that I can reattempt a complete reinstall of Ubuntu, even though this means losing my hord of stored folders and files in the process. (3)               

    I appreciate the thought.  But as you say, that means getting into the guts of the laptop, and that should not be necessary.  No, the real trick is to get the PC back into boot form somehow. I spent quite a bit of time on a support chat session last night, and though reluctant to help me at first (I had wiped out Windows 8.1, and they were disinclined to deal with a 3rd party OS), I convenced them it was now a hardware issue.  That is, how to get the PD to recognize one of three boot sources if it was not going to boot up to the internal hard drive.  It had to be something related to using F9 and/or F10 function keys.  So we went through some of the functions of the function keys during the black screen phase of the boot process.  I found out that F1 gives you information about this particular laptop, including the derial number, that F2 allows me to test memory, check the hard drive, or pick a different language. F9 lets you select a specific device to use during bootup.  The oriblem was, F9 was showing the usb hdd selection as being specific to my wd (Western Digital) My Passport 0748 drive, and it now had a different name and assigned UUID due to having been reformatted from NTFS to ext4.  I had to get rid of that specific drive reference, and F9 gave me no way to do it.  It had to be somewhere in the Systems Settings, which are accessed via the F10 key.  But I had already looked at the boot device order in the Systems Settings, and it was okay, and tried both with and without the legacy boot option.  Still no go.  Support gave me a few more ideas to try, but it was real late, I was tired, so I elected just to use F3 and text the built-in SSHD during my rest period (SSHD stands for Solid State Hard Drive, which is an excellent feature of this laptop, as mechanical hard drives wear out and develop problems over time). So when I woke up today, I hoped the changes made earlier would help.  They didn't.  I turned Legacy support back on, and tried to get the LiveCD to load properly from thr internal DVD/CD drive.  This time it worked.  I'm up running on the LiveCD, and tried an install, but somehow that got hung, so I just rebooted back to the LiveCD and went into Try mode, which is much like the real thing, but mostly isolated from the existing hard drives.  I had to figure out how to look for any existing files on my internal HDD so that I could copy them back to the reformatted My Passport drive, now renamed usb-ext4.   The search for existing hard drives under Ubuntu begins under /dev,  but the LiveCD treats the devices there somewhat differently than normal.  It adds a subfolder /mapper in which it keeps files that somehow manage the process, and I don;t have a clue as to how to use those files myself. But I know Ubuntu well enough to know that there is a folder named /media under which a logged in user appears by name, and when I checked with a "dir /media/" command, the LiveCd had me down as being "ubuntu".  That was my username when using the LiveCD.  When I did a "dir /media/ubuntu/", I saw four listings.  Two were HDDs that were being identified via their UUIDs, so had about 16 mixed characters that uniquely identify each.  And I had cdrom and usr-ext4. I did a change directory to the first long UUID name by typing in "cd /media/ubuntu/" then doing a screen copy-and-paste to put one of the UUIDs after the last slash ("/").  In terminal mode, copy-and-paste are slightly different than found in similar operations else where.  First, what gets copued has to be highlighted with the mouse and left button held down.  When you have the exact area you want to go to the clipboard highlighted, you hold down the Ctrl+Shft keys together and press the "C" key.  Now it is in the clipboard.  Then you use Ctrl+Shft again and press the "V" key.  The copied text in the clipboard is then copied to the place on the command line where the cursor sits.   Press Enter, and you have changed directories to that point.  A '"dir" commanf now shows you the contents of the root folder on that drive.  The contents of the first drive were not what I needed, so I repeated this process to get to the root of the 2nd HDD.  This had the recognizable folders for Ubuntu in it, so this was the drive I had installed Ubuntu to, and I then used a repeat of the "dir" and "cd" commands ro walk up the home > username > foldersought > folderfilestore, where rhe username, foldersought, filderfilestore are simply representing the actual names used. When I got to folderfilestore, I was refused oermisson to enter.  This happened in the GUI as well.  Well, where the users may be balked, root or super-user have no problem.  LiveCD does not permit you to log in as root, but in Terminal mode, you can become super-user by typing in :sudo -s" or "sudo su" and pressing Enter.  From the LiveCD, you don;t even have to enter a password.  I mean you are just there.  To avoid further folder and file disputes over priveleges, I used the following command:  "chown -R nobody:nogroup " and stuck the name of the folderfile store on the end.  In a few moments, that folder and everything it contained had all priveleges revoked.  Now I could selectively go through this folder from the GUI and eliminate needless or unwanted folders and files, while merging the remaining on the separate storage partition I had previously formatted on the externally connected HDD that had been My Passport. Why am I going into such detail?  Because this is what you can do with a LiveCD of any distro of Linux, and you can do it all with free software that you download off the internet.  I just prefer Ubuntu, because it is widely supported and most like Windows in terms of its Gnome or KDE GUIs.  That means less relearning.  Anf the magic that Linux is, is (1) Better, faster, smaller than Windows,  (2) Completely free,  (3) able to work with Microsoft volume and file formats so you don't lose everything you already have, and (4)  Even run some MSDOS and Windows programs via an add-in named Wine, which is also free.  You can get recovery disks for Windows, but I find having a LiveCD another effective way to deal with lots of problems.  Like now, I am using it to work around a crammed hard drive problem so that I can reformat the internal drive, reinstall Ubuntu from the same LiveCD, and keep on going.  I can reinstall from a Live CD without disturbing my existing account or the files already there.  Or I can take over the whole drive and erase everything on it.  Or I can install Ubuntu along side the existing operating system (no me though.  I have no use or regard for any Windows version pass XP).  Or you can install Ubuntu to run as a client of Windows (some like it this way).  Or you can install a VM in your existing OS and install Ubuntu in a Virtual Machine client, which isolates it pretty well from the external world. To a lot of people, Windows is it.  You need go no further, except to buy the next major release coming out of Microsoft.  The biggest part of MS' profits is not enhancing existing Windows, but coming up with something a bit newer, better, or offering more features than is already on the streeets in the form of an earlier version of windows.  That is profiting off ofr having created a large worldwide dependency on Windows, and just catering to people's desire to do more and more things, like fingerprint recognition, touchscreen, webcam, and playing DVDs on your PC instead of via a player attached to your TV.  You can even attach your PC to the TV via a an HDML port to turn your PC into a media center.  I mean this is all do-able, but why would you want to?   What you are really buying into is the idea that the PC can do anything, but it takes Windows to make it happen.  So you have to buy newer, faster, bigger PCs as Windows gets bigger, more bloated, and more demanding on storage space and required memory. If I buy a PC, (and this new laptop qualifies), I don't pay attention to whether it comes with Eindows 7 Pro, Windows 8, 8,2, or 8.3.  I'm going to trash all that anyway.  And MS' enticement, that I can have a free upgrade to Windows 10 is not something I need to hear.  The ubuntu (and other Linux distros) community is worldwide and people help each other through forums.  Support for Windows is not so lavished, and while some of it is free to visit and download from, you find that technical support is of the pay-extra kind or of the as covered by the warrantee nature. I won't close this thread yet.  I'm at the start of a lengthy copy-reformat-reinstall-recopy effort, and just because I can boot up from a LiveCD and do some of it does not mean that I will find the PC able to boot from the internal drive when the reinstall is complete.  Until then, it is a play it by ear effort still.  

  • How to create a new session in JSP file

    Usually a child IE window uses same session with parent window. Dose someone know how to create a new session when creating a new IE window by clicking a URL in parent window? The web page is writen by jsp file.

    I am not sure of your question. Are you wanting to have 2 Session objects (one for the parent window and another for the child)?
    A session is usually created once per client and is stored on the server the session id is carried around in a cookie or a URL rewrite so that everytime the user submits a page you will be able to store/access information.
    // this will create a new session object if one doesn't already exist.
    HttpServletRequest.getSession( true );
    Hope this helps

  • Session in JSP page

    Hi all,
    i built a web application now i want to use session in JSP pages to remember some variable such as password and entered date because i need them in later pages and i also don't want to send them via HTML hidden field. I actually don't know how to use session. Can anyone please just tell me how to create a session and store a variable and also how to retrieve the data from the session.
    Another thing is guys can anyone tell me please that say i am user and i selected some items from a HTML select list and i submitted that and logged off the system now when i login later again i want to see those choices selected by default , i know it might have been done by sessions can anyone please tell me.
    THANKS VERY MUCH

    This is the way u can set and retrieve values from session
    <% session.setAttribute("key","value"); %>
    <% String user=(String)session.getAttribute("user");
    %>
    regards
    Shanu

Maybe you are looking for