Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

saravanan rajendran

Ranch Hand
+ Follow
since Jun 13, 2008
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 saravanan rajendran

hi, thanks for your reply if you given sip servlet source code link for two way voice communication means very useful for me.
13 years ago
sorry i forget to mention what communication? it is voice exchange two way communication from one PC to another PC using sip servlet
13 years ago
HI, i have big query please guide me. Using SIP servlet i have to develop two way communication from one computer to another computer using sip servlet program if you have any source code it will help me more.i hope will get reply. thank you
13 years ago
hi, i had a problem integrating java and servlet program guide me

problem:

My asterisk java program compile in separate application my all asterisk-java program kept in var/lib/asterisk/agi-bin/

my servlet program execute in different application all servlet program kept in usr/local/apache-tomcat/webapps/Asianet/WEB-INF/classes/com/example/servlet

my requirement:

I have jsp page it display in GUI when i select some value in GUI that value will get in servlet program using get parameter method that value i have to pass asterisk-java program that is different application how to do this guide me
13 years ago
hi,
i have 2 program in different folder


program1.java exists in below folder

/usr/local/apache-tomcat/webapps/Asianet/WEB-INF/classes/com/example/servlets/program1

program1.java



program2.java exists in below folder

/usr/local/apache-tomcat/webapps/Asianet/WEB-INF/classes/com/example/program2


Error:

package com.example.servlets does not exist
import com.example.servlets.*;
^
i getting above error i cannot find what error guide me

[edit]Add code tags. CR[/edit]
[ August 19, 2008: Message edited by: Campbell Ritchie ]
13 years ago
hi, please guide me i have two text files file1 contain large data and file2 contain "power.agi" Actually i want to append that data into file1 in particular line i have hide that existing word and append this word power.agi how to do i using java fileinputstream fileoutstream please guide me
13 years ago
hi, thank you very much for your reply.yes i have C:/asia/book1.xls exist in my server.but i don't know about stderr.log file how to get and put that please guide me
hi, thanks for your reply, In my log file does not contain stderr.log file

It contain
host-manager.log
manger.log
local host-manager.log
catalina.log
admin.log

those file only contain please guide me
hi friend i eagerly waiting for you reply. After that line no other code executing directly coming to that catch statement and its came out from program.please guide me
hi thank you, up to that line what are the print statement i given its displaying after that line no print statement displaying but its not showing null pointer exception also please guide me
hi, thanks for your guide. now null pointer exception not showing but after that line no print statement displaying.what the value i read that also not stored in database please guide me
hi thanks for your guide. when i compiling that code not showing any error.when i calling that file in web browser up to that line all print statement displaying after that line no display statement working i thinking that line only having problem please see Below code i trying to get and read xls file.please guide me i trying lot

code:
try
{
//getting parameter value
input of F1="C:/asia/book1.xls"
String imp=request.getParameter("F1");

out.println("welcome5");//printing
Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );

out.println("welcome to peopletech23999884");//printing
out.println(imp);printing C:/asia/book1.xls

//after imp value printed its printing java.lang.NullPointerException

conn = DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Excel Driver (*.xls)};DBQ=" + imp);
out.println("welcome to peopletech1");//not printing here onwards no print statement displaying

st = conn.createStatement();
String query = "Select * from [Sheet1$]" ;
rs = st.executeQuery( query );
while( rs.next() )
{
String name=rs.getString(1);
String loc=rs.getString(2);
try
{

Class.forName
("com.mysql.jdbc.Driver").newInstance();
conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/test", "meetme", "meetme");
st = conn.createStatement();
st.executeUpdate("Insert INTO sample1(`name` , `location`)VALUES('"+ name +"' ,'"+ loc +"')");
rs1=st.executeQuery("select * from sample1");
if(rs1.next())
{
out.println(name);
}
}
catch(Exception e)
{
out.println(e);
}
}//while
}//try
catch( Exception e )
{
out.println(e);
}
hi thanks for yr reply. yes i getting exception that line only before that line i given display statements its all printing but after that line no display statement working

//here i getting parameter value
String imp=request.getParameter("F1");
out.println(imp);//its displaying that value

Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
out.println("welcome");//this one displaying

//Below line i getting java.lang.NullPointerException

conn = DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Excel Driver (*.xls)};DBQ="+imp);//
out.println("welcome2");//this line not printing

st = conn.createStatement();
String query = "Select * from [Sheet1$]" ;
rs = st.executeQuery( query );
hi, i hardly trying to read xls file i getting null pointer Exception please guide me please see below code

String imp=request.getParameter("F1");
Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );

//Below line i getting java.lang.NullPointerException

conn = DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Excel Driver (*.xls)};DBQ="+imp);

st = conn.createStatement();
String query = "Select * from [Sheet1$]" ;
rs = st.executeQuery( query );
hi thanks for your reply. yes two processes running as part of the same program.

In program A i getting callerid value and calling program B I don't know how to pass the callerid value to program B please guide me
13 years ago