Jonathan Tse wrote:
If this is the case, I would have to hardcode the id in urlrewrite.xml . I am thinking of passing "camera", "mp3players" to the controller.

Right, but the rewrite language is better than that:

    <rule>
        <from>^/shop/([^/?&amp;]*)$</from>
        <to last="true">/viewCategory.html\?shortName=$1</to>
    </rule>


Add a "shortName" attribute to your category object, and add another lookup method to the dao and service.

-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to