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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.