You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Alok Pota <ap...@dmotorworks.com> on 2003/01/07 15:58:47 UTC

EL not working for my servlet container (Servlet 2.3 Spec)

My code looks like

    <logic-el:iterate name="submitForm" property="keys" id="foo"
indexId="cat">
        <tr>
            <html-el:text name="submitForm" property="keysIndexed[${cat}]"
/>
        </tr>
    </logic-el:iterate>


when I do a view source on the rendered page it and it looks like:

        <tr>
            <html-el:text name="submitForm" property="keysIndexed[${cat}]"
/>
        </tr>

        <tr>
            <html-el:text name="submitForm" property="keysIndexed[${cat}]"
/>
        </tr>

        <tr>
            <html-el:text name="submitForm" property="keysIndexed[${cat}]"
/>
        </tr>


What am I missing?


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: EL not working for my servlet container (Servlet 2.3 Spec)

Posted by "David M. Karr" <dm...@earthlink.net>.
>>>>> "Alok" == Alok Pota <ap...@dmotorworks.com> writes:

    Alok> My code looks like
    Alok>     <logic-el:iterate name="submitForm" property="keys" id="foo"
    Alok> indexId="cat">
    Alok>         <tr>
    Alok>             <html-el:text name="submitForm" property="keysIndexed[${cat}]"
    Alok> />
    Alok>         </tr>
    Alok>     </logic-el:iterate>


    Alok> when I do a view source on the rendered page it and it looks like:

    Alok>         <tr>
    Alok>             <html-el:text name="submitForm" property="keysIndexed[${cat}]"
    Alok> />
    Alok>         </tr>

    Alok>         <tr>
    Alok>             <html-el:text name="submitForm" property="keysIndexed[${cat}]"
    Alok> />
    Alok>         </tr>

    Alok>         <tr>
    Alok>             <html-el:text name="submitForm" property="keysIndexed[${cat}]"
    Alok> />
    Alok>         </tr>

    Alok> What am I missing?

This likely means that you're missing your taglib directives, specifying the
"html-el" and "logic-el" prefixes.  If this isn't clear, examine the sample
pages in the "strutsel-exercise-taglib" application, which is part of the
struts-el distribution.

-- 
===================================================================
David M. Karr          ; Java/J2EE/XML/Unix/C++
dmkarr@earthlink.net   ; SCJP; SCWCD




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>