PASSWORD FOR FLODERS  PLEAse  HELP URGENT

HI ALL
please tell me the method of implementing password
provision for some folders/files in the system.
it should ask for password authentification before
opening when i click on the folder.
please help urgent
thanks
belur

Hi Swaroopba,
It can be very well done thru Form based Authentication.
For eg let me explain with respect to Tomcat.
Go to
$TOMCAT_HOME/webapps/examples/WEB-INF directory.
Please add the following code in it.
<security-constraint>
<web-resource-collection>
<web-resource-name>Protected Area </web-resource-name>
<!-- Define the context URL's to be protected -->
<url-pattern>/jsp/security/protected</url-pattern>
</web-resource-collection>
</security-constraint>
Please add the following code in it. And you have to specify the roles for it.
I hope this will be helpful for you.
Or if you want it in an application, please let me know.
Thanks
Bakrudeen

Similar Messages

  • HT201270 i have just updated my old 3GS and now when i am on restore the window is comming up and asking for a password. i have not set up a password for restore, please help how i can restore my date???

    i have just updated my old 3GS and now when i am on restore the window is comming up and asking for a password. i have not set up a password for restore, please help how i can restore my date???

    capriz wrote:
    i have just updated my old 3GS ...
    To what... iOS 7 is Not supported on the 3 GS

  • Don't know backup password for Icloud, please help!

    I recently got a new ipod touch and when I plugged it into the computer to download my backup from Itunes. I wrote my password but it wouldn't let me in!! I don't know the password help page, if there is anyone.
    Can someone tell me how to solve this?

    www.iforgot.apple.com

  • URGENT FIX MY Connect Four game for Wednsday PLEASE HELP

    I am using an APPLET and i want to use JOptionpane it didnt work when i used it in the paint method. So i want to make a runner to make the program work. I don't know why the Graphics g = new Graphics isnt working PLEASE HELP. Email the revised code to my email at [email protected]. URGENT FOR TOMORROW PLEASE HELP. should i have a spearate class for the runner, just email me please if you can help.
    import javax.swing.JApplet;
    import java.applet.*;
    import java.awt.Graphics;
    import java.awt.Color;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.JOptionPane;
    public class Board extends JApplet
    // the grid used for storing the game layout.
    private int[][] grid;
    // the player whose turn it is.
    private int currentPlayer;
    public final int player1=1;
    public final int player2=2;
    private int place1=5;
    private int place2=5;
    private int place3=5;
    private int place4=5;
    private int place5=5;
    private int place6=5;
    private int place7=5;
    public static void main()
    int column1;
    int column2;
    String name1;
    String name2;
    Graphics g=new Graphics();
    Board test= new Board();
    boolean wait=true;
    while(wait)
    String starts=JOptionPane.showInputDialog("Are you ready? \n (yes or no)");
    starts.toLowerCase();
    if(starts.equals("yes"))
    wait=false;
    name1=JOptionPane.showInputDialog("Enter Player 1's Name");
    name2 = JOptionPane.showInputDialog("Enter Player 2's Name");
    test.paintBoard(true,g);
    while(!test.done() || !test.hasWon(g,player1) || !test.hasWon(g,player2))
    column1=0;
    while(column1>0 && column1<8)
    column1=Integer.parseInt(JOptionPane.showInputDialog(name1+" what column do you choose?"));
    test.place(player1, column1,g);
    if(!test.done() || !test.hasWon(g,player1))
    column2=0;
    while(column2>0 && column2<8)
    column2=Integer.parseInt(JOptionPane.showInputDialog(name1+" what column do you choose?"));
    test.place(player2, column2,g);
    public Board()
    // create the grid
    grid = new int[7][6];
    // initialize the gridc
    for (int row=0; row<6; row++)
    for (int column=0; column<7; column++)
    // set the position to a default value
    grid[column][row] = 0;
    public boolean done()
    boolean flags =true;
    for (int row=0; row<6; row++)
    for (int column=0; column<7; column++)
    if(grid[column][row] == 0)
    flags=false;
    return flags;
    public void paint(Graphics g)
    public void paintBoard(boolean flag, Graphics g)
    int index= 0;
    g.setColor(Color.YELLOW);
    g.fillRect(0, 80, 700,700);
    g.setColor(Color.WHITE);
    //draws spaces
    for(int y =100; y<700; y=y+100)
    for(int x =10; x<700; x=x+100)
    if(flag==false)
    index++;
    if(index%2==0)
    g.setColor(Color.RED);
    else
    g.setColor(Color.BLACK);
    else
    g.setColor(Color.WHITE);
    g.fillOval(x,y,80,80);
    TextField column =new TextField(10);
    if(flag==false)
    g.setFont(new Font("Times New Roman", Font.BOLD,24));
    g.setColor(Color.YELLOW);
    g.drawString("C",45,245);
    g.drawString("O",145,245);
    g.drawString("N",245,245);
    g.drawString("N",345,245);
    g.drawString("E",445,245);
    g.drawString("C",545,245);
    g.drawString("T",645,245);
    g.drawString("F",145,145);
    g.drawString("U",145,345);
    g.drawString("R",145,445);
    g.setColor(Color.BLUE);
    g.drawString("START",512,548);
    public void paintFinish(Graphics g, int player)
    int index= 0;
    g.setColor(Color.YELLOW);
    g.fillRect(0, 80, 700,700);
    g.setColor(Color.WHITE);
    //draws spaces
    for(int y =100; y<700; y=y+100)
    for(int x =10; x<700; x=x+100)
    index++;
    if(player==1)
    g.setColor(Color.RED);
    else
    g.setColor(Color.BLACK);
    g.fillOval(x,y,80,80);
    public boolean hasWon(Graphics g, int player)
    boolean status = false;
    // check for a horizontal win
    for (int row=0; row<6; row++)
    for (int column=0; column<4; column++)
    if (grid[column][row] != 0 &&
    grid[column][row] == grid[column+1][row] &&
    grid[column][row] == grid[column+2][row] &&
    grid[column][row] == grid[column+3][row] &&
    grid[column][row] == player)
    status = true;
    // check for a vertical win
    for (int row=0; row<3; row++)
    for (int column=0; column<7; column++)
    if (grid[column][row] != 0 &&
    grid[column][row] == grid[column][row+1] &&
    grid[column][row] == grid[column][row+2] &&
    grid[column][row] == grid[column][row+3]&&
    grid[column][row] == player)
    status = true;
    // check for a diagonal win (positive slope)
    for (int row=0; row<3; row++)
    for (int column=0; column<4; column++)
    if (grid[column][row] != 0 &&
    grid[column][row] == grid[column+1][row+1] &&
    grid[column][row] == grid[column+2][row+2] &&
    grid[column][row] == grid[column+3][row+3]&&
    grid[column][row] == player)
    status = true;
    // check for a diagonal win (negative slope)
    for (int row=3; row<6; row++)
    for (int column=0; column<4; column++)
    if (grid[column][row] != 0 &&
    grid[column][row] == grid[column+1][row-1] &&
    grid[column][row] == grid[column+2][row-2] &&
    grid[column][row] == grid[column+3][row-3]&&
    grid[column][row] == player)
    status = true;
    if(status)
    paintFinish(g, player);
    return status;
    public void place(int player, int column, Graphics g)
    int index=0;
    if(column==1)
    index=place1;
    if(column==2)
    index=place2;
    if(column==3)
    index=place3;
    if(column==4)
    index=place4;
    if(column==5)
    index=place5;
    if(column==6)
    index=place6;
    if(column==7)
    index=place7;
    grid[column-1][index]=player;
    if(player==player1)
    g.setColor(Color.RED);
    if(player==player2)
    g.setColor(Color.BLACK);
    g.fillOval((column*100)+10,(index+1)*100,80,80);
    if(column==1)
    place1--;
    if(column==2)
    place2--;
    if(column==3)
    place3--;
    if(column==4)
    place4--;
    if(column==5)
    place5--;
    if(column==6)
    place6--;
    if(column==7)
    place7--;
    }

    gamefreak1192 wrote:
    I am using an APPLET and i want to use JOptionpane it didnt work when i used it in the paint method. So i want to make a runner to make the program work. I don't know why the Graphics g = new Graphics isnt working PLEASE HELP. Email the revised code to my email at [email protected] URGENT FOR TOMORROW PLEASE HELP. should i have a spearate class for the runner, just email me please if you can help.
    This is bloody ridiculous. You want somebody to do your work for you, you can't be bothered to carry on a discussion here and ask for private email, and you expect somebody else to make your urgency (i.e. lousy time management) their problem. You got big brass ones, kid.

  • For some reason Firefox is not asking if I wish to save the user name and password anymore. Please help as to why.

    For some reason Firefox is not asking if I wish to save the user name and password anymore. Please help as to why.

    Your plugins list shows outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 10.0 r32
    Update the [[Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    * Make sure that you not run Firefox in [[Private Browsing]] mode
    * In Private Browsing mode some menu items are disabled (grayed) and features like visited links are disabled and not showing
    * You are in Private Browsing mode if you see "Tools > Stop Private Browsing", possibly grayed
    * You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    * To see all History settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Uncheck: [ ] "Automatically start Firefox in a private browsing session"

  • I've added a pdf to itunes and i want to change it so its visible with an album (digital booklet). But for some reason, when i click get info, its all greyed out and the little box for read only is unticked. please help - urgent! thanks

    I've added a pdf to itunes and i want to change it so its visible with an album (digital booklet). But for some reason, when i click get info, its all greyed out and the little box for read only is unticked. please help - urgent! thanks

    Hi
    My first thoughts are
    • iMovie ill behaving - Trash the iMovie pref file - use to set things right
    • in reg. to Photos - Did You change iPhoto Photo Library - Then iMovie get's lost as it peeks into iPhoto on start up to see where photos are stored. Set iPhoto back to first Photo Library (when iMovie is not running) then start iMovie.
    Yours Bengt W

  • HT1277 i have set up an email account on my iPad, but i can not set up same account on iMac or iPhone , it keeps saying wrong password for account, any help please

    i have set up an email account on my iPad, but i can not set up same account on iMac or iPhone , it keeps saying wrong password for account, any help please

    i am trying to use my sky email on imac & iphone 4gs

  • Please help URGENT : Chinese handwriting doesn't seem to work on Lion OSX. the handwriting trackpad appears but anything i write in Chinese doesn't appear in word, chrome,..... HELP PLEASE

    please help URGENT : Chinese handwriting doesn't seem to work on Lion OSX. the handwriting trackpad appears but anything i write in Chinese doesn't appear in word, chrome,..... HELP PLEASE
    And in system prefs/language and text/input languages, simplified chinese and traditional chinese are ticked as usual with handwriting options on !!!!

    Please search the forum for "chinese" to find the many other earlier posts about your issue, like
    https://discussions.apple.com/message/15746805#15746805

  • Please Help - Urgent

    Hi everyone, I�m having problems with Java Mail, I have just installed it along with the java activation framework, they are located in the following directories:
    JavaMail: C:\jdk1.3.1\lib\javamail-1_2[1]
    Java activation framework: C:\jdk1.3.1\lib\jaf1_0_1[1]
    I have the classpath set as: C:\jdk1.3.1\lib\mail.jar;C:\jdk1.3.1\lib\activation.jar
    When I try to compile the sample code provided with these packages, msgsend.java using Jbuilder 2 I get the following errors:
    Error (36): cannot access directory javax\mail.
    Error (37): cannot access directory javax\mail\internet.
    Error (209): class message not found in class msgsend.
    Error (210): class MessagingException not found in class msgsend
    Error (134): class Session not found in class msgsend
    Error (134): variable Session not found in class msgsend
    Error (139): class Message not found in class msgsend
    Error (139): class MimeMessage not found in class msgsend
    Error (141): class InternetAddress not found in class msgsend
    Error (145): cannot access class Message.RecipientType;neither class nor source found for Message.RecipientType.
    Error (146): Variable InternetAddress not found in class msgsend
    Error (148): cannot access class Message.RecipientType;neither class nor source found for Message.RecipientType.
    Error (149): Variable InternetAddress not found in class msgsend
    Error (151): cannot access class Message.RecipientType;neither class nor source found for Message.RecipientType.
    Error (152): Variable InternetAddress not found in class msgsend
    Error (162): Variable Transport not found in class msgsend
    Error (170): class Store not found in class msgsend
    Error (172): class URLName not found in class msgsend
    Error (172): class URLName not found in class msgsend
    Error (189): class Folder not found in class msgsend
    Error (195): Variable Folder not found in class msgsend
    Error (197): class Message not found in class msgsend
    Error (197): class Message not found in class msgsend
    If I try to use another Java package to compile it I get even more errors (52), I cannot compile it by using the Javac command line compiler, it just says �Bad command or file name�.
    Can anyone tell me Why this is happening and how I might be able to fix it please, I need to start learning Java Mail quickly but at the moment I can�t even begin to do this until I can understand how to get this sample code to work.
    Thanks Everyone
    Noel

    First of all... don't post with topics like "Please Help - Urgent". The topic is supposed to reflect what the question is about.
    Secondly... think for a second. If mail.jar is in C:\jdk1.3.1\lib\javamail-1_2[1]... why are you with your classpath saying that mail.jar is in C:\jdk1.3.1\lib ?
    You classpath is supposed to point directly at you jar-files.
    /Michael

  • How to download garageband old version? i mean version 1.0 to install it on iphone 4s with ios 6.0.1??? please help urgently, how to download garageband old version? i mean version 1.0 to install it on iphone 4s with ios 6.0.1??? please help urgently

    how to download garageband old version? i mean version 1.0 to install it on iphone 4s with ios 6.0.1??? please help urgently, how to download garageband old version? i mean version 1.0 to install it on iphone 4s with ios 6.0.1??? please help urgently

    I did this a few weeks ago to be sure it was going to work for a young person I was giving my ipod to.  Then I reset the information for her and now it will not load.  Very sad.  She is so talented and she really needs this.   Anyone know?

  • I received an iCloud backup notification on my ipad mini but tapping "OK" does not remove it and therefore I am unable to do any activity on my ipad mini. please help urgent.

    I received an iCloud backup notification on my ipad mini but tapping "OK" does not remove it and therefore I am unable to do any activity on my ipad mini. please help urgent.??

    Have you tried a reset ? Press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider if it appears), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Please Help Urgently to refresh the report on the change in data

    We want to refresh report at runtime for the Drill Down report if any user changes the Data. We changes the data from the form which is called from the report and we want to this effect on the report on the prompt.
    Is there any method to close the report while it is in the queue of Background Engine? Can we refresh the report ? Please help urgently.
    Thanks in Advance.

    Pritesh,
    Reports goes out to the database and fetches the data (not a snapshot) and returns the information, formats it and displays it. The only way to refresh, is to rerun the report.
    If your are running from the server, you need to make sure you are not fetching from cache (you determine this from destype and set the life of the cache in the servername.ora file).
    I am unaware of any way to programatically close the report once displayed. The user must take action to close the report (unless you call the operating system to kill the display). When you rerun the report from Oracle Forms, you will get fresh data.
    Regards,
    The Oracle Reports Team jls

  • TS3694 cannot restore forgot password and id please help?

    cannot restore ipod, forgot password and id please help
    thank you

    You'll need to connect it to the iTunes library you normally sync it with and restore it.  If iTunes asks you for this passcode before it will let you proceed, connect the iPod to iTunes in recovery mode instead using the instructions in this Apple support document.
    iOS: Unable to update or restore
    B-rock

  • I want to buy an in-app purchase but i don`t remember my security questions and i cant access my recovery email either, what can i do? i have 100$ on my account and cant use it because of that problem, please help URGENT

    I want to buy an in-app purchase but i don`t remember my security questions and i cant access my recovery email either, what can i do? i have 100$ on my account and cant use it because of that problem, please help URGENT

    If you have a rescue email address on your account then you can use that - follow steps 1 to 5 half-way down this page will give you a reset link on your account : http://support.apple.com/kb/HT5312
    If you don't have a rescue email address (you won't be able to add one until you can answer your questions) then you will need to contact Support in your country to get the questions reset : http://support.apple.com/kb/HT5699

  • I am using NIPCI6229 card i want to generate 5 V in the digital ouput line . it has to be there in the output line only for 100ms please help me

    i am using NIPCI6229 card i want to generate 5 V in the digital ouput line . it has to be there in the output line only for 100ms please help me. aftwer 100ms it has to go to zero state

    hi,
     You can try generating 5V continously for 100ms in a loop later on you can make it low.
    Hope this helps you.

