Looking for Simple JSTL Example

Hi Everyone,
I'm looking for an example of a simple Web application that uses "JavaServer Pages Standard Tag Library" (JSTL) -- that doesn't use JDeveloper!
I have OC4J stand-alone 10.1.3.0.0 on Microsoft Windows XP Professional Version 2002 Service Pack2 with JDK 1.5.0_07
I created and packaged a J2EE application in a EAR file. The EAR file contents:
META-INF/application.xml
frstjstl.warContents of "application.xml"
<?xml version="1.0"?>
<application
       xmlns="http://java.sun.com/xml/ns/j2ee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/application_1_4.xsd"
       version="1.4">
  <module>
    <web>
      <web-uri>frstjstl.war</web-uri>
      <context-root>frstjstl</context-root>
    </web>
  </module>
</application>Contents of "frstjstl.war"
META-INF/MANIFEST.MF
index.jsp
WEB-INF/lib/standard.jar
WEB-INF/web.xmlContents of "web.xml"
<?xml version="1.0"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
         version="2.4">
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
  <jsp-config>
    <taglib>
      <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
      <taglib-location>/WEB-INF/lib/standard.jar</taglib-location>
    </taglib>
  </jsp-config>
</web-app>Contents of "index.jsp"
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
  <head>
    <title>Simplest JSTL</title>
  </head>
  <body>
    &lt;h1>Simplest JSTL</h1>
    <c:forEach var="httpRequestHeaders" items="${headerValues}">
      ${httpRequestHeaders.key} = ${httpRequestHeaders.value}
    </c:forEach>
  </body>
</html>My JSTL implementation comes from here:
http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html
The distribution contains a "standard.jar" file and a "jstl.jar" file (among other things). The "standard.jar" file is included in my WAR (see above) and I have copied the "jstl.jar" file to:
%J2EE_HOME%\jsp\lib\taglibI launch OC4J from the command prompt like this:
java -jar oc4j.jarI deploy my EAR using the following command:
java -jar admin.jar ormi://localhost oc4jadmin xxx -deploy -file frstjstl.ear -deploymentName FirstJSTL -bindWebApp default-web-siteThen I launch my Web browser and enter the following URL:
http://localhost/frstjstlAnd I get the following error message:
500 Internal Server Error
OracleJSP: oracle.jsp.parse.JspParseException: /index.jsp: Line # 8, <c:forEach var="httpRequestHeaders" items="${headerValues}">
Error: Attribute: items is not a valid attribute nameThanks (for reading),
Avi.

