If you have the Flex samples installed you could browse down to the node 
JSP Tag Library.

A sinppet of the code is as follows:

<%@ taglib uri="FlexTagLib" prefix="mm" %>
<html>
<body>
This is just HTML.<br>
<mm:mxml>

    <mx:Application width="200" height="200" 
xmlns:mx="http://www.macromedia.com/2003/mxml";>

        <mx:Accordion width="100%" height="100%">
            <mx:VBox label="Panel 1"/>
            <mx:VBox label="Panel 2"/>
            <mx:VBox label="Panel 3"/>
        </mx:Accordion>

    </mx:Application>

</mm:mxml>
This is HTML again
</body>
</html>

priya_sukup wrote:

> Can you please give an example on this taglib functionality?
>
> I am relatively new to flex so it would be great help..
>
> Thanks
> Priya
>
> --- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]>
> wrote:
> > The problem is that there are two server-based compile steps that
> happen
> > before the client gets the app.
> >
> > First, the mxml is generated in .as files, then the .as files are
> > compiled into a swf, which is wrapped in html then sent to the
> client.
> >
> > You are skipping the generate and compile.
> >
> > I don't know of any to do this in a "stream". There is a command-
> line
> > compiler, mxmlc, but I suspect it is not stream oriented either.
> >
> > For dynamic mxml, folks usually use the taglib functionality.
> >
> > Tracy
> >
> > -----Original Message-----
> > From: [email protected]
> [mailto:[EMAIL PROTECTED] On
> > Behalf Of priya_sukup
> > Sent: Monday, August 29, 2005 9:12 AM
> > To: [email protected]
> > Subject: [flexcoders] Creating flex gui on the fly
> >
> > Hi,
> >
> > I am trying to create flex screens on the fly in my web app. I am
> > using xsl to transform the xml of a screen to mxml. The screen is
> > identified based on the url sent to the server. The transformation
> > is done using xalan from a servlet. But when the response is sent
> to
> > the browser from the servlet the content(the generated mxml file)
> is
> > displayed as xml in the browser.
> >
> > Can any one help in this? Can i use any of teh filters defined in
> > flex to transform the response containing the mxml to swf.
> >
> > If i save the mxml into a file in the web app folder and redirect
> to
> > the saved mxml. everything works fine.
> >
> > But i don not want to create the mxml in the server. So can any
> one
> > help me out..
> >
> > Thanks in advance
> >
> > Priya
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
>     *  Visit your group "flexcoders
>       <http://groups.yahoo.com/group/flexcoders>" on the web.
>        
>     *  To unsubscribe from this group, send an email to:
>        [EMAIL PROTECTED]
>       <mailto:[EMAIL PROTECTED]>
>        
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to