Error 500--Internal Server Error 
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.5.1 500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.
 
请问是不是index中的action方法或者web.xml配置不对?

解决方案 »

  1.   

    你是怎没移植到weblogic
    看看后台报的什么错?
      

  2.   

    web.xml
    --------------
    <?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd"><web-app>    <!--General description of your Web application-->
        <display-name>
            Advanced Java How to Program JSP
        </display-name>
        
        <description>
           This is the Web application in which we
           denostrate our JSP and Servlet examples.
        </description>
        
        !--Servlet definitions-->
        <servlet>
          <servlet-name>welcome2</servlet-name>
          
        <description>
           A simple servlet that handles an HTTP get request.
        </description>  
       
        <servlet-class>
         WelcomeServlet2
        </servlet-class>
       <load-on-startup>0</load-on-startup> 
        </servlet>
          
       <!--Servlet mapings-->
        <servlet-mapping>
            <servlet-name>welcome2</servlet-name>
            <url-pattern>/welcome2</url-pattern>
        </servlet-mapping>
    </web-app>
    -------------------------
    index.htm
    -------------------------
    <?xml version = "1.0"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><!-- Fig. 9.12--><html xmlns = "http://www.w3.org/1999/xhtml">
    <head>
       <title>Processing get requests with data</title>
    </head><body>
       <form action = "/myApp/welcome2" method = "get">      <p><label>
             Type your first name and press the Submit button
             <br /><input type = "text" name = "firstname" />
             <input type = "submit" value = "Submit" />
          </p></label>   </form>
    </body>
    </html>