Thanks Qiang.
Yes, when I copy file "index.jsp" to directory "%J2EE_HOME%\default-web-app\testJstl.jsp" it works.
I use the following URL:
http://localhost:8888/testJstl.jspAnd this is the output I get:
[Format modified to be more suitable to post on this forum.]
Simplest JSTL
CONNECTION = [Ljava.lang.String;@7348e
USER-AGENT = [Ljava.lang.String;@10b8d03
ACCEPT-LANGUAGE = [Ljava.lang.String;@157011e
ACCEPT-ENCODING = [Ljava.lang.String;@10a8143
ACCEPT = [Ljava.lang.String;@ac8360 HOST = [Ljava.lang.String;@1e534cb
[/pre]
But I guess, since the JSTL related JAR files are part of the default Web application, there is no reason it shouldn't work.
That's why you said:
Let us do a sanity test first.So now what?
(And, by the way, thanks for your help.)
Cheers,
Avi.
Message was edited by:
        Avi Abrami                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Looking for simple search example using SELECT

    Can anyone link me to an example of how to create a basic search page where the search criteria is selected in a drop-down list (<SELECT> in HTML)?
    Here's where I'm coming from so you have a better idea of what I'm trying to do. I've created a search page by creating a method in my App Module java class using setWhereClause(), then dropped my view onto my web page as a read-only table, and finally dropped the method and parameter as a command button and input text field, respectively. This works fine, but I'd like to replace the input text field with a select box so that the users will not have to type in their search criteria. I'd like to populate the drop-down with data from a table, which will then be sent as the argument for the method.
    I can create a ViewObject that contains the data I need, but I'm not sure where to go from there. I don't know how to create the drop-down list or connect the command button to the list. (Ultimately, I'd like to have the search text submitted when the drop-down changes, but I'll settle for pressing the button for now). I've fooled with using the LOV component, but without any luck.
    Step-by-step would be great, but if you can point me to an example, some documentation, etc., that would be great too.
    Thanks,
    Andy

    Excellent - Thanks for the link to the sample code page. I thought I had seen all the tutorials, etc. but for some reason never came across this page. The example you cited looks like it's just what I'm looking for.
    (Edit - For anyone who's interested, here's a step-by-step for creating a databound drop down list:
    http://www.oracle.com/technology/products/jdev/tips/mills/databound_lists.html )
    Andy

  • Looking for simple waveform filter

    I am using E series board using single ended input to collect 16 channels of constant value data, (ie 10volts). The data has a small amount of noise and outlying data points which I need to remove. I am attempting to implement a simple low pass filter. I attempted the Buterworth and FIR filters. The code I have attempted based upon the help examples unbundles the waveforms, filters the data, and rebundles the waveforms. This produces a discontinuous waveform when ploted. Addtionally the filtered data looks like a sine wave with an amplitude ranging between zero and the bias of the constant input data dependent upon the input parameters fo the filter. I'm looking for an example code that filters a constant signal with outlying da
    ta points and small amount of noise. I cannnot use a average because the outlers are all on one side of the average value and will bias my data.
    Thanks for the assistnance
    Brian Wells
    Space Research Institute
    Auburn University, AL

    Brian,
    Can you try a running average using shift registers? With this, if the latest point is over x% outside of the running average, then do not include it. Since your signal is "constant," then frequency filters will probably not help you. See the attached example in LabVIEW 6.0.2. The interesting part of this example is that you need to know what your expected value is. If this is unknown, then one must do a bit of statistics (probably through histogramming) to get an initial average value.
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask
    Attachments:
    Remove_Outliers.vi ‏62 KB

  • Looking for simple timeline/calendar screenlet/widget.

    Good day gentlemen,
    I'm looking for a simple screenlet or widget for linux that is a calendar, but designed to be more of a timeline of past events than a reminder of future events. For my specific purpose in this case I'm trying to lose weight. So I'm seeking an application to record my previous weight and other notes about what i ate, and how much and what kind of nutrients i had that day. I would like to keep it in a calendar or timeline like format. Something easy to the point where if my buddy asked me how much i weighed last week or what i did last week, i can simply click on the date and all my notes appear about my weight, and what i ate, etc. Also simple to input data like clicking on the date and entering a note about that day. Something easy to use and sort of integrated into the desktop such as a screenlet or widget, so I don't have to open up a separate window to view these records. I did a little research and was able to find a few things, Rainlendar being one of them. But I feel most of what i found are way more complicated for my purpose. Would any of you happen to have any suggestions on what application would most suit my purpose in its most simplistic form? thanks in advance for your kind and prompt response
    Sincerely,
    Sicariuxs

    There are, apparently, quite a variety of tools just for this purpose.  here's one.  That was just the first one up from a search, I don't actually know anything about it.  But overall, I'd suggest you actually narrow your search as there are tools targetted specifically for such goals.

  • Looking for SIMPLE time tracking app

    Hi all
    I'm looking for a really simple 'retrospective' time sheet app - wondering if anyone knows one?
    I've seen literally hundreds, but they all want you to 'click to start the clock' and then click to end it. This doesn't work for me, as I spend only about 25% of my time in front of the computer.
    What I'm looking for is something that I can put all my client contacts in, then separately link projects to those clients. Then at the end of each day I can quickly recall what I did during the day and assign time to each project.
    Most apps want you to assign time to each project as you go through the day, so its relatively painless to switch projects. However when you do it all at the end of the day, you don't want to keep entering the date, you just want to enter the start/end time, and what project it was. More like a journal entry I guess.
    Then at the end of the month it would print a report that groups the hours worked on each project so that you can review them and create an invoice (or in my case send to my accounts clerk who makes the invoice for me).
    Any ideas from anyone would be greatly appreciated.
    Thanks!

    Hi shannonbray, welcome to the AppleWorks forum, which is intended for discussions of Apple's now-legacied productivity suite called AppleWorks.
    One could develop such a template using the spreadsheet or database modules of AW separately or in combo,but it doesn't sound as if that's your aim. I'm sure clever types have done such things, and perhaps shared them to the AWUserGroups and such, and I hope they note your post and reply. There are certainly numerous clever folks who follow this forum, and they may have pointers to other apps for you, but essentially I think you've posed the wrong question in the wrong place.

  • Looking for Simple Password App

    I'm looking for a simple, secure, free app to store my passwords in. I did a google search and there are hundreds out there. I'd like to use one that someone here has had experience with. I don't want anything sophisticated or something that syncs. Just something to store my passwords on my iphone.
    Thanks, Dick

    Put the Library on an encrypted disk image. Unless Mom is a serious computer head she'll not know what you've been up to.
    Regards
    TD

  • Looking for good first example for RSS

    Hello,
    I am looking for a good code example which will guide me how to use RSS at the portal. Can anyone please direct me to such example?

    Hi Roy,
        I am posting a xslt that filters the news by searching for any news that has "Troops" and "Pope" in the title of the news. I can send you the complete par if you email me your address at [email protected] You owe me lunch buddy. :). The following xslt is for http://rss.news.yahoo.com/rss/world feed.
    [code]<?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>
    <xsl:template match="/rss/channel">
    <a class="urLnk"><xsl:attribute name="href"><xsl:value-of select="link"/></xsl:attribute><xsl:value-of select="title"/></a>
    <xsl:for-each select="item">
    <xsl:variable name="titlestring"><xsl:value-of select="title"></xsl:value-of></xsl:variable>
    <xsl:variable name="pope">Pope</xsl:variable>
    <xsl:variable name="troops">Troops</xsl:variable>
    <xsl:if test="contains($titlestring,$pope) or contains($titlestring,$troops)">
    <table>
        <tr>
             <td class="urTxtStd">
                  <a class="urLnk"><xsl:attribute name="href"><xsl:value-of select="link"/></xsl:attribute><xsl:value-of select="title"/></a>
             </td>
        </tr>
        <tr>
             <td class="urTxtStd">
                 <xsl:value-of select="description"/>
             </td>
        </tr>
    </table>
    </xsl:if>
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>[/code]
    Message was edited by: Prakash  Singh

  • Looking for Analog Out example using DMA and C++; cannot find sample "GenMultVoltUpdates_SWTimed"

    Looking for example for Analog Out to multiple channels using DMA and C++.  Found reference to sample "GenMultVoltUpdates_SWTimed" which I do not have and cannot find.

    Hello Gerry,
    When you install DAQmx, there is an option to install
    support for Measurement Studio.  When you
    select this option, it will install these examples onto your hard drive.  All of the examples can be found at the
    following location: (C:\Documents and Settings\All Users\Documents\National
    Instruments\NI-DAQ\Examples\DotNET2.0\Analog Out\Generate Voltage)
    Respectfully,
    Rob F
    Test Engineer
    Condition Measurements
    National Instruments

  • Looking for Simple Archiving Catalog Software

    I  have previously used AutoCat. Simply drag and drop a folder and AutoCat copies
    the folder hierarchy and makes aliases of all the files. I keep this a catalog to
    be able to simply find all of my files by a search through the finder. It tells
    me the archive number of the disk where I can find a particular project. Very
    simple, very legant. Not supported in Lion so I'm looking for a replacement.

    Touvaly serves the same function as AutoCat. But it goes too far. It makes a "vrtual copy" of a removable disk. It is so hard to tell if you've pulled up real files and folders or the fake ones! - Somebody PLEASE bring back AutoCat!

  • Looking for Simple report

    Hi All
    Hope u are doing well
    I was looking a simple report which gives me celar picture of the stages
    Sales oder no, Invoice numberNo, if on production production ordernumber due date of production order and po invoived to get the production done and trceiving date of POs for the same
    Kindly revert with the best possible option
    Have a nice day
    Kind regards,

    Dear Mona,
    The requirement you have putted on your report is very much complex.As per your scenario this one is only possible when you guys are following the base document otherwise this report is not possible
    Regards,
    Kumar

  • Looking for simple "hide/unhide" method...

    Hi,
    I'm looking for a way to hide/unhide specifically targeted divs.
    Example :
    <a href="hide_div1, hide_div2, show_div3">Link</a>
    <a href="hide_div1, hide_div3, show_div2">Link</a>
    <a href="hide_div2, hide_div3, show_div1">Link</a>
    <div id="div1">Test 1</div>
    <div id="div2">Test 2</div>
    <div id="div3">Test 3</div>
    Know what I mean?

    You are correct, the problem was not what I thought it was. It was a z-indexing issue, which I've fixed. So the link you provided ended up being great for my purposes.
    Now, how difficult would it be to add the fadeIn/fadeOut jQuery behavior to this?
    Current code :
    function HideContent(d) {
        document.getElementById(d).style.display = "none";
    function ShowContent(d) {
        document.getElementById(d).style.display = "block";
    function ReverseDisplay(d) {
        if ( document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
        else { document.getElementById(d).style.display = "none"; }
    http://api.jquery.com/fadeIn/
    http://api.jquery.com/fadeOut/
    I honestly don't know enough about jQuery to integrate the fade intelligently (or in any way that would actually work).
    In other words, when hiding an object, don't have it instantly disappear : have it fade out. When showing it, same thing : fade it in.
    This would be all kinds of awesome.

  • Looking for WebVPN Configuration Examples

    I am looking for examples of VPN Concentrator configurations that provide access to Citrix and applications on the network. I have our intranet and e-mail access working. Any assistance will be appreciated.
    Lou Kirt

    Lou,
    Version 4.7 of the software for the concentrator has support for Citrix with WebVPN. Here is a link to the release notes that describes setting up the concentrator for support.
    http://www.cisco.com/univercd/cc/td/doc/product/vpn/vpn3000/4_7/47con3k.htm#wp499765
    Steve

  • Looking for simple gmail tray notifier for fluxbox

    As said: I'm looking for a really simple tray notifier that supports gmail, and it needs to work in fluxbox. I'm having no luck with the package search, since with most stuff I can't tell if it'll work with gmail.

    skymt wrote:How is it broken? It works for me.
    For me, not so much. Judging by the comments in the AUR, it seems I'm not the only one.
    $ checkgmail /usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi/Gtk2.pm line 62.
    Warning: Crypt::Simple not found ...
    Warning: Crypt::Blowfish not found ...
    Warning: FreezeThaw not found ...
    CheckGmail requires the above packages for password encryption
    Please download and install from CPAN (http://search.cpan.org) if you want to use this feature ...
    XMLin() requires either XML::SAX or XML::Parser at /usr/bin/checkgmail line 3603
    A thread exited while 2 threads were running.

  • Looking for simple touch-to-command utility

    More and more people are using laptops these days, but the number of utilities providing extra touch functionality seems still lacking. I'm looking for a simple utility that will let me bind (multi-) touch gestures to keybindings, and preferably also commands.
    For instance:
    2-finger swipe-left > Mod1-arrowleft
    3-finger swipe-up > exec dmenu_run
    Does anyone know of such a utility?

    litemotiv wrote:
    More and more people are using laptops these days, but the number of utilities providing extra touch functionality seems still lacking. I'm looking for a simple utility that will let me bind (multi-) touch gestures to keybindings, and preferably also commands.
    For instance:
    2-finger swipe-left > Mod1-arrowleft
    3-finger swipe-up > exec dmenu_run
    Does anyone know of such a utility?
    Hey litemotiv,
    Easystroke will do that. I use it with my stylus/tablet to execute apps, commands, text, (ie: passwords, signature, etc), key-bindings, etc... While easystroke <upstream version> isn't multi-touch, there does happen to be a multi-touch version - but as a disclaimer ~ i haven't actually used the MT version. However, here is a link to the blog about it (english translation);
    http://translate.google.com/translate?u … 1&ie=UTF-8
    It's also in the AUR;
    http://aur.archlinux.org/packages.php?ID=54495
    let me know how it works out! (i plan on going multitouch soonish)
    cheerz
    Last edited by triplesquarednine (2012-01-14 21:41:09)

  • Looking for simple movie player

    I am looking for a very simple player with the following characteristics:
    * all mplayer keyboard shortcuts (I imagine some kind of mplayer wrapper application)
    * buttons for play/pause + scrollbar/progressbar + mute + volume
    * ONE dialog with: path to a movie, path to a subtitle, choose subtitle encoding, subtitle font (eventually)
    THAT'S IT, nothing more.
    Codeine is close to being a perfect simple movie player, but the subtitle thingy doesn't really work as I'd like, from my testing.

    try kmplayer or kplayer.

Maybe you are looking for

  • How to make more than one version in XCode?

    So i have already created an app and summited version 1.0 to the app store it was approved and is now live on the app store. I also have created version 1.1 with minor improvments and released that one with an update as well and is also now live. My

  • 3rd gen 20GB iPod not being detected / freezing computer

    One day I plugged in my iPod before I left for work so it would charge, and when I came back it was still stuck on the do not disconnect screen. This was before I knew you could reset the iPod with the select/menu buttons, so I just left it for a bit

  • Problems with c/c++ code in windows 8.1

    I'm trying to run a C commandline program (exe) on windows 8.1 that is compiled with visual studio express 2013.  I get an error that MSVCR120.dll is not found.  I see that installing vcredist should fix it but in this case with windows 8.1, it doesn

  • Portege R700 - fonts in main Window has changed

    Hello, I have pre-installed on my Toshiba Portege R700 AuthenTec Truesuite version 3.0.1.149. After couple of days of good performance the font from the main window has changed becoming impossible to read. Probably I change some settings in Windows a

  • AIA components migration from development to testing toProduction

    Hi , Here i am new for deploying AIA Components and MDS Artifacts from one environment to another is their any docs for that or please share any step by step flow on it requsting you........... Thanku, Ramesh