I'm using Struts 1. I have a list of stores in our database. The store table contains store id, store name, url friendly store path, store address. For example, "1; Store 1; the-wonderful-store; 52 Main St.",
When a request comes in for /store/the-wonderful-store.do, I want to grab "the-wonderful-store" and query the DB for the store for this path. Now render the page with this query result.
The page uses tiles for its template.
How can I do this with Struts 1?
And if not, since I front this with Apache2, is it safe to just
RewriteEngine On
RewriteRule /store/(.*) /store.do?path=$1 [NC,PT]