ITeye博客

一个武将的博客

一个武将 · 共 34 篇文章

jsp中路径的问题

工作快一年了,直到今天才理解下面代码的含义。 <% String path = request.getContextPath(); String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; %> My JSP 'login.jsp' starting page ………… 很简单上面的代码定义了一个基础路径。 [img]http://dl.iteye.com/upload/attachment/475176/fd591…

2011-05-04 09:54 · jsp · 评论(0) · 工作 · JSP · ITeye

jquery easyui 学习——layout

jquery easyui 的特点以及好处,我认为是可以结合html标签和js代码来开发页面,符合以前的开发习惯。并且在页面布局上更加清晰。 html代码和easyui结合的方式: Select language: Java C# VB Erlang 实际运行的结果: [img]http://dl.iteye.com/upload/attachment/474524/9c91cc4c-e6a8-3442-9ba1-23b00b6a5891.jpg[/img] 可以看到jquery easyui把我们自己的代码添加了很多的class,还有div。 下面来记录所有的属性的用处。 title:la…

2011-05-03 14:43 · jquery ui · 评论(0) · HTML · VB · jQuery · Erlang · ITeye

struts2起步——struts.xml配置文件

/index.jsp /addUser.jsp namespace属性:顾名思义 命名空间。它的默认值为“/”, [img]http://dl.iteye.com/upload/attachment/475138/546ae65b-9c0c-3764-80dc-3327b654a3d2.jpg[/img] 这个路径就是项目名下面的那个“/”。 如果它的值是“/user”,那么 [img]http://dl.iteye.com/upload/attachment/475142/add08cbe-18f6-38fa-8ea8-42c79efa8fd9.jpg[/img] 这个地址就是访问“/us…

2011-05-02 14:26 · 前端控制器 · 评论(0) · Apache · Struts · XML · JSP

struts2起步——web.xml配置文件

我使用的struts2的版本为 struts-2.2.1.1。 一直用的是struts1,乘着有时间学习下struts2。先记录下来,等有机会慢慢完善。 struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter struts2 /*

2011-05-02 14:05 · 前端控制器 · 评论(0) · Apache · Struts · XML · Web