The following is a snippet code, demonstrates the JSP to interact with the EJB session bean.
In the JSP in the Java code should be as little as possible.
In the above example, JSP designers have to deal with and understand the mechanism of access to EJB. Place in a Mediator in the compression mechanism on the EJB and the EJB method as a Mediator of the way, you can use in JSP Mediator. Mediator usually prepared by the EJB designer. Mediator can provide additional value, such as attribute caching, etc..
JSP scriptlet code must be minimized. If you want to direct requests for JSP EJB may have to write much code in the JSP, including the try ... catch block to operate other functions.
Using a standard JavaBean as a JSP and EJB server as an intermediary can reduce the Java code in JSP in the number and increase reusability. This must be a JavaBean to access the EJB you coverage (wrapper).
If you use the standard JavaBean, you can use JSP: useBean tag to initialize EJB parameters, such as the server URL and server
Security parameters.
Custom tags can also be an option. However, this requires more than a simple JavaBean wrapper coding.
This must be re-written the code as small as possible and as light as possible to ensure the contents of JSP scripts (light). These are JSP and EJB interaction
Recommended links:
Only store is not Enough
Store goods Without manually
Dell Digital denial distribution Relationship with HP induced breakdown
Manufacturing Integration Trend Manufacturing And EMS Has Approaching
Casino And Gambling Shop
Science - Screen SAVERS Directory
How to end special promotions?
NavInfo SAIC Roewe help promote the car navigation
PICKED Recreation
FLV To IPod
H.264 To AVI
buy jbl bookshelf speakers
Comparison Of CMM And CMMI
Best Astronomy
MTS to MP4
Effective process improvement method must CONTAIN the elements
No comments:
Post a Comment