Page protection mechanism

Hi all
I need to protect my jsp pages from viewing by users that did not authorize first;
i could include in my jsp pages code to check for that but i gues that would not be optimal;
is there a more simple way to do that? some general class that gets called before any page is loaded and redirects to login if user is not logged in ...for example
Thanks

There are mechanisms for that. Check the following links:
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Security5.html#wp182253
http://www.onjava.com/pub/a/onjava/2002/06/12/form.html
jimbo

Similar Messages

  • Page Protect in RTF Template

    I have a RTF template in which I have the following defined:
    header text
    start:body
    body text 1
    for each g_group
    text table
    end g_group
    body text 2 **** Page protect this
    end body
    footer text
    I would like to do something like a page protect on the "body text 2" part
    because if the group is longer than 10 rows the "body text 2" goes over
    onto the second page and looks strange when it is split in two parts.
    Has anybody done this?
    I tried using the normal word paragraph formatting but as soon as I put in
    a break I get the following error:
    org.xml.sax.SAXException: element xdofo:start is not supported yet.
    Thanks
    Ellen

    This functionality is only supported for table cells. So you can wrap your body text in a table with a single row/column and no borders. Then you select the table and then select Table -> Table Properties from the menu bar. Select the row tab and uncheck the checkbox:
    [ ] Allow row to break across page
    That should do the trick. Let me know, if it works for you.
    Klaus

  • Page Protection in Main window of smartform using Folder issue

    Hi Experts,
    We can fix the page protection issue of records in main window by checking the No Page Break check box at the line type level in a smartform.
    I tried to solve this issue by using the folder option. I created a folder inside the table of a main window and checked the page protection check box. Save and activated the layout. When i tried to add the table to the folder, the check box for page protection was reset to blank.
    Why does this happen? Cant we use page protection inside main window using folder ??
    Thanks

    Hi friend,
    We can do page protection functionality inside table of main window using Folders option. Follow the below steps,
    1. Assume rows are created inside table in a main window, with corresponding line types.
    2. Create a folder named PROTECT inside table, for example in Main area of table.
    3. Just drag and drop your Row(s) into folder PROTECT and simply click page protection check box of the folder PROTECT.
    4. This will help you to add the required functionality using Folders option in smartform.
    Try this and update me in case of any concerns. Hope this will solve your problem.
    Check the attachment also for your reference.
    Cheers...

  • Reg: Page Protection Check Box in Smartform

    Hi,
      In the folder node of the smart form, i want to use the check box ' Page Protection'. But the check box is disabled. Can any one guide me how to enable the check box. Thanks in advance.
    Rgds,
    Nagendra Prasad.J

    Hi,
    I did like that,
    I created one folder and I selected the checkbox in output options.
    when I am trying to create "TABLE" in that folder, it's automatically resetting the checkbox.
    error text "Page protection for node %FOLDER1 was reset"
    Plz. suggest me.......!
    Thanks & Regards
    Rajendra

  • Page Protection

    Hi,.
    In the smartforms, the check box option for page protection for cells, text elements and row type (line types) are disabled in the changed mode also. Can anyone please educate me why this option is disabled and how to enable them.
    Regards,
    N.M.S.M.Krishna.

    Hi,
    Right click on the node and Create a folder then drag the node in this folder you will find the Page protection option in editable mode.
    This is mainly to avoid data truncation when data flows on the subsequent pages.
    Hope this helps.
    Thanks

  • Main window data to be page protected in smartform

    Hello Experts,
    I want to make Main window data to be page protected.
    But page Protection check box is in Noneditable mode .
    Please let me know, how to make main window data to be page protected.
    Regards
    Mohit

    Hi,
        Try this way
        Under the Main Table node, you will find, Header, Main Area and Footer.
        Select Main Area, right click Create> Folder
        Drag the Row item inside the Folder
        Select the Folder node, for Folder node out put options, you can select Page Protection check box.
    Main Window
        Header
        Main Area
          Folder
            Row Items
        Footer
    Regards
    Bala Krishna

  • Page protection violation when switching tab in apex

    Good Day MASTER,
    Got my Application running in apex with Oracle 11g XE
    when i am in the tab of inventory
    then i want to view the beginning inventory
    then i click the Beginning Inventory it will shown up a error like this:
    "Page protection violation: This may be caused by manual alteration of protected page items. If you are unsure what caused this error, please contact the application administrator for assistance.
    Contact your application administrator."
    but when i log - out in application it will be okay.. but when i access again the inventory to beginning inventory
    it will shown the error..
    its so annoying dont know what to do..
    please help MASTER'S

    Hi Mike,
    This error may be because of of some hidden item you have created and made it protected.
    Now while navigating you are updating that hidden item.
    Kindly check hidden items on your pages.
    Abhishek

  • Page protection not work for smart form

    I want to my item data in the same page.
    ex: item no.  material   description   quantity
                 10   0000001  material CH  10
                                      material EN
                                      long text 1
                                      long text 2
    In smartform, i had added folder under loop. and set page protection.
    But page protection still not work.
    Please help. Thanks a lot!!

    Hi Nicole,
    it works in smartforms the procedure is select text elements and give /:protect and paragraph name like p1: text wht ever u want P1:text similary how many ever  u want end it with /:endprotect
    it looks something like this
    /:protect
    p1:
    p1:
    /:endprotect.
    check !
    regards,
    sana.
    reward if helpful...

  • Unable to use page protection in smartform

    I am working on a smartform but i am unable to use the checkbox page protection anywhere in the po form.  What do I have to change so I can use this option?

    Hi
    check the parent nodes of the objects, do they hv page protection checked.remove them and try.
    OR
    U can create a FOLDER node and check the page protection.
    If u want to protect a particular line type then in table click DETAILS and click the line types which u want to protect.
    Regards
    Hareesh

  • Page protection in smartform is disabled and how to overcome this problem

    hi friends,
    i have a smartform in which there is a table node to display the item data as shown below :
        Customer No : 12345678
        |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||   ( Barcode )
        Material No :201836
        |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||   ( Barcode )
        Material Description : Phase Shifter
        |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||   ( Barcode )
        Customer Part No :  TDD-09QA76
        |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||   ( Barcode )
    My Problem is for some customers when the data is much the text is printed in first page and it's corresponding Barcode is getting printed in the Second page which should not happen. I want the text and the barcode should be page protected But when i am trying this the Page protection option is in disable mode. So please anybody help me how to enable page protection it is disabled even if i create a folder.
    NOTE : the table does'nt have main area they have kept every thing in the header itself.
    Edited by: Murthy.G on Nov 17, 2010 5:51 AM

    Hi,
    For basis releases 6.20 and higher, you can define a page protection inside of a table, which contains more than one table line. This function is available, if you have a table of the new table type. i.e. If the table was not originally created in a 46C system. If you right-click on the table node, you can 'Create' a 'Folder'. In the folder you can set the 'Page Protection' flag. After that
    you can right-click on the folder and select Create -> Table line. Then you can put table lines into the folder, which are protected.
    Regards,
    Aidan

  • Page protection in the smartform

    Hi All,
    I am working with an issue in smart forms.
    Requirement: The main table header in the main window should be dispalyed from the second page if and only if there is no space for atleast single item level in the first page.
    Solution that i tried for: I have created a folder under the header of main table and added all the  table lines which were present in the header and checked the page protection  tab.
    The impact to the solution is that it is working but in the second page i am getting 2 headers
    example :
    header
    lineitem1 value
    lineitem2 value
    header
    Querry:I dont want to display the header which is at the bottom.Is that possible?If possible i would like to take help .
    Thanks in advance,
    Bhavani.

    Click on the 'Header' node of the table. Under the 'output option' tab, there are two check boxes 'At start of the table' and 'At page break'. check and uncheck them as you want to display the table header and check the output.
    and there is no need of creating any folder under header node.
    Hope it will help you
    Edited by: Sujeet Karn on Oct 30, 2009 3:40 PM

  • Smartforms - page protection problem

    Hi,
    I have made an invoice form with smartforms. To protect the positions of page breakes, I have made all position nodes in one folder note and set the page protection flag for that folder. Because in tables the page protection option is not working, I have made it all with paragraphs...
    This is my problem now:
    If the form has more than one page, I have to show the sum of all positions of the first page on the bottom of the page and one the top of the next page. Therefore I have calculated the sum inside the loop of the positions (at the end of the loop).
    This is normaly working... But if I have two pages and only <b>ONE</b> position does not fit on the first page, the calculated sum contains the sum of <b>ALL</b> positions, although the last position is shown on the next page!
    Any ideas, how I can only calculate the positions that fit on one page <b>FOR REAL</b>?
    Thank You very much!
    Cheers Arne

    Hi,
    I encountered a similar problem as ur doing.In dat scenario what i did was that I created a <b>Loop</b> instead of a table and secondly based on the page size please create a style with proper an appropriate tab and use this through out while displaying the line items.
    Using a tab will ensure equal spacing everywhere and the data will not overflow from any line and where ur writing a variable place an addition (C) at the end of that variables between the &. This also ensures that the data doesnt overflow and confines to the space.
    Hope this will help.
    Varun

  • Page Protection in Smartforms

    I know this question has been asked before but I've not found an answer which completely solves my problem.
    I have a table node in my smartform (basis version 7.0, ERP 2005) which has several line types and a loop within it but I need all data to be page protected for one loop of the table (not the inner loop).  On the table node I've marked all line types as page protected but that just seems to protect each one individually and not collectively.  I've also tried putting the whole table node inside a folder but the page protection flag for the folder is disabled.  I'm also using several different paragraph and line types so page protecting those within the smartstyle doesn't work either.
    Can anyone help?

    Hi,
    <b>Protection against page break for line types </b>
    1) Double-click on your table node and choose the Table tab page. 
    2) Switch to the detail view by choosing the Details pushbutton. 
    3) Set the Protection against page break checkbox in the table for the relevant line type.  Table lines that use this line type are output on
    one page. 
    <b>Protection against page break for several table lines</b> 
    1) Expand the main area of your table node in the navigation tree. 
    2) Insert a file node for the table lines to be protected in the main area. 
    3) If you have already created table lines in the main area, you can put the lines that you want to protect again page break under the file
    using Drag&Drop. Otherwise, create the table lines as subnodes of the file. 
    4) Choose the Output Options tab page of the file node and set the Page Protection option.   All table lines that are in the file with the Page
    Protection option set are output on one page. 
    Alternatively in a paragraph format use the Page protection attribute to determine whether or not to display a paragraph completely
    on one page. Mark it if you want to avoid that a paragraph is split up by a page break. If on the current page (only in the main window)
    there is not enough space left for the paragraph, the entire paragraph appears on the next page
    Regards
    Sudheer
    Message was edited by:
            Sudheer Junnuthula

  • Page protection prob

    Hi Experts,
                      In the main window ..i have a table....but in the output options tab---the page protection check is disabled ....how do i provide page protection?
    plz help...it is urgent

    Hi,
         Put the table(s) in a folder....now u will be able to see the page protection check.......
    Plz reward...
    Regards,
    Himanshu

  • Page protection at smartforms

    hi folks,
    i want to make a table node as page protection.
    -i have created a folder and include the table node inside, but still the protection field is gray off? can anybody help?

    Hi Ester,
    I am using the same option as mentioned in SAP help http://help.sap.com/saphelp_47x200/helpdata/en/3e/c4308945ca4953bb100b9661eab3c2/frameset.htm
    But still the page protection does not seem to work.
    Please let me know how you resolved this issue.
    Thanks,
    Chamu

