emre akbas wrote:
Now, I have another problem. We have written our Struts application using
prefix mappings, i.e "*.do". In order to use DownloadAction with ** mapping,
we should migrate to suffix mapping, i.e. "/do/*" . Is there an easy way of
migrating a whole Struts application from prefix mapping to suffix mapping?
Or, is it possible that both mappings exists in web.xml ? (Sorry, if these
are weird questions.)

[Note: '*.do' is a suffix, /do/* is a prefix (pre- -> previous); just to reduce any confusion for people following along ;-)]

Actually, I think wildcard mappings *should* work with suffix mapping too, though I've never tried it. But you can define both types of mapping in web.xml, so long as you pick a prefix your application doesn't already use. In other words, as long as you don't already have linkes that start /do/... then adding a /do/* mapping is fine.

Migrating your whole app from one mapping style to the other wouldn't be super hard -- just find anywhere you have an explicit .do and update appropriately. However, I wouldn't recommend trying that if this is the only driver. If what you have works, keep it ;-)

L.


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

Reply via email to