On 5/28/05, Ikezi Kamanu <[EMAIL PROTECTED]> wrote: > I'm running flex 1.5 with integrated JRun, and have created > a virtual mapping to my mxml files [...]
> so: http://localhost:8700/foo points to c:\path_to\my_mxml\ > > > When I then try to visit http://localhost:8700/foo > I get my mxml dumped back out at me as text, instead of > a rendered swf. That's because *.mxml is mapped to the FlexMxmlServlet in web.xml. One solution is to map /foo as well: <servlet-mapping> <servlet-name>FlexMxmlServlet</servlet-name> <url-pattern>/foo</url-pattern> </servlet-mapping> Add the above to your web.xml You could put all your MXML virtual mappings under /mxml and then map that pattern to the FlexMxmlServlet: <servlet-mapping> <servlet-name>FlexMxmlServlet</servlet-name> <url-pattern>/mxml/*</url-pattern> </servlet-mapping> Or, umm, map /* itself? (That might screw up a lot of other things.) 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/

