I need some details about an employee. i have only the
employee id in my presentation layer(JSP).I entered that ID
and click "Show Details" Button. Question is how the JSP
pass that id to Controller layer and DAO and what mechanism
we are using to retrive data from DB and how the data
passed to JSP as a Output. Please explain in detail.



I need some details about an employee. i have only the employee id in my presentation layer(JSP).I..

Answer / yagnik

Your jsp form action id when u press submit it will call
the action which is in html form action(some jsp,or
servlet) that jsp will able to get employee id throuh
req.getparameter('employee_id'); and then tht JSP use bean
class for connection to DB using JDBC and then it will
return result to the calling jsp and tht jsp will print
responce (employee details) and tht generated out put will
be sent to the client.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is your platform’s default character encoding?

0 Answers  


How does serialization work

3 Answers   Ordain Solutions,


what is Thread?

6 Answers  


Differentiate between the constructors and methods in java?

0 Answers  


What java is used for?

0 Answers  






What are the different http methods?

0 Answers  


Is 9 a prime number?

0 Answers  


What is java reflection api?

0 Answers  


What do you mean by composition in java?

0 Answers  


real time example for deadlock,starvation,livelock

5 Answers  


Explain about version control?

0 Answers  


Can an interface have a constructor?

0 Answers  


Categories