What is the combination of OSGi and JSF development?
The combination of OSGi and JSF development is like, I believe that many inexperienced people do not know what to do, so this paper summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.
In order to facilitate you to learn and use OSGi, I decided to write an example of the combination of OSGi and JSF, and introduce in more detail how to achieve an example of the combination of OSGi and JSF.
In the use of the combination of OSGi and JSF, due to the need to rewrite some of the source code of the project org.eclipse.equinox.jsp.jasper, which is implemented by Equinox, it seems a little more troublesome to operate. The projects on Equinox are basically managed through CVS, so you first need to make sure that you have installed the CVS client, and then pull down the code to prepare for the following work.
First, the example of combining OSGI with JSF is as follows:
1. Establishing plugin Project: osgi.jsf.finals
two。 Write a page
◆ index.jsp
JSF Samples JSF Samples Nick Name:
◆ welcome.jsp JSF Samples Welcome! JavaServer Faces! 3. Implement the corresponding class UserBean.javapackage org.danlley.jsf.beans; public class UserBean {private String id; private String pwd; private String errMsg; public String getId () {return id;} public void setId (String id) {this.id = id;} public String getErrMsg () {return errMsg } public void setErrMsg (String errMsg) {this.errMsg = errMsg;} public String getPwd () {return pwd;} public void setPwd (String pwd) {this.pwd = pwd;} public String verify () {if (id.equals ("jsfUser")) {return "success" } else {setErrMsg ("userID should be jsfUser"); return "failed";} after reading the above, have you mastered the method of joint development of OSGi and JSF? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!