Package com.firefly.mvc.web.view

Examples of com.firefly.mvc.web.view.TextView


  }
 
  @RequestMapping(value = "/add", method = HttpMethod.POST)
  public View add(HttpServletRequest request, HttpServletResponse response) {
    System.out.println("into /add");
    return new TextView(request.getParameter("content"));
  }
View Full Code Here


  }
 
  @RequestMapping(value = "/add2", method = HttpMethod.POST)
  public View add2(HttpServletRequest request, HttpServletResponse response) {
    System.out.println("into /add2");
    return new TextView("test add 2");
  }
View Full Code Here

  }
 
  @RequestMapping(value = "/param")
  public View testParam(HttpServletRequest request) {
    Map<String, String[]> map = request.getParameterMap();
    return new TextView(Arrays.toString(map.get("b")));
  }
View Full Code Here

    } catch (IOException e) {
      e.printStackTrace();
    }
    String ret = json.toString();
    Thread.sleep(5000);
    return new TextView(ret);
  }
View Full Code Here

      } else {
        part.write( "/Users/qiupengtao/fireflyTest/" + part.getName() + ".txt" );
      }
    }
//    throw new RuntimeException("upload error");
    return new TextView("upload ok!");
  }
View Full Code Here

  }

  @RequestMapping(value = "/hello/text")
  public View text(HttpServletRequest request) {
    log.info("into text output >>>>>>>>>>>>>>>>>");
    return new TextView("文本输出");
  }
View Full Code Here

    return new TextView("文本输出");
  }
 
  @RequestMapping(value = "/hello/text-?/?-?")
  public View text2(HttpServletRequest request, @PathVariable String[] args) {
    return new TextView("text-" + args[0] + "-" + args[1] + "-" + args[2]);
  }
View Full Code Here

    return new TextView("text-" + args[0] + "-" + args[1] + "-" + args[2]);
  }
 
  @RequestMapping(value = "/hello?")
  public View text3(HttpServletRequest request, @PathVariable String[] args) {
    return new TextView("text-" + args[0]);
  }
View Full Code Here

TOP

Related Classes of com.firefly.mvc.web.view.TextView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.