I'm a writing an application using Spring MVC which has to run as a servlet and a portlet. This is fair easy to do in Spring 3 (JSR-286) but I must use portlet 1.0 specification (JSR-168). In order to be compatible with it I downgraded Spring MVC to 2.5 (more information here).
Everything works fine expect I'm not able to generate servlet/portlet compatible URL!
Using Spring 3, I would write:
<spring:url value="/foo">
<spring:param name="action" value="foo"/>
</spring>
In Spring 2.5 there is no spring:url
tag. I tried with c:url
but it only generates servlet compatible URL (not portlet).
How can I achieve servlet/portlet compatible URL generation?