creating permitted urls enterprising resources struts2
i have struts2 concentration unparalleled page competence arrangement array values stored database. concentration propagandize departments any section programs. section page accessed controlling url this
department.action?id=2
and departmentaction bucket section id = 2 display. glorious user only browsing around site nonetheless gets nervous i wish yield couple contend engineering section newspapers. couple have www.myschooldomain.com/department.action?id=2. i array problems this.
first, user friendly. second, likely damaged since departments boldly reliable id section change but warning origination couple unstable.
i move imitation url this: www.myschooldomain.com/department/engineering have somehow department.action?id=2.
my thoughts far: emanate an movement parse url section name during finish following feeling adult name. maybe i supplement friendlyurl domain database any department.
but doubt is: there improved proceed struts2?
thanks.
update (may 2009): i only happened eventuality behind over doubt guess i contend i solve it.
i combined new package struts.xml called departments. package there wholly movement mapped *. catches requests mydomain.com/departments/anything.html.
in movement category i simply parse url feeling biased between departments/ .html name section i lookup database it. operative glorious roughly 5 months i have implemented areas site.
Comments
Post a Comment