Maybe you are looking for

  • Font substitution.

    I'm on an iMac running 10.4.11 and have updated to Acrobat Reader Version 9. I'm receiving PDFs from a colleague whose originating document is using Courier font. When the PDF is opened on my system the document's Courier font has been substituted wi

  • Thinking about using the Windows Event Logs as my main log store - looking for pros and cons

    I have been writing some larger scripts that write to physical log files.  Until today I have avoided trying to use the Windows Event logs, but, am beginning to rethink this and wondered if anyone has done this, and, what the strengths and weaknesses

  • Can't find IP

    Hey guys... I just opened my MacBook Pro and I tried connecting wirelessly to our router. I put in the password and everything works fine except it can't seem to find the IP address. Does anyone have any suggestions?

  • My Hotspot stopped working and I don't want to restore!

    Hi there, So the Hotspot function on my iPhone 5 suddenly stopped working for me one day. I used to use it all the time for work by just plugging it into my laptop. Now when I plug it into my laptop, nothing happens and it wont connect... not even th

  • Voice distortion problem in Garageband...can anyone help?

    While recording a 30 minute audio clip of voice with some ambient noise...the voice begain to get distorted. There are 5 segments of voice all recorded using Macbook Pro microphone built in. On the second segment, a noise that sounds like low white n