JSP taglibs from dynamic source

Hello folks,
i wonder if it is possible to use taglibs that come form a dynamic source during request time, like this:
<%
String myOtherTag = "<bla:myOtherTag/>"; // the string could come from a database or form
%>
<bla:myTag>
    <%= myOtherTag %> <!-- do not outout as string, rather perform <bla:myOtherTag/> -->
</bla:myTag>The idea is, that users can write a string into a database with jsp tags, and the jsp reads it out at request time and performs them. I understand that they are actually translated to code at compilation time, but as far as i can tell, a dynamic binding should be possible.
If it is, what is it called and where can i find more information on this topic?
Thanx!

No not normally possible.
The tags need to be translated/compiled into java code.
It does this at translation time - before the code is run.
The only way to do something like this would be to generate the tag to a jsp file, and then <jsp:include> that file.
You might be able to do it with JSP2.0 tag files as well.
Good luck,
evnafets

Similar Messages

  • JSP (no java code), taglibs and dynamic list boxes

    Hi,
    Can anyone recommend a few examples of JSPs using Tag Libraries to represent a dynamic dropdown box in a form? We are trying to learn how to incorporate tag libs into our pages so we have no code on the JSPs. We currently have a JSP that uses dynamic dropdowns, but the all the code is in the JSP. Most examples we find use either static data or just output data into a table with taglibs. But our pages use many dropdowns, inputs, etc... for updates and inserts. We are using JSPs, servlets, and tags which will get data from EJB's (stateless and entity). (We are also using WEblogic Server 7.0 if that makes any difference) If you know of some good examples or tutorials that show how to accomplish this, it would GREATLY help us out!!
    Thanks!

    Check out Struts, they have an HTML taglib that does exactly what your talking about. http://jakarta.apache.org/struts

  • How to load from multiple sources to multiple destination dynamically

    I have more than hundred tables  in a different server (lets say on a sql server 1). I have to perform load,by getting change records copy of those hundred tables with the some condition in to sql server 2 destination. I know how to perform data
    flow task in SSIS to extract data from a source and load it in a destination. With more than hundred tables, I would need to create more than hundred data flow tasks which is very time consuming. So I have heard about from source to destination dynamically
    by looping through and creating variables. Now, how do I do this? Remeber, those hundred tables do having similar column names in both soruce and destination server. How can I perform this initial load faster without using multiple data flow task in SSIS.
    Please, help! Thank you!

    Ok , if the schema of both the source and destination is same , you can just perform an import and export tool and then it can be saved as an SSIS package. If this needs to be separately developed in an SSIS package, the logic can be :
    1 - Get the list of tables using sysobjects or metadata table where all the table list is maintained.
    2 - Loop through those tables using for each loop.
    3 - Inside the for each loop , use a script to access the source connection ( OLEDB source table name) and the destination connection (OLEDB destination table name).
    4 - Assign the source table connectoin dynamically to the variable fecthed from for each loop above.
    5 - You can also use expressions for the OLEDB source table name and OLEDB destination name inside the data flow task.
    6 - At the end the data flow task which is explained above will be used.
    Script task and the data flow task will be used inside the for each loop , above which all the objects list will be fetched using execute sql task using a SELECT and assigned to Object variable.
    Simplest will be Import and Export.
    Happy to help! Thanks. Regards and good Wishes, Deepak. http://deepaksqlmsbusinessintelligence.blogspot.com/

  • Analyse big data in Excel? Why the dynamic tables doesn't take all the data from the source table.

    Hi,
    I'm doing a internship in a production line.
    My job is to recover production data (input data) and test data (output data) using various types of software (excel, BusinessObject sap, etc).
    To this day, I have recovered hundreds of production data, and have also organized in excel but I need to analyze and plot them.
    I would like to know who can give me an idea of ​​how I could plot as much data and analysis.
    Now i trying to use dynamic charts and plot some data but I did not get acceptable answers.
    How could I compare, analyze and graph for example:
    Five columns of production (input) with five (5) columns tested (data output).
    After graphing.
    Someone can give me a technique to analyze data? ie I compare column by column?
    or some other technique? as a conglomerate could analyze data?
    o give you an idea of ​​the contect, now I perform an internship in a manufacturing turbines.
    My job is to analyze the input data (production) and to estimate the possible behavior of the turbines in the tests.
    As I said, use dynamic tables in excel, but i have not idea why the dynamic tables doesn't  take all the data from the source table.
    I appreciate your advice
    Thanks

    You can declare as PT source whole Columns [$A:$E], without rows number.
    Then You'll have all actually data.
    Oskar Shon, Office System MVP - www.VBATools.pl
    if Helpful; Answer when a problem solved

  • Urgent.....Error while running a jsp report from Jdeveloper

    Hi,
    I am getting following error while running a jsp report from Jdeveloper. I am using version 10.1.2.1.0. The same report is working fine when I am running it from report builder. ( Both these tools were installed using Oracle Developer Suite 10g version 10.1.2). I did search in oracle discussion forums and google, but I could not arrive at a resolution of error. Any help in resolving this issue would be grateful.
    Error details:
    Page url : http://<hostipaddress>:8988/Reports-reportproject-context-root/MyReport.jsp
    Reports Error Page
    Wed Oct 17 20:03:22 IST 2007
    javax.servlet.jsp.JspException: REP-51002: Bind to Reports Server myreportserver failed
    javax.servlet.jsp.JspException: REP-51002: Bind to Reports Server myreportserver failed
         at oracle.reports.jsp.ReportTag.doStartTag(ReportTag.java:464)
         at MyReport.jspService(MyReport.jsp:4)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:57)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
         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.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    Could anyone help me out in resolving this issue.
    Thanks
    Siva...

    Hi,
    I posted this message in jdeveloper forum yesterday, but there was no response. So I thought of posting it in this forum to check my luck.
    Thanks
    Siva...

  • Urgent....How can i redirect to my jsp page from servlet in init() method..

    How can i redirect to my jsp page from servlet in init() method..Becoz that servlet is calling while server startsup..so im writing some piece of code in init() method..after that i want to redirect to some jsp page ...is it possible?
    using RequestDispatcher..its not possible..becoz
    RequestDispatcher rd = sc.getRequestDispatcher("goto.jsp");
    rd.foward(req,res);
    Here the request and response are null objects..
    So mi question can frame as how can i get request/response in servlet's init method()..

    Hi guys
    did any one get a solution for this issue. calling a jsp in the startup of the servlet, i mean in the startup servlet. I do have a same req like i need to call a JSP which does some data reterival and calculations and i am putting the results in the cache. so in the jsp there in no output of HTML. when i use the URLConnection i am getting a error as below.
    java.net.SocketException: Unexpected end of file from server
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:707)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:612)
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:705)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:612)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
    nection.java:519)
    at com.toysrus.fns.alphablox.Startup.callJSP(Unknown Source)
    at com.toysrus.fns.alphablox.Startup.init(Unknown Source)
    at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
    so plz do let me know how to call a jsp in the start up of a servlet.
    Thanks
    Vidya

  • How to populate target directory from the source XML in Receiver File Adap?

    Hi All,
    Our scenario is IDoc - XI -(Receiver File adapter) File. Is it possible to populate complete "Target Directory" from the source XML message??
    Lets say we added field to maintain target directory in Idoc structure and some how populated value to it, then grab this target directory from the IDoc-XML and pass in Comunication Channel. I think its possible through Variable Substitation ...just want to make sure and if sombody has done the similar scenario their inputs would be great.
    Thanx
    Navin

    Hi,
    Please see the belowlinks
    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii
    /people/sriram.vasudevan3/blog/2005/11/21/effective-xsl-for-multimapping-getting-source-filenames-in-legacy-legacy-scenarios
    Re: Dynamic  File Name for Receiver File Adapter
    Variable Substitution
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    try with adapter specific
    Example code...
    String newfilename="";
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    // Get Sourcefilename
    String oldfilename=conf.get(key);
    //extract first 3 chars of source filename
    newfilename=oldfilename.substring(0,2);
    //get the date
    java.text.SimpleDateFormat dateformat = new java.text.SimpleDateFormat( "yyyyMMdd" );
    dateformat.format( new java.util.Date() );
    //append sourcedateL
    newfilename=newfilenamedateformat"L";
    // determine if prod/ dev / qa
    map = container.getTransformationParameters();
    senderService = (String) map.get("SenderService");
    if(senderServcie.equald("Prod"){
    newfilename=newfilename+"P";
    // change to new file name
    conf.put(key, newfilename+".tmp");
    Change it according to your requirement
    Regards
    Chilla..

  • Encore CS4 error "could not read from the source file"

    - Source File: C:\Users\Anil\AppData\Local\Temp\2013 11 08 c Big Budha_9.prproj
    - Output File: F:\Adobe Encoded Blu-ray\For Disk #013\Disk#013-B\2013 11 08 c Big Budha.m2v
    - Preset Used: Full HD 1080i [MPEG] 30 MBPS
    - Video:
    - Audio:
    - Bitrate:
    - Encoding Time: 01:49:53
    25-Jan-14 2:50:32 PM : Encoding Failed
    Could not read from the source. Please check if it has moved or been deleted.
    i have tried creaeted a NEW Premiere Pro project and still get the same error again ... can someone help me to figure out what is wrong ...

    Hi Neil
    I have been using file names with spaces and it has been working fine. As stated in reply to Jones, uninstall and reinstall of Premiere Pro CS4 has helped to get rid of this error.
    also i did not use Dynamic link, but was trying to create MPEG file using Media Encoder and then import it in Encore.
    your suggestion for H264 seems good and will try it.
    x264 Pro is for CS5 and above versions, so it seems i can not use it and have to manage with Adobe Media Encoder's default. Hope i will not have any major technical issues.
    please suggest me for below:-
    1) i have 4 hours of Full HD footage and made 1080i MPEG2 files of 30mbps to fit in 2 seperate Bluray Disks.
    2) now i plan to put all in one Single Bluray Disk by reducing MPEG2 file average data rate to 15mbps. will that work or is there any limitation of time in Bluray Disk.
    3) Will it be ok to create H264 files at 30mbps [as you mentioned H264 reduces file size to half of MPEG] and still be able to fit 4 hours footage in one BR Disk ?
    4) even though i specify Min 10 Target 25 Max 30 data rate for MPEG files creation, it creats file at data rate of 30 mbps, can you explain why it is happening as i thought my target rate should be 25 mbps and not the maximum rate specified.
    Thanks ...
    PS...
    my source file is .mov 1920 x 1080i 29.97 fps from Canon 6D. first i tried to create progressive file in Encoder but while imported in Encore realised at 29.97 fps, it allows only interlaced file and had to transcode back to interlaced. so i stick to interlaced file.
    Canon 6D also allows me to shoot in 24fps [motion movie] which Encore can handle as progressive file for authoring. What are the pro and cons of shooting in 24fps, if you can suggest.
    Message was edited by: AnilHVarma

  • Multiple Output formats from Single Source File? (Like Squeeze)

    I'd really love to be able to batch process encodes in the following manner:
    Drop my source video file into AME CS5, select an MP4 preset, and then have it encode multiple bitrate versions while adding filename extensions [e.g. _High (700 kb/s), _Mid (550 kb/s), _Low (400 kb/s)].
    The simple answere is to drop, or duplicate, my input clip 3 times and just select 3 presets I could set up under the Hi, Mid, Lo parameters. But that's exactly what I'm trying to work around. I encode video ads for major web-video sites, and the volume is just manageable to batch process these (drag and drop large quantities, select multiple presets at once, hit Start.) To handle each ad we service would be far too time consuming, even for as simple as AME makes it to duplicate/choose new preset. (In the end, our ads jump onto our FTP via AME's FTP upload option, one of it's smartest features!)
    We have quite a bit of encoding resources here at work, but AME has been giving us the most favorable results. Other options, such as Sorenson Squeeze, let you import your source clips, then apply 2 or more presets to them, before encoding the whole batch. Is there any similar functionality in Media Encoder? (Really don't want to move our workflow into Squeeze, with it's inferior MP4 encoding.)
    Does anybody have any experience with this sort of high-volume multiple-outputs from individual source files? Any tips with scripts or Apple's "Automator" that could streamline this type of batch processing?

    Any update on this ability?  We create many in house videos that need to be encoded to 14 different
    bitrates for use with Flash Media Server as dynamic http streams.
    Currently when I am ready to export a finished sequence, I will pick my first preset and queue it in AME.  Then I duplicate that thirteen times, setting each of the new thirteen queued items to their appropriate bitrates.  Then I have to change each of the output names to be "filename_bitrate.flv".
    This process is much slower when queued in AME than if I exported each individually from PP.  I just don't have the time to manually export each version.
    I have also started noticing that some of the last few projects won't render beyond the quality of the first queued item.  Do I need to render the largest bitrate file first?
    Any indication from Adobe on the correct workflow to create multiple bitrate files to be consumed by FMS as dynamic http streams would be appreciated.
    The link above is dead.  Does anyone have an updated link to the document above?

  • Encore Timeline Audio Sound Vanishes from Dynamic Link to PPro CS4

    Windows XP Pro SP 3
    CS4 Production Suite Premium
    Premiere Pro V4.2.1
    Encore V4.0.1.048
    Problem: Encore Timeline Audio Sound Vanishes from Dynamic Link to PPro CS4
    I have several several PPro CS 4 projects each with a couple sequences.
    In Encore CS4, I make dynamic links to the sequences using
    Adobe Dynamic Link | Import Premiere Pro Sequence ...
    In Encore, I create the Timelines for the Sequences from the dynamic links.
    In the Encore Timeline for each sequence, each Timeline initially plays the video and audio correctly.
    However, should I make any minor edits in Premiere (via edit original in Encore) like changing a title's text and re-rendering the PPro sequence, the Encore Timeline plays the video fine, but there is no audio (the audio track is there, but no audio sound occurs). The Encore dynamic link is untranscoded.
    The following do not make the Encore Timeline audio track audible.
    Update markers from source.
    Clean database button for PPro and Encore.
    Deleting the media Cache and Media Cache Files folders.
    Deleting the Encore Cache folder.
    The only way which seems to fix the audio is to delete the Encore Timeline and generate a new Timeline from the dynamic link. Of course, this means relinking the end actions for the buttons and timelines which is a pain and defeats the purpose of using dynamic links.
    I have been using dynamic links without audio problems for quite awhile without a problem. Now this problem appears in many projects. Thanks in advance.

    Haven't seen a post from the OP since this one.
    I cannot directly answer, but here's some info.
    From a variety of users comments, and my limited experience with CS4 and significant experience wiht CS5, there were improvements in CS5.
    The number one issue when users find no audio in DL situations is not waiting for conforming.  Look at the progress bar and wait till done.
    You are more likely to see DL audio problems using files in Premeire that are not as easy for Encore (e.g. mp3).

  • Error accessing JSp file from Tomcat4.1.27 at line:-1 in the jsp file: null

    Hi...when I tried to access my JSp file from tomcat 4.1.27 web server, I got the following error message. Can anyone help me out?
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:8: '.' expected
    import java;
    ^
    C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:80: illegal start of expression
    private static java.util.Vector jspxincludes;
    ^
    C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:82: illegal start of expression
    public java.util.List getIncludes() {
    ^
    C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:280: '}' expected
    ^
    4 errors
         at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
         at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:534)

    You JSP has four compile errors:
    C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:8: '.' expected
    import java;Invalid import. You need to import a whole package (*) or single class.
    import java; is wrong
    import java.util.*; is right
    import java.util.List; is right
    C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:80: illegal start of expression
    private static java.util.Vector jspxincludes;
    C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:82: illegal start of expression
    public java.util.List getIncludes() {Check the lines before these to make sure you didn't leave off a semi-colon, parens (')') or bracket ('}').
    C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:280: '}' expectedYou are missing a closing bracket ('}') somewhere.
    The message about the "line -1" error is the standard message that is always given when there are compile errors in the JSP.

  • Cost estimate and Dynamic Sourcing

    We have multiple levels of sourcing in R/3 and the cost estimate is using this info to determine the cost at a distribution center. The special procurement key is used in R/3. We are now in the process of implementing APO/SNP and dynamic sourcing will be used. So, the question is how to use the sourcing from SNP when running a cost estimate. The business users want to have the most accurate sourcing data when running the costing run. There are over 600 production and distribution facilities and multiple levels of sourcing today, so updating this info manually in R/3 would be a challenge. Is there any intergration between SNP and PC or is custom development the only option?

    Hi Jeff,
    in SAP you never know, but I am almost sure that there is no such integration. In product costing there is a call into the ERP procurement to determine the best source of suuply and the associated costs. Might be that there is a user-exit to feed in alternative information, but probably no call into SNP.
    I have heard this requirement the first time now. Sounds interesting...
    best regards,
                            Udo

  • Quicktime with "dynamic" source

    This is driving me nuts.
    I'm building an HTML application for my iPad, but I can't make it play .wav files which are returned from either a Java servlet or an ASP handler (I'm sure I'm setting the "content-type" correctly - "audio/wav" or "audio/x-wav")
    If you set the data source for the object to a static file it works fine e.g. "/foo/bar/baz.wav", but if you set it to a dynamic source e.g. "/foo/bar/GetWav?audioFileId=123" the component just goes into an error state and doesn't play anything.
    Does anyone know if this is a formal restriction of the Quicktime tag? Any workarounds?

    Hi,
    Here's a little sample I put together:
    [code]
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" creationComplete="init();">
    <mx:DataGrid x="10" y="10" width="233" id="myDG"
    change="myDGChangeHandler(event)" dataProvider="{dp}">
    <mx:columns>
    <mx:DataGridColumn headerText="Character"
    dataField="name"/>
    </mx:columns>
    </mx:DataGrid>
    <mx:Image scaleContent="false" showBusyCursor="true"
    x="10" y="200" width="200" height="300" id="myImg"
    source="{imgSrc}"/>
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    [Bindable]
    private var dp:ArrayCollection;
    [Bindable]
    private var imgSrc:String;
    private function init():void {
    var myAry:Array = [
    {name:"Homestar Runner", data:"
    http://sandbox.mc.edu/~ewilliam/internet_www/Homestar_Runner_logo.jpg"},
    {name:"Strong Bad", data:"
    http://www.contagiousgraphics.com/Stickers/stickerSamples/HRStrongBadClearStix.jpg"},
    {name:"Stinkoman", data:"
    http://www.hrwiki.org/images/thumb/8/84/stinkoman.PNG/220px-stinkoman.PNG"}
    dp = new ArrayCollection(myAry);
    private function myDGChangeHandler(evt:Object):void {
    imgSrc = evt.target.selectedItem.data;
    ]]>
    </mx:Script>
    </mx:Application>
    [/code]
    Good luck

  • 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.

  • How to run a Oracle 9i .JSP report from outside 9i Reports Builder

    Hi,
    I have successfully created a .JSP report from within 9i Reports Builder. It runs fine and generates desired output using Run -> Web Layout from the Reports Buider menu. The output is a .htm one.
    Now, my requirement is to run this .JSP from my application without using Reports Builder. In other words, I want to integrate this .JSP with my existing application which will fetch data dynamically for the user. There is no hint to this solution in the 9i Reports Tutorial available at OTN.
    A sample code would be highly helpful.
    Regards,
    - Partha

    partha,
    you deploy a reports-jsp to your oracle9i application server like any other JSP. copy it to a directory in the application servers document tree.
    when you execute the reports-jsp it will need a reports server (in process or stand alone) to execute since the actual data-management is done by the reports-server.
    regards,
    philipp
    PS : if you have further reports related questions, you might want to post those in the reports forum here on OTN.

Maybe you are looking for

  • Dell XPS Laptop Touch Screen Inputs Interpreted as Panning Photoshop CS6

    I have been working with Adobe Illustrator for a little while now and decided that I would like to try Photoshop for digital art.  I downloaded the 30 day trial version of Adobe Illustrator CS 6 about three days ago and noticed immediately that touch

  • How to send a mail attachment to group of users

    i have a group ZTACT TEAM Which has 10 mail ID's. I want to send mails to those 10 ID's in ZTACT team . Plz tell me ..How to do this to send mails to the group..... Thanks Srinivas

  • I want to create serial communicatios between two notebooks via Bluetooth

    Hi, I'm trying to accomplish serial communications between two laptops via a Bluetooth connection. The two laptops are NOT Toshiba notebook, but they are both running the Toshiba Bluetooth Stack For Windows. They are also both using the default Bluet

  • Extract field error

    I have the following select to extract a date containing month and year from a varchar2 column select to_char(sau_date,'MM') MONTH,extract(year from sau_date) YEAR, count(*) COUNT from mac.sysaud group by to_char(sau_date,'MM'),extract(year from sau_

  • Change Report Status Page?

    After you run a report and use the destype=mail, the Oracle Report Job Status web page comes up. Is there a way to modify this page??? We do not want our users to see this page, and would like to create our own in its place. Thanks, [email protected]