Maybe you are looking for

  • Manager not able to approve leave of the employee on the MSS

    Hi There, When the manager execute the work item on the portal, a run time error occurs on SAP and as discribed on ST22, is caused by function module HR_HK_DIFF_BT_2_DATES which returns a CX_SY_ARITHMETIC_OVERFLOW exception. I Think that this functio

  • Creating panels in different files and adding to main frame

    I'm trying to write panels in separate files so program is more modular and the files shorter. The panels don't appear in the main window at all. All I get appearing is the title bar. This is the basics of the code I've written: GuiMain.java // in ma

  • Some thoughts on new features and workarounds

    Hey Gang, I am a recent FCP7 convert, actually used to use PPro up unitl 2005. A couple things have really bugged me and I think that these requests may be helpful to some of you or perhaps you know an easy workaround. One thing that is annoying is t

  • Data Ware House Development Position Available in The Dallas Ft. Worth Area.

    Esoftsolutions, Inc is an award winning systems integration firm headquartered in Plano. We specialize in providing both solutions and services in several areas including, Data warehousing, ERP package implementations/upgrades and Infrastructure rela

  • Invoicing without reference to PO and contract?

    Hi all, We are implementing Invoicing without PO (direct to contract) in SRM 7 with ECS and ECC Ehp5, with the functionality Central Contract Management. While testing this scenario, we noted that: - It's possible to create invoices with no reference