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.
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 |
What is meant by distributed application? Why are we using that in our application?
What is a loop java?
What are the two types of streams offered by java 8?
What is the immediate parent class of the Applet class?
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?
Is 0 true or false in java?
What is constructor and virtual function?
What is the purpose of assert keyword used in jdk1.4.x?
Is there any limitation of using inheritance?
Explain about method local inner classes or local inner classes in java?
What are methods of a class?
Is java util list serializable?