i created an additional mapping for the FlexMxmlServlet and tried to directly access the servlet using the mapping. But it saying resource not available..
Any idea why? Thanks Priya --- In [email protected], "Dirk Eismann" <[EMAIL PROTECTED]> wrote: > The FlexMxmlServlet gets invoked for every requested .mxml file. The > mapping is defined in the Flex web.xml file, approx. at line 166 > > <servlet-mapping> > <servlet-name>FlexMxmlServlet</servlet-name> > <url-pattern>*.mxml</url-pattern> > </servlet-mapping> > > The very first time a .mxml file is requested the file and all depending > files will get compiled into a single SWF file (if the server is set to > production-mode = true which is the default). First, the .mxml files get > translated into .as files, then all .as files get compiled into a SWF > file. > > This SWF file will get cached by the Flex server. Once the file is > cached it will be served from cache the next time it is requested. Only > if you change the source code, or if the cache expires, the SWF will get > created again. > > If you look at the HTML code that gets returned when calling a .mxml > file on your server, you'll see that the default wrapper references a > SWF file called blah.mxml.swf (where "blah" is the name of the requested > file). This SWF file is the compilation of all .mxml and .as files > needed. > > Dirk. > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of priya_sukup > Sent: Tuesday, August 30, 2005 10:32 AM > To: [email protected] > Subject: [flexcoders] Re: Creating flex gui on the fly > > Hi, > > In web applications when we request a url with name.mxml, does the > FlexMxmlServlet gets called. Does the below mentioned generation and > compilation happen before this servlet is called? Can someone please > explain the basics behind this? > > When i try to forward the response from my servlet to FlexMxmlServlet i > get the message resource not available even though i have created a > mapping to the FlexMxmlServlet like '/FlexMxmlServlet' in web.xml. > > Can someone explain this. > > Regards > Priya ------------------------ 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/

