• springmvc----demo2---a->b--bai


    1.jsp

     

    2.jsp

     

    3.jsp

    LianxiAction:

    package com.etc.controller;
    
    import javax.servlet.http.HttpSession;
    
    import org.springframework.stereotype.Controller;
    import org.springframework.web.bind.annotation.RequestMapping;
    import org.springframework.web.bind.annotation.RequestParam;
    
    @Controller
    public class LianxiAction {
    	@RequestMapping("2")
    	public String do2(@RequestParam(value="a",required=true)String a
    			,HttpSession session)
    	{
    		session.setAttribute("a", a);
    		return "2";
    	}
    	
    	@RequestMapping("3")
    	public String do3(@RequestParam(value="b",required=true)String b
    			,HttpSession session)
    	{
    		session.setAttribute("b", b);
    		return "3";
    	}	
    }
    

      

  • 相关阅读:
    2019年计划书单
    redis 分布式锁实现
    filter-grok,dissect匹配数据
    nohup-长期运行进程
    filter
    kill
    watch
    free
    jar
    tree
  • 原文地址:https://www.cnblogs.com/ipetergo/p/6270087.html
Copyright © 2020-2023  润新知