error « URL « JSP-Servlet Q&A

1. What to do in "Error 404--Not Found" situation created by weblogic URL handling?

I have a J2EE Struts app deployed on Weblogic 10.3. When clicking on one of the link it throws "Error 404--Not Found" however the same link works fine when the app ...

2. Server returned HTTP response code: 500 for URL: https://hostname:port/

We are getting the " Server returned HTTP response code: 500 for URL" error for the following code which is for applet-servlet communication. The same code has been working for long ...

3. Why I am getting 'HTTP method GET is not supported by this URL' error?

import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class loginServlet extends HttpServlet
private void sendLoginPage (HttpServletResponse res, HttpServletRequest req, boolean error)
throws ServletException,IOException
    PrintWriter o = res.getWriter();   ...

4. Tomcat 7 start-up errors from Eclipse - Unable to process JNDI URL

If I create a dynamic web application in Eclipse and the context root doesn't match the WAR name, I get an error when starting up the associated Tomcat 7 server...

SEVERE: Unable ...

5. Forcing 404 error for a specific url pattern from web.xml

I have a Java servlet that that handles requests to any url pattern on a Tomcat 6 server. Now i want to block requests to a specific url pattern by issuing a ...

6. Getting error while setting context path to url

I am setting the context path in jsp page but it is showing error while running the jsp page. as shown below.

<c:set var="path" value="${pageContext.request.contextPath}"/>

<% urlName='<c:out value="${path}"/>/tran/'; %>
${path} is not showing the ...

7. process errors of user defined URL

Thanks, do you mean declare it like this in web.xml: java.lang.Throwable /errorpage.jsp 500 /errorpage.jsp I have done that,however, it only works when there is an exception being thrown. If the user is intended to type a URL which doesnot exist,these information is shown below: HTTP Status 404 - /test.jsp type Status report message /test.jsp description The requested ...