- ( Top Rated ⭐ )

Last updated on 19th Feb 2024, Popular Course

Ratings 129

1. Describe JSP.

Ans:

The page directive in JSP uses the isThreadSafe attribute to indicate whether the created servlet class that corresponds to the JSP page is thread-safe or not. Set to ‘true,’ the servlet container guarantees that executing the servlet on several threads securely at the same time without resulting in data corruption or other synchronization problems. The application’s requirements and concurrency model should be taken into consideration when weighing the trade-offs associated with enabling thread safety, as it may result in a performance overhead.

2. What is the purpose of JSP standard actions?

Ans:

  • jsp:include: Includes content from another resource.
  • jsp:forward: Forwards the request to another resource.
  • jsp:useBean: Instantiates a JavaBean component.
  • jsp:setProperty: Sets properties of a JavaBean component.

Are you looking training with Right Jobs?

Contact Us
Get Training Quote for Free