Using Convention Plugin, I am able to achieve friendly URL in Struts2. Now, I want to read the parameter from the URL. How to acheive this.
http://domain.com/book/struts2
http://domain.com/book/hibernate
Regards Ganesh
Using Convention Plugin, I am able to achieve friendly URL in Struts2. Now, I want to read the parameter from the URL. How to acheive this.
http://domain.com/book/struts2
http://domain.com/book/hibernate
Regards Ganesh
You need to look into using the Struts2 REST plugin or something similar. I've been quite happy with the Struts2 REST plugin myself, but I would bet Spring and other frameworks support something similar. Here are some URLs you might find helpful.
Documentation here: Struts2 Rest Plugin Documentation
Also, a good tutorial that got me started can be found here: Struts 2 REST Example