Application « Error « JSP-Servlet Q&A





1. Java Servlet 404 errors    stackoverflow.com

What culprits are the most likely to cause a 404 resource not found error when a page in a given .WAR, autocreated by Sun's J2EE deploytool, is trying to load a ...

3. Depployed in ROOT but error in webapps    coderanch.com

I am using usebean Action and deploying the project in Tomcat5.0/webapps/ it is giving an error called "The value of usebean is invalid" but when I am deploying the same in Tomcat5.0/ROOT/ it is working fine Can anuone tell me why it is so And how can we rectify the above mentioned problem

4. weired wep application error    coderanch.com

hi guys, we are developing a web application that we test on both a local tomcat server (version 5.0) and also on a remote tomcat server (same version). in first versions of application things were ok on both local & remote servers- after we added an applet to our application-and this applet is not loaded until user logs in to our ...

5. JDBC Error with Servlets not with Application    coderanch.com

I am having a problem that I simply cannot figure out. I have a MS Access database defined through ODBC, and when I connect through an appliation, no problem. but when my servlet tries to connect to the same db, it can not do it, and it throws an exception. Here is the offending code: private String jdbcDriverName = "sun.jdbc.odbc.JdbcOdbcDriver"; private ...





10. Null Pointer Execption error when running application    coderanch.com

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="java.util.ArrayList"%> <%@page import="net.ensode.glassfishbook.jdbcselect.UsStateBean"%> <% ArrayList stateList = (ArrayList) request .getAttribute("stateList"); %> US States

<% for (UsStateBean state : stateList) { %> <% } %> ...

US State List
Name Abbreviation
<%=state.getStateName()%> <%=state.getStateCode()%>

12. while running jsp application getting error Column Index out of range    forums.oracle.com

public class cell_id_based_calls extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { PrintWriter out = res.getWriter(); try { Class.forName("Driver"); Connection con = DriverManager.getConnection("URL","user","password"); Statement stmt = con.createStatement(); String target = req.getParameter("target_no"); System.out.println(target); CallableStatement cs = con.prepareCall("{call target_customer_info(?)}"); cs. setString(1, target); cs.execute(); ResultSet rs = cs.getResultSet(); ResultSetMetaData rsmd = rs.getMetaData(); int numcols = rsmd.getColumnCount(); System.out.println(numcols); while(rs.next()) { out.println("