码迷,mamicode.com
首页 >  
搜索关键字:pagecontext    ( 565个结果
JSP取得绝对路径
在JavaWeb开发中,常使用绝对路径的方式来引入Javascript和css文件,这样可以避免因为目录的变动导致引入文件找不到的情况,常用的做法如下: 使用${pageContext.request.contextPath} 代码“${pageContext.request.contextPath ...
分类:Web程序   时间:2016-09-12 18:46:43    阅读次数:136
Jsp_demo:自定义标签
Jsp自定义标签: 1.继承SimpleTagSupport,重写doTag()。 2.在WEB-INF/ 下配置**.tld文件 3.Jsp页面引入自定义标签:<%@ taglib uri="***" prefix="s"%> 自定义标签demo实现:在jsp页面将对象存入pageContext. ...
分类:Web程序   时间:2016-09-10 14:35:35    阅读次数:144
jsp九大内置对象
JSP中一共预先定义了9个这样的对象,分别为:request、response、session、application、out、pagecontext、config、page、exception ...
分类:Web程序   时间:2016-09-08 22:59:02    阅读次数:133
jsp上的九个隐含对象
首先说一说件jsp的原理。jsp被认为最经典的解释是 “嵌入了java 代码的html”。 在网上查了一些资料,和我本身对jsp的认识,总结如下: final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSess ...
分类:Web程序   时间:2016-09-06 18:16:00    阅读次数:172
java web须知细节
1.${pageContext.request.contextPath}是从这个请求路径(URL)上截取你的项目应用名的,比如你的项目名是hello,截取的结果应该就是/hello,/代表http//:localhost:8080。 2.Bootstrap的JavaScript插件可以单独导入到页面 ...
分类:编程语言   时间:2016-09-06 11:52:01    阅读次数:173
JSP慕课网之application、page、pageContext、config、exception
接下来使用getSession()、forward()、include()方法. 跳转的include.jsp页面: ...
分类:移动开发   时间:2016-09-04 11:35:53    阅读次数:177
JSP内建对象
1.out对象 2.page对象 指的jsp当前对象 3.pageContext对象 //javax.servlet.jsp.PageContext 对象 常见方法:.setAttribute(“x","100") //设置属性,放置一个键值对 4.request 和response 对象 //ja ...
分类:Web程序   时间:2016-08-31 22:02:00    阅读次数:154
JSP中内置对象pageContent的使用
public class TestPageContext { public void getSomething(PageContext page){ ServletRequest request = page.getRequest(); String username = request.getPa ...
分类:Web程序   时间:2016-08-31 00:31:50    阅读次数:953
EL标签使用
<%@ page language= "java" contentType="text/html;charset=UTF-8" %><html><head><meta charset="utf-8"><title>EL使用</title></head><body> <% pageContext.se ...
分类:其他好文   时间:2016-08-30 21:15:46    阅读次数:149
jsp 中${param.username}和${requestSpoce.username}的区别
在jsp页面取值时会经常看到有时使用${param.username},有时使用${requestSpoce.username},到底这两者有何不同呢?上网百度了一下,原来是这样的:前者会依次调用pageContext.getAttribute("username") -> request.getA ...
分类:Web程序   时间:2016-08-30 19:43:39    阅读次数:131
565条   上一页 1 ... 32 33 34 35 36 ... 57 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!