楼主有不好的代码习惯:
String   FunctionType=request.getParameter( "functiontype "); 
String   PageForward=null; 
          if(FunctionType.equals( "write ")) 
应改为:
String   functionType=null;
String   pageForward="fai"; 
          if((functionType=(String)request.getParameter( "functiontype ")).equals("write")) 
.........................
后面看不出来什么错误<%=basePath%> 可能这个有问题,看看整个JSP页面

解决方案 »

  1.   

    怀疑你的返回页就是空
    不知道你原来的代码写的就是这样的,还是发出来的时候加了空格
    注意你代码的几个地方
    1、String   FunctionType=request.getParameter( "functiontype ");
    你这个是方是functiontype空格,而传过来的变量是没有空格的。
    2、FunctionType.equals( "write "))同样的问题
    传过来的是"write" 而代码里是 "write空格"
    你设个断点调一下。
      

  2.   

    你的struts配置文件错误
    <struts-config> 
        <data-sources   /> 
        <form-beans   > 
            <form-bean   name= "userForm "   type= "com.morning.form.UserForm "   /> 
            <form-bean   name= "writeForm "   type= "com.morning.form.WriteForm "   /> 
            
            
        </form-beans>     <global-exceptions   /> 
        <global-forwards   > 
                <forward   name= "write "   path= "/user/write.jsp "> </forward> 
                <forward   name= "suc "   path= "/user/loginok.jsp "> </forward> 
                <forward   name= "fai "   path= "/user/loginfail.jsp "> </forward> 
                <forward   name= "error "   path= "/user/errors.jsp "> </forward> 
        </global-forwards> 
        <action-mappings   > 
        <action   path= "/loginjsp "   forward= "/user/login.jsp "   > </action> 
        <action   attribute= "userForm "   input= "/user/errors.jsp "   name= "userForm "   path= "/user "   scope= "request "   type= "com.morning.action.UserAction "/> 
        <action   path= "/checkPower "   type= "com.morning.CheckPowerAction "   /> 
            <forward   name= "write "   path= "/user/write.jsp "> </forward>
        </action-mappings>     <message-resources   parameter= "com.morning.ApplicationResources "   /> 
    </struts-config>