This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to write simple url routing using front controller pattern ?  RSS feed

 
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/
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!