Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to debug a servlet?

Answers were Sorted based on User's Feedback



How to debug a servlet?..

Answer / niranjanravi

through servletloginfo()

Is This Answer Correct ?    2 Yes 1 No

How to debug a servlet?..

Answer / madhusudhakar

res.setContentType("text/html");
ServletOutputStream out = res.getOutputStream();
try {
// do your thing here
...
}
catch (Exception e) {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
e.printStackTrace(pw);
out.println("

");
out.print(sw.toString());
out.println("

");
}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Servlets Interview Questions

What is the procedure for initializing a servlet?

0 Answers  


how JSP can extend servlet or interface ...?

3 Answers   IBM,


Which interface must be implemented by all servlets?

0 Answers  


What is session?

0 Answers  


What are some disadvantages of storing session state in cookies?

0 Answers  


What is servlet and how it works?

0 Answers  


What do you mean by deployment descriptor?

0 Answers  


What are the uses of servlet

0 Answers  


Why doesn’t a servlet include main()?

0 Answers  


What do you mean by session tracking and also explain its techniques?

0 Answers  


How forward () method is different from send redirect () method?

0 Answers  


What is ServletContext() and what is its use?

9 Answers   Prime Technology, TCS,


Categories