[opencms-dev] Change a variable from UpperCase to LowerCase

maria.freixes_graells at alcatel.es maria.freixes_graells at alcatel.es
Fri Sep 22 18:41:54 CEST 2006


I've solved the problem with:

<%
   String directori = request.getParameter("carpeta");
   directori = directori.toLowerCase();
   String[] directorios = new String[] {directori};
   search.setSearchRoots(directorios);

%>    


maria.freixes_graells at alcatel.es escribió:
> Hello Everybody!!
>
> I've my jsp file with the directori variable, it has values as:  
> /sites/default/GESTOR-DOCUMENTAL-ALCATEL/proves/
> In order to use the method setSearchRoots, (package 
> org.opencms.search.CmsSearch, class: CmsSearch), I need to convert all 
> the character from directori variable in LowerCase, because the 
> setSearchRoots doesn't work with words in UpperCase.
>
> Any idea to implement this, please?
>
> Many thanks sincerently,
> Maria
>
>
> <%
>  String directori = request.getParameter("carpeta");
>
>  search.setSearchRoots(new String[] {directori});
> %>
>
> GRÀCIES!!!
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev



More information about the opencms-dev mailing list