小编Rez*_*eza的帖子

在Apache Tomcat上运行JSF项目

如何在Tomcat上进行午餐JSP项目?我将WebContent文件webapp夹复制到Apache的文件夹,但它找不到我的jsp页面,但如果我将jsp更改为jsf(index.jsf)工作正常.我怎么解决这个问题?

web.xml中:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
  <display-name>Graph</display-name>
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
  <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
  </servlet-mapping>
  <context-param>
    <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
    <param-value>resources.application</param-value>
  </context-param>
  <context-param>
    <description>State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2</description>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
  </context-param>
  <context-param>
    <description>
    This parameter tells MyFaces if javascript code should be allowed in
    the rendered HTML output.
    If javascript is allowed, command_link anchors will have javascript code
    that submits …
Run Code Online (Sandbox Code Playgroud)

java tomcat jsf-2

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

在Windows上安装pljava的问题

在Windows 7 x64和PostgreSQL 9.0上安装pl/java时出错.

CREATE FUNCTION sqlj.java_call_handler()
  RETURNS language_handler AS 'pljava'
  LANGUAGE C;
Run Code Online (Sandbox Code Playgroud)

错误:

错误:无法加载库"C:/ Program Files/PostgreSQL/9.0/lib/pljava.dll":找不到指定的模块.

*** 错误 ***

错误:无法加载库"C:/ Program Files/PostgreSQL/9.0/lib/pljava.dll":找不到指定的模块.SQL状态:58P01

但我确信pljava.dll存在于C:/ Program Files/PostgreSQL/9.0/lib中

postgresql pljava

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

在jsf中使用ajax渲染组件

问题是,当我将f:ajax的render属性设置为@form时,btnCreateCSV正确渲染.但是,如果我将其更改为按钮的ID,则不会发生任何事情.我想知道,我怎么能解决这个问题.这是我的xhtml代码:

<h:panelGrid layout="block">
            <h:commandButton value="View SQL" action="#{sparqlQueryBean.convert}" id="btnViewSql">
                <f:ajax execute="txtQuery btnCreateCSV" render="btnCreateCSV txtSqlQuery" onevent="waiting" listener="#{sparqlQueryBean.generateCommands}"></f:ajax>
            </h:commandButton>
            <h:commandButton value = "CSV" action = "#{sparqlQueryBean.createCSV}" id = "btnCreateCSV" rendered="#{sparqlQueryBean.showCSV == true}">
                <f:ajax execute="@none" render = "@none" onevent="waiting"></f:ajax>
            </h:commandButton>
Run Code Online (Sandbox Code Playgroud)

这是我的豆类.在generateCommands方法中,showCSV的值设置为true.但它不起作用.

    public void generateCommands (AjaxBehaviorEvent event) {
    this.setShowCSV(true);
}
Run Code Online (Sandbox Code Playgroud)

jsf-2

0
推荐指数
1
解决办法
8846
查看次数

标签 统计

jsf-2 ×2

java ×1

pljava ×1

postgresql ×1

tomcat ×1