lp

Ranch Hand
+ Follow
since Nov 08, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by lp

hi
i wanted to know if anyone could help me with giving me an example of Servlet working as a client program in a RMI examplei.e servlet acts as a client program .
Thanks in advance,
lakshmi
21 years ago
hi
i was trying to run a basic level RMI program .i compiled all the interface ,implementation ,client and server files and got the respective .class files .After that i did i generated the stub and skelton files for the Implementation
After that starting the Rmiregistry ,i started running the server file ,it gave me an error saying
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: CalcuImpl_Stub
I later on checked it again all the stub and skelton files are present there .Can anyone tell me what to do ?
The example i was trying was given in jGuru.
All the files are in one folder
Thanks
Lakshmi
22 years ago
Thanks for ur response
Lakshmi
hi
i am new to this certification.i have seen the links ,but not sure where to start from .The whole thing looks huge to me .
Thanks
Lakshmi
hi
i am new to CORBA and was practising an example .i got a error when i was compling the server.java .the code is as follows
import test.*;
import org.omg.CosNaming.*;
import org.omg.CORBA.*;
public class Server
{
public static void main (String[] args) throws Exception
{
org.omg.CORBA.ORB orb=org.omg.CORBA.ORB.init();
org.omg.CORBA.BOA boa=orb.BOA_init();
test.Hello h1=new test._example_Hello("server");
boa.obj_is_ready(h1);
System.out.println("Server object ready");
boa.impl_is_ready();
}
}
when i am compiling the java file using Visigneic broker it is giving the error-Cannot resolve the symbol ,method BOA_init() and the location it is pointing to is the dot operatot in orb.BOA_init();
Could any one please tell me what is wrong in this .
Thanks in advance
Lakshmi
22 years ago
hi
i am new to xml and came across a doubt ,in the dtd the element is referncing another element so i dont have an idea how to write an xml.this is the part of the dtd
<!ELEMENT Book-Type (Subject)>
<!ELEMENT Subject (#PCDATA)>
Thanks
Lakshmi
hi
i have trying to acess some attributes using the jdbc connection in servlet.Based on the result set value i want to retrieve the value of some other attributes in another table .and print all the attributes from both queries in 1 table .Please tell me how to do this .i am able to get the attributes from one table but not able to connect to another result set it is giving me errors.the code is
stmt=con.createStatement();
String que="select L.registerno,L.bldgno,L.aptno from Lease L where L.leasestart='"+d1+"'" ;
rs=stmt.executeQuery(que);
while(rs.next())
{

int regno=rs.getInt(1);
int blno=rs.getInt(2);
int apno=rs.getInt(3);
pw.println("<tr>");
pw.println("<td>");
pw.println(regno);
pw.println("</td>");
pw.println("<td>");
pw.println(blno);
pw.println("</td>");
pw.println("<td>");
pw.println(apno);
pw.println("</td>");
pw.println("</tr>");
stmt1=con.createStatement();
String que1="select PT.pname,PT.contactinfo from ProspectiveTenant PT where PT.registerno="+regno;
rs1=stmt1.executeQuery(que1);
String pnam=rs1.getString(1);
int cfo=rs1.getInt(2);
pw.println(pnam);
pw.println(cfo);

Here i am getting the value of regno but i dont know how to implement the second result set .please tell me how to do that
Thanks in advance
Lakshmi
the ; is not there in the original program query which i have been running so this is not the problem,incase you point out that i wanted to let u all know
Thanks in advance
Lakshmi
22 years ago
JSP
Hi
i have been writing a jsp page where i am exectuing a query and the o/p would be in a form of a drop menu box but i am not getting the o/p.when i execute the query at mysql prompt i am getting the o/p .please let me know what the problem is .i want the 3 values in one row .
ResultSet rs = stmt.executeQuery("select instructor_first_name,course_name,section_name_or_no from instructors_staff,section,course where course.course_no=section.course_no and section.instructor_id=instructors_staff.instructor_id;");
if(rs!=null)
{
while(rs.next())
{
String name = rs.getString("instructor_first_name");
String cname=rs.getString("course_name");
String sname=rs.getString("section_name_no");
%>
<option value =><%= name %><% = cname %><%= sname %></option>

<%
}/*end of while loop*/
}//if loop
</select></td>
</tr>

------------------
Thanks
Lakshmi
22 years ago
JSP
hi
i wanted to know how to compile and run an java file in VJ++
Thanks
Lakshmi
22 years ago
i have been getting an error while i am running this code
for(m=1;m<j+1;m++)
{
if((c[m]>100))
count=(count+1);
}
on the line where the count varaible is incremented .Please ket me know
bye
Thanks
Lakshmi
22 years ago
hi
i have been trying to writing a java program to acess the values of the tables that are stored in an another site(not on my pc ) in the form of mysql tables.my question is that do i require to have a mysql driver in my odbc driver(i.e home computer) to run this code sucessfully .i at present dont have the driver installed ,whenever i complied and run the code i am getting an error -
Class not foundException rg:gjt.mm.mysql.Driver
Please answer my question
Thanks in advance
Lakshmi
Thanks ,i got my doubt cleared
lakshmi
22 years ago
hi
i want to test for all the values of raaaray[rindex],incase it fails for all the values of rindex then only i want the else part to be executed and not each and every time .
I could not understand what u meant by flag also .
thanks
lakshmi
22 years ago
hi
i had a problem in how to implement the loop conditions .the problem is as follows:
int num,harray[],raaray[],rindex;
i want to check the condition whether value of num is less than or equal to the values of rarray [i] where i = 0 to rindex .incase this conditon is true i want to increment the value of num to num+1000 ,store the value of this num in haaray[0].(p.s rindex value is always less than the array size).and call another function called heap
Incase the conditon is false for all the values of raaray[rindex] then i want to insert haaray[0]=num and called the function called heap.
i have been trying to figure how to write down this code .my code what i have wriiten is as follows but i am not sure whether it is correct or not so please let me know
the code is as follows :
for(int u =0;u <rindex ;u++)
{
if (num <= raaray[u])then
{
num=num+10000;
haaray[0]=num
upheap(harray);
}
else
{
haaray[0]=num;
upheap(harray);
}
}

The doubt which i have is whether the if conditoin will check for all the i values or not .and i want to go to the assignment portion in the else case only after all the i values have been checked and not satisfied .but i am not sure whether this is implemented in this code which i have wriiten .Please let me know
Thanks
Lakshmi
p.s i was not sure whihch group to put up this question so i have also posted in the beginners level
22 years ago