I think I'm doing this wrong

What is the proper way to handle session management from page to page in a JSF application? Specifically, I want to check if the user is logged in before I allow a page to load. I've seen various jsp scriptlet solutions and the use of SendRedirect() to handle the task, but I'm wondering if the JSF framework provides a better mechanism for this as part of the page life-cycle.
Thanks

I'd suggest using a servlet filter instead of including code on each page explicitly. Check the session in the filter and forward to a login page if not logged in.
You'll have to figure out how to send the unauthenticated user to you login page as it'll go through the same filter. For example, if all of your pages use the jsf extension, you could just filter those and have a regular jsp as the login page.
However, I generally use the container managed security, so I haven't had much experience with this method.

Similar Messages

  • I just tried to install iOS7... and i think I'm doing something wrong...

    It brought me to this white screen that says "Hello" and "Slide for passcode" and i did that... but I tried to enter my normal phone 4 digit password and it just won't let me in? Am I doing something wrong? It just won't let me in no matter what I type.... and it's not letting me create a new passcode??

    it's not... it just says "enter passcode" above and the numbers..... and it says "emergency" and "cancel"... that's all.

  • Am I doing this wrong, E4200 and WAP610n

    HI all
    I have a E4200 router that is located in my office on the second floor which is a bedroom. Due to the construction of my house here in FL, The signal is greatly diminished by the time it reached the first floor. I would like to remedy this but not sure of the best way.
    I have a 50 foot run of cat6 from the E4200 that I was able to snake down into my main living area downstairs.
    So, what is going to be a solution to get a strong/full wireless signal downstairs?
    is that the WAP610N?
    If so how do I set it up.
    I have a WET610 but that does not seem to want to work (unless I have it configured wrong)
    A rep on chat suggested the RE1000 but I tried that once before it while it improved range a litle it slowed down the WHOLE network big time.
    Really appreciate your help in getting this licked. I am not above getting a second E4200 as I am running tomato fw on the one upstairs
    thanks

    Hi,
    Here's what you could do.
    All 3 devices should have the same wireless settings. Like the ssid and the type of wireless security. Wireless channel may vary from all 3 devices.
    E4200 ---- WAP610N ---- WET610N
    Follow these steps for the configuration:
    Manually configuring a Linksys Wireless-N Bridge to work with an access point (WET610N)
    http://www6.nohold.net/Cisco2/ukp.aspx?vw=1&docid=7a41823e18f54c4cb22a97ec238e82eb_Manually_configur...
    Setting up the WAP610N
    http://www6.nohold.net/Cisco2/ukp.aspx?pid=80&vw=1&articleid=22519
    In this set up, the WAP610N is now gonna be on the 1st floor wirelessly extending the csignal downstairs from the router then WET610N will act as a wireless adapter where you could hardwired it to a non-wireless capable pc (an option for you).
    BTW, assigned or change the ip address of the WAP610N in line with the router. For example, the router has 192.168.1.1, on the WAP610N you can assign 192.168.1.6 perhaps. Follow this link;http://www6.nohold.net/Cisco2/ukp.aspx?vw=1&docid=830d397381d541878ee23f43679c1834_20525.xml&pid=80&...
    Hope this helps.

  • Am I doing this wrong? Bindable

    [Bindable]
    public var apples:Array =["red"];
    and then down bellow:
                </fx:DesignLayer>
                 <s:DropDownList x="124" y="100" id="myApples" dataProvider="{apples}"/>
             </fx:DesignLayer>
    This causes my app when run to be a white screen and no errors are thrown that i can see.
    While erasing the dataprovider line makes the app work again.
    What am I doing wrong?

    Hey Adrien,
    The dataProvider property is typed to IList (ArrayList, ArrayCollection, etc...) and not Array.  If you use ArrayList, instead of Array, it should work.  Try this:
    import mx.collections.ArrayList;
    [Bindable]
    public var apples:ArrayList = new ArrayList(["red"]);
    Cheers,
    Ryan

  • I'm new to the whole thing of forums, so I apologize if I'm doing this wrong . . .  I need help on with an old version of Adobe Photo Deluxe 2

    I have the disc for Adobe Photo Deluxe 2 --- I know it is a very old program, but it does what I need to do in a very easy way.  I have tried downloading PhotoShop Album starter edition and Adobe Photoshop Elments version 7 - and they just don't do what I need as easily - or I can't figure it out.  Anyhow, I'm using vista on a new machine and cannot run Adobe Photo Deluxe 2 - any help to get this program running would be greatly appreciated.  I'm mainly using it to fix and edit clip art for a church newsletter.  So I really don't have a lot of money (like none) to spend on buying a new program that still won't do what I need it to do.  Thanks for any and all help on this issue.

    First use JPanel not Panel.
    Panel panels[]=new Panel[4];becomes
    JPanel panels[]=new JPanel[4];Then refactor your code so that you use arrays correctly:
    panels=new Panel();
    panels.setLayout(new FlowLayout(FlowLayout.LEFT));becomes
    panels=new JPanel();
    panels[i].setLayout(new FlowLayout(FlowLayout.LEFT));
    I did the above changes to your code and it worked fine.
    Dave

  • Am I doing this wrong?  Pixs

    Hello to the mac family,
    I'm back with another question. I bought my wife an I-pod Nano along with my
    new I-mac. I am not sure what generation it is but is about 3 weeks old.
    I am very new to X (9,2 user) so please be kind. I put some sings in I-tunes
    and can get them onto her I-pod. Now I wanted to put a few pictures on her
    Nano so she can view a few friends pictures. I have the pictures as jpegs, tiff files
    and pict files.
    I place the pictures in I-Photo and they are there. I hook in her I-pod and don't
    seem to see it. Am I correct in thinking her Nano can display pictures? These are just stills
    of people etc.
    Why can't I seem to get them onto her Nano.
    At times I think that technology is just going to fast for this old printer to keep up with.
    Please help because these are pictures of her recently deceased family members and
    I want her to be able "Visit" them on her I-pod when she feels blue.
    Thanks as always........mGb..........Jim

    Hello Ian,
    Thanks so much for the help. As you suggested it worked great. I am still having a bit
    of trouble naming folders, events albums etc. But the main thing is I got several pictures
    onto my wife's Nano. She has had several deaths (3) in her family this past year. I wanted her
    to be able to see her family if she felt the need.
    I know for you it may have been just a simple help but it meant a real lot to us. Thanks for that.
    Please remember that there are relics like myself who are just starting to make the change to
    X. We need lots of simple help. For example I was not certain which way to face the CD when placing
    in slot. I was nervous but I guessed right.
    You have done a great thing and I will always be grateful......mGb......Jim

  • Elements vs. symbols - am I doing this wrong?

    Hi,
    My stage has a good handful of elements, plays fine in the beginning, then slows down as time passes.
    My stage only has the main timeline. It contains 23 groups, each with two images inside. All of these (groups and images) are elements, not symbols.
    My problem is that, when playing this on my iPhone5, the animations are fluent in the beginning, but towards the end (at 24 sec.) the playback becomes slow and rather choppy...
    At any given time, no more than 6 elements are visible (the images simply slide into view and out again).
    When I debug the edge javascript code, it seems that all tweens from start to current position are updated each frame - this indicates that playback will in fact become slower, the further it plays... this can't be right, can it?
    Am I missing something here?
    How do I optimize my animation?

    Ok, so I'll answer this myself.
    Digging into the code seems to reveal what I suspected: When a tween's time-window comes into scope, the tween is updated every update - this continues even when the tween goes out of scope, causing the animation to run slower because of updates to an increasing number of tweens...
    What I still haven't figured out, is why Edge Animate inserts a host of 'injected' tweens when it rebuilds the timeline... I bet it would make sense if I understood the complete structure, but this stunt triples my tween count which is devastating to my animation.

  • Is it odd that the back-up/retreival process takes  hours on my iphone4 or am I doing something wrong?

    I need help understanding how the icloud back-up/retreival process works and how to use it at maximum efficiency

    Welcome to the Apple community.
    You must remember, that whilst you see Internet speeds quoted as say 8, 12, 16, 30 Mb per second etc, this refers to download speed. most service providers will give you around 1 Mb per second as upload speed. At these speeds a gigabyte of information will take around about 2 1/4 hours to upload.
    So in answer to your question, no I don't think you are doing anything wrong.

  • Am I doing it wrong?

    I'm trying to animate one of those cool looking circular
    symbols (Think transmutation circles from Fullmetal Alchemist or
    pentacles and such) and I'm trying to animate it so that the lines
    draw themselves as an animation.
    Should be too hard, right? So I set to tweening the mask
    layer when I note something: I can't tween growth along a path, or
    at least I don't know how to. I can only tween movement in a
    straight direction and maintain a simple shape - no curves and
    such. I'm halfway through doing a key-frame by key-frame mask
    'animation' when I stop and think to myself "...No. I'm doing this
    wrong."

    http://www.keyframer.com/index.php/2006/10/the-write-stuff/
    ~~~~~~~~~~~~~~~~
    --> Adobe Certified Expert
    --> www.mudbubble.com
    --> www.keyframer.com
    ~~~~~~~~~~~~~~~~
    V^Infinity wrote:
    > I'm trying to animate one of those cool looking circular
    symbols (Think
    > transmutation circles from Fullmetal Alchemist or
    pentacles and such) and I'm
    > trying to animate it so that the lines draw themselves
    as an animation.
    >
    > Should be too hard, right? So I set to tweening the mask
    layer when I note
    > something: I can't tween growth along a path, or at
    least I don't know how to.
    > I can only tween movement in a straight direction and
    maintain a simple shape
    > - no curves and such. I'm halfway through doing a
    key-frame by key-frame mask
    > 'animation' when I stop and think to myself "...No. I'm
    doing this wrong."
    >

  • Outlook, IMAP and ... am I doing this right?

    Hi, just joined this forum as I found some useful info here after searching google for info.
    From what I've found out and what I've achieved, I may be doing this wrong, or not able to achieve what I want to achieve.
    I access my email, via various email addresses (BTInternet, Yahoo, my own domain, gmail etc) from Outlook at home (which stores everything permanently), Webmail, and mobile phone.
    I used to have outlook set up, everything via POP, to nab everything off the server as soon as I send/receive so that it isn't there any more. I've changed this now so it leaves the last 14 days of emails on the server so I can still access them from my phone and webmail after I've 'downloaded' them to outlook. So far so good.
    However I have a problem with 'sent' mail. Any email I send stays in the 'sent' box of whatever I sent it from, so I have some Sent mail sat in my Outlook sent folder, some in my webmail sent folder and some in my phone sent folder.
    I'd like to keep these all together.
    Now my limited understanding of such matters lead me to believe that IMAP mail would be a solution, however having fiddled with it a while I'm not so sure it is.
    After searching around I found the instructions on how to do so here: http://community.bt.com/t5/BB-Out-About/Re-IMAP-se​rvers-on-BTInternet-email/td-p/3045/page/3 which refers to setting up IMAP on a mobile device. However setting it up the same way in Outlook gives me a whole new Personal Folder, and only shows me what's on the server (it doesn't 'sync' in the way POP does, I THINK...) and I am unable to successfully send anything - any email I write through that account sits in my my main 'Outlook' Personal folders Outbox, and goes nowhere.
    What I want is something that works transparently like POP access did - all my emails from various services coming down into my one inbox, then shuffled about to various folders depending on various Outlook rules, and being stored permanently on my machine, but now I ALSO want the ability to have a centralised 'Sent' folder accessible from anywhere.
    Is what I want achievable? And if so, how do I do it?
    Thanks!

    Have a look at this discussion...
    http://discussions.apple.com/thread.jspa?threadID=1150785&tstart=0

  • Using Pages for e-books - am I doing something wrong here?

    Hi!
    I wrote 5 e-books with a total of around 1.500 pages in Pages. Great program
    Now I wanted to apply a template but in a mix og horror and frustration, I'm not sure if I got all this wrong.
    Can't I apply a template on a document already written? I bought a template with 10-12 different page setups, looking really nice.
    It's like I can only add new pages and move my text to them, page by page and I'm NOT going to do that with 1.500+ pages :s
    Am I doing this wrong? Is Pages the wrong choise for this?
    If not, what program would be the one to use for setting up my books?
    Thanks in advance for any feedback

    Pages templates do not work in this way, they have fairly poor templating and styling methods.
    If it is simply a matter of styling a lot of word processing you could open the previous work in Pages *Word Processing mode* and replace each style with an edited version of itself. Replacing colors is not so easy and layout extremely difficult.
    Pages does not have the efficient keyboard methods of applying styles, that more capable DTP packages have. So applying the styles is tedious.
    Even with styling unless you had been extremely careful dividing your paragraph, character and list styles you will likely have a lot of manual work to do. Pages does not have a method that I know of to show unstyled text that would drop through the cracks of any changes.
    If you did the previous work in *Layout mode*, you may as well start from scratch, there would be too much manual adjustments etc to make it worthwhile.
    To get the sophisticated updating of firstly styled text, you would need a DTP program that allows direct exchange of styles. To have the ability to change layout you really would need Adobe InDesign.
    Peter

  • HT201318 Hello. I have just built a website using iWeb but cannot upload it. I curently have the 25gb account. There doesn't appear to be any facility here for the net. ASm I correct in thinking I need an upgrade, or am I doing something wrong?  Thanks

    Hello. I have just built a website using iWeb but cannot upload it. I curently have the 25gb account. There doesn't appear to be any facility here for the net. Am I correct in thinking I need an upgrade, or am I doing something wrong?  Thanks

    iCloud does not provide website hosting. You will need to find another website hosting service - there are many to choose from - and upload your site there. How you do this depends on what version of iWeb you have.
    In order to upload your existing site in iWeb '09 and above:
    Click on the name of the site in the sidebar: the publishing settings pane will open. Set 'Publish to' to 'FTP'. Enter the name of the site and a contact address (if desired).
    In the 'FTP Server Settings' section you will need to know the server address (your hosting service can tell you that), and your username and password for that service. Your site will be published in a folder with its name at root level of the server, with an index.html file at root level (which will overwrite any index.html file which may be there already). The 'Directory/Path' field may need to include a path such as '/webspace/' or 'ht_docs/' - this is dependent on your hosting service and they should tell you this. If you want to publish within a folder you can add that to the path.
    You can then click the 'Test connection' button so that iWeb can check that it can get access to your server space. You should enter the URL of the site in the 'URL' field so that rss feeds and internal links have the correct address.
    To publish using an earlier version of iWeb:
    From the File menu choose 'Publish to a folder'. You should create a folder somewhere convenient specifically for this and choose it when publishing to a folder: this folder should not contain anything else.
    You now need an FTP program (FTP is the 'protocol' used for uploading) to upload the contents of the folder to your server.Cyberduck is free (donation requested): Transmit is $34 but I think better. You will need the server address (your hosting service can tell you that), and your username and password for that service. You can drag the contents of your folder to your webspace, or create a folder there and drag the contents to that if you prefer.
    Some facilities that iWeb provided when hosted on MobileMe will not work on other servers: comments on weblogs and photos, password-protecting your site (some hosts may provide this), searching in the weblog, and a hits counter (again, some hosts can provide code for this). Slideshows in iWeb will work on other hosts than MobileMe (they use different code when FTPing which doesn't depend on scripts hosted on MobileMe as the MobileMe version does); however there is an issue with the 'buttons' which control the slideshow which are images hosted on me.com - these depend on images which used to be hosted on MobileMe. The poster 'Old Toad' on the Apple Forums has provided a workaround, described at http://oldtoadstutorials.net/No.26.html.

  • I have a Windows 8.1 and it's even running slow.  I'm a complete novice with computers (I've only had this one for 3 weeks) and I'm probably doing something wrong, but I haven't a clue what....

    I have a Windows 8.1 and it's even running slow.  I'm a complete novice with computers (I've only had this one for 3 weeks) and I'm probably doing something wrong, but I haven't a clue what.
    The tools are not responding when I try to use them.  Some of them work sometimes, but not others and some don't work at all.  I'm in a design class online and I need these tools desperately.  I have an assignment due Monday and I'm losing the whole weekend because Tech Support is only open M-F!
    Any help anyone can give me will be appreciated.
    Thanks,
    Rose Ireland

    Maybe these links provide some pertinent information.
    Optimize performance | Photoshop CS4, CS5, CS6, CC
    Photoshop: Basic Troubleshooting steps to fix most issues

  • TS4036 my device has been crushed beyond repair, and I don't think I ever did the backup thing. does this mean I can no longer see any of my stuffs??

    my device has been crushed beyond repair, and I don't think I ever did the backup thing. does this mean I can no longer see any of my stuffs??

    thats really 4kd up

  • I need to use my iMac to run some Windows software and was thinking of using Parallels Desktop 9 to help with this. Do you still have to partition your drive with Parallels and does this leave you open to viruses?

    I need to use my iMac to run some Windows software not available for Mac and was thinking of obtaining Parrallels Desktop 9 to help with this. If I use Parrallels do you still have to partitian your drive and does this leave you open to viruses?

    You do not have to partition your drive - Parallels creates a disk image which contains your Windows installation. You do have to exercise anti-virus measures in the Windows partition, although such malware cannot affect the Mac filesystem.
    Matt

Maybe you are looking for

  • IPad syncing issue between old and new computer.

    I 'm trying to sync my iPad to a new computer, but it says my iPad is already synced to another library.  My previous computer and data is no longer accessible.  I do NOT want to lose what I have on my iPad, its a real pain and its happened before: t

  • IPhoto '11 stopped working

    My Mac was delivered with iLife 11 installed, but did not include iDVD.  I purchased and installed an iLife '11 disk specifically to get iDVD but after the install, iPhoto won't open.  I get an error message stating that iPhoto is damaged or incomple

  • Web Dynpro for ABAP and Floor Plan Manager

    Hi. How can I integrate an ABAP Web Dynpro application in the Java Web Dynpro based Floor Plan Manager (FPM) framework? I'm thinking of the "General Information" page in the MSS Business Package (com.sap.pct.erp.mss.general_information), where the ma

  • Images turn green in LR2

    Several months ago one of the images in a folder turned green when I selected it. I always import files as digital negatives and then create a virtual copy to develop. In this case both the copy and original turned green. Going to the develop mode I

  • Anybody know where I can find Aperture RAW update 4.02?

    Doesn't seem to be showing up in the list of most recent RAW updates, looking for support for NEX-6.  Thanks!