How to view Secured page using J_Security_Check ?

Dear Everyone,
In the web application, i am using Form based authentication for security...
i have configured exactly by giving login page and error page..
i have also configured <security constraint> , < login -config>...
But i receive error page while i give username and password....
Please give ur suggestions.. i will show u my code..
<security-constraint>
      <web-resource-collection>
          <web-resource-name>Protected Area</web-resource-name>
              <!-- Define the context-relative URL(s) to be protected -->
              <url-pattern>/jack.jsp</url-pattern>
              <http-method>GET</http-method>
              <http-method>POST</http-method> 
      </web-resource-collection>
<auth-constraint>
      <role-name>user</role-name>
</auth-constraint>     
</security-constraint>
      <login-config>
      <auth-method>FORM</auth-method>
      <realm-name>Example Form-Based Authentication Area</realm-name>
      <form-login-config>
      <form-login-page>/index.jsp</form-login-page>
      <form-error-page>/error.jsp</form-error-page>
      </form-login-config>
      </login-config>
   <security-role>
        <description>user</description>
        <role-name>user</role-name>
  </security-role>   

Reply to m00dy
Thank u for ur suggestions...
Every thing had been correct.., but still not working and i am receiving error page..
please give ur suggestiopns
the code is
<table border="0" cellspacing="5">
    <tr>
      <th align="right">Username:</th>
      <td align="left"><input type="text" name="j_username"></td>
    </tr>
    <tr>
      <th align="right">Password:</th>
      <td align="left"><input type="password" name="j_password"></td>
    </tr>
    <tr>
      <td align="right"><input type="submit" value="Login"></td>
      <td align="left"><input type="reset"></td>
    </tr>
  </table>

