Java中创建session:
HttpSession session = ServletActionContext.getRequest().getSession(); //创建ActionContext.getContext().getSession().put("msg", "Hello World from Session!"); //存
session.setAttribute("softtypeid", softtypeid); //存
Java中获取 session.getAttribute("softtypeid"))
页面EL表达式获取${sessionScope.softtypeid}
JS中创建session
sessionStorage.setItem('key',value);//设置session
sessionStorage.getItem('key');//获取session
sessionStorage.removeItem('key');//删除session
JS获取url的参数
<script type="text/javascript">
function UrlSearch()
{
var name,value;
var str=location.href; //取得整个地址栏
var num=str.indexOf("?")
str=str.substr(num+1); //取得所有参数 stringvar.substr(start [, length ]
var arr&#