SET AS HOME PAGE

ADD TO FAVORITES / BOOKMARK THIS WEBSITE (More Details)

Introduction

Servlet

Jsp

Security

Enterprise Beans

Contact Us


Securing Web Applications - Project (Continue...)

 Introduction

  1. To counter security threats, you can implement different security techniques, such as:
    • Authentication: Identifies a user.
    • Authorization: Specifies the rights assigned to an authenticated user to access resources of a Web application.
    • Data Integrity: Ensures that data is not modified while being transferred between the server and the client.
    • Auditing: Secures Web applications by maintaining a record of the rights assigned to different types of Web users.
CLICK HERE to download this complete example (zip file)


 Steps to deploy and run Securing Web Application Project (Continue ...)

  1. Next, click the Add Constraints button to add a security constraint
  2. Click the Add Collections button to add a new Web Resource Collection (WRCollection)
  3. Now, select the WRCollection in the Web Resource Collections section
  4. Now click the Edit Collections button in the Web Resource Collections section
  5. Click the Add URL pattern button to open the Add URL Pattern dialog box
  6. Type /* in the URL Pattern text box
  7. Click the OK button
  8. Now the selected URL pattern is displayed in the Contents of Web Resource Collection: WebApp panel. Now click the OK button
  9. Now click the Edit Roles button to open the Authorized Roles For SecurityConstraint dialog box
  10. Select the security role as User in the left pane and click the Add button to add in the Authorized Roles pane
  11. Click the OK button
  12. Select the SecurityLogin (application name) in the left pane.
  13. Now press Alt+s or click the Sun-specific Settings… button in the right pane. Now a sun-specific Settings will open. Here, in the View drop-down menu select User to Role Mappings. Also in the Role text field select the role name
  14. Now click the Edit button in the Users side. Here, select the Available Users in the list and click the Add button to add in the right side
  15. Click the OK button
  16. Now click the Edit button in the Groups side
  17. Now, select the user from the Available Groups session and then click the Add button to add in the right side
  18. Click the OK button
  19. Now, click the Close button
  20. Now goto File ->Save
  21. Next goto Tools -> Deployee

    (Enter the User Name as "admin" and Password as "password" (CLICK HERE for password). Next click the OK button)


  22. (Now a message --- Operation Completed Successfully --- must display. Next click the Close button)
  23. Next goto File -> Exit to close it
  24. Now open an Internet Explorer and type the address http://localhost:8080/login_example/loginpage
  25. Program completed Successfully
  26. To stop the server goto Start -> All Programs -> Sun Microsystems -> Application Server PE -> Stop Default Server. CLICK HERE to see how to Stop the Server

 Click for Next Topic
<- PREVIOUSNEXT ->