小编Hei*_*eth的帖子

java.lang.NullPointerException at javax.faces.webapp.UIComponentClassicTagBase.setJspId

I have read this tutorials it's an ebook and I'm stuck at deploying the JSP page to my tomcat server by the way it's a jsp page but it's using JSF tags I already put my javax.faces-2.1.13 jar at the lib, where is should really belong to..

Here is my JSP page title hello.jsp:

 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h"  uri="http://java.sun.com/jsf/html"%>

<html>
<head>
<title>JSF In Action</title>
</head>
<body>
<f:view>
    <h:form id="welcome-form"> …
Run Code Online (Sandbox Code Playgroud)

jsf jsp

4
推荐指数
1
解决办法
2万
查看次数

JSF重定向到另一个Web项目

如何从一个项目重定向到另一个Web项目。我知道如何重定向,但仅在相同的项目上,通常,用于重定向的代码如下所示:

FacesContext context = FacesContext.getCurrentInstance();
    context.getExternalContext().redirect("login.xhtml");
Run Code Online (Sandbox Code Playgroud)

好吧,这里发生的事情是它调用了支持bean进行初始化或其他操作。.我的老板希望我链接所有项目以使其成为一个应用程序,问题是我如何互连该项目并将链接重定向到这些我知道的项目重定向,但是我不知道该如何实现这一点,任何想法的人?

jsf

2
推荐指数
1
解决办法
1285
查看次数

标签 统计

jsf ×2

jsp ×1