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 difference between sap and java ?

1 Answers  


which worker is involved in all the phases of SDLC?

1 Answers  


Wats the name of the first os

2 Answers  


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?

1 Answers  


In OB52 , How to define two open posting period, Like only 5 and 8 posting should be open.. should not open 6 and 7..period..

0 Answers  






how to run servlets in eclipse 3.3.2....if we choose file->new->servlet then after that it is showing javax.servlet.* ...cannot be resolved.......to avoid this error any external jar file is to be added? please help me regarding this issue........thank u

2 Answers   IBM,


Diff between IF and where ?

0 Answers   Accenture,


Diff.b/w Frames and container?

1 Answers   Tech Mahindra, Wipro,


how to convert hashmap to arraylist with iteration

0 Answers   DFD,


I am taking the bmc control m/enterprise manager 7.0 scheduling test and just wanted to see what kind of questions they would ask or if anyone has taken the test and how long it is for how many questions?

0 Answers  


difference between mantis and other tools?

0 Answers  


What are events in smartforms?

0 Answers   Accenture,


Categories