• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to write simple url routing using front controller pattern ?

 
lichking morgan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to write simple url routing using front controller pattern for learning purpose but I don't know how to start.
I think I must use reflection to achieve general url routing.
How can I find associated command class with specific url using annotations for url mapping ?
Would you please give me some example code to do this ?
I google it a lot but I didn't find anything useful
Thanks a lot for your help.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch. The source code of this library may be helpful: http://www.bibeault.org/frontman/
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!