JSP Taglib for RSS

Just wondering if anyone else is having better luck - been working thru:
http://developer.java.sun.com/developer/technicalArticles/javaserverpages/rss_utilities/
Each time I try and parse an RSS file I get the following trace:
<rss>
<channel>
<title>
</title>
<link>
</link>
<description>
</description>
</channel>
<item>
INFO: items does not exist or method signature is incorrect
java.lang.NoSuchMethodException
at java.lang.Class.getMethod0(Native Method)
at java.lang.Class.getMethod(Class.java:888)
at com.sun.cnpi.rss.handlers.DefaultElementHandler.startElement DefaultElementHandler.java:91)
at com.sun.cnpi.rss.handlers.DocumentHandler.startElement(DocumentHandler.java:98)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1477)
... rest of stack trace.
This is tried with 5 or 6 different RSS feeds (0.91 and 2.0) and with both crimson and the latest xerces parsers (stacktrace is the same apart from the parser specific parts - it's always in com.sun.cnpi.rss.handlers.DocumentHandler.startElement(DocumentHandler.java:98)
It appears to be trying to call a method based on the fact that it has seen an items tag (which it hasn't - it's an item tag).
The JSP:
<%@ taglib uri="/rssutils.tld" prefix="rss" %>
<rss:feed
url="path-to-feed"
feedId="intranetRT"/>
<h2>"><rss:channelTitle feedId="intranetRT"/></a></h2>
<rss:forEachItem feedId="intranetRT">
<h3><a href="<rss:itemLink feedId="intranetRT"/>"><rss:itemTitle feedId="intranetRT"/></a></h3>
<div class="item">
<p><rss:itemDescription feedId="intranetRT"/></p>
</div>
</rss:forEachItem>
Maybe of interest - all tried RSS streams work fine for various other RSS readers and return valid from 2 different validators.
Hints anyone?

I try using this tag library, and I get the following on my page:
java.lang.ClassNotFoundException: com.cj.rss.objVariable
as the root cause for this excemption:
org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: com.cj.rss.objVariable
Do I have a bad "path" set up somewhere? Here's my code:
<%@ taglib uri="/WEB-INF/lib/taglib.tld" prefix="c" %>
<html>
<head><title>Java Feed</title></head>
<body>
<%-- <jsp:useBean id="beanInstanceName" scope="session" class="beanPackage.BeanClassName" /> --%>
<%-- <jsp:getProperty name="beanInstanceName" property="propertyName" /> --%>
<c:setFeed url="http://www2.theserverside.com/rss/theserverside-1.0.rdf" id="A"/>
<p>Title:<c:getChannelTitle feedId="A"/>
<p>Description:<c:getChannelDescription feedId="A"/>
<c:forEachItem feedId="A">
Link:<%=itemLink%>
Title:<%=itemTitle%>
Description:<%=itemDescription%>
</c:forEachItem>
</body>
</html>
It's pretty simple code, and I made sure that the library file (jar) and .tld file were in the /WEB-INF/lib directory, off of the "context" directory or "docroot". I guess I would have gotten a different error if they weren't there.
Any thoughts as to why my server is having problems loading the object:
com.cj.rss.objVariable
It is in my rsstag.jar file. I confirmed it by opening it with WinZip. Here's the reference to it in the rssrag.tld file:
<tag>
<name>setFeed</name>
<tagclass>com.cj.rss.setFeedTag</tagclass>
<teiclass>com.cj.rss.objVariable</teiclass>
<bodycontent>JSP</bodycontent>
<info>parses rss feed</info>
Any information would be greatly appreciated.

Similar Messages

  • JSP TagLib for EJB

              Does BEA provide an EJB specific JSP Tag library with WebLogic? I know of at least one other EJB Server that does.
              

    What version is your tag library and what version is your deployment descriptor?

  • EL or RT expressions for JSP taglibs

    I have a simple question
    We all know that there are two ways to implement a JSP page. either RT expressions or expression language (EL). I have done plenty of research and I am comfortable at creating custom JSP taglibs that support both RT and EL. What I want to know is which if them is used more commonly?
    Its useless to right 2 seperated libs, since you can pass variables from EL to RT and vice versa, so I want to have only one tag library, but I dont know how I should implement it EL or RT.
    What is used more often and why? What is the advantages of using one over the other. Thank you!!!

    RT was the original way; it required scriptlets, which everyone hates.
    EL is the new way; it helps eliminate scriptlets, which everyone loves.
    EL is the method of choice; even moreso when JSP 2.0 is finalized, it allows them to be used more freely (not just in tags)

  • Jsp taglibs in include files not detected, throws errors, no code insight

    I have a jsp which is included in all the other jsp. it looks something like this
    taglibs.jsp
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
    <%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
    <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
    test.jsp
    <%@ include file="/jsp/menu/taglibs.jsp"%>
    <html>
         <head>
              <title>Tours</title>
         </head>
         <body>
    <form:form commandName="testCommand">
                   <form:hidden path="tour.firstname" id="tour.firstname" />
    and so on.
    I am having 2 problems
    1. the jsp editor show errors all over the place saying
    element path not expected
    element commandName not expected etc.
    2. no code insights.
    but if i include the taglib def in test.jsp it dosn't show any error and also provides code insights. but seldom do people include all taglibs in all jsps.
    is there a way for Jdeveloper to show code insights in jsp pages which includes a jsp or like xml schemas could be added at some place(tools-pref-xml schemas) and when used anywhere, would provide code insights.

    am not sure, try with this
    <jsp:include   .../>

  • JSP Taglibs

    Hi,
    I try to use a taglib and get this Exception:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 4 in the jsp file: /Login.jsp
    Generated servlet error:
    C:\Programme\Apache Tomcat 4.0\work\localhost\testdemo\Login$jsp.java:59: Class org.apache.jsp.testTL not found.
    testTL jspxth_mytag_test_0 = new testTL();
    ^
    An error occurred at line: 4 in the jsp file: /Login.jsp
    Generated servlet error:
    C:\Programme\Apache Tomcat 4.0\work\localhost\testdemo\Login$jsp.java:59: Class org.apache.jsp.testTL not found.
    testTL jspxth_mytag_test_0 = new testTL();
    ^
    2 errors
    My taglibs looks like this:
    <?xml version="1.0"?>
    <!DOCTYPE taglib
         PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
         "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
    <taglib>
         <tlibversion>1.0</tlibversion>
         <jspversion>1.1</jspversion>
         <shortname>shorttest</shortname>
         <uri></uri>
         <info>abc</info>
         <tag>
              <name>test</name>
              <tagclass>testTL</tagclass>
         </tag>
    </taglib>
    And web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <display-name>Tag Demo</display-name>
    <description>bla</description>
    <taglib>
    <taglib-uri>/shorttest</taglib-uri>
    <taglib-location>/WEB-INF/tld/test1.tld</taglib-location>
    </taglib>
    </web-app>
    the jsp:
    <%@ taglib uri="/shorttest" prefix="mytag" %>
    <html>
    <body>
    <mytag:test/>
    </body>
    </html>
    I can`t find the failure.
    Thanks
    Hayri

    Yes, change
    <tagclass>testTL</tagclass>
    to
    <tagclass>yourPackage.testTL</tagclass> and of course recompile class with package declaration and put into package.

  • I18n jsp taglib, hot update

    Hi
    I'm investigating use of the jsp taglib i18n that comes with Personalization
    server.
    Is there any way of updating the .properties files so that the changes come
    thru reliably without restarting the server?
    A kind of reloadCheckSecs=0 like for jsp files would be good.
    Does such a functionality exist?
    Has anyone implemented such a functionality?
    Alternatively, is the code for the taglib available?
    Regards
    Alex

    If you need more information, don't know what I mean or whatever, please ask.
    I realy need this but don't know how to do...

  • How can we add a control on our .jsp webpage for uploading several image fi

    How can we add a control on our .jsp webpage for uploading several image files as done in gmail attachment, Where a Remove button also appears if we wanna remove the particular attachment.

    The SCOM Management Server is in Domain A.  I've tried it already and it has failed.  
    So just to clarify the method I used was to go to Administration>Security>User Roles.  Then New User Role>Read-Only Operator.  In the Create User Role Wizard I then gave the User Role a name, Clicked "Add" under User Role Members.
     Then the Select Users or Groups window pops up and I changed the Locations from Domain A to Domain B and searched for the user, which it's able to find, then clicked "OK" to add it to the User Role members which it does just fine.  On
    the next page which is Group Scope I checked the one group I want this account to have access to and then click next.  This brings me to Dashboards and Views where I click the radio button for "Only the dashboards and views selected in each tab are
    approved" and chose the folder of dashboards I want this account to access and then click next.  This brings me to the Summary and I click "Create".  At this point it thinks for a moment then closes out the wizard but the new Read-Only
    Operator does not appear.  I then look in Event Viewer and see the Event I pasted above.
    Am I doing something wrong here?  Any guidance on how to get around this issue would be much appreciated.
    Thanks,
    Jake

  • JSP codes for running a JAVA program

    hello...
    does anyone know the JSP codes for running a Java program from my web page?? i mean i already have my java program compiled... and i just want this java program to run in the background when I click on a button or a link...
    Any idea about this?
    plz advice..
    avi

    yes... u r somewhat right... but this runs on Jakarta Tomcat...
    i'm using the Apache Http Server together with the ServletExec AS which enable the Apache server to run JSP..
    I've created a package where i've put my classes...
    WEB-INF/classes/tbd(package name)/my classes
    and i've added.. package name.. in my java program..
    and then in jsp... i've written..
    <%@ page import="tdb.*"%>
    <jsp:useBean id="exec" class="tdb.textdb" />
    <%exec.convert_data();%>
    but when i run the page it says the package does not exist...
    can anyone tell where to place the folder WEB-INF so that it can run fine?
    thx
    avi

  • Developing JSP iViews for PCR on R/3 4.6C Backend??

    I have read several posts and have looked into a lot of documentation, but there still seems to be some confusion regarding MSS/PCR and EP 6.0.
    Here is some background:
    We are planning to upgrade our portal from Workplace 2.11 to SAP EP 6.0 (NW04).  We have an R/3 4.6C backend and we are using ITS forms for our PCRs. 
    When we move to the EP 6.0, I see two ways of proceeding:
    1.  Use IAC iView on ITS and just call our ITS based forms from the EP 6.0.  This means we keep our standalone ITS.
    OR
    2.  Develop JSP iViews for our PCR forms on EP 6.0.  This way, we would no longer need ITS. 
    My confusion is whether I can actually do option 2.  After upgrading to EP 6.0 and installing the plug in 2003.1, can I develop PCR forms using JSP iView with a R/3 4.6C backend?
    Thanks,
    Younoos

    I am not sure anyone can give you specific guarantees regarding development and use of your own custom JSP iviews ITS or otherwise
    What I can say is -->
    Certainly from a SAP perspective the delivered MSS Business Package 60.1.20 (HTMLB with JSP PCRs) is useable
    in the landscape versions you mentioned (46C with EP6)  as per following link
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/302ecc07-a56d-2910-8fad-84996151e3b4
    Therefore MSS PCRS based on JSP is possible in EP6 with 46C
    Its also not clear why your ITS based forms are being abolished - if you back-end remains 46C - then presumably these should
    still work - either called directly via ITS URL string given to users or integrated into EP 6 as a ITS iview or Portal HpF service calling ITS URL directly - the only reason I can think is that perhaps your ITS forms has a Workplace 2.11 dependancy or other dependancies I am not aware of.
    Best wishes
    Stuartr

  • JSP Primer for OC4J

    1) Has the tag libraries and references been published yet
    as per the qustion on this ref:
    http://forums.oracle.com/forums/message.jsp?id=502762
    2) You have a major problem with your samples in the JSP
    Primer for OC4J. Reference pg 1-15 sqltagquery.jsp is
    non functional. I will assume the output of this is
    displayed on page 1-18. ref:
    http://web06-02.us.oracle.com/tech/java/oc4j/pdf/jspPrV1.pdf
    Error I found.
    a) how can it even output when there where no
    methods to query the result and print them? All this
    has is dbQuery and dbClose tags.
    b) I get an exception error, missing catch on line
    143 __ej2e(i didnt get to right the spelling correctly
    as i was doing my test last night). The
    sqptagquery.jsp is only 17 lines and referring to line
    143? I assume its on one of the libraries mentioned
    to be put under j2ee/home/lib.
    3)Further question,
    Which version of OJSP is assumed on this sample?
    I choosed the osjp_11320.zip.
    --ap

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Steve Button ([email protected]):
    gday Barry -
    I'll check into this for you. The various doc pieces we have for OC4J are all in the process of being being created and we're pushing completed pieces out whenever they are ready.
    This might be one of those situation where we've 'forward declared' the docs you mentioned but they're not completed yet.
    I'll post back here when I get an answer for you.
    cheers!
    -steve-<HR></BLOCKQUOTE>
    Barry,
    The docs you mentioned are in the final phase of review. They wiil be posted soon. thanks
    -Prasad

  • Which folder i have to put my .jsp file for web report?

    for web report(not the paper report) i put my .jsp files in the
    \reports\j2ee\reports_ids\web
    folder
    this is for the DS(Developer Suite)
    i'm trying to move this file to different machine where AS(Application Server)
    is installed.
    but couldn't find above path. where do i have to put .jsp file for
    web report?
    or do i have to modify in the registry? if so, where?
    Thanks

    Hello,
    Take a look to the thread :
    where to add new jsp reports directory location in path
    "...You have to keep jsp files under document root that is OH/j2ee/OC4J_BI_Forms/applications/reports/web directory. You can create sufbolders under this directory and keep jsp files. ..."
    Regards

  • Jsp tag for blog attribute in a flex asset

    hi Experts,
    I am using FW7.6.1, I have a flex asset with a blob attribute, when I create that flex asset, I can upload an image in that attribute, but I did not find a jsp tag for rendering that attribute which has a image saved, another question is what jsp tag should be used in case of a word file is uploaded in that attribute, that's to say:
    1. for a image, I want to display it in browser.
    2. for a word file, I want to show popup window to ask user if he wants to download or open.
    By using assetset:getattributevalues and render:stream, it's just for string type of attribute, not for blog.
    Thanks in advance.
    Best regards

    hi all,
    I got the answer from dev guide, seems should use:
    <blobservice:gettablename varname="uTabname"/>
    <blobservice:getidcolumn varname="idColumn"/>
    <blobservice:geturlcolumn varname="uColumn"/>
    and render:satelliteblob
    some complicated then I expected.
    Best regards

  • Jsp code for image compression

    Hai,sir this is surendra i am doing a project using jsp and mysql.
    In that each user can put his image and i am storing that image in mysql blob but that results to that database size.
    So i need jsp code for image compression or another way for storing images.

    There's no need to store images in db. You may store them in a dedicated folder.

  • Custom JSP Tags for Weblogic

    Hi,
              I have several questions regarding this topic:
              1) Does Weblogic 5.1 supports Custom Tags ? If so, are there any known
              problems ?
              2) Does Weblogic come with any tag libraries (for loops, if, etc) and where
              can I get them ?
              3) Are there any tag libraries out there (JRun, for example) that have been
              successfully run on Weblogic ?
              Any help would be much appreciated.
              Thanks,
              Jamie
              

    As there seems to be general interest, a link would probably be a great
              help.
              Regards
              Daniel Hoppe
              -----Original Message-----
              From: Michael Girdley [mailto:[email protected]]
              Posted At: Friday, August 25, 2000 8:03 AM
              Posted To: jsp
              Conversation: Custom JSP Tags for Weblogic
              Subject: Re: Custom JSP Tags for Weblogic
              Please see the documentation:
              http://www.weblogic.com/docs51/resources.html
              Michael Girdley
              BEA Systems Inc
              "Jamie" <[email protected]> wrote in message
              news:[email protected]...
              > Update
              > =======
              >
              > Weblogic Portal has some Tag libraries. I've downloaded the trial
              version
              > of
              > the Weblogic Commerce Server. How do I get the tag libraries and use
              them
              > on WL 5.1 ?
              >
              > Answers to original post still wanted
              >
              > Thanks,
              >
              > Jamie
              >
              > Jamie <[email protected]> wrote in message
              > news:[email protected]...
              > > Hi,
              > >
              > > I have several questions regarding this topic:
              > >
              > > 1) Does Weblogic 5.1 supports Custom Tags ? If so, are there any
              known
              > > problems ?
              > >
              > > 2) Does Weblogic come with any tag libraries (for loops, if, etc)
              and
              > where
              > > can I get them ?
              > >
              > > 3) Are there any tag libraries out there (JRun, for example) that
              have
              > been
              > > successfully run on Weblogic ?
              > >
              > >
              > > Any help would be much appreciated.
              > >
              > > Thanks,
              > >
              > > Jamie
              > >
              > >
              >
              >
              

  • Proxy settings for RSS-fees xml iView in portal v 7.0

    Hi,
    I have created an xml iView for RSS-feed and continue to receive this error when I want to preview the iview:
    "Error while using XML iView, please contact your system administrator"
    My proxy settings have been changed in
    System-Configuration --> Service Configuration --> Applications --> com.sap.portal.ivs.httpservice
    "HTTP Proxy Host" =(value both "proxy" and the IP-Adress of the proxy has been tried)
    "HTTP Proxy Port"  = value "8080"
    HTTP JVM Settings = value "true"
    Restarted the portal, but no result.
    Any tips / hints how I can solve this?
    Thankx,
    hilde

    I think that the RSS iview works the same as the URL iview in that it is actually going from your browser to the URL rather than from the portal to the URL - so proxy settings should not make any difference.
    I have found the RSS feed functionality to be very picky on what XML works and what doesn't - so it may be that.
    Paul

Maybe you are looking for