Suppose i have all the implementation code required is written
in doGet() but my class has doPost() method. i need code
implemented in doGet() how can we do that?



Suppose i have all the implementation code required is written in doGet() but my class has doPost(..

Answer / aditya

If all the implementation is written in doGet()and the class has implemented the functionality in doPost(),servlet container will throw an exception.

A workaround could be calling doPost() from your doGet() method.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Programming Languages AllOther Interview Questions

What Is The Difeerence Between C & C++

2 Answers   HCL,


what is the pl/sql block size in oracle 10g and 11g?

0 Answers  


write a program for finding the union of two integer array in java?

2 Answers  


what is programming language?

2 Answers   TCS,


hi friends i am ravi here , i have one problem at starting at the interview that is i have my 3+ it(java) years experiance profile so if i attend the interview interviewer ased me tel me about your profile so i not able to explain because i dont knw where to start and where to end and i dont know what i should tel and what i shouldnot tel .....so can any body please clear m doubts clearly.............please help me friends,i am awaiting for friends reply please.............

2 Answers   TCS,






How to get the index of the clicked field in reports in ABAP?

0 Answers   Deloitte,


what is the filters in biztakk server? where it can use?

0 Answers   Wipro,


In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?

0 Answers  


will it allow to add same value in HashMap class.

0 Answers  


1. Write a program to create a sentence at runtime and count number of vowels in it ? 2. Write a program to get a string and to convert the 1st letter of it to uppercase ?

0 Answers   HTC,


Why we need new operator in java at the time of object declaration and why not in c++?

1 Answers   Zensar,


I m new to the dbms. Recently i came across words clustered indexes & nonclustered indexes but i dont know what is this all about & whats the difference between them.. So please help me!!!!!!!!

0 Answers  


Categories