PDA

View Full Version : Forward from MultiActionController to other Controllers



java9394
Aug 31st, 2004, 01:44 PM
I have a simple webapp using index.jsp as a template, and import/include the content depends on the action parameter, i.e. index.jsp?action=XXXX

Index.jsp
<header>
<navigation>
<c:import url=”${contentPage}”/>
<footer>

I think MultiActionController with ParameterMethodNameResolver will suit my requirement, i.e.

public ModelAndView XXXmethodName(request, response).
return (“index.jsp”, “contentPage”, pageName);

However, some of the import/include contents are form based. What is the proper way to “fork” the request to a SimpleFormController to handle the form pages?

Many thanks.


java9394