如果register.jsp是在webroot/jsps下,那么input应该没写错,检查一下register.jsp页面中的css和图片的路径是不是正确的,还有,注意相对路径和绝对路径的区别

解决方案 »

  1.   

    检查一下register.jsp页面中的css和图片的路径是不是正确的
    正不正确我只能以是否正常显示图片,style来判断, 在在Register.jsp 中 首先是正常显示的 , 图片和style 都没问题 , 文本框都为空, 单击submit ,传递到FormBean中去验证文本框中是否为空,  为空的话, 在register,jsp 中 写了 <html:errors/>   struts-config.xml 中也是这样写的 ,input="/jsps/Register.jsp"
      

  2.   

    我就是在action 是用 return mapping.findForward() ; 这个很自然的是 request 跳转 , 顺便我看了下 正常显示图片时的路径 是
    http://localhost:8088/Struts2.3/images/top.jpg跳转回来后的图片路径(不显示的)是 :http://localhost:8088/images/top.jpg... 在struts-config.xml中的 input 中尝试了多次path 的写法  都不正常  有一个说缺少启动的字符 '/'
      

  3.   

    http://localhost:8088/Struts2.3/images/top.jpg 
    http://localhost:8088/images/top.jpg 
    比较一下就知道是你的页面上的路径不对了,一般用eclipse的话会帮你加上basepath 再查下路径Register.jsp中路径的写法
      

  4.   

    在Register.jsp 页面中对应的action 将forward 属性改成了redirect
     Ok
      

  5.   

    需要重定向
    <forward name="" redirect="true" path=""></forward>这样子就没问题了