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 anagram word?

1 Answers  


what is the diffrences between platform independent and portable

5 Answers   TCS,


Why ArrayList class is not a synchronized class and why it is not a thread safe class? explain

1 Answers  


Differentiate between static and non-static methods in java.

0 Answers  


When can you say a graph to be a tree?

1 Answers   Amazon,


Which collection is sorted in java?

1 Answers  


Hi Friends, I am new to java. Can u explain about thread concept.How i know one thread is locked, and how can i force or acquire another thread for lock . Finally how to know thread is released from lock. Explain types of lock(like method level and block level) in thread.

1 Answers  


What are the limitations of procedural programming approach?

1 Answers   Amdocs,


I have a Person object with 5 variables and I want to store them in a file called Person.txt. What should I do?

3 Answers   KPIT,


what is platform dependent translation and platform dependent programming language

2 Answers  


can we write two same methods in outer class and innerclass.

1 Answers   3i Infotech,


Is static a keyword in java?

1 Answers  


Categories