Announcement Announcement Module
No announcement yet.
Navigation Menu and webflow Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Navigation Menu and webflow

    I have a problem with httpClient. I have 2 projects. From Project 1, one of actions, I called project2 with httpClient call.

    From project2, login.jsp
    <spring:bind path="userId">
    <input type="hidden" name="userId" value="${status.value}" />

    from project2, loginController,
    public ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException{
    String userId = request.getParameter("userId");
    return new ModelAndView("web/login","userId",userId);

    I got the correct userId in project2 controller that I passed from project1 httpClient call.
    However, I got the following exception.

    [] - <userId in loginController: test
    INFO - <HTTP Status returned : 200>
    org.apache.jasper.runtime.JspFactoryImpl internalGetPageContext
    SEVERE: Exception initializing page context
    java.lang.IllegalStateException: Cannot create a session after the response has been committed
    at org.apache.catalina.connector.Request.doGetSession (
    at org.apache.catalina.connector.Request.getSession(R
    at org.apache.catalina.connector.RequestFacade.getSes sion(
    at javax.servlet.http.HttpServletRequestWrapper.getSe ssion(

    Please suggest me what I should do with this.

    Last edited by fedor_dz; Oct 9th, 2006, 04:44 PM. Reason: title does not match with content