Error List

Error List for the ‘JAVA-JSP’ Category

EL Or JSTL Not Working As Expected

Applies to:
NA

Description:
Occurs while using EL or JSTL in JSP.

Cause:
Configuration mismatch between the version of JSP that you are using, the version of the JSTL that you employ, and how you have declared your web application in the deployment descriptor (web.xml).

JAVA-JSP , , , , , , , , , , , ,

Resource Url Problems

Applies to:
NA

Description:
A common issue is the problem where the external resources for a page, to include images, style sheets and script files, do not load.

Cause:
his problem is frequently caused by using page-relative URLs to these resources.
Within a static web site, the URL to HTML files is formed from the file path to that page. Within a dynamic web application, this is no longer the case; the URLs are usually formed from mappings within the deployment descriptor (web.xml).

Thus, a URL such as

http://some.server.com/command/doSomething

does not reference any particular folder on the file system. Rather, it is referencing a servlet mapped within the deployment descriptor.
When you forward to a JSP from this servlet, the URL remains the same and the browser has no way of knowing that the URL does not reference a folder. And it certainly has no way of knowing in which folder the JSP resides.
Thus, if you use page-relative URLs in the JSP, the browser tries to use the servlet mapping to resolve the path to the file, and of course, that fails.

JAVA-JSP , , ,

IllegalStateException while using JSP

Applies to:
NA

Description:
Signals that a method has been invoked at an illegal or inappropriate time. In other words, the Java environment or Java application is not in an appropriate state for the requested operation.

Cause:
a. The most common cause of this exception is a servlet or JSP attempting to write to the output stream after the response has been committed.
b. Another way this can happen is by attempting to redirect from within the middle of a JSP page:

hello world

<%
if ("not logged in")
response.sendRedirect("login.jsp");
%>

more stuff

c. Another common place where an IllegalStateException is likely to occur is in a JSP that attempts to stream binary data. JSPs are primarily designed to format output as HTML. With HTML, white space characters are ignored. It is not uncommon for JSP compilers to inject their own white space charaters to the beginning and/or end of the output stream. Line breaks in the developer’s code can also be interpreted as white space in the output stream. These white space characters can interfer with the generated servlet’s ability to create and stream the binary outputdata, resulting in the IllegalStateException.

JAVA-JSP , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Java Bean not found

Applies to:
NA

Description:
A common problem which occurs when the class loader cannot find beans that the pages reference.That usually results in an error message like “Class xxx cannot be resolved to a type”

Cause:
The class loader could not find beans that the pages referenced.

JAVA-JSP , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

405: HTTP method POST is not supported by this URL

Applies to:


Description:
An included servlet error while trying to use HTML files using POST methods.

Cause:
A bug in the servlet engine.

JAVA-JSP , , ,

405 Method Not Allowed

Applies to:
Apache
Tomcat

Description:
Error while trying to POST to a JSP page.

Cause:
Servlet container is not started

JAVA-JSP , ,

headTable.style has no properties in Firefox

Applies to:
Mozilla v1.0

Description:
Error while running JSP in Mozilla.

Cause:


JAVA-JSP , , ,

ParseException: Seen file include.jsp already, maybe this is a recursive include

Applies to:
Websphere Application Server 3.5.3


Description:
Error while trying to include a JSP into another JSP using the include directive.

Cause:
A bug in Tomcat WAS 3.5.3 when including two JSPs with each other.

JAVA-JSP , , , , , , ,

Attribute name invalid

Applies to:
Struts

Description:
Error when using html:form in JSP.

Cause:
The form name is added to the html:form tag which is not an attribute of the tag.

JAVA-JSP , ,

JasperException: Unable to open taglibrary /taglibs : Unable to open the tag library descriptor: Stream closed