Menu

Ligacaum entre solucoes

Developers
2001-09-20
2001-09-21
  • Alexandre Freire

    Estamos pensando (alex antonio e andre) em fazer um esquema assim:
    uma pagina que faz o display da solucaum pega um objeto solution na session (estah eh o meu story card)
    antes de tudo temos uma pagina que linka a pessoa ou a pagina onde o usuario escolhe qual historico ele quer ver (que eh a jsp e o servelet do story card do antonio)
    ou a pagina com o resultado atual (que eh o meu story card)

     
    • Christian Willy Asmussen

      I realy think the page where you view the solution should be the page where you view all solutions.  That is, in a jsp page (something like menu.jsp) the user can click on a link like
      "view solutions"
      this link will be something like
      <a href="/controller?action=viewsolution">View Solution</a>.
      When the user clicks on this link, the controller does the following:
      HttpSession session = request.getSession();
      XpuspSessino xpsess = (XpuspSession) session.getAttribute(SESSION_BINDING_NAME);
      xpsess.setSolution(...getLatestSolution());
      response.sendRedirect("viewsession.jsp");
      return;
      On the viewsession.jsp (alex's storycard) you do something like
      Solution sol = xpsess.getSolution();
      ///show solution.
      Then you have a pool down that says (other solutions) and there
      you put all other solutions avaliable.
      if the user choses anoter solution, it would be something like:
      /controller?action=viewsolution&solutiontoview=01-01-2000
      and the controller puts the correct solution on the xpsess and redirects to the viewsolution.jsp again.

      Get it?  Does it make any sense?

       

Log in to post a comment.

MongoDB Logo MongoDB