I'm working on porting an older project where a certain parameter was put into
the path whereas in Struts it would have been added to the query
string.  The idea is that at the beginning of the path the product
name / theme is added.  For example,

http://mywebsite.com/myapp/myproduct/account/view.do

I would like to have the myproduct part stripped from the URL and only
the /account/view.do used as the path for mapping purposes.  The
myproduct piece would be used to change the look and feel of the
page.  It is not a different application.

I can handle the above issue (or at least I think I can) by overriding
RequestProcessor.processPath() and removing myproduct from the path
used to find the mapping.  The problem is all the other parts of the
system that build URLs such as forwards and html:link tags.  I would
like to still reference /account/edit.do everywhere but at run time it
would build up the link using the particular product name put into the
URL.  For example, if the user is viewing product1 I would want the
path to become /myapp/product1/account/edit.do.

Hopefully, this makes sense.  I'm just confused on how to properly and
best handle this issue without re-writing lots of code.  It seems that
URLs are built in many places and I cannot simply override a method
somewhere to change how URLs are built from relative paths.

Thanks,
Kevin

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

Reply via email to