找回密码
 注册
搜索
热搜: 回贴

Struts学习笔记: Html标签库学习(Html基本标签)

2009-12-22 00:20| 发布者: admin| 查看: 47| 评论: 0|原作者: 云天河

1.


=> 转为Html后(下同):


2.

=>

//本页面的绝对地址
3.
<%
String cheyo = "hehehe";
pageContext.setAttribute("coolName", cheyo);
%>
成功页面


Here


CSDN首页


=>
成功页面


Here


CSDN首页


/*
paramProperty="book"> //用book这个JavaBean的name属性的值作为名为bookName参数的值
//map有一个HashMap对象,可以以于传递一个参数名多个参数值
*/
4.
<%
String cheyo = "hehehe";
pageContext.setAttribute("coolName", cheyo);
%>
Rewrite Forward:


Rewrite Page:


Rewrite Href:


=>
Rewrite Forward: /AddressBook/hello.jsp?name=hehehe


Rewrite Page: /AddressBook/here.jsp?bigId=5&smallId=3


Rewrite Href: http://www.csdn.net?name=hehehe


5.

/* 相对于Web应用根目录 */

/* 相对于服务器根目录 */


=>




最新评论

QQ|小黑屋|最新主题|手机版|微赢网络技术论坛 ( 苏ICP备08020429号 )

GMT+8, 2024-9-30 01:32 , Processed in 0.118900 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

返回顶部