Hello,

I have question about the 4018 j2ee - websecurity homework.

 

The homework requires

 

1.       Add the following set of concrete username/password
(principals) and concrete groups to the file-based security realm
through the admin console of GlassFish App Server - DONE

 

2.       Modify the web.xml and sun-web.xml of the myownhello1
application as following 

a.      Only parentabstract abstract role can access the application -
you will have to modify web.xml - DONE

b.       An invalid user "xyz" tries to access the application, a your
own error page (HTML or JSP page) called myownerror.jsp should be
displayed indicating the error condition - cannot do it !!!

After adding the following code to web.xml, when running project, right
away going to display error message  which is in myownerror.jsp without
even bringing up the Login popup window:

<error-page>

<error-code>401</error-code>

        <location>/myownerror.jsp</location>

  </error-page>

Please, any help on that!!! 

 

Regards,

Moria.

 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to