Ponder This...?
- What if you wanted to perform an action on your web page in which
there was no previously defined action written?
- Embed the code into the JSP using Declarations.
- Can lead to long and drawn out JSPs that can become less
readable.
- Cannot reuse the code for another application.
- Write the code in its own JSP, and then use the include Action
or Directive to call each method.
- Leads to more modular design.
- Scalability and portability issues arise from the use of
include.
- There is a better way to accomplish this task!