[Castore-commits] InterfaceGraphique.java 1.2 1.3

Mohamed Yenje Ould Elkhadir mohamed at adullact1.hosting.cri74.org
Lun 21 Aou 17:27:52 CEST 2006


Update of /cvsroot/castore/castore-applets/src/java/fr/emn/castor/applets/gestionWorkflows/applet
In directory adullact1:/tmp/cvs-serv1056/src/java/fr/emn/castor/applets/gestionWorkflows/applet

Modified Files:
	InterfaceGraphique.java 
Log Message:
modification de l'URL de servlet pour qu'il soit standard

Index: InterfaceGraphique.java
===================================================================
RCS file: /cvsroot/castore/castore-applets/src/java/fr/emn/castor/applets/gestionWorkflows/applet/InterfaceGraphique.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** InterfaceGraphique.java	14 Aug 2006 08:12:45 -0000	1.2
--- InterfaceGraphique.java	21 Aug 2006 15:27:49 -0000	1.3
***************
*** 135,138 ****
--- 135,140 ----
  
      public String identifiant_Workflow;
+     
+     URL urlServlet;
  
      /**
***************
*** 143,150 ****
      public void CreationComposants()
  
!     {
          scrollPane = new JScrollPane(panel_gauche,JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED );
  
!         mf = new ModelWorkflow();
  
          panel_etapes = new JEtapesPane(mf);
--- 145,154 ----
      public void CreationComposants()
  
!     {  
!     	urlServlet=super.getCodeBase();
!         
          scrollPane = new JScrollPane(panel_gauche,JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED );
  
!         mf = new ModelWorkflow(urlServlet);
  
          panel_etapes = new JEtapesPane(mf);
***************
*** 304,312 ****
  
                          try {
!                             URL url;
! 
!                             url = new URL(
!                                 "http://localhost:8080/castore/ServletGestionWorkflows?ajout=oui&supprimer=non");
! 
                              URLConnection con = url.openConnection();
  
--- 308,317 ----
  
                          try {
!                             URL url=new URL("http://localhost:8080/castore/ServletGestionWorkflows?ajout=oui&supprimer=non");
!                           
!                             if(!urlServlet.getProtocol().equals("file"))
!                     		{
!                     		  url = new URL(urlServlet.toString()+"/../ServletGestionWorkflows?ajout=oui&supprimer=non");
!                     		}
                              URLConnection con = url.openConnection();
  
***************
*** 388,392 ****
                              URL url = new URL(
                                  "http://localhost:8080/castore/ServletGestionWorkflows?ajout=non&supprimer=oui");
! 
                              URLConnection con = url.openConnection();
  
--- 393,400 ----
                              URL url = new URL(
                                  "http://localhost:8080/castore/ServletGestionWorkflows?ajout=non&supprimer=oui");
!                             if(!urlServlet.getProtocol().equals("file"))
!                     		{
!                     		  url = new URL(urlServlet.toString()+"/../ServletGestionWorkflows?ajout=non&supprimer=oui");
!                     		}
                              URLConnection con = url.openConnection();
  




Plus d'informations sur la liste de diffusion Castore-commits