一般是在<title>   </title>中间生成的.
<meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <style type="text/css">
请问这几行代码有什么用?另外在<head>后面也有几行代码.如
 <%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%> 
这又有什么用?
请指导下小弟吧?

解决方案 »

  1.   

    前面一些注释的东西,后面是得到点路径,想知道是什么,怎么print出来看看就行
      

  2.   

    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %> 这个东西建议保留其中的path在应用的时候会经常用到的其他的那个可以删除掉    <meta http-equiv="pragma" content="no-cache">
        <meta http-equiv="cache-control" content="no-cache">
        <meta http-equiv="expires" content="0">    
        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
        <meta http-equiv="description" content="This is my page">这些是设置一些参数,例如搜索关键字、是否允许IE缓存等
        <style type="text/css">
    这个是样式表,建议换成自己的