Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the combination of OSGi and JSF development?

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report