O método print (boolean) no tipo JspWriter não é aplicável aos argumentos (void)

Olá, estou com um erro chamado "O método print (boolean) no tipo JspWriter não é aplicável aos argumentos (void)" com o meu código JSP no GAE.

Na linha :<%= request.getSession(true).setAttribute("state","firstNumber") %>

Aqui está o código:

`

  <c:when test='${param.event == "NewCall"}'>
      <% 
         Response resp1=new Response();
         CollectDtmf cd= new CollectDtmf(); 
         cd.addPlayText("Welcome. Please enter the first number. Terminate with #");           
         resp1.addCollectDtmf(cd);
      %>
      <%= request.getSession(true).setAttribute("state","firstNumber") %> 
      <% out.println(resp1.getXML()); %>
  </c:when>

`

Por favor, diga o que estou fazendo de errado aqui. obrigado