yunuss khan

Greenhorn
+ Follow
since Apr 22, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by yunuss khan

Hi All,

i want to retreive records from database but error is coming when i am executing the code..

pls help..

My code is :


===================
Error is Coming...

type Exception report

message

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

exception

org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

java.lang.NullPointerException
org.apache.jsp.prac.email_jsp._jspService(email_jsp.java:69)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.



Thanks & Regards,
Yunus

[ December 14, 2006: Message edited by: Bear Bibeault ]
[BPSouther: Added UBB Code Tags]
[ December 14, 2006: Message edited by: Ben Souther ]
14 years ago
JSP
Hi All,

I want to retreive records from database but i have one problm in the below Code where should i pass my Server name and Database name..because my data is on server not on my local database..in below code "Data" is my database name and "Cust" is my tablename..

Pls help.....

<%@ page import="java.sql.*" %>

<% Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); %>

<HTML>
<HEAD>
<TITLE>Selecting tableName From a Database</TITLE>
</HEAD>

<BODY>
<H1>Selecting tableName From a Database</H1>

<%
Connection connection = DriverManager.getConnection(
"jdbc:odbc:data", "userName", "password");

Statement statement = connection.createStatement() ;
ResultSet resultset =
statement.executeQuery("select * from cust where city = 'Boston'") ;
%>

<TABLE BORDER="1">
<TR>
<TH>ID</TH>
<TH>Name</TH>
<TH>City</TH>
<TH>State</TH>
<TH>Country</TH>
</TR>
<% while(resultset.next()){ %><TR>
<TD> <%= resultset.getString(1) %></td>
<TD> <%= resultset.getString(2) %></TD>
<TD> <%= resultset.getString(3) %></TD>
<TD> <%= resultset.getString(4) %></TD>
<TD> <%= resultset.getString(5) %></TD>
</TR>
<% } %>
</TABLE>
</BODY>
</HTML>


Thanks & Regards,
Yunus
Hi All,

i have installed tomcat 5 successfully and after giving http\\localhost:8080 index page of tomcat is displaying but when i am
clicking on JSP-Example link it is giving me below error..

type Status report

message /jsp-examples/

description The requested resource (/jsp-examples/) is not available.

pls help..

Regards,
yunus
14 years ago
Hi All,

Can you please explain me in detail about Shift Operators how its works.

Leftshift << ,Right >>,>>>

Thanks & Regards,
yunus
14 years ago
Hi Ernest,

thanks for your help.. can you please let me know how can i set the classpath or path pernamently.

on command prompt i m typind c:\jdk1.5.0_06\bin

pls help,

Regards,
yunus
14 years ago
Hi All,

while running the code i m getting an error at run time.

error is

"Exception in thread "main" java.lang.noClassdeffoundError:Room1"

room1 is my class name.

pls help

Thanks * Regards,
john
14 years ago
Hi all,

i m want to know what is the latest requirement of industry from a java developer and what is the new java technology the developer should go for that..

thanks & regards,
yunuss
14 years ago
hi,

try this...

import java.awt*;

import java applet Applet;


Public class Circle extends Applet

{

Public void paint (Graphics g)


{


g.setColor (Color.red); // sets color red


g.fillOval (100,100,50,50); //Draws circle with loacation 100,100, and diam 50


} // method paint


} // class circe

Regards,
yunus
15 years ago
Thanks John Meyers,

can i use same books for scjp 1.4.

Regards,
yunus
hi pramila,

how to join this group can u plz tell me..

scjp2study-subscribe@yahoogroups.com

regards,
yunus
Hi All,
i also want to give that exam..i m from mumbai...
my mail id: khanyunuss@yahoo.com


Regards,
Yunus
Hi All,

I would like to know which book of Author is useful to refer for Scjp Exam...

Pls Help...

Thanks & Regards,
Yunus
Hi All,

i m getting below error when i m trying to make conncetion in jsp.

Error occurred java.lang.ClassNotFoundException: jdbc.odbc.JdbcOdbcDriver Error occurred java.sql.SQLException: No suitable driver Error occurred java.lang.NullPointerException

my code is :

Connection conn = null;
ResultSet result = null;
Statement stmt = null;

Class c = Class.forName("jdbc.odbc.JdbcOdbcDriver");
conn = DriverManager.getConnection("jdbc dbc:master","","");
stmt = conn.createStatement();
result = stmt.executeQuery("SELECT * FROM Employees");

i m using sql 2000.

pls help.

thanks in advance.

yunus
Thanks a lot Bill,

to run tomcat 5.5 we require jdk1.5.

yunus
15 years ago