error « Request « JSP-Servlet Q&A

1. Display different Tomcat error pages depending on URL of original request

I would like to use Tomcat's error-page directive to display various different error pages in response to various types of exceptions. However, I want the error page displayed to have ...

2. Ajax request problem: error 80020101

I have a request which returns a jsp page. But the fact is, the jsp includes jsp:include in it(it calls another jsp file in it) and ie gives the error 80020101. Any ...

3. Forwarding request to tomcat's error-page

I have the following in my web.xml:

The ...

4. Geting 404 error when request is made from JSP

I am trying to learn Struts2, but I am unable to create a working hello world application. It's giving a 404 (page not found) error when request is made from JSP. ...

5. Redirect the request to JSP in servlet giving error?

if i give res.sendRedirect("RequestObjectInJSP.jsp") in my servlet class it works(in this case jsp file exist at D:\apache-tomcat-6.0.33\apache-tomcat-6.0.33\webapps\hello) but if i give res.sendRedirect("WEB-INF/classes/jsp/RequestObjectInJSP.jsp") it does not work(in this case file ...

6. request.getServletContext() not found, even with new JAR

My compiler is not able to find the HttpServletRequest getServletContext() method. I am not doing anything too complicated:

public static void setMySortedSet(HttpServletRequest request, SortedSet<String> set) 
   setMySortedSet(request.getServletContext(), set);
Some troubleshooting I ...

8. Request FWD Error

11. Servlet Filter - Reading Request Error

I realize this is a very old topic but it still shows up on Google and was very helpful in getting me pointed in the right direction. I had the same problem of wanting to see the XML contents of the request in a Servlet Filter before the request went to Axis2. I started with the code sample in PJ Crump's ...

12. The server encountered an internal error () that prevented it from fulfilling this request

Hello! I got following error when I was accessing a JSP page, which is qute a big HTTP Status 500 - -------------------------------------------------------------------------------- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception [code]org.apache.jasper.JasperException: /dbsave.jsp(3,0) The value for the useBean class attribute finalproject.Winterproject is invalid. org.apache.jasper.compiler.DefaultErrorHandler.jspError( org.apache.jasper.compiler.ErrorDispatcher.dispatch( org.apache.jasper.compiler.ErrorDispatcher.jspError( org.apache.jasper.compiler.Generator$GenerateVisitor.visit( org.apache.jasper.compiler.Node$UseBean.accept( org.apache.jasper.compiler.Node$Nodes.visit( org.apache.jasper.compiler.Node$Visitor.visitBody( ...

13. error while submitting an http web request

I am trying to send a web request via http, below is my code and the error, I am not sure why there is an error on the outputstreamwriter. it seems i am doign the correct thing. Can any one please help <%@page import=""%> <%@ page import=""%> <%@ page import=""%> <%@ page import="java.util.*"%> <%@ page import="com.Test2" %> <%@ page import="*" %> ...

15. Error in request.getParameter