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


Please Help Members By Posting Answers For Below Questions

Write a program to print the pattern given below

502


What is var keyword ?

742


What is scope & storage allocation of global and extern variables? Explain with an example

585


What is abstraction in java?

621


What is the main purpose of serialization in java?

530






From the two, which would be easier to write: synchronization code for ten threads or two threads?

619


What are some examples of variable costs?

495


What is the difference between numeric and integer?

515


What is the difference between variable declaration and variable initialization?

512


Can a method inside a interface be declared as final?

534


What is a return in java?

556


What are the two main uses of volatile in Java?

607


Can we create our own wrapper class in java?

550


What is Java Shutdown Hook?

617


What is the similarity between dynamic binding and linking?

615