0 Replies Latest reply on Jul 15, 2010 8:37 AM by amol bhandwale

    restrict user to see mxml code in browser.

    amol bhandwale Level 1

      Hi,

       

      I hve created a HelloWorld web project in flex builder with application server J2EE with wtp support and added blazeds.It Created project successfully.

       

      when i run the project it shows the URL http://localhost:8080/HelloWorld/

      and showing

       

      Directory Listing For /


      FilenameSizeLast Modified
         AC_OETags.js7.8 kbThu, 15 Jul 2010 15:07:46 GMT
         HelloWorld.html4.1 kbThu, 15 Jul 2010 15:08:02 GMT
         HelloWorld.mxml0.1 kbThu, 15 Jul 2010 15:07:50 GMT
         HelloWorld.swf328.8 kbThu, 15 Jul 2010 15:08:02 GMT
         history/ Thu, 15 Jul 2010 15:11:26 GMT
         playerProductInstall.swf0.6 kbThu, 15 Jul 2010 15:07:46 GMT

       

      I change the in web.xml

      <welcome-file-list>
              <welcome-file>HelloWorld.html</welcome-file>
      </welcome-file-list>

      and run the application on server http://localhost:8080/HelloWorld/ it show proper swf file.

       

      If user gives the URL http://localhost:8080/HelloWorld/HelloWorld.mxml then mxml code is shown in browser.

       

      I want to restrict the user to see the mxml code even if he gives the hit to http://localhost:8080/HelloWorld/HelloWorld.mxml

       

      while deploying on server locally how to restrict only swf file goes not the HelloWorld.mxml in eclipse.

       

       

      Thanks,

      Amol.