Udaya Bascar

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

Recent posts by Udaya Bascar

hi guys
i am planning to take SCBCD exam.

Plz say me where i can get the dumps for this exam .
Does whizlabs commercial dump is better?
What r all the stuffs that i have to see?
Thanx n advance

Regards
UdayaBaskar
hi
thanx for the info
1-yes, it should. you just have to open a hole for the RMI port in the firewall.
can u explain the above lines that u gave n detail
Thanx n advance
bye
baskar
20 years ago
i am going to use weblogic6.1 as my appserver
hi Stan
Thanx very much for the info
do u have any sample code that implements BusinessDelegate Pattern
with respect to an project in EJB
can u send me the code how business delegate is used to look up the
business services
waiting for ur reply
Thanx n advance
bye
baskar
hi
in business delegate pattern if i am asked to explain
for what purpose JSP's are used and
Servlets are used? what i have to say?
can some one explain the basics of BusinessDelegate Pattern?
when we will choose this pattern?
working of an sample EJB how its invoked and how the results are transferred to HTML in Business Delegate explain?
thanx
Regards
bascar
hi friends
does RMI work behind firewall?
whats the difference between RMI Object and Ordinary Java Object?
in RMI can we pass objects as parameters?
Help Needed for these qns
Thanx n advance
Regards
bascar
20 years ago
hi friends,
Thanx friends,let me make my requirement very clear, i am running through the file
until the exact book code is found, then i want to overwrite the bookName
public void modifyBookDetails(String str){
try{
String bookCode="B0000002";
String bookName= "MasteringJSP";
File f=new File("F:\\javapro\\BookMaster2.txt");
RandomAccessFile raf=new RandomAccessFile(f,"rw");
String line=raf.readLine();
while( line != null){
line=raf.readLine();
if (line != null){
String s=line.substring(0,8);
if (s.equals(bookCode)){
bookMas=bookCode+" "+bookName;
long filePos=raf.getFilePointer();// line here correct?
raf.seek((filePos);// line here correct?
raf.writeBytes(bookMas);
}
}
}
raf.close();
raf=null;
}
catch(Exception e3){
System.out.println("error in reading file"+e3.toString());
}
}
what I have in my Text File
BookCode BookName
B0000001 MasteringJava
B0000002 MasteringEJB
I want to overwrite B0000002 row such that now my text file will be
BookCode BookName
B0000001 MasteringJava
B0000002 MasteringJSP
I have used the above code what changes i have to do the code to meet my requierment
hi gay3 i could not reach to the link u gave to me becoz its saying its an invalid URL
Regards
Baskar
21 years ago
hi friends,
i have an requirement such that i have to overwrite the contents
of the text file
eg
B001 MasteringJava
B002 MasteringEJB
now i want to modify B002 row as
B002 MasteringJSP
when i tried it created an new row instead of overwriting
B001 MasteringJava
B002 MasteringEJB
B002 MasteringJSP
what i actually need is
B001 MasteringJava
B002 MasteringJSP
how can i acheive this
can someone help me out with some code
Regards
Baskar
SCJP
21 years ago
hi guys
i cleared SCJP 1.4 with 70%.
Thanx to Kathy & Bert Book & Whizlabs.
and list of exams from Javaranch.
If any one wants to take the exam K&B Book is more than enough.
Regards
Baskar
21 years ago
hi JavaGurus
On running this Program I am getting IllegalMonitorStateException
what changes that i have to make in the code such that it will not through this exception?

class MyThread extends Thread{
String sa;
public MyThread(String sa){
this.sa=sa;
}
public void run(){
synchronized(sa){
while(!sa.equals("Done")){
try{
sa.wait();
}
catch(InterruptedException ie){}
}
}
System.out.println(sa);
}
}


public class Test{
private static String sa=new String("Not Done");
public static void main(String args[]){
MyThread t1=new MyThread(sa);
t1.start();
synchronized(sa){
sa=new String("Done");
sa.notify();
}
}
}
Regrads
Baskar
hi
i need help for
Deploying EJBs in Wepshere
thanx n advance
baskar
21 years ago
hi
i need the syllabus url for
SCJP 1.2 &
SCJP 1.4
thanx n advance
bye
baskar
hi

i am getting this error when i try to compile this jsp program
i am making use of jsp:usebean in this pgm
i have enclosed below jsp pgm, java pgm, error report
i am using
Platform : Windows98
Application Server: Apache Tomcat/4.1.12
Browser : IE 5.0
thanx n advance
**************************************************C:\tomcat\webapps\examples\jsp\scope\prop.jsp
<jsp:useBean id="Props" class="ScopeTest" scope="application">
<html>
<head>
<title>Scope Test</title>
</head>
<body bgcolor="#FFFFFF">
<br>
<br>
<br>
<center>
a<b>Usage of UseBean in JSP</b>
</center>
<br>
Counter (scope=application) has a value of  
<b><jsp:getProperty name="Props" property="nextInt" /></b>
</body>
</jsp:useBean>
</html>

**************************************************C:\tomcat\webapps\examples\WEB-INF\classes\scope\ScopeTest.class
C:\tomcat\webapps\examples\WEB-INF\classes\scope\ScopeTest.java

public class ScopeTest
{
private int i;
public ScopeTest()
{
i=0;
}
public int getNextInt()
{
return i++;
}
}

**************************************************C:\autoexec.bat
SET BLASTER=A220 I7 D1 T2
REM - By Windows Setup - SET SNDSCAPE=C:\WINDOWS
C:\WINDOWS\COMMAND\DOSKEY
SET JAVA_HOME=C:\jdk1.4
SET CATALINA_HOME=C:\tomcat
SET SNDSCAPE=C:\WINDOWS
SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\JDK1.4\BIN
cls
**************************************************HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 0 in the jsp file: /jsp/scope/prop.jsp
Generated servlet error:
[javac] Compiling 1 source file
C:\tomcat\work\Standalone\localhost\examples\jsp\scope\prop_jsp.java:41: cannot resolve symbol
symbol : class ScopeTest
location: class org.apache.jsp.prop_jsp
ScopeTest Props = null;
^
An error occurred at line: 0 in the jsp file: /jsp/scope/prop.jsp
Generated servlet error:
C:\tomcat\work\Standalone\localhost\examples\jsp\scope\prop_jsp.java:43: cannot resolve symbol
symbol : class ScopeTest
location: class org.apache.jsp.prop_jsp
Props = (ScopeTest) pageContext.getAttribute("Props", PageContext.APPLICATION_SCOPE);
^
An error occurred at line: 0 in the jsp file: /jsp/scope/prop.jsp
Generated servlet error:
C:\tomcat\work\Standalone\localhost\examples\jsp\scope\prop_jsp.java:46: cannot resolve symbol
symbol : class ScopeTest
location: class org.apache.jsp.prop_jsp
Props = (ScopeTest) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "ScopeTest");
^
An error occurred at line: 17 in the jsp file: /jsp/scope/prop.jsp
Generated servlet error:
C:\tomcat\work\Standalone\localhost\examples\jsp\scope\prop_jsp.java:69: cannot resolve symbol
symbol : class ScopeTest
location: class org.apache.jsp.prop_jsp
out.print(JspRuntimeLibrary.toString((((ScopeTest)pageContext.findAttribute("Props")).getNextInt())));
^
4 errors

at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:324)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:471)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)
--------------------------------------------------------------------------------
21 years ago
JSP
hi
i couldnt run this same program
on a proxy machine
where internet is connected thru winproxy
waiting for some useful info
bye
baskar
22 years ago
hi
thanx for ur valuable information
i solved the issue by changing the
Before
String host="mail.yahoo.com";
After
String host="202.88.152.9"; // which is the
// SMTP Address of My ISP
bye
baskar
22 years ago