You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Eduardo Kortright <ek...@gmail.com> on 2007/04/04 20:50:46 UTC
Struts 2 and JSTL (XML)
Hello,
Does anyone know if it's possible to combine Struts 2 and JSTL, specifically
the XML tags?
Or does Struts 2 provide the same functionality in its own set of tags? I
would like to be able to import an XML document from some web service and
parse out the information into variables that I can display or pass to a
bean for further processing.
Thanks.
--
Eduardo Kortright
Re: Struts 2 and JSTL (XML)
Posted by Eduardo Kortright <ek...@gmail.com>.
Thanks!
On 4/5/07, Brian Thompson <el...@gmail.com> wrote:
>
> Yeah, it's possible. Just declare both taglibs in your jsps, like this:
>
> <%@ 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://java.sun.com/jsp/jstl/sql" prefix="sql" %>
> <%@ taglib uri="/struts-tags" prefix="s" %>
>
>
> -Brian
>
> On 4/4/07, Dave Newton <ne...@yahoo.com> wrote:
> >
> > --- Eduardo Kortright <ek...@gmail.com> wrote:
> > > Does anyone know if it's possible to combine Struts
> > > 2 and JSTL, specifically the XML tags?
> >
> > While I haven't used the XML tags specifically I have
> > no idea why you wouldn't be able to use them just like
> > any of the JSTL tags; it's just another Java web
> > framework.
> >
> > d.
> >
> >
> >
> >
> >
> >
> ____________________________________________________________________________________
> > The fish are biting.
> > Get more visitors on your site using Yahoo! Search Marketing.
> > http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
--
Eduardo Kortright
Re: Struts 2 and JSTL (XML)
Posted by Brian Thompson <el...@gmail.com>.
Yeah, it's possible. Just declare both taglibs in your jsps, like this:
<%@ 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://java.sun.com/jsp/jstl/sql" prefix="sql" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
-Brian
On 4/4/07, Dave Newton <ne...@yahoo.com> wrote:
>
> --- Eduardo Kortright <ek...@gmail.com> wrote:
> > Does anyone know if it's possible to combine Struts
> > 2 and JSTL, specifically the XML tags?
>
> While I haven't used the XML tags specifically I have
> no idea why you wouldn't be able to use them just like
> any of the JSTL tags; it's just another Java web
> framework.
>
> d.
>
>
>
>
>
> ____________________________________________________________________________________
> The fish are biting.
> Get more visitors on your site using Yahoo! Search Marketing.
> http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: Struts 2 and JSTL (XML)
Posted by Dave Newton <ne...@yahoo.com>.
--- Eduardo Kortright <ek...@gmail.com> wrote:
> Does anyone know if it's possible to combine Struts
> 2 and JSTL, specifically the XML tags?
While I haven't used the XML tags specifically I have
no idea why you wouldn't be able to use them just like
any of the JSTL tags; it's just another Java web
framework.
d.
____________________________________________________________________________________
The fish are biting.
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org