RE: JSTL and Struts together
Thank You. found EL jar and tld in contrib folder. Original message >Date: Fri, 20 May 2005 06:23:18 -0700 >From: "Karr, David" <[EMAIL PROTECTED]> >Subject: RE: JSTL and Struts together >To: "Struts Users Mailing List" > >If you look in the "contrib" folder of the Struts distribution, you'll >find the "struts-el" distribution. This provides a taglib that just >wraps the Struts tag library so that all tag attributes are passed >through the JSTL EL engine, so you could do the following: > ><%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c"/> ><%@ taglib uri="/tags/struts-html-el" prefix="html"/> > > >property="name" > value="${param.x}"/> > > >> -Original Message- >> From: Suresh Khatri [mailto:[EMAIL PROTECTED] >> Sent: Thursday, May 19, 2005 10:16 PM >> To: user@struts.apache.org >> Subject: JSTL and Struts together >> >> >> <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c"/> >> <%@ taglib uri="/tags/struts-html" prefix="html"/> >> >> >>> property="name" >> value=""/> >> >> >> would display the whole thing. Is there a way of making it >> evaluate > of html:text >> >> this works but it is because input is not in the namespace >> html >> >name="name" value=""/> >> >> How can this be solved using Struts and JSTL >> >> >> --- -- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: user- [EMAIL PROTECTED] >> >> > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSTL and Struts together
If you look in the "contrib" folder of the Struts distribution, you'll find the "struts-el" distribution. This provides a taglib that just wraps the Struts tag library so that all tag attributes are passed through the JSTL EL engine, so you could do the following: <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c"/> <%@ taglib uri="/tags/struts-html-el" prefix="html"/> > -Original Message- > From: Suresh Khatri [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 19, 2005 10:16 PM > To: user@struts.apache.org > Subject: JSTL and Struts together > > > <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c"/> > <%@ taglib uri="/tags/struts-html" prefix="html"/> > > > property="name" > value=""/> > > > would display the whole thing. Is there a way of making it > evaluate of html:text > > this works but it is because input is not in the namespace > html > name="name" value=""/> > > How can this be solved using Struts and JSTL > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSTL and Struts together
Suresh, I would recommend you still use "html" as prefix instead of "html-el". This way, when you switch to a web container that supports EL and decide to drop the struts-el.jar, you can just modify your <%@ taglib %> declaration to reconfigure (or, depending on how configure tags, just your web.xml file). Of course there's nothing wrong with using the "html-el" prefix, but I prefer sticking with the usual prefixes. Hubert On 5/20/05, David Johnson <[EMAIL PROTECTED]> wrote: > you can use the control to > accomplish just that I'm doing that in a bunch of places. > > On 5/20/05, Shey Rab Pawo <[EMAIL PROTECTED]> wrote: > > > > etc. > > > > On 5/19/05, Suresh Khatri <[EMAIL PROTECTED]> wrote: > > > <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c"/> > > > <%@ taglib uri="/tags/struts-html" prefix="html"/> > > > > > > http://dynaadd.do>"> > > > > > property="name" > > > value=""/> > > > > > > > > > would display the whole thing. Is there a way of making it > > > evaluate > > of html:text > > > > > > this works but it is because input is not in the namespace > > > html > > > > > name="name" value=""/> > > > > > > How can this be solved using Struts and JSTL > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > No one ever went blind looking at the bright side of life. > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > -Dave > [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSTL and Struts together
you can use the control to accomplish just that I'm doing that in a bunch of places. On 5/20/05, Shey Rab Pawo <[EMAIL PROTECTED]> wrote: > > etc. > > On 5/19/05, Suresh Khatri <[EMAIL PROTECTED]> wrote: > > <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c"/> > > <%@ taglib uri="/tags/struts-html" prefix="html"/> > > > > http://dynaadd.do>"> > > > property="name" > > value=""/> > > > > > > would display the whole thing. Is there a way of making it > > evaluate > of html:text > > > > this works but it is because input is not in the namespace > > html > > > name="name" value=""/> > > > > How can this be solved using Struts and JSTL > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > No one ever went blind looking at the bright side of life. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- -Dave [EMAIL PROTECTED]
Re: JSTL and Struts together
etc. On 5/19/05, Suresh Khatri <[EMAIL PROTECTED]> wrote: > <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c"/> > <%@ taglib uri="/tags/struts-html" prefix="html"/> > > > property="name" > value=""/> > > > would display the whole thing. Is there a way of making it > evaluate of html:text > > this works but it is because input is not in the namespace > html > name="name" value=""/> > > How can this be solved using Struts and JSTL > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- No one ever went blind looking at the bright side of life. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]