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 Posted / 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 View All Answers
Write a program to print the pattern given below
What is var keyword ?
What is scope & storage allocation of global and extern variables? Explain with an example
What is abstraction in java?
What is the main purpose of serialization in java?
From the two, which would be easier to write: synchronization code for ten threads or two threads?
What are some examples of variable costs?
What is the difference between numeric and integer?
What is the difference between variable declaration and variable initialization?
Can a method inside a interface be declared as final?
What is a return in java?
What are the two main uses of volatile in Java?
Can we create our own wrapper class in java?
What is Java Shutdown Hook?
What is the similarity between dynamic binding and linking?