Jonathan Tse wrote:
If I got some url like this
http://localhost/shop/viewCategory.html?categoryId=1 -> Camera
category , Handled by ViewCategoryController
http://localhost/shop/viewCategory.html?categoryId=2 -> Mp3 Players
category , Handled by ViewCategoryController
Is it possible that I can make the url like this
http://localhost/shop/camera
http://localhost/shop/mp3player
I would say add:
<rule>
<from>^/shop/camera$</from>
<to last="true">/viewCategory.html\?categoryId=1</to>
</rule>
<rule>
<from>^/shop/mp3player$</from>
<to last="true">/viewCategory.html\?categoryId=2</to>
</rule>
to web/WEB-INF/urlrewrite.xml, but then again I've been having problems
getting urlrewrite to work with struts2...
...anyone else confirm?
-Dale
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]