PDA

View Full Version : Alternative to MultiActionController in portlets


chnvskumar
Oct 11th, 2007, 09:39 AM
Hi,

I have a jsp page having two forms. One is two uploading a file and another is to downloading a file.

The spring implementation follows MultiActionController. But nothing is there like MultiActionController in Portal MVC.

Can any one suggest me how can I handle the two forms in one jsp?

johnalewis
Oct 12th, 2007, 02:27 PM
You are correct that there is no equivalent to MultiActionController for portlets -- this is mostly because the mapping semantics are more difficult since there are no such things as URLs. At this point you should simply split your MultiActionController into separate Controllers (probably just using AbstractController).

Your JSPs should only need to change in that they should only return a fragment of markup instead of an entire page (i.e. no use of the following tags: base, body, iframe, frame, frameset, head, html)