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
How to create a custom exception?
Does java list allow null?
What is a method vs function?
How to declare an arraylist in java?
Tell me are there implementations for sorting and searching in the java libarary?
Can abstract class have private constructor?
How much is a java license?
Why we override equals() method?
What is the relationship between clipping and repainting under awt?
How a variable is stored in memory?
Is java 9 released?
Are arrays immutable in java?
What is hotjava?
What is a get method?
hr interview how many minutes asking question