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

Is list thread safe in java?

0 Answers  


Difference between object instantiation and construction ?

0 Answers  


Tell us something about different types of casting?

0 Answers  


Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example

0 Answers  


What do you know about the garbage collector in java?

0 Answers   TCS,






Explain wrapper classes in java?

0 Answers  


What is the difference between abstract class and interface1? What is an interface?

0 Answers  


Explain how hashmap works?

0 Answers  


In Java why we write public static void main(String args[]) why not main()?

46 Answers   Aptech, GE Healthcare, Infosys, Microsoft, New Horizon, Practical Viva Questions, TCS, Wipro,


Which are different kinds of source code?

0 Answers  


Can we extend singleton class?

0 Answers  


How many types of syncronization?

2 Answers  


Categories