⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 photolist.jsp

📁 使用JAVA编写的博客
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=gb2312"%>
<%@ page import="java.util.List" %>
<%@ page import="com.yxq.valuebean.PhotoBean" %>

<html>
<head>
	<title>聆音博客-所有相片</title>
</head>
<body>
    <center>
        <table width="778" height="600" border="0" cellspacing="0" cellpadding="0" bgcolor="#F0EAED">
            <tr height="281"><td colspan="2"><jsp:include page="../view/FrontTop.jsp" /></td></tr>
            <tr>
                <td width="230" valign="top"><jsp:include page="../view/FrontLeft.jsp"/></td>
                <td width="548" align="center" valign="top">
                    <table border="0" width="95%" cellspacing="0" style="margin-top:10" >
						<tr height="60"><td align="center">【我的相册】</td></tr>
						<%
                           	List photoList=(List)request.getAttribute("photoList");
                        	if(photoList==null||photoList.size()==0){
                        %>
                        <tr height="100"><td align="center"><li>博主目前还未上传任何照片!</li></td></tr>
                        <%  
                        	}
                        	else{
                  				out.print("<tr height='120'>");
                  				out.print("<td width='25%' style='padding-left:10'>");
                         		int i=0;
                        		while(i<photoList.size()){
                        			PhotoBean photoSingle=(PhotoBean)photoList.get(i);
                        			out.print("<a href='PhotoServlet?action=single&id="+photoSingle.getId()+"' target='_blank'><img src='"+photoSingle.getPhotoAddr()+"' border='0' width='120' height='120' title='"+photoSingle.getPhotoInfo()+"' style='border:1 solid;border-color:black'></a> ");
                        			i++;
                        		}
                        		out.println("</td>");
                        		out.println("</tr>");
                        	}
                        %>
                    </table>
                </td>
            </tr>
            <tr height="100"><td colspan="2"><%@ include file="../view/FrontEnd.jsp" %></td></tr>
        </table>
    </center>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -