Javax.servlet.jsp.jstl.sql.Result and arraylist
Hi,
I try to explain my problem, I have posted in another section of forum, but perhaps this is a better place:
I'm trying to use MVC model, so I call an EJB from a servlet which returns me a javax.servlet.jsp.jstl.sql.Result object (this derive from a resultset of a query) and then I make this available to a jsp page.
I've choosen to return an javax.servlet.jsp.jstl.sql.Result object because I'd like to use this syntax:
<c:forEach var="profiloString" items="${listaProfili}" >
${profiloString.anything}
</c:forEach>Now I need to put my listaProfili object in session and permit users of my application to add and delete items from it. Finally I will update my database with the new data from listaProfili object.
If listaProfili is an arraylist I can easily add or delete item from it, but if it is a javax.servlet.jsp.jstl.sql.Result I don't know how I can do this.
If I return an arraylist object instead of an javax.servlet.jsp.jstl.sql.Result object, I can't use "<c:forEach ..." syntax.
Can anyone help me?
Thanks.
So why didn't you think that the JSP forum here wasn't a good place to ask JSP questions like this one?
You can use <c:for-each> with a List. That's how it's designed. I don't understand why you say you can't. Perhaps you were confused by the SQL tags in JSTL. But anyway, you should just return a List from your EJB and forget about using obscure internal JSP classes.
Similar Messages
-
Class not found javax.servlet.jsp.jstl.sql.Result in Richfaces
When I try to run the richfaces application using Weblogic 10.3 AS and Netbean IDE 6.9.1, I found ClassNotFoundException on javax.servlet.jsp.jstl.sql.Result class.
I class path the following libs.
commons-beanutils-core-1.8.0.jar
commons-digester-1.8.jar
commons-fileupload-1.2.1.jar
commons-io-1.2.jar
commons-logging-1.1.1.jar
glassfish.el_2.1.1.jar
glassfish.jsf_1.2.9.0.jar
javassist-3.8.0.GA.jar
jhighlight-1.0.jar
jsf-facelets.jar
jsf-api.jar
log4j-1.2.14.jar
richfaces-api-3.3.0.GA.jar
richfaces-impl-3.3.0.GA.jar
richfaces-ui-3.3.0.GA.jar
glassfish.jstl_1.2.0.1.jar
Also I try to deploy without using some jar files already exists in application server.
My web.xml configuration is-
<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>#{skinSelector.skin}</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.CONTROL_SKINNING</param-name>
<param-value>enable</param-value>
</context-param>
<context-param>
<param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
<param-value>com.sun.facelets.FaceletViewHandler</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>org.ajax4jsf.SKIN</param-name>
<param-value>skin_name</param-value>
</context-param>
<filter>
<display-name>RichFaces Filter</display-name>
<filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
</filter>
<filter-mapping>
<filter-name>richfaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
<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>*.jsf</url-pattern>
</servlet-mapping>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
I also try to configure <library-ref>....</libray-ref> configuration in weblogic.xml and weblogic-application.xml and I also deploy JSF-2.0.war as library in application.
Please
h5.MUTUSo why didn't you think that the JSP forum here wasn't a good place to ask JSP questions like this one?
You can use <c:for-each> with a List. That's how it's designed. I don't understand why you say you can't. Perhaps you were confused by the SQL tags in JSTL. But anyway, you should just return a List from your EJB and forget about using obscure internal JSP classes. -
Hi,
We are using JDeveloper 10.1.3.0.4(SU5) on windows for development of ADF application. We need to deploy the developed application onto Oracle Application Server 10g (10.1.3) which is running on Solaris. We are using BC4J, WAR and EAR deployment profiles in jdeveloper to create the .war and .ear files.
If I deploy the generated ear on a standalone OC4J server install on my windows PC, it works fine.
Now when I deploy the generated .ear file onto the Oracle Application Server 10.1.3 through Application Server Control interface and then try to access the jspx pages under our application we are getting following error:
oracle.classloader.util.AnnotatedNoClassDefFoundError: Missing class: javax.servlet.jsp.jstl.core.Config Dependent class: com.sun.faces.application.ViewHandlerImpl Loader: accaweb.web.accaweb:0.0.0 Code-Source: /oracle/app/oracle/product/10gas3/j2ee/home/applications/accaweb/accaweb/WEB-INF/lib/jsf-impl.jar Configuration: WEB-INF/lib/ directory in /oracle/app/oracle/product/10gas3/j2ee/home/applications/accaweb/accaweb/WEB-INF/libThe missing class is available from the following locations: 1. Code-Source: /oracle/app/oracle/product/10gas3/j2ee/home/default-web-app/WEB-INF/lib/jstl.jar (from WEB-INF/lib/ directory in /oracle/app/oracle/product/10gas3/j2ee/home/default-web-app/WEB-INF/lib) This code-source is available in loader default.web.defaultWebApp:0.0.0. at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClassLoader.java:2051) [oracle/app/oracle/product/10gas3/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@1482257]
I have confirmed that the .war file inside the .ear file does contain the jstl.jar file under WEB-INF/lib folder. And the jar file does contain the class 'javax.servlet.jsp.jstl.core.Config'
As a workaround, I found that if I copy the jstl.jar file from default-web-app to my application web-inf/lib folder, things start to work fine. ie copy from: '/oracle/app/oracle/product/10gas3/j2ee/home/default-web-app/WEB-INF/lib/jstl.jar'
to: '/oracle/app/oracle/product/10gas3/j2ee/home/applications/accaweb/accaweb/WEB-INF/lib/'
– or –
Another workaround is to add the '/oracle/app/oracle/product/10gas3/j2ee/home/default-web-app/WEB-INF/lib/jstl.jar' file in the classpath for my web application through Application Server Control setting page.
Now both of these workaround needs us to perform additional post deployment steps which should really not be required since the jar files is included in the project.
Has anyone faced this issue? Any pointers in this respect will be a great help.
regards - rutwikSurprise Surprise !
I just tried deploying the file via uploading it from the Application Server Control UI and it worked fine.
Till now, I was ftp'ing the ear file from my PC to the server on which Oracle AS is running and was telling Application Server Control to pick form that uploaded location.
I am still not clear on why it works with HTTP upload and not via the FTP upload?
cheers - rutwik -
In JSF2, writing facelets I tried to use <ui:repeat> tag instead of <c:forEach> - JSTL tag.
I get -> java.lang.ClassNotFoundException: javax.servlet.jsp.jstl.core.LoopTagStatus
Here is my facelet snippet ...
<ui:repeat value="#{historyCenterManagedBean.purchases}" var="order" >
<tr>
<td>
#{order.totalPriceBeforeDiscounts}:
</td>
<td>
#{order.person.firstname}
</td>
</tr>
</ui:repeat>I am not sure why am I getting it. Any help is appreciated.Hmm, Thanks Ryan. I am still confused.
I am not clearly understanding why would c:forEach fail? And this is happening after the nightly build jar of 20091216
for example this is we have:
<c:forEach var="partner" items="#{contentPartnersManagedBean.allAuthorizedContentPartners}" >
<tr>
<td><a href="#{contextPathManagedBean.contextPath}/about_us/providers_detail.jsf?pID=${partner.partnerId}"
class="# {portalSkinManagedBean.contentPortletSkin.normalTextStyle}">${partner.partnerName}
</a>
</td>
</tr>
</c:forEach>This is the exception:
javax.servlet.ServletException: javax/servlet/jsp/jstl/core/LoopTagStatus
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:325)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.legaledcenter.util.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:250)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.jscape.framework.galileo.support.upload.UploadFilter.doFilter(UploadFilter.java:71)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:619)
Caused by: javax.faces.view.facelets.FaceletException: javax/servlet/jsp/jstl/core/LoopTagStatus
at com.sun.faces.facelets.tag.AbstractTagLibrary$UserComponentHandlerFactory.createHandler(AbstractTagLibrary.java:303)
at com.sun.faces.facelets.tag.AbstractTagLibrary.createTagHandler(AbstractTagLibrary.java:672)
at com.sun.faces.facelets.tag.CompositeTagLibrary.createTagHandler(CompositeTagLibrary.java:177)
at com.sun.faces.facelets.compiler.TagUnit.createFaceletHandler(TagUnit.java:113)
at com.sun.faces.facelets.compiler.CompilationUnit.getNextFaceletHandler(CompilationUnit.java:108)Thanks for responding. -
today i had the following exception, which blows my mind away. what can be wrong?
java.lang.ClassCastException: javax.servlet.jsp.jstl.fmt.LocalizationContext
at org.apache.taglibs.standard.tag.common.fmt.BundleSupport.getLocalizationContext(Ljavax.servlet.jsp.PageContext;)Ljavax.servlet.jsp.jstl.fmt.LocalizationContext;(BundleSupport.java:127)
at org.apache.taglibs.standard.tag.common.fmt.MessageSupport.doEndTag()I(MessageSupport.java:152)
at jsp_servlet._web_45_inf._jsp._templates.__template._jspService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(__template.java:235)environment: weblogic 8.1-sp4, jstl 1.0.6well the fact is that the JSPs are 100% correct. i'm migrating some legacy project, which builds, deploys and runs in its old state with no errors at all (and the old state is current PRO, so every bit of code is supposed to be correct). hence i presume it's not the JSPs that are wrong (because i never touched them), that's something else, probably the configuration of things, or conflicts between container libs and webapp libs, or sort of like that.
so if this error doesn't ring a bell, then i'll try to fiddle around, i thought maybe that's something "famous" :). -
JSTL javax.servlet.jsp.jstl.core.Config strange lookup
Hi everyone !
Could someone explain me this code in the class javax.servlet.jsp.jstl.core.Config :
public static Object get(PageContext pc, String name, int scope) {
switch (scope) {
case PageContext.PAGE_SCOPE:
return pc.getAttribute(name + PAGE_SCOPE_SUFFIX, scope);
case PageContext.REQUEST_SCOPE:
return pc.getAttribute(name + REQUEST_SCOPE_SUFFIX, scope);
case PageContext.SESSION_SCOPE:
return get(pc.getSession(), name);
case PageContext.APPLICATION_SCOPE:
return pc.getAttribute(name + APPLICATION_SCOPE_SUFFIX, scope);
default:
throw new IllegalArgumentException("unknown scope");
Why adding a suffix when calling PageContext.getAttribute(String, int) ?
This could lead to potential problems... For example, in my web application I want to share a single ResourceBundle for each JSP page and I would like to use <fmt:message/> tag to resolve my messages.
For this purpose I added a LocalizationContext in my servlet context attribute in its init method:
ResourceBundle bundle = ....
LocalizationContext context = new LocalizationContext(bundle);
servletContext.setAttribute(Config.FMT_LOCALIZATION_CONTEXT, context);
Thus, the <fmt:message/> will be able to resolve the messages from this LocalizationContext...
Unfortunately, this will never happen because the implementation of this tag call somewhere Config.find(PageContext, String) that will call the Config.get(PageContext, String, int) method....
A quick fix would be to replace the name of the servlet context attribute :
servletContext.setAttribute(Config.FMT_LOCALIZATION_CONTEXT + ".application", context);
Could someone tell me if it is a bug ? A bug of the Message tag implementation ? A bug in JSTL code ? Or am I doing all wrong ?
Note : I'am using a servlet 2.4/JSP 2.0 compatible application with the jstl 1.2 core library and the jakarta standard 1.1.2 implementation library. I'am using Jetty to test my application with Jasper as the JSP compiler...This is an internal decision made by JSTL as to how it stores its configuration values.
The reason they have given here for the suffixes being added is to treat the four scopes as different namespaces, so that there can be no confusion between them.
I'd say your mistake is trying to set this value into the attribute space yourself rather than using one of the defined interfaces for JSTL to do it - in web.xml, or using the Config class.
I guess that would make your code
Config.set(servletContext, Config.FMT_LOCALIZATION_CONTEXT, context); Using their interface for setting this attribute adds the required suffix automatically.
Cheers,
evnafets -
"javax.servlet.jsp.JspException: null" When trying to use JSTL
Hello,
I am trying to use some taglibs from Apache but I am getting the following error when trying to access the relevant page:
org.apache.jasper.JasperException: javax.servlet.jsp.JspException: null
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
org.apache.jasper.JasperException: javax.servlet.jsp.JspException: null
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
org.apache.jsp.Questions_jsp._jspService(Questions_jsp.java:42)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
javax.servlet.ServletException: javax.servlet.jsp.JspException: null
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:854)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
org.apache.jsp.WEB_002dINF.EL_005f2_jsp._jspService(EL_005f2_jsp.java:171)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
org.apache.jsp.Questions_jsp._jspService(Questions_jsp.java:42)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.reflect.InvocationTargetException
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.taglibs.standard.tag.common.core.SetSupport.doEndTag(Unknown Source)
org.apache.jsp.WEB_002dINF.EL_005f2_jsp._jspx_meth_c_set_0(EL_005f2_jsp.java:208)
org.apache.jsp.WEB_002dINF.EL_005f2_jsp._jspService(EL_005f2_jsp.java:113)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
org.apache.jsp.Questions_jsp._jspService(Questions_jsp.java:42)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)My web.xml file is as follows:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee/web-app_2_4.xsd"
version="2.4">
<display-name>Jsp_Ex09 - JSP Standard Tag Library</display-name>
<welcome-file-list>
<welcome-file>welcome.jsp</welcome-file>
</welcome-file-list>
<jsp-config>
<taglib>
<taglib-uri>/simplequestions</taglib-uri>
<taglib-location>/WEB-INF/tlds/simplefaq.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/tlds/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/fmt</taglib-uri>
<taglib-location>/WEB-INF/tlds/fmt.tld</taglib-location>
</taglib>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<el-ignored>false</el-ignored>
<scripting-invalid>true</scripting-invalid>
</jsp-property-group>
</jsp-config>
</web-app>I have the standard and jstl jars in my lib directory and the relevant tlds files int the tlds directory. I am using Tomcat 5.5 and J2EE 5.
The jsp in question is as follows:
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<html>
<head>
<title>JSTL Q2</title>
</head>
<body>
<h1>JSTL Question 2</h1>
<h2>How do I use the JSTL?</h2>
<jsp:useBean id="questions" class="com.apress.faq.Questions"
scope="page">
<jsp:setProperty name="questions" property="topic" value="EL"/>
</jsp:useBean>
<table border="1">
<!-- the literal JSTL tag will be in left column of table -->
<!-- the evaluated JSTL tag will be in right column of table -->
<tr><th>tag</th><th>result</th></tr>
<!-- this tag uses c:out to send the value of an EL to the response -->
<tr><td><c:out value="${'${'}questions.topic}"/></td>
<td><c:out value="${questions.topic}"/></td>
</tr>
<!-- this tag uses c:set to set the property of a JavaBean -->
<c:set target="${questions}" property="topic" value="JSTL" />
<tr>
<td><c:set target="${'${'}questions}" property="topic"
value="JSTL"/>
</td>
<td><c:out value="${questions.topic}"/></td>
</tr>
<!-- this tag uses c:if to determine whether to create another row -->
<c:if test="${questions.topic == 'EL'}">
<tr><td>This row will not be created</td>
<td></td>
</tr>
</c:if>
<c:if test="${questions.topic == 'JSTL'}">
<tr><td>This row was created because the c:if tag result was true</td>
<td></td>
</tr>
</c:if>
</table>
<h2>Multiplication table, 1 - 5</h2>
<!-use the forEach tag to create a table -->
<table border="1">
<tr><td></td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td></tr>
<c:forEach var="i" begin="1" end="5">
<tr><td><c:out value="${i}"/></td>
<c:forEach var="j" begin="1" end="5">
<td><c:out value="${i*j}"/></td>
</c:forEach>
</tr>
</c:forEach>
</table>
<h2>Formatting numbers</h2
<br><fmt:formatNumber value="23.456" type="number" /> results in
<fmt:formatNumber value="23.456" type="number" />
<br><fmt:formatNumber type="currency">23.456
</fmt:formatNumber> results in <fmt:formatNumber
type="currency">23.456</fmt:formatNumber>
<br><fmt:formatNumber value=".23456" type="percent"/> results
in <fmt:formatNumber value=".23456" type="percent"/>
<br><fmt:formatNumber value=".23456" type="percent"
minFractionDigits="2"/> results in <fmt:formatNumber
value=".23456" type="percent" minFractionDigits="2"/>
</body>
</html>Can anyone spot the problem?
Sorry for such a big post!ava.lang.reflect.InvocationTargetException
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.taglibs.standard.tag.common.core.SetSupport.doEndTag(Unknown Source)From the stacktrace, it appears to be from a <c:set> tag.
Invocation target exception would meant that an error was encountered calling the setter.
That would focus on this part of the code:
<!-- this tag uses c:set to set the property of a JavaBean -->
<c:set target="${questions}" property="topic" value="JSTL" />
<tr>
<td><c:set target="${'${'}questions}" property="topic"
value="JSTL"/>
</td>That nesting of ${ } inside ${} looks dodgy to me. What is it you are trying to achieve? -
Problem: package javax.servlet.jsp does not exist
I am a novice JSP programmer. My projects that use any javax.servlet classes are not seeing those at all. I am working with a group of folks using Java SE 1.5. (Note: I'm using Windows so the directory separator is "\")
What Used to work:
1. Nearly all my projects were working using Java version 1.6. These projects were developed as examples from Wrox and Apress books about JSP and Struts.
What has changed:
1. I un-installed the version 1.6 of JDK and JRE, as well as tomcat, netbeans, and all the associated libraries/jars.
2. I installed version 1.5 of JDK and JRE, as well as tomcat, netbeans, and all the associated libraries/jars.
3. I updated my JAVA_HOME, CATALINA_HOME, CLASSPATH, and PATH environmental variables. I made sure that the path to servlet-api.jar (in the tomcat common\lib) is included in the classpath.
What is wrong:
1. References to javax.servlet.* are not satisfied--they are flagged in the source code in NetBeans and I get compiler errors with any project containing those references. For example:
... package javax.servlet.jsp does not exist
import javax.servlet.jsp.*;
What I've found:
1. My CATALINA_HOME=C:\Java\Tomcat 5.5
2. My JAVA_HOME=C:\Java\jdk1.5.0_11
3. My CLASSPATH=.;C:\Program Files\QuickTime\QTSystem\QTJava.zip;%JAVA_HOME%\lib;%JAVA_HOME%\jre\lib;%JAVA_HOME%\lib\jsp-api.jar;%CATALINA_HOME%\common\lib\servlet-api.jar;C:\Java\logging-log4j-1.2.14\dist\lib\log4j-1.2.14.jar
4. My PATH=c:\wint\BIN;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;%CATALINA_HOME%\bin;C:\MySQL\MySQL Server 5.0\bin;D:\MiKTeX 2.5\miktex\bin;C:\Perl\bin\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\SFU\Perl\bin\;C:\SFU\common\;C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Bin;C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Win32\Bin
What I need:
1. I need to have some reference to the servlet classes satisfied in my configuration. Any help is appreciated.
thanks
jondrOh. I got some over-the-shoulder debug help.
My error was in the classpath specification:
The path: %JAVA_HOME%\lib\jsp-api.jar
Should be: %CATALINA_HOME%\lib\jsp-api.jar
That contains the javax.servlet.jsp.*
Thimk.
Message was edited by: jon
jondr -
Javax.servlet.jsp.el.ELParseException in WLS 9.1
I have a spring/hibernate application working fine on Tomcat. I am trying to make it work on weblogic 9.1 and get javax.servlet.jsp.el.ELParseException. Does anyone know what could be wrong? Thanks.
I am using a 2.3 web.xml. The first line in my web.xml is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>
The error I get is:
Error 500--Internal Server Error
javax.servlet.jsp.el.ELParseException: Error occured while trying to parse 'command.listHolder.source[${results.firstElementOnPage + forStatus.count - 1}].selected'
at javelin.jsp.el.ExpressionEvaluatorImpl.parseEL(ExpressionEvaluatorImpl.java:113)
at javelin.jsp.el.ExpressionEvaluatorImpl.parseExpression(ExpressionEvaluatorImpl.java:82)
at javelin.jsp.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:73)
at org.springframework.web.util.ExpressionEvaluationUtils$Jsp20ExpressionEvaluationHelper.evaluate(ExpressionEvaluationUtils.java:216)
at org.springframework.web.util.ExpressionEvaluationUtils.evaluateString(ExpressionEvaluationUtils.java:150)
at org.springframework.web.servlet.tags.BindTag.doStartTagInternal(BindTag.java:104)
at org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:68)
at jsp_servlet._web_45_inf._pages._templates.__td_45_pick._jspService(__td_45_pick.java:3618)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:380)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:298)
..... -
hi,
I try to view my presentation in jsp page.I use oracle jdeveloper 9.2.0.4 and bibeans 9.2.0.4 and once 1 month ago I did this taks (I view a presentation from bibdemo in jsp file)
now I try to view my own presentation in jsp but I recieve error message in my own schema and bibdemo schema!!
when I use windows xp I recieve following error :
500 Internal Server Error
javax.servlet.jsp.JspException: BIB-10310 An unknown exception occurred.
BIB-10101 Handler failed to handle UserObject.
BIB-14067 Persistable object threw exception during lookup on method setXMLAsString; component class oracle.dss.dataSource.client.QueryClient; exception oracle.dss.util.persistence.BIPersistenceException.
BIB-9509 Oracle OLAP did not create cursor.
oracle.olapi.data.source.UnmatchedInputsException
BIB-9509 Oracle OLAP did not create cursor.
oracle.olapi.data.source.UnmatchedInputsException
oracle.olapi.data.source.UnmatchedInputsException
at oracle.dss.addins.jspTags.PresentationTag.doStartTag(PresentationTag.java:194)
at test.jspService(test.jsp:6)
[test.jsp]
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:778)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
and when I use windows NT I recieve following error :
500 Internal Server Error
javax.servlet.jsp.JspException: java.lang.NullPointerException
at oracle.dss.addins.jspTags.RenderTag.doEndTag(RenderTag.java:212)
at kafa_report__7._jspService(kafa_report_7.jsp:18)
[kafa_report_7.jsp]
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:778)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
I
what the problem is ????????
thanks in advance,hi,
here the result :
<?xml version="1.0" encoding="UTF-8" ?>
- <BICheckConfig version="1.0.2.0">
<Check key="JDEV_ORACLE_HOME" value="d:\jdev904" />
<Check key="JAVA_HOME" value="C:\j2sdk1.4.2_01" />
<Check key="JDeveloper version" value="9.0.4.0.1419" />
<Check key="BI Beans release description" value="BI Beans 9.0.4 Production Release" />
<Check key="BI Beans component number" value="9.0.4.23.0" />
<Check key="BI Beans internal version" value="2.7.5.32" />
<Check key="host" value="200.20.20.11" />
<Check key="port" value="1521" />
<Check key="sid" value="ora10g" />
<Check key="user" value="dw_targetschema" />
<Check key="Connecting to the database" value="Successful" />
<Check key="JDBC driver version" value="9.2.0.4.0" />
<Check key="JDBC JAR file location" value="D:\jdev904\jdev\lib\patches" />
<Check key="Database version" value="10.1.0.2.0" />
<Check key="OLAP Catalog version" value="10.1.0.2.0" />
<Check key="OLAP AW Engine version" value="10.1.0.2.0" />
<Check key="OLAP API Server version" value="10.1.0.2.0" />
<Check key="BI Beans Catalog version" value="N/A; not installed in dw_targetschema" />
<Check key="OLAP API JAR file version" value="9.2" />
<Check key="OLAP API JAR file location" value="d:\jdev904\jdev\lib\ext" />
<Check key="OLAP API Metadata Load" value="Successful" />
<Check key="Number of metadata folders" value="2" />
<Check key="Number of metadata measures" value="1" />
<Check key="Number of metadata dimensions" value="3" />
- <Check key="OLAP API Metadata">
- <![CDATA[
==============================================================================
Type Name (S=Schema, C=Cube, M=Measure, D=Dimension) Status
========= ======================================================= ============
Folder... ROOT
Folder... KAFA_COLLECTION
Folder... KAFA_COLLECTION2
Measure.. SALARY Unsuccessful
S=DW_TARGETSCHEMA, C=EMPLOYEMENT_CUBE, M=SALARY
Connection lost. Reconnect Successful
Dimension DEP_DIM Successful
S=DW_TARGETSCHEMA, D=DEP_DIM
Dimension EMP_DIM Successful
S=DW_TARGETSCHEMA, D=EMP_DIM
Dimension JOB_DIM Successful
S=DW_TARGETSCHEMA, D=JOB_DIM
]]>
</Check>
- <Check key="StackTrace">
- <![CDATA[
============================================================================
Queries on the following measures or dimensions failed
(S=Schema, C=Cube, M=Measure, D=Dimension)
"SALARY" measure query with S=DW_TARGETSCHEMA, C=EMPLOYEMENT_CUBE, M=SALARY
============================================================================
Exception stacktrace for "SALARY" measure query with S=DW_TARGETSCHEMA, C=EMPLOYEMENT_CUBE, M=SALARY
============================================================================
1) BIB-9009 Oracle OLAP could not create cursor.
oracle.express.idl.util.OlapiException: No more data to read from socket
2) BIB-9009 Oracle OLAP could not create cursor.
oracle.express.idl.util.OlapiException: No more data to read from socket
1) BIB-9009 Oracle OLAP could not create cursor.
oracle.express.idl.util.OlapiException: No more data to read from socket
============================================================================
oracle.dss.dataSource.common.QueryRuntimeException: BIB-9009 Oracle OLAP could not create cursor.
oracle.express.idl.util.OlapiException: No more data to read from socket
java.lang.CloneNotSupportedException: BIB-9009 Oracle OLAP could not create cursor.
oracle.express.idl.util.OlapiException: No more data to read from socket
at oracle.dss.dataSource.common.Query.addQueryListener(Query.java:480)
at BICheckConfig.runDefaultMeasureQuery(BICheckConfig.java:480)
at BICheckConfig.printFolder(BICheckConfig.java:405)
at BICheckConfig.printFolder(BICheckConfig.java:464)
at BICheckConfig.checkConnection(BICheckConfig.java:350)
at BICheckConfig.main(BICheckConfig.java:1348)
2) BIB-9009 Oracle OLAP could not create cursor.
oracle.express.idl.util.OlapiException: No more data to read from socket
============================================================================
java.lang.CloneNotSupportedException: BIB-9009 Oracle OLAP could not create cursor.
oracle.express.idl.util.OlapiException: No more data to read from socket
at oracle.dss.dataSource.common.CubeCursor.clone(CubeCursor.java:387)
at oracle.dss.dataSource.common.Query.addNewCubeCursorCopy(Query.java:2366)
at oracle.dss.dataSource.common.Query.addQueryListener(Query.java:477)
at BICheckConfig.runDefaultMeasureQuery(BICheckConfig.java:480)
at BICheckConfig.printFolder(BICheckConfig.java:405)
at BICheckConfig.printFolder(BICheckConfig.java:464)
at BICheckConfig.checkConnection(BICheckConfig.java:350)
at BICheckConfig.main(BICheckConfig.java:1348)
]]>
</Check>
</BICheckConfig>
when I was transfering the collection from warehouse builder to database I recieve some error messages.
but when I try to connect to database from bibeans every thing was ok so I thougth maybe it is because of that.
and that about bibdemo why it doesn't work???
it works before and I check it with bi_checkconfig
thanks ,
shima -
Javax.servlet.jsp.JspException: Cannot find FacesContext
Hello All,
I was trying to create a simple JSF page (Welcome.jspx )(please find code bellow) .But it is always giving the following error:
javax.servlet.jsp.JspException: Cannot find FacesContext
The error appears though i am calling the page with the faces servlet (http://128.128.5.64:8989/GradeEntry/faces/Infrastructure/Welcome.jspx)!!
I have searched all possible forums on the Internet and tried their suggestions with no luck...My web.xml configuration contains the right Faces Servlet Mapping :
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
Bear in mind that i can run from the project pages that are generated from Oracle Jheadstart...But i just can't run this welcome page that i've created with JDeveloper.
Please find bellow the code for Welcome.jspx:
<?xml version='1.0' encoding='windows-1252'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:af="http://xmlns.oracle.com/adf/faces"
xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:fmt="http://java.sun.com/jsp/jstl/fmt">
<jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
doctype-system="http://www.w3.org/TR/html4/loose.dtd"
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
<jsp:directive.page contentType="text/html;charset=windows-1252"/>
<f:view>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1252"/>
<title>tt</title>
</head>
<body><h:form></h:form></body>
</html>
</f:view>
</jsp:root>
You help is very appreciated!!Hi,
actually this mapping only identifies those requests to be handled by teh JSF servlet. Its not a redirect.
I see several namespace definitions in your page, but no taglib reference. Wondering how this is supposed to work
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
I assume the next crash you will see is when you add JSF components to
<f:view>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1252"/>
<title>tt</title>
</head>
<body><h:form></h:form></body>
</html>
</f:view>
Note that mixing HTML elements with JSF is not a recommended approach
Frank -
Hi,
I am using WebLogic 11g.
In my application am getting following exception in my console
####<Jun 4, 2012 2:03:47 AM CDT> <Error> <HTTP> <cuscmas1.hillscte.com> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1338793427049> <BEA-101017> <[ServletContext@2141448872[app:amsatms module:/paws path:/paws spec-version:null]] Root cause of ServletException.
javax.servlet.jsp.JspException: Can't insert page '/common/MenuFiles.jsp' : Connection reset
at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.processException(InsertTag.java:956)
at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:884)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473)
at jsp_servlet._tdms._common.__tdmspage._jsp__tag1(__tdmspage.java:530)
at jsp_servlet._tdms._common.__tdmspage._jspService(__tdmspage.java:427)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
Previously I was used OC4J, in that I didnt get any error.
My MenuFiles.jsp is
<%@ page import="com.hillspet.atms.common.constants.IATMSConstants" %>
<%@ page import="com.hillspet.atms.common.constants.AnimalConstants" %>
<%@ page import="com.hillspet.atms.common.constants.IATMSAccessConstants" %>
<%@ page import="com.hillspet.atms.collectionkit.util.ICollectionKitConstants" %>
<%@ page import="com.cte.common.IConstants" %>
<%@ page import="com.cte.common.dto.UserDTO,com.hillspet.atms.common.util.ATMSUtil" %>
<%@ page import="java.util.ArrayList" %>
<%@page import="com.hillspet.ahms.animal.util.IAHMSAccessConstants,com.hillspet.admin.common.util.HillspetUtil, com.hillspet.ahms.animal.dto.AnimalBaseDTO"%>
<%@page import="com.hillspet.ahms.animal.util.IAHMSAccessConstants,com.hillspet.admin.common.util.HillspetUtil, com.hillspet.ahms.animal.dto.AnimalBaseDTO"%>
<%@ page import="com.cte.common.dto.UserDTO, com.cte.common.IConstants, com.hillspet.admin.common.util.HillspetUtil, java.util.ArrayList, com.cte.common.ums.dto.RoleListEntryDTO,java.util.Arrays,java.util.Collections"%>
<%@page import="com.hillspet.tdms.common.util.ITLMSAccessConstants,com.hillspet.admin.common.util.HillspetUtil"%>
<%
boolean isInternal = false;
if(session.getAttribute("ANIMAL_BASE_DTO")!=null ){
AnimalBaseDTO animalSummaryDetailsDTO = (AnimalBaseDTO) session.getAttribute("ANIMAL_BASE_DTO");
if(animalSummaryDetailsDTO.getIsExternal()==0){
isInternal = true;
%>
<%
UserDTO dto = (UserDTO) session.getAttribute(IConstants.USER_OBJECT);
ArrayList userPermissionsList = dto.getUserPermissionList();
boolean isAdmin = dto.getRoleList().contains("" + IATMSConstants.ATMS_ADMIN_ROLE_ID);
//System.out.println("User Permission list is :" + dto.getUserPermissionList());
java.util.ArrayList rolesList = dto.getRoleList();
boolean isEUUser = HillspetUtil.checkEUAccess(request, dto);
ArrayList atmsRolesList=new ArrayList(Arrays.asList ("126","125","109","108","107","106","105","114","103","102","101","100","99","98","97","96","95","93","90","89","88","87","86","67","111","85","83","73","84","116","113", "127","128","130","132","133","134","135","136"));
boolean displayATMSMenus = !Collections.disjoint(rolesList, atmsRolesList);
%>
<script>
var breadcrumb = "<%=IATMSConstants.SEARCH_AND_VIEW%>";
Initialize and render the MenuBar when its elements are ready
to be scripted.
YAHOO.util.Event.onContentReady("vmenu", function () {
Instantiate a MenuBar: The first argument passed to the
constructor is the id of the element in the page
representing the MenuBar; the second is an object literal
of configuration properties.
var oMenuBar = new YAHOO.widget.MenuBar("vmenu", {
autosubmenudisplay: true,
hidedelay: 750,
lazyload: true });
Define an array of object literals, each containing
the data necessary to create a submenu.
var aSubmenuData = [
<%
if(rolesList.contains("67") || rolesList.contains("84") || rolesList.contains("118") || rolesList.contains("111") || rolesList.contains("90") || rolesList.contains("83") || rolesList.contains("85") || rolesList.contains("88") || rolesList.contains("82") || displayATMSMenus){
%>
id: "Tab1",
itemdata: [
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.CREATE_ANIMNAL_PERMISSION)) {%>
{ text: "Add Animal", url: "addAnimalGeneralInfoAction.do" },
<%}%>
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.CREATE_ANIMNAL_PERMISSION)) {%>
{ text: "Record Manual Feeding", url: "saveChangeDietAction.do?command=view",disabled:true },
<%}%>
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.SEARCH_ANIMNAL_PERMISSION)) {%>
{ text: "Search Animals", url: "animalSearchAction.do?command=view" },
<%}%>
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.SEARCH_IMAGES)) {%>
{ text: "Search Images",url: "animalImageSearchAction.do?command=view" },
<%}%>
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.SEARCH_IMAGES)) {%>
{ text: "Capture Images",url: "captureImageAction.do?command=view" },
<%}
if(!rolesList.contains("95") && !rolesList.contains("98")){ %>
{ text: "Animal Panels", url: "animalpanelList.do?command=view&searchFlag=fromMenu" },
<% }
if (dto.getUserPermissionList().contains(
AnimalConstants.AR_RECOMMEND_ANIMALS_PERMISSION)|| dto.getUserPermissionList().contains(
AnimalConstants.AR_VIEW_LIST_OF_RECOMMENDATION_PERMISSION)) {
%>
{ text: "Animal Recommendation",
submenu: {
id: "subtab11",
itemdata: [
<%
if (dto.getUserPermissionList().contains(AnimalConstants.AR_RECOMMEND_ANIMALS_PERMISSION)) {
%>
{ text: "Recommend Animals", url: "recommendedAnimal.do?command=view" },
//{ text: "Reserve / Un-reserve", url: "../ATMS/reserveUnreserve.html"},
<%}%>
<%
if (dto.getUserPermissionList().contains(
AnimalConstants.AR_RECOMMEND_ANIMALS_PERMISSION)|| dto.getUserPermissionList().contains(
AnimalConstants.AR_VIEW_LIST_OF_RECOMMENDATION_PERMISSION)) {
%>
{ text: "View Recommendations", url: "recommendedAnimalList.do?command=view"},
<%}%>
<%} else {%>
{ text: "Animal Recommendation", url: "#" , disabled: true},
<%}%>
{ text: "Move Animal",
submenu: {
id: "subtab15",
itemdata: [
<% if( isInternal ){%>
{ text: "Change Location", url: "manageAnimalLocationAction.do?command=viewHistory" },
<%}%>
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.ANML_DISPOSITION_PERMISSION)) {%>
{ text: "Adoption Record", url: "animalDispositionAction.do?command=view" },
<%}%>
id: "Tab2",
itemdata: [
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.SCHEDULE_FMT)) {%>
{ text: "Schedule Facility Maintenance Task ", url: "scheduleFMTActionForward.do?command=forward", disabled: false },
<%}%>
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.SCHEDULE_GROUP_TASK) || rolesList.contains("99")) {%>
{ text: "Schedule Task", url: "groupTaskSearchAction.do?command=view" },
<% } %>
{ text: "Daily Task List",
submenu: {
id: "subtab21",
itemdata: [
{ text: "Animal Care Task", url: "viewDailyTaskListAction.do?command=view&id=1&actSubTab=1"},
<%if(userPermissionsList.contains(IATMSConstants.SMCL_VIEW_SAMPLES)){%>
<%if(userPermissionsList.contains(IATMSConstants.SMCL_VIEW_SAMPLES)){%>
{ text: "Test Collections", url: "viewSMSmpleCollections.do?command=view&identifier=fromMenu" },
<% } %>
<%if(userPermissionsList.contains(IATMSConstants.SMCL_VIEW_SAMPLES)){%>
{ text: "Health Collections", url: "viewBioHealthSmplCollections.do?command=view&identifier=fromMenu" },
<%}%>
<%}%>
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.DAILY_TASK_LIST_MEDICAL_TESTS)) {%>
{ text: "Medical Test", url: "viewDailyTaskListAction.do?command=view&id=2"},
<%}%>
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.DAILY_TASK_LIST_MEDICAL_EXAMS)) {%>
{ text: "Medical Exams", url: "viewDailyTaskListAction.do?command=view&id=3"},
<%}%>
{ text: "Status Phenotype", url: "viewDailyTaskListAction.do?command=view&id=6"},
{ text: "Surgery/Procedure", url: "viewDailyTaskListAction.do?command=view&id=4"},
{ text: "Facility Maintenance ",submenu: {
id: "subtab777",itemdata: [
{ text: "Facility Maintenance Task",url: "viewDailyTaskListAction.do?command=view&id=5" },
{ text: "Search FMT Images",url: "searchFMTImageAction.do?command=view" }]
{ text: "Record Group ACTs", url: "RecordWeightFecalScoreAction.do?command=view"},
{ text: "Administer Medication", url: "recordMedicationAdministrationAction.do?command=forward" },
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.RECORD_OBSERVATION_PERMISSION)) {%>
{ text: "Observations",
submenu: {
id: "subtab222",
itemdata: [
{ text: "Search Observations",url: "recordObservationsAction.do?command=view" },
{ text: "Record Observations",url: "addAnimalObservationAction.do?command=add&page=record&source=monitor" },
<%}%>
{ text: "Shared Feed Diet Assignment", url: "RecordWeightFecalScoreAction.do?command=viewDefaultDiet" },
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.TRCL_PRINT_LABELS_LIST) || HillspetUtil.checkAccess(request,IATMSAccessConstants.HRCL_PRINT_LABELS_LIST)) {%>
{ text: "Print Labels",
submenu: {
id: "subtab211",
itemdata: [
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.TRCL_PRINT_LABELS_LIST)) {%>
{ text: "Test Collections", url: "printLabelsAction.do?command=viewTests"},
<%}%>
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.HRCL_PRINT_LABELS_LIST)) {%>
{ text: "Health Collections", url: "printLabelsAction.do?command=viewHealthCols"},
<%}%>
<%}%>
//{ text: "Controlled Drug Inventory", url: "#" , disabled: true},
<%}%>
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVE_SAMPLES )||
HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVE_HEALTH_SAMPLES) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111") || !dto.getRoleList().contains("123") && !dto.getRoleList().contains("82") ) {%>
id: "Tab3",
itemdata: [
{ text: "Sample Management",
submenu: {
id: "subtab41",
itemdata: [
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVE_SAMPLES )||
HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVE_HEALTH_SAMPLES) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111") || !dto.getRoleList().contains("131") ) {%>
{ text: "Samples Pending Receipt",
submenu: {
id: "subtabRecieve",
itemdata: [
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVE_SAMPLES)) {%>
{ text: "Biological Test Collections", url: "fetchLabLocationDetailsAction.do?command=forward" , disabled: false},
<%}%>
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVE_HEALTH_SAMPLES) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111")) {%>
{ text: "Biological Health Collections", url: "recieveTestSamplesAction.do?command=forward" , disabled: false},
<%}%>
<%if(!dto.getRoleList().contains("706")) {%>
{ text: "Non Biological Collections", url: "receiveNonBiologicalSamplesAction.do?command=viewNBSamples"}
<% } %>
<%}%>
<%
if(HillspetUtil.checkAccess(request,IATMSAccessConstants.LAB_SM_VIEW_RECEIVED_NON_BIO_SMPLS)||HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVED_HEALTH_SAMPLES) || HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVED_TEST_SAMPLES) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111")) {%>
{ text: "Samples Received",
submenu: {
id: "subtabRecieved",
itemdata: [
<%
if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVED_TEST_SAMPLES) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111")) {%>
{ text: "Biological Test Collections", url: "recievedTestSamplesAction.do?command=forward" , disabled: false},
<%}%>
<%
if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVED_HEALTH_SAMPLES) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111") ) {%>
{ text: "Biological Health Collections", url: "receivedBioTestSamplesAction.do?command=forward" , disabled: false},
<%}%>
<%
if(HillspetUtil.checkAccess(request,IATMSAccessConstants.LAB_SM_VIEW_RECEIVED_NON_BIO_SMPLS) ) {%>
{ text: "Non Biological Collections", url: "receivedNonBiologicalSamplesAction.do?command=viewNBSamples"}
<%}%>
<%}%>
<%if(HillspetUtil.checkAccess(request,"VIEW_SAMPLE_BATCHES") || dto.getRoleList().contains("85") || dto.getRoleList().contains("111")||dto.getRoleList().contains("706")) {%>
{ text: "Sample Batches", url: "viewSampleBatches.do?command=view" , disabled: false},
<%}%>
<% if (dto.getUserPermissionList().contains("OUTSIDE_LAB_SAMPLES_LIST") || dto.getRoleList().contains("131") || dto.getRoleList().contains("706")){ %>
{ text: "External Lab Samples", url: "outsideLabSamplesAction.do?command=view" , disabled: false},
<% } %>
<%
if (dto.getUserPermissionList().contains(
ICollectionKitConstants.GENERATE_CK_TEMPLATE) ) { %>
{ text: "Sample Collection Kits",
submenu: {
id: "subtab421",
itemdata: [
<%
if (dto.getUserPermissionList().contains(
ICollectionKitConstants.GENERATE_CK_TEMPLATE)){ %>
{ text: "Generate Collection Kits", url: "ckCreateTemplateAction.do?command=goToGenerateCkKits" , disabled: false},
<% } %>
<%
if (dto.getUserPermissionList().contains(
ICollectionKitConstants.GENERATE_CK_TEMPLATE) ){ %>
{ text: "Search & View", url: "ckCreateTemplateAction.do?command=goToCKSearch&fromMenu=true" },
<%}%>
<%}%>
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SMIN_VIEW_SAMPLE_INVENTORY) ||
HillspetUtil.checkAccess(request,IATMSAccessConstants.VIEW_FORMULA_INVENTORY) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111") || dto.getRoleList().contains("131")) {%>
{ text: "Sample Information",
submenu: {
id: "subtabSampleInventory",
itemdata: [
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SMIN_VIEW_SAMPLE_INVENTORY) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111")) {%>
{ text: "Biological Samples", url: "sampleInventoryAction.do?command=view" , disabled: false},
<%}%>
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.VIEW_FORMULA_INVENTORY)) {%>
{ text: "Non Biological Samples", url: "viewInventory.do?command=view&fromLab=Y" , disabled: false},
<%}%>
<% if ( HillspetUtil.checkAccess(request,"PENDING_ANALYSIS_REQUEST_LIST") ||
HillspetUtil.checkAccess(request,"PENDING_ANALYSIS_REQUEST_READ") ) {
%>
{ text: "Collected Samples New Request", url: "pendingAnalysisReqAction.do?command=view" , disabled: false },
<%}%>
<%}%>
]Hi,
actually this mapping only identifies those requests to be handled by teh JSF servlet. Its not a redirect.
I see several namespace definitions in your page, but no taglib reference. Wondering how this is supposed to work
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
I assume the next crash you will see is when you add JSF components to
<f:view>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1252"/>
<title>tt</title>
</head>
<body><h:form></h:form></body>
</html>
</f:view>
Note that mixing HTML elements with JSF is not a recommended approach
Frank -
I Have exactly the same error and I would like to have a solution.....
It happens when weblogic tries to compile a jsp page.
So the result on the browser is the original jsp page: The jsp tags are not parsed.
This problem exists on my Weblogic 4.5.1 sp11 (on unix) nut not on my weblogic 4.5.2 NT ?
Any idea ?
Thanks.
Chris Opacki <[email protected]> wrote:
>Has anyone had this error and found a way to fix it?
>
>java.lang.NoSuchMethodError: javax.servlet.jsp.PageContext: method
><init>(Ljavax/servlet/jsp/JspFactory;)V not found
-
Package javax.servlet.jsp does not exist.
dear all!
I've one program which import javax.servlet.jsp.* as one of the package to be used in
the program, and I am using j2sdk 1.4.0_01 to compiled it.
However I got this error message : package javax.servlet.jsp does not exist.
Where does it wrong?.
error message like :
logisticslib.java:6: package javax.servlet.jsp does not exist
import javax.servlet.jsp.*;
^
logisticslib.java:201: cannot resolve symbol
symbol : class JspWriter
location: class elogistic.db.logisticslib
public void getServiceInfo(JspWriter out, String SQL) {You need a J2EE implementation, I recomemend Tomcat, you also need to put the .jar w/ the implementation in in your classpath.
-
I've written a web service to retrieve informations from the database based on a client's criteria. The service endpoint is the following:
public WSMissionBean getProfiles( WSMissionBean mission, WSProfileBean profile ) throws java.rmi.RemoteException;
The WSMissionBean object is as follows:
public class WSMissionBean implements Serializable {
private WSProfileBean[] lstProfile;
private WSProfileBean[] lstProfileMoinsQualifie;
private WSProfileBean[] lstProfileByPoste;
private WSProfileBean[] lstProfileByCompetences;
And WSProfileBean is an object containing just simple data types. The whole idea is to have an object which, besides the criteria entered by a client, holds differents arrays, each of which answers a certain number of criteria required by the client.
The service is deployed correctly, and I can access it, from a stand alone simple program, to retrieve data from the database as expected. The big problem is when I try to show the results in a JSP page! And the error message is:
javax.servlet.jsp.el.ELException: Attempt to coerce a value of type "[Lclient.WSProfileBean;" to type "java.lang.reflect.Array"
My JSP pages are as follows:
<table border=0 cellspacing=1 cellpadding=3>
<%-- sessionScope.mission.profiles contain data return by the web service, and gr:listRenderer is a tag file to show the result--%>
<gr:listRenderer list="${sessionScope.mission.profiles}" />
</table>
And in the tag file, I have
<%@ attribute name="list" required="true" type="java.lang.reflect.Array" %>
<c:forEach var="profile" begin="0" items="${list}">
<tr>
<c:set var="profileId" value="${profile.id}" />
<c:if test="${profile.selected}" >
<td bgcolor="#0099FF"><input type="checkbox" name="${profileId}" checked="checked"/></td>
</c:if>
<c:if test="${!profile.selected}" >
<td bgcolor="#0099FF"><input type="checkbox" name="${profileId}"/></td>
</c:if>
<td bgcolor="#0099FF"><font face="Verdana, Arial" size="2">${profile.nom}</font></td>
<td bgcolor="#0099FF"><font face="Verdana, Arial" size="2">${profile.preNom}</font></td>
<td bgcolor="#0099FF"><font face="Verdana, Arial" size="2">${profile.fonction}</font></td>
<td bgcolor="#0099FF"><font face="Verdana, Arial" size="2">${profile.competences}</font></td>
<td bgcolor="#0099FF"><font face="Verdana, Arial" size="2">${profile.nbAnneeExperience}</font></td>
<td bgcolor="#0099FF"><font face="Verdana, Arial" size="2"><a target="_blank" href="./doc/myCV.html"><image border="0" alt="CV d�taill�" src="./image/cv.gif"/></a></font></td>
</tr>
</c:forEach>
I've been searching desperately for days on the web for an answer, but to no result! I appreciate if someone can give me some advice, explanation... Thanks in advance
Van Binhjava.lang.reflect.Array is NOT a class which represents an array.
It is a class that provides several static methods for using on arrays.
The type of your attribute should be Object[] - an array of Objects.
That will be compatible with an array of any sort of object (but not with an int[] for instance)
<%@ attribute name="list" required="true" type="java.lang.Object[]" %>
Maybe you are looking for
-
How do I mount a disk image that won't open?
I have an external drive Samsung 500 GB that was failing. I think my MacBook Air (10.6.8) caused it to fail because it wouldn't allow me to eject the disk even though I forced quit all programs. I eventually had to just unplug the drive and this caus
-
Last night i was downloading the new update for the Iphone4 on my laptop through Itunes. After the download was done, it was starting to install, and then an error came up and didnt get a chance to check it. Now my Iphone is stuck on the screen wit
-
Hey Gurus, I am extracting data using datasource 2lis_02_itm and when it gets into PSA there are many records that are doubled up while in RSA3 on the ECC side it shows the correct amount. What could be the problem? Thanks
-
My son downloaded Safari on both my home and work computers. I had to remove it from my work computer. After doing so, when opening docs in email I was no longer directed to internet when clicking on hyperlinks. Please advise how to correct the hyper
-
Hi, I would like to know if there is any method in the JavaMail API to retrieve the only email address from an encoded "From" header without using, splits, regexs, etc. Example: Using aMimeMessage.getFrom()[0].toString() the output is +=?iso-8859-1?Q