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

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


看[1]图,那个狮子图片下面有一个链接,我点击那个链接,跳不过去不说还不报错,前台和后台都不报错。我想知道为什么跳过去?怎么才能跳过去?谢谢。

[2]图是后台的截图


前台的那几行是:

Resource interpreted as Image but transferred with MIME type text/xml: "http://pb.sogou.com/pv.gif?uigs_productid=webext&uigs_t=1459699158319034&ui…%2F%2Flocalhost%3A8080%2Fxiaoneinew_22%2Fprofile.do%3Fflag%3DuploadPhotoUI". yun6.jsp?pid=sogou-brse-d2a452edff079ca6&w=1366&v=7400&st=1459699158114&od=178&ls=1459699015530&lc=…:28
Resource interpreted as Script but transferred with MIME type text/xml: "http://pb.sogou.com/pv.gif?hintbl=-1&uigs_productid=webext&type=ext_sugg&ui…%2F%2Flocalhost%3A8080%2Fxiaoneinew_22%2Fprofile.do%3Fflag%3DuploadPhotoUI". 

那段链接的源码是:

                            <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>

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

【热门文章】
【热门文章】