9iAS JSP/Tag Library Help needed
Info: We have 9iAS 9.0.2.0.0 running on Sun Solaris (Sparc). I have been to Sun class for JSP/Servlets (SL-314) and have an Iterator custom tag that works fine in Tomcat 4.0. I am compiling on a Windows NT machine using Ant and JDK 1.3. I then deploy using Oracle Enterprise Manager (web interface to 9iAS) and use the Deploy WAR option. The only examples I can find that came with 9iAS use JSP 1.1 Taglib code and they work. Am I missing something, or does 9iAS (9.0.2.0.0) not fully support JSP 1.2 / Servlet 2.3, specifically the 1.2 tag library API?
Any help would be appreciated...
Code Snippets from failing JSP:
<%@ taglib uri="hr/taglib" prefix="hr" %>
<hr:iterator id="empdata" listName="employeeList">
<li><jsp:getProperty name="empdata" property="name"/> (<jsp:getProperty name="empdata" property="depth"/>)</li>
</hr:iterator>
This generates the following 500 Internal Server error:
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: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)
Sorry techie_sudhanshu .. i was away for the month with no internet access and just got back... here's an example :
<display:table name="CUSTOMERS" pagesize="10" id="customer" sort="list" defaultsort="3" requestURI="/customer.do?submit=Search" class="model">
<display:setProperty name="paging.banner.placement" value="both"/>
<display:setProperty name="paging.banner.some_items_found" value=""/>
<display:setProperty name="paging.banner.one_item_found" value=""/>
<display:setProperty name="paging.banner.all_items_found" value=""/>
<display:setProperty name="paging.banner.no_items_found" value=""/>
<display:setProperty name="paging.banner.onepage" value=""/>
<display:setProperty name="basic.msg.empty_list"><center>No Record(s) was found.</center></display:setProperty>
<display:column title="Name" sortable="false"><c:out value="${customer.name}"/></display:column>
<display:column title="Address" sortable="false"><c:out value="${customer.address}"/></display:column>
</display:table>The line where `<display:setProperty name="paging.banner.placement" value="both"/>` was specify solves your problem. By setting it to BOTH it will appear above and bottom of the paging table.
Similar Messages
-
Need help on Flex JSP tag library
I am new to Flex and currently developing portlets where I
need to integrate Flex into JSP pages. According to various
documents from Adobe and other online discussions, this can be done
with Flex JSP tag library. It appears that the taglib used to be a
separate package that you could download but no longer available (I
was only able to find a few broken links). Instead, the library is
now part of the LiveCycle DS product according to Adobe. However, I
have downloaded LiveCycle DS and couldn't find the necessary taglib
in the package. Your help will be highly appreciated.I'm trying to do the same thing you are. Its mentioned that
the library is part of LifeCycle DS but I couldn't find it in there
either.
Here's a site I found where you can download
FlexModule_j2ee.zip It includes some instructions too.
http://opensource.adobe.com/wiki/display/flexsdk/Downloads
Here are some other links which may be helpful.
http://livedocs.adobe.com/flex/3/html/help.html?content=apache_2.html
http://labs.adobe.com/wiki/index.php/LiveCycle_Data_Services:Setting_up_an_SDK,_Compilers, _and_Flex_Builder
http://download.macromedia.com/pub/labs/flex_mod_apache/flex_mod_apache.pdf -
Is a JSP Tag Library providing Oracle Financial look and feel available
We are going to use Oracle Financial as part of our future application.
That is why other parts of it (which we plan to develop using JDeveloper)
have to have the same Look and Feel.
Is a JSP Tag Library that provides Oracle Financial Look and Feel available?Oracle Applications use BC4J, UIX, and JDeveloper.
The UIX framework implements the Oracle "Browser Look And Feel" (BLAF) that our Oracle Applications self-service applications use.
The UIX JSP tag library lets JSP developers do the same. -
EP 6 SP2 and Domino JSP Tag library
I have been able to establish DIIOP connection between EP6 and Domino based on the workaround posted in this form. Calling the lotus.domino.* classes work just fine.
However I haven't been able to get EP6 to work consistently with the Domino JSP tag library.
Has anyone been successful in using the Domino JSP tag library?
Thanks for sharing any insights/workarounds.Hello Luc,
yes. Pls. perform the following steps:
(1) add a reference to the taglib in portalapp.xml component profile
<component name="default">
<component-config>
<property name="ClassName" value="com.test.LotusJSPTest">
</property>
<property name="SecurityZone" value="com.test/high_safety">
</property>
</component-config>
<component-profile>
<property name="lotusTagLibary" value="domtags.tld">
</property>
<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld">
</property>
</component-profile>
</component>
(2) add a reference in the JSP
<%@ taglib uri="lotusTagLibary" prefix="domino" %>
(3) then use the taglib as documented, e.g.:
<domino:session id="session1" host ="p70448.wdf.sap.corp:8000" user="*webuser">
<domino:db id="db1" dbname="portalchallenge.nsf" >
<domino:view id="view1" viewname="view103">
<domino:viewloop id="loop">
<tr>
<td style="border: 1px solid #000000; padding: 2px; text-align:right"><%=loop.getPosition('.')%></td>
<td style="border: 1px solid #000000; padding: 2px"><domino:item name="txt_KeywordCode"/></td>
<td style="border: 1px solid #000000; padding: 2px"><domino:item name="txt_Description"/></td>
<td style="border: 1px solid #000000; padding: 2px"><domino:item name="txt_List"/></td>
</tr>
</domino:viewloop>
</domino:view>
</domino:db>
</domino:session>
The easiest way to start is to make domtags.jar, domtags.tld, domutils.tld and NCSO.jar part of your portal application.
Regards
Michael -
JSP Tag Library not being parsed
I have a tag library that has its tld, the corresponding class file, but
if I put it in defaultWebApp (under Portal 7) it doesn't parse. If I put
it under a sampleportal it can't parse the deployment descriptor. Is this
a problem inside my .tld? All this stuff worked in WLS6.1sp2/Portal4.
weblogic.servlet.jsp.JspException: (line 4): Could not parse deployment
descriptor: java.io.IOException: cannot resolve 'pstream' into a valid tag
library
at weblogic.servlet.jsp.JspLexer.jspException(JspLexer.java:872)
at
weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:50
16)
at
weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:4840)
at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4686)
at
weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2192)
at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1978)
at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1851)
at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1117)
at weblogic.servlet.jsp.JspParser.doit(JspParser.java:90)
at weblogic.servlet.jsp.JspParser.parse(JspParser.java:212)
at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
Thanks,
Steve
Steve,
The solution is simple. Just correct the path for the .tld file in your web.xml
file. the path should be off the Web application root.
Hope this helps
Parag
[email protected] wrote:
>I have a tag library that has its tld, the corresponding class file,
>but
>if I put it in defaultWebApp (under Portal 7) it doesn't parse. If I
>put
>it under a sampleportal it can't parse the deployment descriptor. Is
>this
>a problem inside my .tld? All this stuff worked in WLS6.1sp2/Portal4.
>
>
>weblogic.servlet.jsp.JspException: (line 4): Could not parse deployment
>
>descriptor: java.io.IOException: cannot resolve 'pstream' into a valid
>tag
>library
> at weblogic.servlet.jsp.JspLexer.jspException(JspLexer.java:872)
> at
>weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:50
>16)
> at
>weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:4840)
> at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4686)
> at
>weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2192)
> at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1978)
> at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1851)
> at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1117)
> at weblogic.servlet.jsp.JspParser.doit(JspParser.java:90)
> at weblogic.servlet.jsp.JspParser.parse(JspParser.java:212)
> at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
>
>
>Thanks,
>Steve
-
which library is missing now... i haven't seen this error before... i have included all the libraries: ADF,JSTL in the JSP Tag Libraries (in the project properties)... any suggestion pls?>
i resolve the problem... i restarted the jdeveloper and the i dont have that error anymore.. maybe my jdeveloper is tired and need some rest :) thanks anyway :)
-
I'm working with an ISA jsp and have some questions about the <isa:iterate> tag. For example does it work with a JCO.Table object? and if so, what other kinds of tables can it use?
Can anybody point me to some documentation on this tag library?
Thanks,
BrentHi,
I assume you are using ISA 4.0. You can use "com.sapmarkets.isa.core.util.table.ResultData" class with isa:iterate tag. You can read "ISA dev and ext guide" for this issue.
Best regards,
Altug Bayram -
Standard JSP Tag Library ---- beginner
Hi
i'm using Jdeveloper 9.0.3 to develop my JSP pages.
i'm a begiiner in JSP world & I want to use jsp tag libraries.
i've tried this :
<%@taglib uri="/lib/core.jar" prefix="c" %>
and there were 2 errors :
Error(5): java.io.FileNotFoundException: META-INF/taglib.tld not found in the jar file
Error(5): Unable to load taghandler class: /lib/core.jar
what is (taglib.tld) and how could i found it ? -- error 1
how to make it possible to enable to load the taghandler class:/lib/core.jar ? -- error 2
thank you<%@taglib uri="/lib/core.jar" prefix="c" %>
Wrong.
The URI has to match the value in the TLD, which you
will find inside the standard.jar in the Jakarta
release.
Which JSTL are you using? The URI for the 1.0 JSTL
standard, which is valid for servlet spec 2.3 and JSP
spec 1.2, is http://java.sun.com/jstl/core for the
core library.
The URI for the 1.1 JSTL standard, which is valid for
servlet spec 2.4 and JSP spec 1.3, is
http://java.sun.com/jsp/jstl/core.
Put the standard.jar and jstl.jar in your WEB-INF/lib
directory and use the appropriate URI in your JSPs.
Don't have a <taglib> entry in your web.xml. Tomcat
will find the TLD in the JAR file by automatic
discovery if you're using Tomcat 4.1 or later.
%I dont know what is the TLD and how to use or download it ... please explaine priefly
and please note that i'm using JDevloper 9i (9.0.3) not Tomcat
Thank you -
Hello,
I have just started to learn about Tag libraries and it's not been the most pleasant experience. Anyways, I did manage to figure out most of the basics of Tag Libraries, but am still unable to understand the use of script variables. I saw an example in the tutorial by Sun, where they used a bean called "book" and I came up with a similar example myself. But in my TEI class the value for type coomes up as null and i had defined a type in my jsp page with my bean tag. Also, all the attributes that come up in my TEI class are my attributes and not my script variables. Is there something wrong in what i am doing?
I am using tomcat 4.1.10 as my server. and JSP 1.2.
This is my JSP page now.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@page import="com.petris.data.User" %>
<HTML>
<HEAD>
<TITLE> This is a sample page to test the Hello World Tag Library </TITLE>
<%@ taglib uri="HelloWorld.tld" prefix="hello" %>
</HEAD>
<BODY>
<hello:sayHello userName="Dummy User" age="27">
<% String dummy; %>
</hello:sayHello>
<i><jsp:getProperty name="user" property="name" /></i>
<br>
The user age is <jsp:getProperty name="user" property="age" />
</BODY>
</HTML>
And this is my TEI class
package com.petris.tags;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import java.io.*;
import java.util.Enumeration;
public class HelloWorldTEI extends TagExtraInfo
public VariableInfo[] getVariableInfo(TagData data)
Enumeration listOfAttributes = data.getAttributes();
StringBuffer listOfTags = new StringBuffer();
for(int i = 0; listOfAttributes.hasMoreElements(); i++)
Object currentObject = listOfAttributes.nextElement();
listOfTags.append(currentObject.toString() + ",");
System.out.println(currentObject.toString());
String type = data.getAttributeString("type");
System.out.println("*********************");
System.out.println("TYPE = " + type);
System.out.println("*********************");
if (null == type)
type = "java.lang.Object";
return new VariableInfo[]
new VariableInfo("user",
"User",
true,
VariableInfo.AT_BEGIN)i think i have it figured out. If we want to use the TagExtraInfo class, then we must supply the values to the tag using attributes. Values such as id and type must also be supplied as attributes. Which automatically means that we must supply the bean type getters and setters for these attributes as well. Well this is how i have been able to get it to work. If there is some other way (other than using the variable tag in the TLD), please do let me know. Thought i would post this for others as a future reference.
-
I keep getting this error when I try to transform an xml file into html.
org.apache.jasper.JasperException: Unable to open taglibrary http://jakarta.apache.org/taglibs/xsl-1.0 : null
Here is the jsp file
<%@taglib uri="http://jakarta.apache.org/taglibs/xsl-1.0"
prefix="xsltlib" %>
<html>
<head>
<title>Book Inventory</title>
</head>
<body bgcolor="white">
<center>
Welcome
<font color="red">
On Sale Today ...
</font>
<p></p>
<xsltlib:apply xml="cdcatalog.xml" xsl="cdcatalog.xsl"/>
</center>
</body>
</html>I think first od all you have to download the Tag Libraray from this location
http://jakarta.apache.org/builds/jakarta-taglibs/nightly/projects/xsl/
and then configer you web application like
Follow these steps to configure your web application with this tag library:
* Copy the tag library descriptor file (xsl/xsl.tld) to the /WEB-INF subdirectory of your web application.
* Copy the tag library JAR file (xsl/xsl.jar) to the /WEB-INF/lib subdirectory of your web application.
* Copy the support libs xerces.jar and xalan.jar to the /WEB-INF/lib directory of your web application.
* Add a <taglib> element to your web application deployment descriptor in /WEB-INF/web.xml like this:
<taglib>
<taglib-uri>http://jakarta.apache.org/taglibs/xsl-1.0</taglib-uri>
<taglib-location>/WEB-INF/xsl.tld</taglib-location>
</taglib>
To use the tags from this library in your JSP pages, add the following directive at the top of each page:
<%@ taglib uri="http://jakarta.apache.org/taglibs/xsl-1.0" prefix="x" %> -
Is there a reference for the JSP tags available in reports 11gr2
I see rw: foreach
rw: field
wanted to know what else is available but can't find a reference.
thanks
gregThe package javax.servlet.jsp is an integral part of J2EE platform APIs.
If you are using reference implementation of J2EE that comes with J2EE SDK, it is part of j2ee.jar
If you are using some other vendor specific product, you should find it in your product vendor specific jar file(s). -
Href and target tags tutorial/help needed for use with an existing website
I have a website, (built through iweb), and an intro movie. I have spent a lot of time trying to understand the proper tags and how to use them without much luck. My goal is to have the homepage associated with my domain name load in a browser while at the same time have my intro movie open in a Quicktime Player window, play, and automatically close leaving the webpage visible. If anyone can point me to a tutorial or walk my through the process I would appreciate it.
Poster movie style. Requires QuickTime Pro:
Create an image (or a frame from your movie). This becomes the "poster". You could add text to it (Click to Play) in a graphic editor app to help your viewers or add text to the page under the image with these instructions.
Save this new file as poster.mov
It becomes the src="poster.mov" (source tag in the html code). Set its dimensions to fit your page layout.
Your "intro movie" will be your href="intro.mov" (href tag in the html code).
Open it with QuickTime Pro and then open the Movie Properties window. Click on the Presentation tab to see the choices. Automatically close option will close the QuickTime window. Automatically quit option will quit the running QuickTime Player app. This would be a better option as the browser should come back as the "front" application. You also want to check "auto play".
Use Save As (preserves fast start feature) and name this file intro.mov
In your html code for the QuickTime files you need to set target="quicktimeplayer" (this launches the QuickTime Player app instead of using the browser plug-in). It may also help if you use the full URL to both files in each tag (http://myserver.com/foldername/intro.mov).
One of mine as an example. It uses automatically close window:
http://homepage.mac.com/kkirkster/mycareerfuture/
View the source code to see the tag structure. My page uses javascript instead of the older object/embed tag code.
More useful links:
http://developer.apple.com/internet/ieembedprep.html
http://www.qtbridge.com/pageot/pageot.html -
Struts and JSP problem..help needed
Hi,
I am trying to use request.setParameter("formatName") from the JSP page into the ACtion class to display the user entered values.
I have my struts action classes tagged to be in session scope since the UI is a wizard and i want the values to be carried on until they click finish. on the wizard.
I want the formatName floating across the wizard, I have another value called."Category" floating since its a dynamically generated variable using the formbean.
***************ACTION class****************
public class CreateFormatReportDefinitionAction extends Action
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
final Logger logger = Logger.getLogger(this.getClass());
ActionErrors errors = new ActionErrors();
ActionForward forward = new ActionForward(); // return value
ClarityReportDefinitionFormBean rdFormBean = (ClarityReportDefinitionFormBean) form;
HttpSession session = request.getSession();
List fList = new ArrayList();
FormatDAO fDAO = new FormatDAO();
Format fmt = null;
try {
logger.log(Level.INFO, "Entering CreateFormatReportDefinition Action...");
Person person = PersonUtil.getCurrentUser(request);
logger.debug("Category is: "+rdFormBean.getCategory());
List formats = fDAO.findFormatsForCategory(rdFormBean.getCategory());
for(int i=0;i < formats.size(); i++) {
fmt = (Format)formats.get(i);
if(fmt.getOwner().getEmailaddr().equals(person.getEmailaddr())){
fList.add(fmt);
rdFormBean.setUserFormatList(fList);
logger.log(Level.DEBUG,"sessionObject for formName is: "+session.getAttribute("formatName"));
} catch(Exception e) {
// Report the error using the appropriate name and ID.
errors.add("name", new ActionError("id"));
// If a message is required, save the specified key(s)
// into the request for use by the <struts:errors> tag.
if (!errors.isEmpty()) {
saveErrors(request, errors);
// Write logic determining how the user should be forwarded.
forward = mapping.findForward("success");
// Finish with
return (forward);
***********JSP form for the class****************
<html:form action="/createFilterAction" >
<table>
<tr><td>
<html:text property="formatName" />
</td></tr>
<tr>
<td>
<html:select property="myFormats" onchange="insertSelectedMyFormat()">
<html:option value="">Select user Formats</html:option>
<c:forEach var="formats" items="${reportDefFormBean.userFormatList}">
<html:option value="${formats.name}"><c:out value="${formats.name}"/></html:option>
</c:forEach>
</html:select>
</td>
</tr>
</table>
</html:form>
***********JAVASCRIPT**********
var box = document.reportDefFormBean.myFormats;
function insertSelectedMyFormat()
var hisFormat = box.options[box.selectedIndex].value;
document.reportDefFormBean.formatName.value = hisFormat;
********STRUTS_CONFIG.XML*****************
<form-beans>
<form-bean name="reportDefFormBean"
type="com.ibm.ads.reports.web.formbeans.ClarityReportDefinitionFormBean"></form-bean>
</form-beans>
<action name="reportDefFormBean" path="/createFormatReportDefinition"
type="com.ibm.ads.reports.web.actions.reportDefinition.CreateFormatReportDefinitionAction"
scope="session" validate="false">
<forward name="success" path="/createFormatReportDefinition.jsp"/>
</action>
I am getting a null for Session.getAttribute("formatName") or even if i change the scope to request, i use request.getPArameter("formatName"), i get null again.
I dunno what iam missing in this regard, but if anyone has found anything wrong with my code...please help me out.
any time spent will be appreciated.
Thank you and regards,
devHi,
I am trying to use request.setParameter("formatName") from the JSP page into the ACtion class to display the user entered values.
I have my struts action classes tagged to be in session scope since the UI is a wizard and i want the values to be carried on until they click finish. on the wizard.
I want the formatName floating across the wizard, I have another value called."Category" floating since its a dynamically generated variable using the formbean.
***************ACTION class****************
public class CreateFormatReportDefinitionAction extends Action
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
final Logger logger = Logger.getLogger(this.getClass());
ActionErrors errors = new ActionErrors();
ActionForward forward = new ActionForward(); // return value
ClarityReportDefinitionFormBean rdFormBean = (ClarityReportDefinitionFormBean) form;
HttpSession session = request.getSession();
List fList = new ArrayList();
FormatDAO fDAO = new FormatDAO();
Format fmt = null;
try {
logger.log(Level.INFO, "Entering CreateFormatReportDefinition Action...");
Person person = PersonUtil.getCurrentUser(request);
logger.debug("Category is: "+rdFormBean.getCategory());
List formats = fDAO.findFormatsForCategory(rdFormBean.getCategory());
for(int i=0;i < formats.size(); i++) {
fmt = (Format)formats.get(i);
if(fmt.getOwner().getEmailaddr().equals(person.getEmailaddr())){
fList.add(fmt);
rdFormBean.setUserFormatList(fList);
logger.log(Level.DEBUG,"sessionObject for formName is: "+session.getAttribute("formatName"));
} catch(Exception e) {
// Report the error using the appropriate name and ID.
errors.add("name", new ActionError("id"));
// If a message is required, save the specified key(s)
// into the request for use by the <struts:errors> tag.
if (!errors.isEmpty()) {
saveErrors(request, errors);
// Write logic determining how the user should be forwarded.
forward = mapping.findForward("success");
// Finish with
return (forward);
}***********JSP form for the class****************
<html:form action="/createFilterAction" >
<table>
<tr><td>
<html:text property="formatName" />
</td></tr>
<tr>
<td>
<html:select property="myFormats" onchange="insertSelectedMyFormat()">
<html:option value="">Select user Formats</html:option>
<c:forEach var="formats" items="${reportDefFormBean.userFormatList}">
<html:option value="${formats.name}"><c:out value="${formats.name}"/></html:option>
</c:forEach>
</html:select>
</td>
</tr>
</table>
</html:form>***********JAVASCRIPT**********
var box = document.reportDefFormBean.myFormats;
function insertSelectedMyFormat()
var hisFormat = box.options[box.selectedIndex].value;
document.reportDefFormBean.formatName.value = hisFormat;
}********STRUTS_CONFIG.XML*****************
<form-beans>
<form-bean name="reportDefFormBean"
type="com.ibm.ads.reports.web.formbeans.ClarityReportDefinitionFormBean"></form-bean>
</form-beans>
<action name="reportDefFormBean" path="/createFormatReportDefinition"
type="com.ibm.ads.reports.web.actions.reportDefinition.CreateFormatReportDefinitionAction"
scope="session" validate="false">
<forward name="success" path="/createFormatReportDefinition.jsp"/>
</action>I am getting a null for Session.getAttribute("formatName") or even if i change the scope to request, i use request.getPArameter("formatName"), i get null again.
I dunno what iam missing in this regard, but if anyone has found anything wrong with my code...please help me out.
any time spent will be appreciated.
Thank you and regards,
dev -
I purchased a new laptop in August, running Windows 8 and spent hours importing every CD we own (over 300) to my iTunes library in order to get rid of them and declutter a little. I have had to run iTunes in a compatibility mode set for an older version of Windows in order to sync our iPods, as it doesn't work with Windows 8. A pain but not a major problem.....however, this morning I have updated iTunes and everything that hasn't been purchased through the store has now vanished from my library. Can anyone help me find the rest of my music please?
You're welcome.
Take a look at the backup technique I mention for the future.
tt2 -
Portal JSP Tag Library question
Dear All,
I use EBCC to orgnize the relationship of the jsp files with tags as follow
<%@ taglib uri="portlet.tld" prefix="portlet" %>
">xxx</a>
<a href="<portlet:createWebflowURL event="EP_E0104032.go"
extraParams="TypeCd=<%= record.elementAt(0) %>"/>">XXX</a>
Nothing specially, right?
But I got error messages:
at
weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.jav
a:575)
at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:354)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:382)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)
at weblogic.servlet.jsp.JspStub.checkForReload(JspStub.java:139)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:37
2)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:242)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:395)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:255)
at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:116)
at jsp_servlet._framework.__portlet._jspService(__portlet.java:255)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:395)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:255)
at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:116)
at
com.bea.portal.render.servlets.jsp.taglib.RenderTag.renderPortlets(RenderTag
.java:172)
at
com.bea.portal.render.servlets.jsp.taglib.RenderTag.doStartTag(RenderTag.jav
a:60)
at
jsp_servlet._framework._layouts._twocolumn.__template._jspService(__template
.java:142)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:395)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:255)
at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:116)
at jsp_servlet._framework.__page._jspService(__page.java:201)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:395)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:255)
at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:116)
at jsp_servlet._framework.__portal._jspService(__portal.java:733)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:215)
at
com.bea.portal.appflow.servlets.internal.PortalWebflowServlet.doGet(PortalWe
bflowServlet.java:142)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2459)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
I can not find out what's wrong.
I will appreciate any input. Thank you.Hi Alan,
I think the problem is your <%= ... %> expression mixed with a constant inside
the double-quotes for the extraParams attribute in your <a href> tag:
extraParams="TypeCd=<%= record.elementAt(0) %>"
Do this instead:
<%
String extraParam="TypeCd=" + record.elementAt(0);
%>
<a href="<portlet:createWebflowURL event=EP_E0104032.go"
extraParams="<%= extraParam %>"/>">
XXX</a>
Alan Liu wrote:
Dear All,
I use EBCC to orgnize the relationship of the jsp files with tags as follow
<%@ taglib uri="portlet.tld" prefix="portlet" %>
<a href="<portlet:createWebflowURL event="EP_E0104020.go"/>">xxx</a>
<a href="<portlet:createWebflowURL event="EP_E0104032.go"
extraParams="TypeCd=<%= record.elementAt(0) %>"/>">XXX</a>
Nothing specially, right?
But I got error messages:
at
weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.jav
a:575)
at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:354)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:382)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)
at weblogic.servlet.jsp.JspStub.checkForReload(JspStub.java:139)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:37
2)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:242)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:395)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:255)
at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:116)
at jsp_servlet._framework.__portlet._jspService(__portlet.java:255)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:395)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:255)
at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:116)
at
com.bea.portal.render.servlets.jsp.taglib.RenderTag.renderPortlets(RenderTag
.java:172)
at
com.bea.portal.render.servlets.jsp.taglib.RenderTag.doStartTag(RenderTag.jav
a:60)
at
jsp_servlet._framework._layouts._twocolumn.__template._jspService(__template
.java:142)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:395)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:255)
at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:116)
at jsp_servlet._framework.__page._jspService(__page.java:201)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:395)
at
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
l.java:255)
at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:116)
at jsp_servlet._framework.__portal._jspService(__portal.java:733)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:215)
at
com.bea.portal.appflow.servlets.internal.PortalWebflowServlet.doGet(PortalWe
bflowServlet.java:142)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2459)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
I can not find out what's wrong.
I will appreciate any input. Thank you.--
Ture Hoefner
BEA Systems, Inc.
4001 Discovery Drive
Suite 340
Boulder, CO 80303
www.bea.com
[att1.html]
Maybe you are looking for
-
How to ADD new Row In ADF Table?
Hello! I need to insert a row in table when clicking on the "New", can someone help me? Citing some examples? I'm lost. My table is called tableArchive, and I need to add a line on it. This table is a list called listArchive, which is associated to t
-
My LG G3 is only 3 days old, so this might not have anything to do with the update... Anyone else have stability problems with the LG G3 12b Advanced Calling update?
-
Can I share my iCal across a network or only thro' .Mac?
Can I share my iCal across a network or only thro' .Mac? If so, how?
-
Putting songs(tracks) into an album
I have loaded a CD into itunes but many of the tracks have appear in seperate albums(with the same album title). How do I arrange the tracks into one album. I have tried "get information" but all the relavant headings etc appear to be the same. Nor d
-
Upgrading a mac of a certain age, OSX 10.5.8
Sometimes I hate to ask these things because when it comes to computers I am a big idiot, so I will just get that out of the way in case anybody wants to point it out. so here is the question: I have an older Mac with OSX 10.5.8. and I want to upgrad