六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 65|回复: 0

jsp变量使用

[复制链接]

升级  52.67%

35

主题

35

主题

35

主题

秀才

Rank: 2

积分
129
 楼主| 发表于 2013-1-29 07:39:20 | 显示全部楼层 |阅读模式
1-------------------------------------

<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>
<%@ taglib uri="/FCKeditor" prefix="FCK"%>
<html>
<head>
<title>Website Management - News Add</title>
<meta http-equiv=content-type content="text/html; charset=utf-8">
<meta content="MSHTML 6.00.2900.3354" name=generator>
<link href="<c:out value="${ctx}"/>/style/Style.css" rel="stylesheet" type="text/css">

2commons/taglibs.jsp-------------------------------------
<%@ taglib uri="jsp/jstl/c.tld" prefix="c" %>
<%@ taglib uri="jsp/jstl/fmt.tld" prefix="fmt" %>
<%@ taglib uri="struts/struts-html.tld" prefix="html" %>
<%@ taglib uri="struts/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="struts/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="ec/extremecomponents.tld" prefix="ec" %>
<%@ taglib uri="tcps/tcps.tld" prefix="tcps" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<c:set var="mediaPath" value="${pageContext.request.contextPath}/system/topAction.do?method=media"/>
<%
    String path = request.getServerName();
    int port = request.getServerPort();
    String imagPath = "http://"+path+":"+port+"/resource";
    request.setAttribute("imagePath",imagPath);
%>
<c:set var="imagePath" value="${imagePath}"/>
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表