- 浏览: 6933 次
- 性别:
- 来自: 南京
最新评论
文章列表
登录的链接地址为:/jforum/user/login.page
根据前台对链接地址的分析出:
module:user
action:login
在配置文件modulesMapping.properties中找到user模块对应的处理类
user = net.jforum.view.forum.UserAction
public class UserAction extends Command
{
public void login()
{
//如果登录方式是SSO
if (ConfigKeys.TYPE_SSO.equals(SystemGlobals.getV ...
请求的流程也是在类net.jforum.JForum.java中:
public class JForum extends JForumBaseServlet {
public void service(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException
{
Writer out = null;
JForumContext forumContext = null;
RequestContext request = null;
ResponseC ...
启动:
net.jforum.JForum.java是核心Servlet,启动方法:
public class JForum extends JForumBaseServlet {
public void init(ServletConfig config) throws ServletException{
//调用父类JForumBaseServlet的init方法初始化
super.init(config);
super.startApplication();
//根据配置文件实例化DBConnection的具体类,并初始化数据源
// Start data ...