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 |
Explain java code for recursive solution's base case?
Does substring create a new object?
What are structs in java?
Can we force the garbage collection to run?
Who is the owner of java?
What are the java ide's? Explain
Which Java operator is right associative?
why java does not support unsigned keyword?
What are thread local variables?
How do you add an element to a set in java?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread
How do you format in java?