nvamsi naki

+ Follow
since Jun 09, 2011
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by nvamsi naki

Rameshwar Soni wrote:You are declaring the object "out" of PrintWriter 2 times once in processRequest() and once in doGet().......check it out

its working .i removed the PrintWriter in processRequest.

Thank you Rameshwar Soni,Bear Bibeault ,Ulf Dittmer
9 years ago

Bear Bibeault wrote:Please UseCodeTags when posting code to the forums.

As processRequest() is a method you wrote in your code, how were we supposed to know anything about it?

sorry about that i changed it
9 years ago
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Enumeration;

@WebServlet(name = "validate", urlPatterns = {"/validate"})
public class validate extends HttpServlet {

protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
PrintWriter out = response.getWriter();
try {

out.println("<title>Servlet validate</title>");
out.println("<h1>Servlet validate at " + request.getContextPath () + "</h1>");

} finally {

protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);

protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {

processRequest(request, response);


public String getServletInfo() {
return "Short description";
}// </editor-fold>
9 years ago
I think Servlet API.I dont know much about this.After seeing your comment ,i searched for what API is used in servlets.

i used these packages


9 years ago
I wrote a simple thing.Taking two textbox values and dispalying them .Any code i write in doget() and doPost() dont work,but in the processRequest() method it works.I can see the values in the url when i use GET.

9 years ago
Does any one know any good training institute in chennai where they teach struts, hibernate ,spring.I am new to chennai and i have no idea how the institutes here are.

9 years ago
TOEFL -very easy ,i think you need to get above 80 minimum,easy to get.
Read princeton review book ,the tips are very good.They tell you how to prepare for each question ,with examples.

With barrons ,you get a CD ,where you can prepare for tests,vey helpful.

For toefl write more tests,once you read the tips in priceton review .

GRE- Quant is very easy ,basic 12 th class stuff .

Verbal depends on the individual,was very tough for me .Basically training institutes in india will make you memorize 2k-3k words .Some institutes will teach some techniques which may reduce the number to memorize ,but in the end you have to memorize some 1k-2k minimum words.

But do join a training institute they do teach some good shortcuts.

GRE write tests constantly.Barrons is ok ,dont know much about other books.I used to write some free tests online ,lots of free exams on the net
10 years ago
For pursuing MS in comp science ,you will have to get a gre score.A good gre score anything above 1400,moderatlley ok 1200-1400 if you have got good recommendations from your professors.

Next thing if you want to do MS in computer science and you are from electrical ,you may have to take some prerequiste courses.A guy i knew from meachanical branch but had 2 years experience in some IT company had to take 5 pre requisites.So 5* tution fees per subject + an extra year to get the degree.This pre requisite changes from college to college ,but i think any good college will definetly ask to take pre requisites courses.

The major factor is money to do MS in USA ,that is if you cannot get a scholarship,even if you get a scholarship monthly expenses in USA is very high when compared to INDIA, .If you are ok with that ,then go for it .But if you are relying on some loan or hoping to get a job when you go there ,then it would be risky.

Then there is a 4C rule ,which means if you get 4 C's you will be kicked out of college,its there in some colleges thats for sure.This is just to inform you ,things like this i hardly doubt any consultancy or even the universitiies to which you are applying will tell.

Dont believe any consultancy services they are thugs ,survey a lot when you choose a university .Check this site msinus.com ,it might be helpful.There are communites in orkut ,they are very helpful as you can get info from the students themselves.

10 years ago