reset password
Author Message
cysun
Posts: 2935
Posted 07:52 Aug 14, 2015 |

The sample code used in the lectures is available at svn://cs3.calstatela.edu/cs520/x15/cs520stu31/csjobs/trunk

lishenyu
Posts: 103
Posted 22:02 Aug 14, 2015 |

Hi Dr Sun ,

I copied the logout form from you slides ,only changed the "", then pasted it into my jsp .     I also have a   <security:logout logout-success-url="/" />  in my applicationContext .  But after a user logins then clicked logout , it gave an 404 error , and the url became this :

http://localhost:8080/logout  .  Did I miss something ?Thanks !

Last edited by lishenyu at 22:03 Aug 14, 2015.
cysun
Posts: 2935
Posted 22:09 Aug 14, 2015 |

The login/logout URL is relative to the application root (i.e. http://<host>/<app>/logout), not host root (i.e. http://<host>/logout). The easiest way to make sure the URL is correct is to use <c:url value='/logout' />.

lishenyu
Posts: 103
Posted 19:49 Aug 15, 2015 |

got it.

Last edited by lishenyu at 21:35 Aug 15, 2015.
lishenyu
Posts: 103
Posted 21:22 Aug 16, 2015 |

Hi professor,

in jsp I want to implement such a function, if the current login user is in a arraylist , then he has access to something. like following:

<security:authorize access="principal is inside '${job.committeeMembers}'">

could you tell me how to solve this problem ?Thanks !

 

lishenyu
Posts: 103
Posted 14:42 Aug 17, 2015 |

HI professor ,

could you give me some hints on above problem ? Thanks !