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 meant by distributed application? Why are we using that in our application?

0 Answers  


What is a loop java?

0 Answers  


What are the two types of streams offered by java 8?

0 Answers  


What is the immediate parent class of the Applet class?

1 Answers  


Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?

0 Answers  






Is 0 true or false in java?

0 Answers  


What is constructor and virtual function?

5 Answers  


What is the purpose of assert keyword used in jdk1.4.x?

0 Answers  


Is there any limitation of using inheritance?

0 Answers  


Explain about method local inner classes or local inner classes in java?

0 Answers  


What are methods of a class?

0 Answers  


Is java util list serializable?

0 Answers  


Categories