Changeset 784 for tapas/web


Ignore:
Timestamp:
05/07/14 15:28:22 (10 years ago)
Author:
cbipsl
Message:

tapas.properties
Correction fichiers .js

Location:
tapas/web
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • tapas/web/project/formTapas.jsp

    r779 r784  
    2121    <tiles:put name="insertJsOrJsp" type="string"> 
    2222        <ether:htmlJs jsFile="library/jquery.json-2.3"/> 
    23         <ether:htmlJs jsFile="library/js/jquery-ui-1.8.16.custom.min.js"/> 
     23        <ether:htmlJs jsFile="library/jquery-ui-1.8.16.custom/js/jquery-ui-1.8.16.custom.min"/> 
    2424        <!--<script src="js/library/jquery-ui-1.8.16.custom/js/jquery-ui-1.8.16.custom.min.js"></script>--> 
    2525        <ether:htmlJs jsFile="classesForJQuery/Select"/> 
  • tapas/web/project/formTapas_script.jsp

    r783 r784  
    1 <script src="js/library/jquery-ui-1.8.16.custom/js/jquery-ui-1.8.16.custom.min.js"></script> 
     1<%--<script src="js/library/jquery-ui-1.8.16.custom/js/jquery-ui-1.8.16.custom.min.js"></script>--%> 
    22<script type="text/javascript"> 
    33 
  • tapas/web/resources/templates/templateEther.jsp

    r783 r784  
    3434    <ether:htmlJs jsFile="TwitterLogin/javascripts/jquery.tipsy"/> 
    3535    <ether:htmlJs jsFile="library/jquery-ui-1.8.16.custom/js/jquery-ui-1.8.16.custom.min"/> 
    36     <ether:htmlJs jsFile="apycom.com-8-orange-rued/menu"/> 
     36    <ether:htmlJs jsFile="apycom.com-8-orange-red/menu"/> 
    3737    <jsp:include page="templateEther_script.jsp"/> 
    3838 
  • tapas/web/src/com/ether/Controller.java

    r779 r784  
    1313import org.jetbrains.annotations.NotNull; 
    1414 
     15import java.io.File; 
    1516import java.io.FileInputStream; 
     17import java.io.FileNotFoundException; 
    1618import java.io.IOException; 
     19import java.io.InputStream; 
    1720import java.util.ArrayList; 
    1821import java.util.List; 
     
    7578    //@ControllerMethod(jsonResult = true, userMandatory = false, defaultView = VIEW_INDEX) 
    7679    public JSONObject createUserRequest( @ParamName("jsonTapas") @Mandatory @UseJSON final Tapas javaTapas, @NotNull final User user ) 
    77     //public JSONObject createUserRequest( @ParamName("jsonTapas") @Mandatory @UseJSON final Tapas javaTapas ) 
    7880            throws WebException 
    7981    { 
    80  
    81         /***********/ 
    82         /*    final User user = new User(); 
    83       user.setId( 12 ); 
    84       user.setLastName( "tamere" ); 
    85       user.setEmail( "rbopipsl@ipsl.jussieu.fr" ); 
    86       user.setCreationDate( new Date() ); 
    87       user.setPassword( "pif" );*/ 
    88         /******/ 
    8982 
    9083        if( null == javaTapas ) 
     
    9285 
    9386        final Properties prop = new Properties(); 
    94         try 
    95         { 
    96             prop.load( new FileInputStream( "tapas.properties" ) ); 
     87        final File propertiesFile = new File(WebHelper.PROPERTIES_FILE_PATH + WebHelper.PROPERTIES_FILE); 
     88        try 
     89        { 
     90            final InputStream is = new FileInputStream(propertiesFile); 
     91            prop.load( is ); 
     92        } 
     93        catch( FileNotFoundException e ) 
     94        { 
     95            throw new WebException( ServiceException.ServiceCode.PROPERTIES_FILE_NOT_FOUND, e ); 
    9796        } 
    9897        catch( IOException e ) 
  • tapas/web/src/com/ether/WebHelper.java

    r767 r784  
    110110        try 
    111111        { 
    112             final String webInfPath = request.getSession().getServletContext().getRealPath( "WEB-INF" ); 
    113             return getProperty( webInfPath + "/classes/", PROPERTIES_FILE, property ); 
     112//            final String webInfPath = request.getSession().getServletContext().getRealPath( "WEB-INF" ); 
     113//            return getProperty( webInfPath + "/classes/", PROPERTIES_FILE, property ); 
     114            return getProperty( PROPERTIES_FILE_PATH, PROPERTIES_FILE, property ); 
    114115        } 
    115116        catch( IOException e ) 
     
    177178    public static final int STATUS_CODE_SERVICE_EXCEPTION = 500; 
    178179    public static final String PROPERTIES_FILE = "tapas.properties"; 
     180    public static final String PROPERTIES_FILE_PATH = "/usr/local/apache-tomcat-6.0.18/conf/"; 
    179181 
    180182    private static final Log LOGGER = LogFactory.getLog( WebHelper.class ); 
Note: See TracChangeset for help on using the changeset viewer.