Rogel Garcia

Greenhorn
+ Follow
since Oct 22, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rogel Garcia

I�m planning to get a SCWCD certification and want to buy a book. Which one is better,
Head First Servlets & JSP (by Bryan Basham, Kathy Sierra, Bert Bates) or
SCWCD Exam Study Kit: Java Web Component Developer Certification (by Hanumant Deshmukh, Jignesh Malavia, Matthew Scarpino)??

If i take the SCWCD Exam Study Kit I will buy the one that convers J2EE 1.4 (release January 31)

Any other suggestions?
You also can do something like that:

The output would be:
value One
19 years ago
JSP
There was a bug in jboss 4...
the patch can be found here

Thanks
I've made an app using JAAS, made my own Login Module, and set some security constrainst in web.xml..

web.xml..

...
<security-constraint>
<web-resource-collection>
<web-resource-name>Sample</web-resource-name>
<url-pattern>/login/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>admin</role-name>
</auth-constraint>
</security-constraint>

<security-role>
<role-name>admin</role-name>
</security-role>

<login-config>
<auth-method>FORM</auth-method>
<realm-name>Sample</realm-name>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/error.jsp</form-error-page>
</form-login-config>
</login-config>

when i try to access a page like login/ok.jsp, i get a login page and after submit i get the right page (login/ok.jsp)... This is working
But when i call request.isUserInRole("admin") i got false (after succesfully login).

In Jboss 3.2.5 this works perfectly (request.isUserInRole("admin")==true)... Does anyone knows what is happening?

Thanks