anchor.diff:  <script type="text/javascript" src="js/ext-all.js"></script>
   <script type="text/javascript" src="js/app-all.js"></script>
   <jsp:directive.page import="java.io.*" />
  -<jsp:directive.page import="javax.swing.JFileChooser"/>
  -<script src="//www.java.com/js/deployJava.js"></script>
  +<jsp:directive.page import="javax.swing.*" />
  +<jsp:directive.page import="java.awt.event.*" />
  +<jsp:directive.page import="java.awt.*" />
  +<jsp:directive.page import="java.util.*" />
  +<jsp:directive.page import="javax.swing.SwingUtilities" />
  +<jsp:directive.page import="javax.swing.filechooser.*" />
  +
  +<jsp:directive.page import="java.util.*" />
  +
  +
  +
  +<script>
  +
  +
  +function loadApplet(code,codebase,width,height){
  +	var placeholder=document.getElementById('download');
  +	var a = document.createElement('object'); 
  +	a.setAttribute('type','application/x-java-applet'); 
  +	a.setAttribute('width',width); 
  +	a.setAttribute('height',height); 
  +	var codeParam = document.createElement('param'); 
  +	codeParam.setAttribute('name','code');
  +	codeParam.setAttribute('value',code); 
  +	a.appendChild(codeParam); 
  +	var codebaseParam = document.createElement('param'); 
  +	codebaseParam.setAttribute('name','codebase');
  +	codebaseParam.setAttribute('value',codebase);
  +	a.appendChild(codebaseParam);
  +	placeholder.appendChild(a); }
  +	
  +/*function openApplet()
  +	{alert("hi");
  +	var app = document.MyApplet;
  +    var attributes ={code:'MyApplet',width:500, height:300};
  +	}*/
  +</script>
  +
  +<body>
  +  <applet code="MyApplet.class" codebase="/../main/java/MyApplet.class" height="300" width="550" />
  +  <!-- <object name="BrowsePage" type="application/x-java-applet" height="300" width="550" > -->
  +  <param name="code" value="BrowsePage.class"/>
  +  </object>
   	<script>
  -	function loadApplet(code,codebase,width,height){
  -	    var placeholder=document.getElementById('download');
  -	    var a = document.createElement('object');
  -	    a.setAttribute('type','application/x-java-applet');
  -	    a.setAttribute('width',width);
  -	    a.setAttribute('height',height);
  -
  -	    var codeParam = document.createElement('param');
  -	    codeParam.setAttribute('name','code');
  -	    codeParam.setAttribute('value',code);
  -	    a.appendChild(codeParam);
  -
  -	    var codebaseParam = document.createElement('param');
  -	    codebaseParam.setAttribute('name','codebase');
  -	    codebaseParam.setAttribute('value',codebase);
  -	    a.appendChild(codebaseParam);
  -
  -	    placeholder.appendChild(a);
  -	}
  -     </script>
  -
  -<body>
  -   <!--   <applet code="BrowsePage.class" codebase="/../main/java/BrowsePage.class" height="300" width="550" /> -->
  -    <!--  <object name="BrowsePage" type="application/x-java-applet" height="300" width="550" >
  -    <param name="code" value="BrowsePage.class"/>
  -    </object> -->
  + var baseURL = 'http://localhost:8080/desginer-web/services/crud/';
  +	</script>
  +	<script type="text/javascript" src="js/app-model.js"></script>
  +	<script type="text/javascript" src="js/app-store.js"></script>
  +	
  +	</body>
  +	
  +
   	<script>
  +	
   	   var baseURL = 'http://localhost:8080/desginer-web/services/crud/';
  +	   var baseGIT='https://localhost:18443/gitblit/repositories/';
   	</script>
   	<script type="text/javascript" src="js/app-model.js"></script>
   	<script type="text/javascript" src="js/app-store.js"></script>
   	<script>
  -	 
  +	   
   		function createGrid(title, store, columns) {
   			  return	Ext.create('Ext.grid.Panel', {
   			        title: title,
  
positive.code:                             	
                                        
                                 
                             })},
                             
                              	{text : 'Is Primary Key',dataIndex : 'primarykey',editor:new Ext.form.field.ComboBox({
                                      typeAhead:true,
                                      triggerAction:'all',
                                      store:optionStore,
                                      editable:true,
                                      selectOnTab:true,
                                      valueField: 'name',
                                      displayField: 'abbr'
                                      
                                      
                                   	})},
                              	
                              	];
  			
  
