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 |
Is list thread safe in java?
Difference between object instantiation and construction ?
Tell us something about different types of casting?
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
What do you know about the garbage collector in java?
Explain wrapper classes in java?
What is the difference between abstract class and interface1? What is an interface?
Explain how hashmap works?
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?
Can we extend singleton class?
How many types of syncronization?