关于超链接跳不到指定页面的问题? -问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

关于超链接跳不到指定页面的问题?

杨冬芳 2016-06-21 18:22:55 1548

screenshot
screenshot

                        <td>
                        &nbsp;
                        <a href="/xiaoneinew_22/profile.do?flag=uploadPhotoUI" class="xh" id="editphotoa">更改我的头像</a>
                        </td>
                        
                        

action的源码是:

//跳转到上传头像的的页面, uploadPhotoUI

public ActionForward uploadPhotoUI(ActionMapping mapping, ActionForm form,
        HttpServletRequest request, HttpServletResponse response) {
    return mapping.findForward("goUploadPhotoUI");
}

现在给出要跳到的页面的源码:
对了,我找过很多对此问题的回答,都说是img的问题,所以我将两处img注释掉了,

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <link rel="stylesheet" href="/xiaoneinew_22/css/css/updPersonInfo.css" type="text/css"></link>
    </head>
    <body>

        <jsp:include page="head.jsp"></jsp:include>
        <div class="info_main">
            <div class="info_left">
                <table width="100%" border="0" cellspacing="1" cellpadding="10">
                    <tr>
                        <td valign="top">
                            <div class="divTbl">
                                <table width="100%" border="0" cellspacing="1" cellpadding="10"
                                    class="tblDiv">
                                    <tr>
                                        <td valign="bottom">
                                            <div style="border-bottom: 1px #CCCCCC solid;">
                                                &nbsp;&nbsp;&nbsp;
                                                <table border="0" cellspacing="0" cellpadding="2">
                                                    <tr>
                                                        <td>
                                                            &nbsp;&nbsp;
                                                        </td>
                                                        <td class="tblInfo"
                                                            style="border-left: 1px #898989 solid;">
                                                            &nbsp;&nbsp;
                                                            <a href="/self/basicInfo.jsp " class="xh"
                                                                style="color: black">基本信息</a>&nbsp;&nbsp;
                                                        </td>
                                                        <td class="tblInfo">
                                                            &nbsp;&nbsp;
                                                            <a href="/self/contactInfo.jsp" class="xh"
                                                                style="color: black">联系方式</a>&nbsp;&nbsp;
                                                        </td>
                                                        <td class="tblInfo">
                                                            &nbsp;&nbsp;
                                                            <a href="/self/personalInfo.jsp" class="xh"
                                                                style="color: black">个人信息</a>&nbsp;&nbsp;
                                                        </td>
                                                        <td class="tblInfo">
                                                            &nbsp;&nbsp;
                                                            <a href="getReady.do?type=edu" class="xh"
                                                                style="color: black">学校信息</a>&nbsp;&nbsp;
                                                        </td>
                                                        <td class="tblInfo">
                                                            &nbsp;&nbsp;
                                                            <a href="/self/myWorkInfo.jsp" class="xh"
                                                                style="color: black">工作信息</a>&nbsp;&nbsp;
                                                        </td>
                                                        <td class="tblInfo" bgcolor="#6D84B4">
                                                            &nbsp;&nbsp;
                                                            <a href="/self/upload.jsp" class="xh"
                                                                style="color: white">上传头像</a>&nbsp;&nbsp;
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </td>
                                    </tr>


                                    <tr>
                                        <td>
                                            <form action="/xiaoneinew_22/profile.do?flag=uploadPhoto" method="post"
                                                enctype="multipart/form-data">
                                                <table width="100%" border="0" cellspacing="1"
                                                    cellpadding="10">
                                                    <tr>
                                                        <td width="40%">
                                                            &nbsp;
                                                            <font class="word2">当前头像</font>
                                                        </td>
                                                        <td>
                                                            &nbsp;
                                                            <font class="word2">上传头像 </font>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td valign="top">
                                                            &nbsp;
                                                            <font class="word3">你可以到你的<a href="" class="xh">头像相册</a>里选择照片设置为当前头像</font>
                                                            <br />
                                                            <!-- <img src="/xiaoneinew_22/images/${loginuser.id }/head/${loginuser.photo }?abc=<%=Math.random() %>" width="200"
                                                                height="200" />  -->
                                                        </td>
                                                        <td valign="top">
                                                            &nbsp;
                                                            <font class="word3">上传真实头像,成为<a href="" class="xh">星级用户</a>,即可拥有无限量相册空间!</font>
                                                            <br />
                                                            &nbsp;
                                                            <input type="file" class="wby" name="myphoto" />
                                                            <br />
                                                            &nbsp;
                                                            <font class="word3">支持 JPG、JPEG、GIF、BMP 和 PNG
                                                                文件格式,最大4M。 头像高度超出宽度1.5倍的部分会被切除。</font>
                                                            <br />
                                                            <br />
                                                            <input type="submit" value="上传头像" class="sub" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </form>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                        <td align="center">
                        <!--     <img src="/xiaoneinew_22/images/front/selfright.jpg" />  -->
                        </td>
                    </tr>
                </table>

            </div>
        </div>
        <!-- 引入foot.jsp -->
        <jsp:include page="../public/foot.jsp"></jsp:include>
    </body>
</html>
前端开发 Java
分享到
取消 提交回答
全部回答(1)
  • 杨冬芳
    2019-07-17 19:45:11

    你说图片下面的链接跳转,并且注释掉了,我看了看你关于图片注释掉的代码周围的部分,一个链接的href为空,另一个就没有链接啊。

    0 0
开发与运维
使用钉钉扫一扫加入圈子
+ 订阅

集结各类场景实战经验,助你开发运维畅行无忧

推荐文章
相似问题
推荐课程