negative.code:                         formBind: true, 
                          disabled: true,
                          handler: function() {
                              var form = this.up('form').getForm();
  							var formData=form.getValues();
  							alert(formData.toSource());
  							formData.app={'id':miniApp.id};
  							var a=form.findField('jdbcURL').getValue();
  							var b=form.findField('jdbcDriver').getValue();
  							var c=form.findField('username').getValue();
  							var d=form.findField('password').getValue();
  							formData.dbConfig={'id':0, 'jdbcURL':a, 'jdbcDriver':b, 'username':c, 'password':d, 'name':miniApp.db};
  							var e=form.findField('inheritence').getValue();
  							var f=form.findField('association').getValue();
  							var g=form.findField('idgeneration').getValue();
  							formData.persistenceAPIConfig={'id':0, 'inheritence':e, 'association':f, 'idgeneration':g, 'name':miniApp.persistenceAPI};
  							formData.securityAPIConfig={'id':0, name:miniApp.securityAPI};
  							if(miniApp.securityStore=="LDAP"){
  								var h=form.findField('userProvider').getValue();
  								var i=form.findField('userFilter').getValue();
  								var j=form.findField('authzIdentity').getValue();
  								formData.securityStoreConfig={'lDAPConfig':{'id':0, 'userProvider':h, 'userFilter':i, 'authzIdentity':j, name:miniApp.securityStore}, 'id':0, name:miniApp.securityStore};
  							}
  							
  							else if(miniApp.securityStore=="Facebook"){
  								var h=formData.findField('clientId').getValue();
  								var i=formData.findField('clientSecret').getValue();
  								
  								formData.securityStoreConfig={'facebookConfig':{'id':0, 'clientId':h, 'clientSecret':i, name:miniApp.securityStore}, 'id':0, name:miniApp.securityStore};
  								
  								
  								
  							}
  							formData.name=miniApp.name;
  							formData.description=miniApp.description;
  							formData.id=0;
  							Ext.Ajax.request({
  		        				url : baseURL + 'AppConfig/',
  		        				method : 'POST',
  		        				headers : {
  		        					'Content-Type' : 'application/json'
  		        				},
  		        				jsonData : formData,
  		        				success :function() {alert("Yipee!! Success!");
  		        				
  		        					Ext.Ajax.request({
  		        						url: baseURL+'autogen/app/small/'+miniApp.id,
  		        						method: 'POST',
  		        						headers : {
  				        					'Content-Type' : 'application/json'
  				        				},
  				        				timeout:600000,
  				        				success:function() {
  				        				alert("App made success");
  				        				
  				        				Ext.getCmp('download').show();
  				        			
  				        				},
  				        				failure : function(){ alert("App not made");
  				        				 window.location.reload();
  				        				 }
  				        				});
  				        				},
  		        					
  		        				failure : function(){ alert("Failed");
  		        				 window.location.reload();}
  		        				
  		        				
  		        			});
  							
  							
                             
                          }
                      
                      
                      
                      }]
                      
                  }]
  			});
  			
  			minAppWin.show(viewport,  function () {});
  			
  		}
  		
  	
  			win =  Ext.create('widget.window', {
                  title: 'Download',
                  closable: true,
                  closeAction: 'hide',
                  id:'download',
                  resizable: true,
                  draggable: true,
                  //animateTarget: this,
                  width: 100,
                  height: 100,
                  layout: 'border',
                  bodyStyle: 'padding: 5px;',
               
                  	buttons: [{
                          text: 'Download',
                          handler: function() {
                          	var test=window.open();
                          	test.location='http://localhost:8080/desginer-web/download?fileName='+miniApp.name;
  
          					/*Ext.Ajax.request({
          						url: 'http://localhost:8080/desginer-web/download?fileName='+miniApp.name,
          						method: 'GET',
          						headers : {
  		        					'Content-Type' : 'application/json'
  		        				},
  		        				success:function() {
  		        				alert("File Download Successful");
  		        				
  		        				Ext.getCmp('download').show();
  		        			
  		        				},
  		        				failure : function(){ alert("File downlaod failed");
  		        				 window.location.reload();
  		        				 }
  		        				});*/
                          }
                  }]
              	
  			});
  			
  		
  
  
  
  		
  			
  			
  			/*function saveFileToDisk(url, dest, callback) {
  			    var xhr = new XMLHttpRequest();
  
  			    xhr.onload = function() {
  			        var typedData = new Uint8Array(xhr.response),
  			            ln = typedData.length,
  			            data = new Array(ln),
  			            result;
  
  			        for (var i = 0; i < ln; i++) {
  			            data[i] = typedData[i];
  			        }
  
  			        result = Ion.io.writeFile(dest, data);
  			        callback(result.success);
  			    };
  
  			    xhr.onerror = function() {
  			        callback(false);
  			    };
  
  			    xhr.open('GET', url);
  			    xhr.responseType = 'arraybuffer';
  			    xhr.send(null);
  			}*/
  		
  
  		
  		
  			
  		function newApp (item, e) {
  