Announcement Announcement Module
Collapse
No announcement yet.
Portlet sendRedirect() throws "Set render parameter has already been called" Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Portlet sendRedirect() throws "Set render parameter has already been called"

    Hello, I'm making a portlet using Spring MVC

    This is the controller.
    Code:
    public class SearchRedirectionController extends SimpleFormController {
    
        @Override
        public boolean isRedirectAction() {
            return true;
        }
    
    
        @Override
        protected void processFormSubmission(ActionRequest request, ActionResponse response, Object commandObject, BindException errors) throws Exception {
            response.sendRedirect("/guest/welcome");
        }
    }
    But when it reaches the sendRedirect line, it throws the following exception



    Code:
    21:12:49,922 ERROR [jsp:165] java.lang.IllegalStateException: Set render parameter has already been called

    I am not calling render parameter, but I keep getting this error. What would be the cause and how can I correct this?

    Thank you guys
Working...
X