Similar Messages

  • How to view unseen pages using Smart Print

    I have a HP Photosmart C4480 All-In-One Printer, running Vista 64-Bit and Windows 9.  Once Smart Print has highlighted text, I have not found the method of viewing text that is out of screen view.  Ex:  An email, including recipients is three pages long.
    How do I get to the next page to deselect/select?  Thank you.

    Hey sgt_sid,
    Welcome to the BlackBerry Support Community Forums.
    Thanks for the question.
    Is the Browser set to Desktop mode? Open the browser and press the 3 dots and choose settings and open developer mode. Also can you provide an example of a WML website?
    Do you get a specific error as well?
    I look forward to your reply.
    Cheers.
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

  • I am trying to open a website that is using Microsoft content viewer, and the page does not show. Any ideas on how to view this site using firefox. It works on IE.

    I am participating in an online class whose website uses Microsoft Content Viewer to view the class content. The browser opens a new page, but nothing is there. At the top of the tab it says Microsoft Content Viewer, and nothing else. Can anyone tell me how to view my course using Firefox? I would prefer not to use IE, but it works there.

    When originally creating the pdf, you would need to choose another pdf conversion setting. In Word if you use the pdf menu, change your settings there: Adobe PDF > Change Conversion Settings. I would use High Quality Print instead. If you use the File > Print method, click the Properties button next to the Adobe PDF printer selection.
    For your already created form, you can change the file so your users will not encounter issues. In Acrobat 9, which hopefully is similar in process to 8: Advanced > Preflight > Profile tab > PDF/A compliance > Remove PDF/A information.(You'll have to unsecure your form first).
    You can read about PDF/A files in the Help.

  • How to view web page in emulator/device using j2me

    hi
    i wanna view web page using j2me
    i am using code ----instead of getting teh page i am getting source code of the page and i am not getting any thing in real device so do i need a browser??cant i view this page inside my application??
    HttpConnection connection = null;
         InputStream inputstream = null;
         try
              this.platformRequest("http://www.lntinfotech.com");
              /* System.out.println("aaaaaaaaaaa11");
         connection = (HttpConnection) Connector.open("http://www.lntinfotech.com");
         System.out.println("aaaaaaaaaaa112");
         //HTTP Request
         connection.setRequestMethod(HttpConnection.GET);
         System.out.println("aaaaaaaaaaa113");
         connection.setRequestProperty("Content-Type","//text plain");
         System.out.println("aaaaaaaaaaa1133");
         connection.setRequestProperty("Connection", "close");
         System.out.println("aaaaaaaaaaa11444");
         // HTTP Response
         System.out.println("Status Line Code: " + connection.getResponseCode());
         System.out.println("Status Line Message: " + connection.getResponseMessage());
         if (connection.getResponseCode() == HttpConnection.HTTP_OK)
              this.platformRequest("http://www.google.com");
              System.out.println("aaaaaaaaaaa11444555");
         System.out.println(
         connection.getHeaderField(0)+ " " + connection.getHeaderFieldKey(0));
         System.out.println(
         "Header Field Date: " + connection.getHeaderField("date"));
         String str;
         inputstream = connection.openInputStream();
         int length = (int) connection.getLength();
         if (length != -1)
         byte incomingData[] = new byte[length];
         inputstream.read(incomingData);
         System.out.println("aaaaaaaaaaa1144555");
         str = new String(incomingData);
         else
         ByteArrayOutputStream bytestream =
         new ByteArrayOutputStream();
         int ch;
         while ((ch = inputstream.read()) != -1)
         bytestream.write(ch);
         str = new String(bytestream.toByteArray());
         bytestream.close();
         System.out.println(str);
         }

    instead of getting teh page i am getting source code of the page and i am not getting any thing in real device so do i need a browser??Yes.
    cant i view this page inside my application??Not unless you can write a browser component to parse and display the HTML. (you can't, it's too big a job)
    db

  • How to send secure email using JavaMail

    Hi, anyone out there know how to send secure email using Java Mail? Greately appreciated.

    For starters, if you have not already done so, read about it in the JavaMail design specifications.
    Search for Message Security in the said document.

  • How to connect one page using button and by link in BSP

    how to connect one page using button and by link in BSP

    hi,
    use on 'onclick' functionality.
    1. In layout, onclick = 'NEXT_PAGE' of the button
    2. Capture the event in onInputprocessing,
    DATA: event_id TYPE REF TO  cl_htmlb_event.
    case event_id.
    when 'NEXT_PAGE'.
                navigation->goto_page( 'URPAGE URL' ).

  • How to view alerlog contents using SQL?

    How to view alertlog contents using SQL?

    Hi,
    Why don't you use the OEM Database Console ?? Now, in order to view the contents of the alert log file using a SELECT statement, you need to create a external table:
    create or replace
    directory background_dump_dest_dir
    as '<your_oracle_home>/bdump';
    CREATE table alert_log_external
    (line varchar2(4000) )
    ORGANIZATION EXTERNAL
    (TYPE oracle_loader
    DEFAULT DIRECTORY background_dump_dest_dir
    ACCESS PARAMETERS (
    RECORDS DELIMITED BY newline
    nobadfile
    nologfile
    nodiscardfile
    FIELDS TERMINATED BY '#$~=ui$X'
    MISSING FIELD VALUES ARE NULL
    (line)
    LOCATION ('alert_<sid_of your_database>.log') )
    REJECT LIMIT UNLIMITED;Cheers

  • How to make Successfull login using j_security_check

    hi all,
    can anybody tell me the steps that how we can displayed next authenticated page after successful login page while using j_security_check or give me any link from where i can get the stuff which help me.
    I will be happy if ur steps include loginFilter, web.xml, struts-config.xml.
    thanks in advance.
    bye

    The way j_security_check works is that you request a page. Any page.
    If that page has security on it, the container will display the login screen.
    If you login correctly, it will then proceed to the page you originally requested.
    You never actually reference the login page directly. The container is responsible for invoking it when needed, and then forwarding you to your originally requested page on successful login.

  • How to view creation date using 'ls' command?

    Hi all,
    Anyone know how to get the 'ls' command to display creation date? When I do 'ls -la' I get the mod date, but cannot figure out how to view the creation date.
    Thanks!
      Mac OS X (10.4.2)  

    While there is NO way to do this as ls will only show the mod time there is using another program
    DL this HFSDebug.
    Running it on any file will display to you Create, Mod and access times. An example for you
    sudo hfsdebug /usr/local/bin/hfsdebug\ 2.04\ BETA\ G5
    path = Firefly:/usr/local/bin/hfsdebug 2.04 BETA G5
    # Catalog File Record
    type = file
    file ID = 20112378
    flags = 0000000000001010
    . File has a thread record in the catalog.
    . File has security data (ACLs).
    reserved1 = 0
    createDate = Wed Dec 14 00:57:14 2005
    contentModDate = Wed Dec 14 00:57:14 2005
    attributeModDate = Wed Dec 14 00:57:14 2005
    accessDate = Thu Dec 15 20:42:53 2005
    backupDate = Fri Jan 1 00:00:00 1904
    # BSD Info
    ownerID = 0 (root)
    groupID = 20 (staff)
    adminFlags = 00000000
    ownerFlags = 00000000
    fileMode = -rwxr-xr-x
    linkCount = 0
    textEncoding = 0
    attrBlocks = 0
    # Finder Info
    fdType = 0
    fdCreator = 0
    fdFlags = 0000000000000000
    fdLocation = (v = 0, h = 0)
    opaque = 0
    # Data Fork
    logicalSize = 121744 bytes
    totalBlocks = 30
    fork temperature = not a hot file
    clumpSize = 101 bytes
    extents = startBlock blockCount % of file
    0x362cd4 0x1e 100.00 %
    30 allocation blocks in 1 extents total.
    30.00 allocation blocks per extent on an average.
    # Resource Fork
    logicalSize = 0 bytes
    Enjoy!
    Peter
    PowerMac G5 DP 2.5Ghz   Mac OS X (10.4.3)  

  • How to Develop Static page using JSF/Creator

    Hi,
    I am a newbie trying to understand how one develops static pages in JSF. I fear I am going to require a hybrid development environment; that is, I will need two IDE's. For example, Dreamweaver AND Creator.
    I'd like to just use one as it is more convenient, and the static pages will be configured as necessary as fully integrated pages. But I'm not sure how to use JSF/Creator to develop "plain vanilla" HTML/JSP pages.
    I appreciate any feedback and "education". :-)
    Sam

    I dont use it much, but im pretty sure there is a tabbed pane allowing you to swith between a HTML/JSF code view and a visual view, a little like dreamweaver. I currently hand code my JSF pages in a standard IDE, its not too tricky once you understand the tags, and it gives you flexible control which I like. Maybe this approach will work for you

  • Unable to view secure pages

    Guys - I am trying to view private/secure pages of our site via Browserlab and not having any luck.
    Steps taken:
    1. Logged into Browserlab (Firefox 7.0)
    2. Logged into our private site in a different tab
    3. Pressed the shortcut key (Ctrl+Shift+Tab) and NOTHING happens as no pages are rendered in BL
    Notes: I have Firebug for FF installed as an add-on and in the 'Options' settings, the 'Allow Read Access' & 'Preserve HSS Hacks' are selected.
    By simply using Browserlab for an external site, I am able to view the pages, but cannot interact, let's say if I have to login to Gmail.
    So ultimately, I have two problems - I cannot interact with external sites, other than view them and I cannot view internal sites AT ALL!
    Is there any type specific authentication I need set in FF to allow Browserlab to work? Any advice would be apprecatied.
    Thx

    Hey Mark – It seems that was the issue. I did not have firebug installed but the add-on to firebug installed.
    I am all set now.
    Thx for the response.
    Tauhid Rehman
    Quality Assurance
    Prosper Marketplace Inc.
    111 Sutter Street, 22nd Floor
    San Francisco, CA 94104
    www.prosper.com <http://www.prosper.com/

  • How to send Secured Mail using Java Mail?

    I want to send mails with "Send Secure" option using Java Mail. Now mails are being sent using Java Mail connecting to smtp host.
    Appreciating your help.
    Thanks.

    There are third party libraries to help with this. Bouncy Castle is very popular.
    See the [JavaMail Third Party Products|http://java.sun.com/products/javamail/Third_Party.html] page.

  • Others cant view my pages (using: TOMCAT 4.1.24 server)

    I create pages.. JSP and regular HTML pages but when i give someone over the internet my IP address to view it the get error. However when i use my ip address instead of http://localhost:8080 i can view the pages. What is the problem???

    I'm using win98.. on a dialup connection. I get myip
    addresss from winipcfg. my ip address is currently
    128.235.11.193 and the address of the page is
    http://128.235.11.193:8080/myfirst.jsp
    or http://...8080/index.jsp (default file that
    comes
    w/ Tomcat)
    thanx again. don't put your ip out there, not a good idea.
    not sure, but dialup isps don't usually permit in coming http requests. I can't tell right now, I'm behind a firewall myself.

  • How to develop custom page using Hgrid

    Hi,
    I have to develop one custom page with hierarchy. I think it will reach through hgrid. So how to develop page using hgrid.
    Thanks in advance,
    Hanimi....

    Hi,
    I have to develop Custom OAF page like following navigation for an employee position hierarchy from bottom to top. Can we achieve this requirement through custom OAF Page, If achieve How?
    If you go to HRMS Manager --> Work Structures --> Position --> Diagrammer. Here you can able to see the position hierarchy. Same as like this i have to develop one custom page. Pls let me know how to achieve this requirement.
    Thanks in advance,
    Hanimi...

  • How to view facing pages in new Pages?

    I have a number of Pages files which were converted to the new format (v5.0.1) under OSX10.9.1, but which now don't appear to display with the pages facing each other. Only single pages are displayed. Probably a dumb question, but how do I change the View so that I can look at pages 1 & 2 on the screen next to each other?

    Apple has simplified this for you.
    You can't.
    Peter
    btw How are you running Pages 5 in OS 9.2x?

Maybe you are looking for