Constants Files (EJB Components)
Listings C.15 and C.16, again helper Java classes, are used in the MVC application as an industry best practice. All the variables used in the JSP files are present in the JSPConstants.java file. Any value to be accessed from the HttpServletRequest object coming from the JSP files is accessed using the appropriate variable from this file. Also, any values to be accessed from the MVCAppValueObject are accessed using the variables defined in the Java file MVCConstants.java. This practice reduces intercode dependency during development. Following is the detailed listing for each of the files mentioned. Again, these files are to be placed in the directory called ejb_components_src, discussed on Day 16. The deployable ...
Get Sams Teach Yourself BEA WebLogic Server 7.0™ in 21 Days now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.