Srikanth Devaraju

Greenhorn
+ Follow
since Oct 27, 2000
Merit badge: grant badges
For More
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 Srikanth Devaraju


Thank you so very much. I have one follow-up question.
So sessions management can be done only by cookies and hidden fields? Is there any alternate for session context object? I read some where that whole session concept is depricated from the servlet. Is that true.
Once again thank you very much.
Regards,
Srikanth.
22 years ago

Hi Everybody,
I am learning sessions in servlet. I am using "Resin" webserver.
To understand the session context object I am executing folloing code.
==== Code====
res.setContentType("text/plain");
PrintWriter out = res.getWriter();
// Get the current session object, create one if necessary
HttpSession dummySession = req.getSession(true);
// Use the session to get the session context
HttpSessionContext context=dummySession.getSessionContext();
Enumeration ids = context.getIds();
==== Code ends===
I am getting null pointer exception on the last statement(i.e. Enumeration ids = context.getIds() . So I came to know that getSessionContext function is not returing a session context object. What I am doing wrong? I will appreciate anybody's help in this regard.
Thanks,
Srikanth.
22 years ago
Hi All,
I am runing Resin webserver on Windows 98. I would like to connect to Access database. What are the basic thing I need take care. I know the coding and I can borrwo the code from any books. What I need is how to configue the webserver, ODBC drivers or ODBC and JDBC bridge etc. I don't have a clear idea. I will appreciate anybody's help in this regrad.
Thanks a lot,
Srikanth
22 years ago

I think you want use servlets for non-browser client. I that case you need to change the servlet a little bit. Instead of inherting servlet from httpServlet, you have inherit from just servlet. Because httpServlet expects that the client should be the browser and protocal used to be the HTTP. But I think you want run the servlets in ordinary client - server model. So you should inherit your servlets just from the servlet.
In this clinet/Server model servlets act as a Server. But they don't send any HTML code back to you, because you are not using bowser clinet and not HTTP protocal. So your clent server model become socket client and socket server(Where servelets listen on a port). For user interface(GUI) you have develop some thing may be applets or any thing else. I hope this will put you on right trac.
Regards,
Srikanth
23 years ago
I am certified Java programmer. Currently learning Servlets. I have a PC at home(Petinum II with Windows 98).
I want to write some servlet programs and test them. I probably need a web server simulator on my PC. Do any body know such kind of web server available. I heard that Apache has one such kind. If it is true, then where I should download and how to install and configure. Any suggestions will be appreciated. Thanks in advance.
Regards,
Srikanth.
[This message has been edited by Srikanth Devaraju (edited November 20, 2000).]
23 years ago
Hi Everybody,
I am a UNIX & C programmer working in North West Airlines Minneapolis, USA. I want shift my carrier towards Web technology.
I welcome people to join with this discussion. I want to discuss following concepts.
1. Web Server.
2. CGI.
3. Servlets.
I will give my understanding of above three.
Web Server: Web server is a software, which constantly polls the HTTP port (80) or any configured port to receive requests for URL and if the URL is present then it sends same back to the requester. Means it is a sophisticated socket server program receives requests from different browsers(Clients).
CGI (Common Gateway Interface): It is an interface to the Webserver. Upon a request from a web browser this program will be kicked off by web server as child process. Conceptually CGI programs can be written in any programming language, but Perl is predominant choice may be because of its capability of text processing.
Servlets: Servlets are extension to the webserver as oppose to the interface to the Webserver. So servlets can use server resources. This may dramatically increase the Web server performance.
Please post your thoughts. Together we all can clear our concepts. And keep discussion going.
Regards,
Srikanth

23 years ago
Harpal,
I think you may need one more week to build your confidence. Keep your self cool. In mock exams you appeared, see where you did wrong. And why you did wrong. Once you know the answers to those questions, then improve upon those consepts and give marcks exam again. Also take Bill Brogden's exam too.
Good Luck,
Srikanth.
First of all I want to congrats to that 12 year young man.
Now I want to talk about value of SCJP. I don't now in what respects some people are saying value is going down. In my opinion SUN certification is a standard, and it speaks for a person that he knows the JAVA upto sun certification standard. Then it is upto the employer how he interprets the SUN certification. Or he can put a better exam to verify your knowldge.
Today's SUN certification standard is really good. If a person passed the certification means he can say he knows JAVA very well. Then after he has to build upon his basics. May be he has to learn Swing or Servlets ets,.
I also know that now a days some people collect all examination questions from the people who appeared for Certification and do the business. People always want short cuts. Such kind of people may not do well.
Any certification and digree doesn't assure any body that he will perfectly do with his profession. Those are just standards. How a person applays what he knows is the completly depends on that individual. So is not right to say any certification or any digree's value is going down.
Regards,
Srikanth
Hi Prasad,
Threads:
There were 7 questions on threads. Four of them were tough with a lot of code. It took at least 10 minutes to tick an answer. Rests of three questions were easy. You should know more than the basic concepts of threads. Maha Anna's thread's discussion will help a lot in under standing and answering the questions. On threads I got 57%
AWT,I/O, Events:
6 on I/O , 2 On AWT and 4 on events. All these questions are not code related. If you know the answer you can save much of time. I scored 100% in the all above topics. On I/O basically you have to through with all constructors concepts. In I/O you should ask following questions yourself
1. How to open a file in different modes. read, read write for random access. There is no write mode in the random access file. You should also know how to open a fine in append mode in the input/output streams. Please write sample programs on all kind of I/o and play with them. Atleast spend 3 to 4 days on I/O.
2. You should know basic methods of I/O. Readers, writer and inputstreamwrite and outputstreamwrite are most important constructors. At least you will get one question on InputStreamWriter or InputStreamReader. Please know the importance of these constructors and do write some sample programs.
3. You should know basic methods of Events and their significance. Most importantly concentrate on what parameters each method takes and what type it returns.
Strings/utility packages:
There are simple questions on these topics. Once again these question are simple. You can answer just like that. You should know all Math methods; significance of collection interfaces basic concepts on string immutability. On these topics you will get about 10 questions.
Overloading, Overriding:
These are questions where you should read the code and answer. You should little bit careful in reading the code. So these questions will average amount of time (90-sec. minimum). But these are not tough questions. I got about 5 questions.
Language fundamentals, flow control and exceptios:
You should able to put the correct answers by spending about 90 sec. on each question. Some times it may take more time. But if you concentrate you should able to answer correctly.
I hope this will help you in your prep.
Good luck,
Regards,
Srikanth


Hi Everybody,
I just registered in the Javaranch. But I have been viewing it for last four weeks. I passed SCJP with 74%. I am software programmer for last 6 years. I have working experience in C, PB, Oracle and Sybase. I know c++ but I never worked on it. I have been learning Java out of my interest for last six months. But I prepared for exam for only last four weeks.
I started with Core Java. There I got general understanding of JAVA. For exam I studied RHE. I feel RHE is enough for clearing up basic concepts. I took 5 mock exams from Maha Anna site(Including Marks Green). I also took the mock exam form RHE.
My advises to the people who are appearing for SCJP are
1. Clear up all your concepts first.
2. Start writing mock exams. In the initial mock exam you may not do well. But it is a tool, which tells you where you are lacking.
3. Then go through those chapters and read once again. And appear mock exams.
4. Reading a question and understanding it is more important. I gave full week time to improve upon my reading and understanding of a question.
5. If you get more than 75% in mock exams (The question paper which you have not seen before) and if you think your concepts are clear enough on each and every topic, then you should be ready for the final test.
6. There were some tough questions on threads in the final exam. Some questions have lengthy code. So if you have difficulties to understand, then leave that questions and move forward.
7. I found lack of time. I could not read last four questions because of time. All of four were happened to be simple questions on flow control. So managing your time is also become an important factor in the new exam.
8. One more important factor is, you have to control your stress. You should be CLAM & COOL. And read the question carefully.
If you have any questions please post. I will answer.
Good luck to every body.
Srikanth.