JDeveloper 10.1.3.0.4 and JSTL Core 1.1

I am attempting to use JSTL Core 1.1 with the new version of JDeveloper. I can reference the URI for JSTL 1.0 just fine but my web page cannot seem to find JSTL 1.1. I get an error of Error(2): "http://java.sun.com/jsp/jstl/core" is not a registered TLD namespace when I try to comple and an error of Fix install JSP Tag Library failed with exception: java.lang.reflect.InvocationTargetException when I try to do a Install JSP Tag library command. The manage libraries tab shows everything in the correct place. Any ideas?

This was imported from an old Java 1.4 project, but I wished to upgrade it to use JSTL 1.1. Apparently if you import an old project there is no way to switch it to use JSP 2.0 (or at least I could not find one). As such now I have to recreate all of my old projects from scratch (create the project and then import all the source code) to be able to use JSP 2.0 features.

Similar Messages

  • Patch for 9iAS and JSTL?

    The following message was posted in the OC4J Forum. Our latest thoughts for fixing the problem revolve around hopes of upgrading the OC4J component in 9.0.2.0.1 in Enterprise Edition (Solaris) to 9.0.3. Is this possible?
    Thanks
    Todd
    --------- Original Post ------------
    NullPointerException using JSTL
    I currently have OAS Enterprise Edition 9.0.2.0.1 on Solaris installed. I have a web application which utilizes Tiles and JSTL. When I run my application through JDeveloper 9.0.3, both Tiles and JSTL tags work. However, when I deploy to Oracle Enterprise Manager and try to run my application, Tiles tags work but JSTL tags do not. Instead, I get the following error:
    500 Internal Server Error
    OracleJSP:
    JSP Error:
    Request URI:/edd/helloworld.jsp
    Exception:
    java.lang.NullPointerException
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:279)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at oracle.jsp.parse.JspUtils.loadClassJDK(JspUtils.java:219)
    at oracle.jsp.parse.JspUtils.loadClass(JspUtils.java:209)
    at oracle.jsp.parse.JspRTTag.(JspRTTag.java:102)
    at oracle.jsp.parse.JspParseState.createTagParser(JspParseState.java:410)
    at oracle.jsp.parse.JspParseTag.parseNextTag(JspParseTag.java:538)
    at oracle.jsp.parse.JspParseTagFile.parse(JspParseTagFile.java:160)
    at oracle.jsp.parse.OracleJsp2Java.transform(OracleJsp2Java.java:40)
    at oracle.jsp.runtimev2.JspPageCompiler.attemptCompilePage(JspPageCompiler.java:295)
    at oracle.jsp.runtimev2.JspPageCompiler.compilePage(JspPageCompiler.java:171)
    at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:338)
    at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:481)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:255)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    My JSP looks like:
    <%@ taglib prefix="c" uri="/jstl-c" %>
    <%@ taglib prefix="tiles" uri="/tiles" %>
    <html>
    <head><title>hello world</title></head>
    <body>
    <table>
    <c:forEach begin="1" end="5">
    <tr>
    <td>
    Hello world!<br><br>
    The current time is: <%= System.currentTimeMillis() %>
    </td>
    </tr>
    </c:forEach>
    </table>
    </body>
    </html>
    The relevant lines of my web.xml are:
    <taglib>
    <taglib-uri>/tiles</taglib-uri>
    <taglib-location>/WEB-INF/tlds/struts-tiles.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/jstl-c</taglib-uri>
    <taglib-location>/WEB-INF/tlds/c.tld</taglib-location>
    </taglib>
    The TLD files do exist in /WEB-INF/tlds/
    After doing some research into this issue, I haven't found a solution, but I get the feeling this is a bug that has been patched or will be patched soon. Is there a patch out, and if so, where is it?
    ------- Follow-on Question about upgrading OC4J in 9.0.2.0.1 ---------
    Upon further investigation we found bug 2698206 that seems to be the relevant bug. The bug has been fixed in 9.0.3. It is my understanding that the only certified version of Enterprise Edition is 9.0.2.0.1.
    1) Is there a newer version of Enterprise Edition (9.0.3 or 9.0.4)?
    2) If not, can we upgrade the OC4J in 9.0.2.0.1 to 9.0.3? (our sysadmins need this somewhat certified, otherwise we can't upgrade our production servers).
    3) Any other ideas?
    Thanks
    Todd

    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=179240.1
    If you are using Forms and/or Reports, you'll want to install Patch 15 too.

  • Programming JSP using JDeveloper 10.1.3 and JSTL

    Hello,
    I new in JDeveloper. I am creating a web proyect and I am programming a JSP. This JSP includes JSTL 1.1 Core, exactly the next line:
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    When I compile my proyect, obtain the next error:
    Error: java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
    I ensured that this class (javax.servlet.jsp.tagext.TagAttributeInfo) has no that constructor (String, String, boolean) but when I consult the Sun documentation for that class, it is said that the class contain the constructor.
    My proyect include the next libraries defined in JDeveloper:
    · J2EE
    · JSTL 1.1
    · Strut Runtime
    · JSTL 1.1 tags
    Please, what should I do to do my proyect work?

    Constructor javax.servlet.jsp.tagext.TagAttributeInfo (String, String, boolean)
    is not defined. The JSP 2.0 constructor is
    TagAttributeInfo(java.lang.String name,
    boolean required,
    java.lang.String type,
    boolean reqTime,
    boolean fragment)
    Another constructor is
    TagAttributeInfo(java.lang.String name,
    boolean required,
    java.lang.String type,
    boolean reqTime)

  • Tomcat 6.0.9 and jsf 1.2 and jstl 1.2 using *.tag file error

    I using :tomcat 6.0.9 and jsf 1.2 and jstl 1.2
    My web.xml is at version 2.5 and I am using a custom tag (with the .tag extension). I am trying to use the http://java.sun.com/jsf/html library and values from my attribute. I'm new to this so I figure I must just me missing something.
    I am run http://192.168.1.1/test.jsf laster,view:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    Stacktrace:
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
         org.apache.jasper.servlet.JspServletWrapper.loadTagFile(JspServletWrapper.java:212)
         org.apache.jasper.compiler.TagFileProcessor.loadTagFile(TagFileProcessor.java:576)
         org.apache.jasper.compiler.TagFileProcessor.access$000(TagFileProcessor.java:50)
         org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:627)
         org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386)
         org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:631)
         org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2392)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
         org.apache.jasper.compiler.TagFileProcessor.loadTagFiles(TagFileProcessor.java:645)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:190)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:414)
         com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:455)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:139)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:266)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:159)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.9 logs.
    if go to /WEB-INF/tags/test.tag ,delete line: <h:outputText id="test" value="hello!" />
    run http://192.168.1.1/test.jsf is OK!(no error),So I guess error for "<h:outputText id="test" value="hello!" />" line ,why in test.tag file do can't use the "http://java.sun.com/jsf/html " library,please help me.......
    Here is file WEB-INF/web.xml content:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!--
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements. See the NOTICE file distributed with
    this work for additional information regarding copyright ownership.
    The ASF licenses this file to You under the Apache License, Version 2.0
    (the "License"); you may not use this file except in compliance with
    the License. You may obtain a copy of the License at
    http://www.apache.org/licenses/LICENSE-2.0
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    -->
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"
    version="2.5">
    <display-name>Welcome to Tomcat</display-name>
    <description>
    Welcome to Tomcat
    </description>
    <!-- Faces Servlet -->
    <servlet>
         <servlet-name>Faces Servlet</servlet-name>
         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
         <load-on-startup> 1 </load-on-startup>
    </servlet>
    <!-- Faces Servlet Mapping -->
    <servlet-mapping>
         <servlet-name>Faces Servlet</servlet-name>
         <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    </web-app>
    Here is file /test.jsp code:
    <%@ page contentType="text/html;charset=UTF-8" %>
    <%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <f:view>
    <html>
    <head>
    <title>test</title>
    </head>
    <body>
    <!-- body start -->
    <h:outputText id="myinfo" value="test success" />
    <tags:test/>
    <!-- body end -->
    </body>
    </html>
    </f:view>
    Here is file /WEB-INF/tags/test.tag code:
    <%@tag pageEncoding="UTF-8"%>
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <h:outputText id="test" value="hello!" />
    Thanks for any help.

    Don't know if it's important, but there is no schema avaiable at: http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd
    I found the right one at: http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd
    /perty
    Message was edited by:
    perajonsson

  • JDeveloper 11.1.1.5.0 and the Fusion Order Sample Application

    Hi all
    I am trying to explore SOA Suite 11g features, particularly the BPM part. I am unable to find any tutorials relating to this feature (can someone point me to some?) and therefore am trying to simply install the Fusion Order demo to have a look around myself.
    I have installed JDeveloper 11.1.1.5.0 (and the SOA Composite Editor and BPM Studio add-ins) and am trying to get the Fusion Order demo to work with it. I downloaded the zip file from http://www.oracle.com/technetwork/developer-tools/jdev/learnmore/fod1111-407812.html and followed the instructions there but when I try to run the StoreFrontUI project all I get is a blank screen.
    The server log has messages:
    <AzUtil> <getPermClassLoadingErrorMessage> Cannot instantiate permission class "oracle.fodemo.storefront.store.view.AccountPermission", target "AccountPermission", or actions "view" as defined in the system policy context.
    and
    <ADFContext> <getCurrent> Automatically initializing a DefaultContext for getCurrent.
    Then theses messages appear
    <ApplicationImpl> <createComponent> JSF1004: Cannot instantiate component of type oracle.dss.adf.graph.Graph
    <NavigationPaneRenderer> <_renderContent> Warning: There are no items to render for this level
    I have also tried running the login.jspx page directly, which loads and presents me with a login screen, but using the FOD/fusion combination I had in the Build.Properties.xml I get the message invalid username/password and again get the message
    <AzUtil> <getPermClassLoadingErrorMessage> Cannot instantiate permission class "oracle.fodemo.storefront.store.view.AccountPermission", target "AccountPermission", or actions "view" as defined in the system policy context.
    Can anyone suggest what I might be happening, what I've done wrong?
    Thanks
    Roy

    Just for verification - which version of FOD did you download? what's the zip name?
    For SOA tutorials doucmentation on getting started see the SOA section here:
    http://download.oracle.com/docs/cd/E21764_01/develop.htm
    You might want to try posting on the SOA Suite forums for more tips on getting started.

  • JDeveloper 10.1.3.5.0 and jdk1.7.0_06

    Hi,
    I'm trying to use JDeveloper 10.1.3.5.0 with jdk1.7.0_06 and i'm getting the error "Unable to launch the Java Virtual Machine" at path... when trying to launch JDeveloper.
    I checked the path and jvm.dll is on the right path : path\jdk1.7.0_06\jre\bin\client\jvm.dll.
    I changed the jdev.conf with SetJavaHome set to path\jdk1.7.0_06.
    What other configuration should I make ?
    How do I know which Java version is supported by this version of JDeveloper ?
    Thank you for your help...
    Cheuyi

    Read the install guide for your version and you'll see that 10.1.3 is not certified with JDK 1.7
    Try using JDeveloper 11.1.1.6 instead.

  • Link between Tomcat 5 and JSTL 1.1

    Could someone help me to point to the right URI, please. Here is my code and error.
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <html>
    <body>
    You sent the following request headers:
    <table border="1">
    <tr>
    <th>
    Header
    </th>
    <th>
    Value
    </th>
    </tr>
    <c:forEach var="entry" items="${header}">
    <tr>
    <td>
    ${entry.key}
    </td>
    <td>
    ${entry.value}
    </td>
    </tr>
    </c:forEach>
    </table>
    </body>
    </html>
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
         at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)
         at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:365)
         at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:151)
         at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:174)
         at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:448)
         at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:506)
         at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1547)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:166)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:269)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:155)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:142)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:245)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:448)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:434)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:571)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:288)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:294)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:490)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1020)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:196)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:490)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1020)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2625)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:490)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1020)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:490)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1020)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:196)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:625)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:430)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:567)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:623)
         at java.lang.Thread.run(Thread.java:534)
    Apache Tomcat/5.0

    It's in the c.tld file inside the standard.jar.
    You should have that in your WEB-INF/lib directory.
    %

  • JSF 1.2 and JSTL 1.2

    Now that JSF 1.2 and JSTL 1.2 both use the new unified EL is it possible to use them together? I know they could be used together before but it was discouraged. I'm mostly interested in the functions and the loops (although Trinidad seems to be working pretty well).

    Thanks... I have switched over to facelets but I am getting the same problem:
    <ui:composition template="./../WEB-INF/layout.xhtml">
       <ui:define name="menu">
               <ui:include src="./flightMenu.xhtml" />
       </ui:define>
       <ui:define name="content">
         <h:panelGrid border="0" columns="1" style="width:100%">
            <h:form>
              <rich:tabPanel switchType="ajax" 
                  valueChangeListener="#{flightBean.flightTabPanel.valueChanged}"
                  binding="#{flightBean.flightTabPanel.tabPanel}" id="tab_panel">
                  <f:valueChangeListener type="org.richfaces.TabChangeListener" />
                  <rich:tab name="test" label="test">
                          <h:outputText value="bla bla" />
                  </rich:tab>
                  <ui:repeat var="tabb" value="#{flightBean.flightTabs}">
                          <rich:tab name="#{tabb.fltNum}" >
                                  <h:outputText value="bla bla" />
                          </rich:tab>
                  </ui:repeat>
              </rich:tabPanel>
            </h:form>
         </h:panelGrid>
       </ui:define>
    </ui:composition>The probem is that the tabb.fltNum method is not being invoked... If anyone has been able to build dynamic tabs using RichFaces using a similar approach I will like to see how you did it...
    BRgds, Paul

  • Standard.jar and jstl.jar directory

    First off I probably should apologize in advance because my problem might be an eclipse config issue.
    I created a simple servlet and I tried to include a jstl library import javax.servlet.jsp.jstl.sql.Result;. It compiled cleanly but, when I ran the application (through a browser accessing tomcat through eclipse) I was getting this error...
    The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
    I eventually found out what was wrong but I don't understand why it was wrong and that's my question. Originally I had jstl.jar and standard.jar in the projectHome/lib directory. When I moved those 2 files to the projectHome]/WEB-INF/lib directory, however, things ran correctly. Is this a setting somewhere within my tomcat config on eclipse perhaps? Or can someone point me in the right direction about this issue in general?
    Thanks in advance!

    Tomcat and Eclipse have different ideas of classpath.
    In Eclipse you set the classpath as part of the project properties: Java Build Path.
    Tomcat uses:
    - web-inf/classes directory
    - jar files in web-inf/lib
    - jar files in /shared/lib
    - jar files in /common/lib
    So in order to run on Tomcat, they need to be in the web-inf/lib directory.
    Cheers,
    evnafets

  • Where do I put the Jakarta files standard.jar and jstl.jar when developing with JSF 2.0 in OEPE using web logic server

    hi everybody, I am wondering what should i do with the standard.jar and jstl.jar files when using we logic. I tried putting both files into
    the directory c:\oracle\middleware\oracle_home\user_projects\domains\base_domain\bin.  I don't know if this is correct.  Thanks in
    in advance for the help.

    Anyways I found this link on www.oracle.com website by the same author of the book I am reading Deepak Vohra - Templating with JSF 2.0 Facelets.
    although here he is using Weblogic 11g although I don't think it makes a difference.  have a look at the Setting up the Environment section
    where he says to download the jstl.jar and standard.jar files.
    http://www.oracle.com/technetwork/articles/java/facelets-454361.html

  • Why Jdeveloper Version 10.1.3.3  and  10.1.3.5  settings folder?

    Hello Everybody,
    I am new to JDeveloper IDE. I wanted to know why the JDeveloper versions 10.1.3.3 and 10.1.3.5 do not create a settings folder named 'JDeveloper' under "C:\Documents and Settings\<username>\Application Data" path? In JDeveloper 11g preview release this folder is created when the IDE is run for the first time. I am using the 10g version as it has embedded OC4J server. I need the above mentioned settings folder to configure Oracle MapViewer.ear.
    If there is way to make the IDE create this settings folder under "C:\Documents and Settings\<username>\Application Data" kindly let me know? Or if any workarounds?
    Regards,
    Shiva

    do u have this done in your home system
    In this case you should can change the directory per 11g installation by setting the ide.user.dir property (use forward slashes) in the <middleware install dir>\jdeveloper\jdev\bin\jdev.boot file or add it to the startup script with -J-Dide.user.dir=<some directory>.

  • Using Struts and JSTL together

    I have
    <html:form action="xy.do">
    <c:set var="name" value="shalik"/>
    <html:text property="name" value="<c:out value="${name}"/>"/>
    </html:form>
    How could I put data stored in ${name} to show in the text
    Also, is there a shorter way to access java variables using jstl core
    I would not want to do
    <input type="text" name="name" value="<c:out value="${name}"/>"/>
    which works, because I have to use struts

    No you can't include tags as attributes to other tags.
    Yes, you can definitely use the Struts and JSTL together.
    If you want to use EL expressions with the struts tags, it depends on your server.
    If you have a JSP2.0 container (eg Tomcat 5) its no problem at all. You can use the EL expressions directly with the standard struts tags.
    For a JSP1.2 container, there are specifically written struts-el tags. They let you use EL expressions instead of <%= %> expressions
    <c:set var="name" value="shalik"/>
    <html:text property="name" value="${name}"/>The struts-el tags only have a subset of the struts tags. It is intended for use with the JSTL. For instance the c:if tag easily replaces a lot of the logic conditional ones (equal, lessThan, etc etc)
    The tags are available as part of the standard struts download in the contrib directory.
    However for what you seem to be wanting to do, wouldn't it be more struts-like to have an action that specifically populates the action form, and just have
    <html:text property="name"/>
    The value would then be automagically populated from the form bean.
    Hope this helps,
    evnafets

  • Jsp and jstl

    Hi ,
    I was trying to use jstl to make my jsp's look clean and easliy manageable,but till now i have had no luck in making it work.
    I have added all the tld's and jars required for jstl to my war file and also i made the entry in my web.xml,in my jsp i put
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    and the place where i wanted to put my if statement i wrote this code
    <c:if test=${endVal==0}>
    <c:set var="endVal" value=<%=result.size()%> />
    </c:if>
    I tried with both
    uri="http://java.sun.com/jstl/core"
    uri="http://java.sun.com/jstl/core_rt" but it doesnt seem to be setting that value.plz advise what is wrong.
    Thanks

    thanks panyong-cs !
    Now atleast its tryign to set the value but the error i am getting is
    "cannot resolve symbol
    symbol : method setValue (int)
    location: class org.apache.taglibs.standard.tag.rt.core.SetTag
    _c_rt_set0.setValue(result.size()); "
    resong being that result.size() is an int ....so now how should i set that value....

  • JSF and JSTL 1.2...please help, i`m going nuts

    Hey guys,
    This is driving me up the wall. I`m running glassfish v2 b19 (i havent upgraded, because this one works for me).
    But i have a problem using jstl in my jsf app. i`m trying to do the following :
                                                    <c:choose>
                                                        <c:when test="#{currentRow.value['dboSTANDBY_LOG.STANDBY_LOG_TYPE'] eq 'server'}">
                                                            <webuijsf:tableColumn binding="#{standby$Standby_Log.tableColumn19}" headerText="NAME"
                                                                id="tableColumn19" sort="dboSTANDBY_LOG.SBYN_HOST_NAME" width="40">
                                                                <webuijsf:staticText binding="#{standby$Standby_Log.staticText20}" id="staticText20" text="#{currentRow.value['dboSTANDBY_LOG.SBYN_HOST_NAME']}"/>
                                                            </webuijsf:tableColumn>
                                                        </c:when>
                                                        <c:otherwise>
                                                            <webuijsf:tableColumn binding="#{standby$Standby_Log.tableColumn17}" headerText="NAME"
                                                                id="tableColumn17" sort="dboSTANDBY_LOG.APPL_SYSTEMS_PROP_INNUMBER" width="40">
                                                                <webuijsf:staticText binding="#{standby$Standby_Log.staticText18}" id="staticText18" text="#{currentRow.value['dboSTANDBY_LOG.APPL_SYSTEMS_PROP_INNUMBER']}"/>
                                                            </webuijsf:tableColumn>
                                                        </c:otherwise>
                                                    </c:choose>
    but the app server fails on building the page saying :
    According to the TLD, the attribute test is not a deferred-value or deferred-method, but the specified value contains a #-expression
    Now as far as i now, JSTL 1.2 should be included in J5EE, which is in glassfish already, correct?
    and JSTL 1.2 supports using deferred expressions, correct?
    So why for the love of my sanity is this not working?
    aaaaaa.
    Thanks
    D

    I haven't actually used/tried this myself, and I am not a JSF expert, this error looks similar to the error message attribute xxx does not support runtime expressions.
    I think you are reading the error message wrong.
    You have supplied a deferred expression. No question of that.
    I think the error is saying that the 'test' attribute of the <c:when> tag does not support deferred evaluation. - ie you cant use #{expr} with the <c:when> tag.
    According to the JSTL1.2 spec, it seems that "deferred expressions" are only supported by the looping tags (<c:forEach> and <c:forTokens>) and the <c:set> tag.
    I think the JSF equivalent would be the rendered attribute. Can you use the rendered attribute with the webuijsf:tablecolumn tag? Or another JSF container type tag?

  • Ajax and JSTL Query possible?

    Hi all ! I want to know if this is possible and if you have an example you could show. So far Im trying like this:
    function ajaxFunction(){
         alert("ajaxFunction");
         var ajaxRequest;  // The variable that makes Ajax possible!
         try{
              // Opera 8.0+, Firefox, Safari
              ajaxRequest = new XMLHttpRequest();
         } catch (e){
              // Internet Explorer Browsers
              try{
                   ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
              } catch (e) {
                   try{
                        ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
                   } catch (e){
                        // Something went wrong
                        alert("Your browser broke!");
                        return false;
         // Create a function that will receive data sent from the server
         ajaxRequest.onreadystatechange = function(){
              if(ajaxRequest.readyState == 4){     
              appendOptionLast(ajaxRequest.responseText);
         //var age = document.getElementById('age').value;
         //var wpm = document.getElementById('wpm').value;
         //var sex = document.getElementById('sex').value;
         //var queryString = "?age=" + age + "&wpm=" + wpm + "&sex=" + sex;
         //alert("Antes open");
         ajaxRequest.open("GET", "/TWC/Comun/Ajax.jsp", true);
         //alert("Despues open");
         ajaxRequest.send(null);
    }And here is my JSP thats doing the query.
    <%@page contentType="text/html"%>
    <%@ page import="beans.*,java.util.*" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix=”sql” %>
    <%@page pageEncoding="ISO-8859-1"%>
    <sql:setDataSource dataSource=”jdbc/TWC” />
    <sql:query var=”qryItems” >
        SELECT User_ID
        FROM product
        ORDER BY nombre
    </sql:query>
    <c:forEach var=”row” items=”${qryItems.rows}”>
         User: <c:out value=”${row.User_ID}” /><br> 
    </c:forEach>Thanks!

    thanks guys but I finally got it to work with JSTL and ajax.
    The only "weird" thing is that when I parse the data to my JSP I get a bunch of white spaces at the end of each value for each field. Here is my code:
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %>
    <sql:setDataSource dataSource="jdbc/TWCApp" />
    <sql:query var="producto">
    select ITEMDESC AS name,IV00101.ITEMNMBR AS Number,USCATVLS_2 AS category,USCATVLS_1 AS Brand,
    USCATVLS_3 AS Type,CURRCOST AS Invoice_price,
    QTYONHND AS Stock_number, IV00102.LOCNCODE AS Location
    from TWC.dbo.IV00101 JOIN TWC.dbo.IV00102 ON IV00101.ITEMNMBR=IV00102.ITEMNMBR
    WHERE IV00101.ITEMNMBR = '${param.product}' AND IV00102.LOCNCODE = '${param.location}'
    </sql:query>
    <c:forEach items="${producto.rows}" var="row">
    ${row.name},${row.number},${row.category},${row.brand},${row.type},${row.Invoice_price},${row.Stock_number},${row.Location}
    </c:forEach>Here is my JS:
    ajaxRequest.onreadystatechange = function(){
              if(ajaxRequest.readyState == 4){     
              appendOptionLast(ajaxRequest.responseText);
    function appendOptionLast(valor)
      //alert(valor);
      //var elOptNew = document.createElement('option');
      var elSel = document.getElementById('category_producto');
      var mySplitResult = valor.split(",");
      document.form1.nombre_producto.value=mySplitResult[0];
      document.form1.numero_producto.value=mySplitResult[1];
      document.form1.category_producto.value=mySplitResult[2];
      document.form1.brand_producto.value=mySplitResult[3];
      document.form1.type_producto.value=mySplitResult[4];
      document.form1.invoice_producto.value=mySplitResult[5];
      document.form1.stocknumber_producto.value=mySplitResult[6];
      if(mySplitResult[6]>0){
      document.form1.stock_producto.value="Available"
      else{document.form1.stock_producto.value="Out of stock"
      document.form1.location_producto.value=mySplitResult[7];So how I can get rid of all those extra spaces at the end of each value?
    thanks!
    Edited by: juanmanuelsanchez on Apr 2, 2010 11:29 PM
    Edited by: juanmanuelsanchez on Apr 2, 2010 11:32 PM

Maybe you are looking for