Regarding Taglibs
I'm curious to know is it possible to write a Tag lib that outputs HTML along with JSP scriplet code that then gets evaluated after the Tag lib is. So in other words if I wanted to generate from the tag lib:
<Select name="test">
<Option value="a"><%= getLocalizedMessage("a") %></Option>
<Option value="b"><%= getLocalizedMessage("b") %></Option>
</Select>
and then somehow, the scriplet code also gets evaluated.
my guess is this is not possible as the scriplet code needs to be compiled into a .class file and the fact that it's dynamically generated will not trigger the .jsp to interpret it (b/c the .jsp has already been precompiled into a .class file).
am i wrong? or have any of you done something similar or know of any resources regarding info on this matter?
thanks in advance,
Collin
You are absolutely right. Meaning it can't be done precisely for the reasons you stated.
Similar Messages
-
How to deploy Reports which is saved as JSP in Reports 9i , in Tomcat serve
Hi,
I have saved rdf as JSP in Reports 9i and try to deploy in Tomcat server. Initially i got some error regarding taglib, RWException.class. But i put Oracle9IAS classes in /WEB_INF/CLASS folder so able to run JSP.
I am Giving URL As
http://localhost:8080/examples/jsp/IN_FREQUENT_DIALLEDNUMBER.jsp?server=HTP&userid=eulogy/eulogy@eulfenny&destype=cache&desformat=HTML¶mform=yes
If i am not giving Server=HTP, then getting ERROR
Reports Error Page
Wed Feb 18 14:34:09 IST 2004
javax.servlet.jsp.JspException: REP-51000: Reports Server name is not specified
If I am giving Server=HTP
Reports Error Page
Wed Feb 18 14:35:15 IST 2004
javax.servlet.jsp.JspException: com.sun.corba.se.internal.Interceptors.PIORB
I have placed this class in /web-IF/Class folder, After all i am getting this error.
But My requirment is to run the Jsp without giving Server=HTP
Any One can suggest, It is possible to run this JSP in Tomcat without Using Reports Server(9IAS BC4J instance).
Appreciate all your reply & Thanks In Advance.
Regards
RajeevH,
reports cannot be migrated at this time, indeed. -
Question regarding JSTL and function calls
Hello
I'm quite new to JSTL and I'm having a problem accessing a function when I want to pass argument to that function.
Im using MVC where my M (model.jsp) can be accest from my V (view.jsp) by doing ${model.(parameter/some function) }
in my M I have a couple of getMethods() (example: getThisInfo() ) and som control methods like "isSomethingValid(arg1)"
my question is lets say I want to access my "isSomethingValid(arg1)" and arg1 should be the value of "getThisInfo()" I thought I could do like
${model.somethingValid($model.thisInfo)} but it isnt working I get:
"Unable to parse EL function ${model.somethingValid(model.thisInfo)}"
I know that the syntax above is a mix of scriptlet and JSTL but I dont know how to or if its even possible to achieve this?
Thanks for helping me!
Best Regards/DSBy default, EL can only access getters and setters on objects.
It can not execute general methods on an object.
You can define function libraries that call static methods
You have to write the method as static, and then declare it in a tld.
public boolean checkValid(Model m, Info i){ ...}
and then you could invoke it something like
<%@ taglib uri="myfunctionstaglib" prefix="myfunctions" %>
${myfunctions:checkValid(model, model.thisInfo)} -
JDeveloper 10.1.3.2 pdk-struts taglib doesn't work
Hi all,
I just installed new jDev version (10.1.3.2) and I migrated all projects and setting from 10.1.3.1, but I still got a little/big problem with PDK-Struts taglib.
In the previous jDev version portlet add-in wasn't include and to use pdk-struts integrate in the IDE I managed it as a JSP TagLib and everythings works fine.
In new version the taglib in native and ready (it doesn't required to be registered!) to use but when I'm building the project I found and exception
Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/FormTag
mind!!!
- the same project in version 10.1.3.1 has no problem to build
- I checked and seleted all the libraries required
Anyone knows why the new jDev version doesn't work??
please someone helpMe!!!!
Regards
spig@Yea, I had those "is not a registered namespace in TLD" errors too, but regarding Struts HTML... I had to go to the Project properties and add the library.. (It went missing during conversion)
Its frustrating and I know how you feel. Try this, try that and still doesnt work. My advice is to remove taglibs. Close Jdev. Open Jdev add them again. It have to work. Also it might help to delete class directories. Also be aware that some libraries are kept in "\WEB-INF\lib" and during conversion they remained (those libraries were from old Jdev you have to replace them with new version)
So, all in all keep tryng, it have to work :)
Good luck... -
Jdev 10.1.3.0.4 jsp 2.0 taglib support
hi,
i am trying to use ZK jsp tag library(zkoss.org) for a project. ZK taglib needs jsp2.0 support. i have create a web project with jsp2.0 and servlet2.4.
then i install taglib to the project and put required libraries under web-inf/lib.
here is a simple jsp: (just imports taglib)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://www.zkoss.org/dsp/web/core" prefix="zkjsp-functions"%>
<%@ taglib uri="http://www.zkoss.org/jsp/zul" prefix="zuljsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Hello ZK World</title>
</head>
<body></body>
</html>
when i rebuild the project i get:
Error(4): Invalid body-content value in TLD: SCRİPTLESS.
Error(5): Invalid body-content value in TLD: SCRİPTLESS.
Error(5): "http://www.zkoss.org/jsp/zul" is not a registered TLD namespace
am i missing something?
does jdeveloper 10g really supports jsp2.0 taglibs?
regards, Engin.hi,
jsp tag library definitions exist both at global jsp tag libs and project tag libs.
my pc regional setting are turkish. i have changed then to english. then the error changed to:
Error(4): Invalid body-content value in TLD: NONE.
Error(5): Invalid body-content value in TLD: NONE.
i guess the taglib file contains none value while its schema definition does not allow this? could it be the reason for last error? i found some none values at tld file.
regards, engin. -
In xml file taglib tag can't read in myEclipse
My source code of web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<!-- Action servlet configuration -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>3</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Action servlet mapping -->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!-- Welcome file list -->
<welcome-file-list>
<welcome-file>indexMini.jsp</welcome-file>
</welcome-file-list>
<!-- Struts tag library descriptor -->
<taglib>
<taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
</web-app>Here under the <!-- Struts tag library descriptor -->
the first tag
<taglib> can't read myEclipse.
Can you please help me?Hello,
I have tried my best cleaning up the wiring, but it's still pretty messy. I attach the complete program.
My problem (still not solved) is that since EA needs to be measured at very high rate, I want to write it as binary data. But I cannot make it show me the correct data afterwards, with a different program, that doesn't matter.
I would also like to know how to convert this saved data to MatLab... any suggestions? (should I post this in a new thread?)
Regards,
Usuario
Attachments:
program_00.vi 297 KB -
Taglib problem: Cannot parse custom tag with short name table
Hello!
I am having problems deploying a jsp tag in web as. The same war file works fine on websphere, jboss. SAP web as seems to be complaining about the short name in the tld.
Can any body me to any known web as issues with jsp tags?
Thanks
[code]
Application error occurs during processing the request.
Details: com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException: Internal error while parsing JSP page /usr/sap/J2E/JC00/j2ee/cluster/server0/apps/sap.com/dispear/servlet_jsp/disp/root/test.jsp.
at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:85)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.getClassName(JSPServlet.java:207)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.compileAndGetClassName(JSPServlet.java:369)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:164)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
Caused by: com.sap.engine.services.servlets_jsp.lib.jspparser.exceptions.JspParseException: Cannot parse custom tag with short name table.
at com.sap.engine.services.servlets_jsp.lib.jspparser.syntax.xmlsyntax.CustomJspTag.action(CustomJspTag.java:129)
at com.sap.engine.services.servlets_jsp.lib.jspparser.syntax.ElementCollection.action(ElementCollection.java:52)
at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.initParser(JSPParser.java:307)
at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:74)
... 18 more
Caused by: com.sap.engine.services.servlets_jsp.lib.jspparser.exceptions.JspParseException: Unknown class name java.lang.Object.
at com.sap.engine.services.servlets_jsp.lib.jspparser.taglib.TagBeginGenerator.convertString(TagBeginGenerator.java:365)
at com.sap.engine.services.servlets_jsp.lib.jspparser.taglib.TagBeginGenerator.generateSetters(TagBeginGenerator.java:187)
at com.sap.engine.services.servlets_jsp.lib.jspparser.taglib.TagBeginGenerator.generateServiceMethodStatements(TagBeginGenerator.java:212)
at com.sap.engine.services.servlets_jsp.lib.jspparser.taglib.TagBeginGenerator.generate(TagBeginGenerator.java:269)
at com.sap.engine.services.servlets_jsp.lib.jspparser.syntax.xmlsyntax.CustomJspTag.action(CustomJspTag.java:127)
... 21 more
[/code]Hi Ray,
I am facing similar kind of issue.
Can you please help to resolve it?
Thanks in advance.
Logs are as below [Here I am using standard tag lib]::
Caused by: com.sap.engine.services.servlets_jsp.jspparser_api.exception.JspParseException: Cannot parse custom tag with short name [out].
at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.xmlsyntax.CustomJspTag.action(CustomJspTag.java:183)
at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.ElementCollection.action(ElementCollection.java:59)
at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.JspIncludeDirective.action(JspIncludeDirective.java:51)
at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.ElementCollection.action(ElementCollection.java:59)
at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.JspElement.customTagAction(JspElement.java:994)
at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.JspElement.action(JspElement.java:228)
at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.ElementCollection.action(ElementCollection.java:59)
at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.ElementCollection.action(ElementCollection.java:69)
at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.GenerateJavaFile.generateJavaFile(GenerateJavaFile.java:72)
at com.sap.engine.services.servlets_jsp.server.jsp.JSPProcessor.parse(JSPProcessor.java:270)
at com.sap.engine.services.servlets_jsp.server.jsp.JSPProcessor.generateJavaFile(JSPProcessor.java:194)
at com.sap.engine.services.servlets_jsp.server.jsp.JSPProcessor.parse(JSPProcessor.java:126)
at com.sap.engine.services.servlets_jsp.jspparser_api.JSPChecker.getClassName(JSPChecker.java:319)
at com.sap.engine.services.servlets_jsp.jspparser_api.JSPChecker.compileAndGetClassName(JSPChecker.java:248)
at com.sap.engine.services.servlets_jsp.jspparser_api.JSPChecker.getClassNameForProduction(JSPChecker.java:178)
at com.sap.engine.services.servlets_jsp.jspparser_api.JSPChecker.processJSPRequest(JSPChecker.java:109)
at com.sap.engine.services.servlets_jsp.jspparser_api.JspParser.generateJspClass(JspParser.java:154)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:193)
... 47 more
Caused by: com.sap.engine.services.servlets_jsp.jspparser_api.exception.JspParseException: Attribute [value] of [<c:out>] can accept only static values.
at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.taglib.TagBeginGenerator.calculateAttributeValue(TagBeginGenerator.java:476)
at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.taglib.TagBeginGenerator.generateSetters(TagBeginGenerator.java:394)
at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.taglib.TagBeginGenerator.generateServiceMethodStatements(TagBeginGenerator.java:562)
at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.taglib.TagBeginGenerator.generate(TagBeginGenerator.java:678)
at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.xmlsyntax.CustomJspTag.action(CustomJspTag.java:181)
... 64 more
Regards,
Sankalp -
Facing a Problem regarding a StrutsHelloWorld Application
i have developed a HelloWorld Application using Struts FrameWork & i m using JRun application Server .. when i deployed the HelloWorld on server i hve found following Error Message
1 error(s) found in /hello.jsp
(6) The html tag does not have a locale attribute
while my hello.jsp file is following
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html:html locale="true">
<head>
<title><bean:message key="hello.jsp.title"/></title>
<html:base/>
</head>
<body bgcolor="white"><p>
<h2><bean:message key="hello.jsp.page.heading"/></h2><p>
<html:errors/><p>
<logic:present name="examples.hello" scope="request">
<h2>
Hello <bean:write name="examples.hello" property="person" />!<p>
</h2>
</logic:present>
<html:form action="/HelloWorld.do?action=gotName" focus="username" >
<bean:message key="hello.jsp.prompt.person"/>
<html:text property="person" size="16" maxlength="16"/><br>
<html:submit property="submit" value="Submit"/>
<html:reset/>
</html:form><br>
<html:img page="/struts-power.gif" alt="Powered by Struts"/>
</body>
</html:html>Although i have supplied all of the necessary files to the server
can any body guide me regarding this
thx in Adv
Regrads
AbrarThanks for your reply but let me define it more preciesily-
conversion factor is already maintained as-
Base UOM = NOS & Alt UOM=M with the relation-
M=NOS
but during raising MR to issue material by MB21 ,system is by default picking NOS as base UOM.
Hence we want to open a seperate item code for the same material ,which will have M as UOM.
But after getting new code ,it is required to transfer all stock in previous code ,maintained into NOS ,to be trasfered into new code with UOM as M.
Pls advise ,is it possible to do so...??
Thanks -
Hi
I'm developing portlets with JAVA EE 5, Tomcat 5.5.x and Spring Framework 2.0.
JSP + JSTL are used for views.
In my jsp pages I have a line
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
which work fine and I can use the core taglib and its tags.
However, if I read the Java EE 5 manual at http://java.sun.com/javaee/5/docs/tutorial/doc/JSPIntro9.html#wp73319 (at the end) it says that:
The absolute URIs for the JSTL library are as follows:
* Core: http://java.sun.com/jsp/jstl/core
This URI doesn't work for me. Is this a problem with Tomcat 5.5.9 or am I using wrong jar somewhere? I think jstl.jar is the one to look for - which version should I use and how do I know which version I have?
Error:
Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /WEB-INF/jsp/index.jsp(1,1) 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
with best regards FredrikThe difference is between JSTL1.0 and JSTL1.1
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> = JSTL1.0
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/jsp/core" %> = JSTL1.1
You can check the version by looking at the file Manifest.mf in the META-INF file of standard.jar or jstl.jar
You most probably have JSTL1.0 installed. -
Error in parsing taglib 'customtag' tag in web.xml or .tld file of the tagl
Hi
While execution Portal application, I am getting error," Error in parsing taglib 'customtag' tag in web.xml or .tld file of the taglib library."
Complete stack is
>>#1.5 #005056AE006400690000002000000A440004BA8F3ECB004A#1331024303056#com.sap.portal.prt.runtime#sap.com/irj#com.sap.portal.prt.runtime#M1005000#6994##99593FD6676911E1807500000041A352#99593fd6676911e1807500000041a352-0#99593fd6676911e1807500000041a352#SAPEngine_Application_Thread[impl:3]_31##0#0#Error##Java###02:28_06/03/12_0020_4301650
[EXCEPTION]
#1#com.sapportals.portal.prt.servlets_jsp.server.jsp.ParseException: Error in parsing taglib 'customtag' tag in web.xml or .tld file of the taglib library.
at com.sapportals.portal.prt.servlets_jsp.server.jsp.syntax.JspTaglibDirective.verifyAttributes(JspTaglibDirective.java:189)
at com.sapportals.portal.prt.servlets_jsp.server.jsp.syntax.JspDirective.parse0(JspDirective.java:162)
at com.sapportals.portal.prt.servlets_jsp.server.jsp.syntax.JspDirective.parse(JspDirective.java:117)
at com.sapportals.portal.prt.servlets_jsp.server.jsp.syntax.ElementCollection.parse(ElementCollection.java:86)
at com.sapportals.portal.prt.servlets_jsp.server.jsp.syntax.ParserImpl.parse(ParserImpl.java:595)
at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:2170)
at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.compile(JSPCompiler.java:81)
at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:140)
at com.sapportals.portal.prt.core.broker.JSPComponentItem.compileJSP(JSPComponentItem.java:291)
at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:141)
at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:355)
at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:934)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:435)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:527)
at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:89)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:232)
at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)
at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:133)
at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
at com.sapportals.portal.prt.component.AbstractPortalComponent.doPreview(AbstractPortalComponent.java:240)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:168)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:545)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:434)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1060)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
Regards
PratyushHi,
See the following guide and make sure to carefully follow all instructions.
[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40599e45-8cf9-2910-cbaa-d4cd8e15ff34?QuickLink=index&overridelayout=true&14770392545262]
Regards,
Alex -
Error in parsing taglib taglib tag in web.xml or .tld file of the taglib
Hi All,
I have added ResourceBundle.tld file in following path : /PORTAL-INF/taglib/tld/
I have added portalapp.xml file following entry :
<property name="/PORTAL-INF/taglib/tld/ResourceBundle.tld" value="/PORTAL-INF/taglib/tld/ResourceBundle.tld"/>
I have added jsp file following entry :
<%@ taglib uri="/PORTAL-INF/taglib/tld/ResourceBundle.tld" prefix="bundle" %>
I am getting the following the error: Error in parsing taglib taglib tag in web.xml or .tld file of the taglib library
can you tell me where i am giving the wrong.
Regards
Sivahi rabih,
in jsp..
<%@ taglib uri="tagLib" prefix="bundle" %>
in portalapp.xml
<component-profile>
<property name="tagLib" value="/PORTAL-INF/taglib/tld/ResourceBundle.tld"/>
</component-profile>
it may help u..
regards,
Chinnadurai.R -
Hello,
I'm trying to build a small webapplication in JSP that is showing a table in a browser. I'm using a tag from the Business Components Data Tags library.
So in the JSP-page I have:
<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
<jbo:ApplicationModule id="MyAppModule" definition="MyProject.MyAppModuleSession" releasemode="Stateful" />
and then I create a viewobject to access the data.
The webapp runs fine in the JDeveloper environment, but when I deploy the application to a standalone OC4J (using a WAR as deployment profile) and try to run the aplication, the browser shows an error message stating that the library oracle/jbo/... can't be found.
I copied all jars/libraries I could find to the standalone oc4j directory "applib", and I included all possible contributors to the WAR-file, but still no luck. Any clues?
Regards,
JeroenHow To Update Oracle ADF Runtime Libraries to Oracle Application Server 10g
http://www.oracle.com/technology/products/jdev/howtos/10g/adf_runtime_update_howto.html -
In Jsp TagLib how can I get the Attribute value (like JavaBean) in jsp
Dear Friends,
TagLib how can I get the Attribute value (like JavaBean) in jsp .
I do this thing.
public void setPageContext(PageContext p) {
pc = p;
pc.setAttribute("id", new String("1") );
pc.setAttribute("first_name",new String("Siddharth")); //,pc.SESSION_SCOPE);
pc.setAttribute("last_name", new String("singh"));
but in Jsp
<td>
<%=pageContext.getAttribute("first_name"); %>
cause null is returing.
Pls HELP me
with regards
Siddharth SinghFirst, there is no need to pass in the page context to the tag. It already is present. How you get to it depends on what type of tag:
Using [url http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/tagext/SimpleTagSupport.html]SimpleTagSupport
public class MyTag extends SimpleTagSupport
public void doTag()
PageContext pc = (PageContext)getJspContext();
pc.setAttribute("first_name", "Siddharth");
pc.setAttribute("last_name", "Singh");
pc.setAttribute("id", "1");
}Using [url http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/tagext/TagSupport.html]TagSupport or it's subclass [url http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/tagext/BodyTagSupport.html]BodyTagSupport the page context is aleady declared as an implicit object:
public class MyTag extends TagSupport
public void doStartTag()
pageContext.setAttribute("first_name", "Siddharth");
pageContext.setAttribute("last_name", "Singh");
pageContext.setAttribute("id", "1");
}In each case, this sort of thing should work:
<mytags:MyTag />
<%= pageContext.getAttribute("first_name") %>I -
Jsp taglibs and jsp commands...
Another question about taglibs...
If I want to use the body in a tag together with a class which is used in the tag code.
For example I want to do the following:
<foo:listStudents>
<%= student.fname %> <%= student.lname %> <%= student.id %>
</foo:listStudents>
Do I have to use the TagExtraInfo or? The class Student (student) is ofcourse declared and used in the tag.
Regards Per JonssonI am also on the lookout for this. i have posted many times but no one has answered my question till now. if you get to know the answer do inform me at
[email protected]
Regards
Ramesh Kesavanarayanan -
Regarding history.go() in jsp
hi,
i have 2 jsps the first jsp contains some search creteria after giving the search creteria and click search button the results will display in the same page as a table. after the results one export option also is there if i clilck the results will export to ascii file format and dialog box will come asking open or save. after doing this operation. in the results page that is first page one column has hyperlink if i click that link i will go to next jsp containg details of that particular id. in the second page one button name back will be there if i click that button i must come back to the first page containg the previous search results. i give javascript:history.go(-1) in the button onclick event then its going to the first page but the results and the search creterial is not there, means its going to previous to previous screen. please suggest me in this regards.
Thanks in advanceThere is a logger taglib available (on Jakarta) which works with log4j. You can make use of that.
xH4x0r
Maybe you are looking for
-
Hello - I'm about to purchase an Airport Express to connect to my home stereo receiver via audio-cable. Planning to be able to output the sound usually coming out of my iPad thru my big stereo system, from Apps such as YouTube, Pandora, TuneIn Radio,
-
Using a file as a source of images for a slideshow in CS6
I was wondering if someone might be able to help me create a slideshow that uses a file to pull images from rather than calling on an individual image source code. As it is right now, I have a basic working jquery slideshow. What I am wanting to get
-
I downloaded from Safari Extension Gallery "awesome Screenshot" couple of days ago and then decided to remove it from the system . Since then the awesome icon does not appear But my Safari is suffering as it is not loading the pages.Please help
-
Question about script in sun studio creator2 and netbean6.1
Hi, I have a quick question I have started a project by using sun studio creator2, the main page contains following script, it works perfectly fine. <script type="text/javascript"> function getUser() var net = new ActiveXObject("wscript.network"); do
-
Create a java SMTP Server on localhost
URGENT !!! Can Anybody here help me to find out the ways to create a SMTP server (usinf RFC 2821 )which can connect to any email client such as Outlook Express?... thanks..