[prev in list] [next in list] [prev in thread] [next in thread] 

List:       taglibs-dev
Subject:    cvs commit: jakarta-taglibs/tools/UltraDev/4.0/ctlx/src/org/apache/taglibs/tools/ultradev/ctlx TLDPa
From:       glenn () apache ! org
Date:       2002-02-23 19:33:45
[Download RAW message or body]

glenn       02/02/23 11:33:45

  Modified:    tools/UltraDev/4.0/ctlx/src/org/apache/taglibs/tools/ultradev/ctlx
                        TLDParser.java
  Log:
  Fix use of a deprecated method
  
  Revision  Changes    Path
  1.4       +2 -2      \
jakarta-taglibs/tools/UltraDev/4.0/ctlx/src/org/apache/taglibs/tools/ultradev/ctlx/TLDParser.java
  
  Index: TLDParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/tools/UltraDev/4.0/ctlx/src/org/apache/taglibs/tools/ultradev/ctlx/TLDParser.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TLDParser.java	13 Jul 2001 01:53:28 -0000	1.3
  +++ TLDParser.java	23 Feb 2002 19:33:45 -0000	1.4
  @@ -123,7 +123,7 @@
   
   		userMode = req.getParameter("mode").toLowerCase();
   		outputFilePrefix = req.getParameter("prefix");
  -		String tldpath = req.getRealPath(PATH_TO_TLDS);
  +		String tldpath = \
getServletConfig().getServletContext().getRealPath(PATH_TO_TLDS);  
   		/* updated the separator to make it compatible with Windows based servers */
   		tld = new File(tldpath + File.separator + outputFilePrefix + TLD_SUFFIX);
  @@ -381,7 +381,7 @@
    */
    
   	private void outputTLDList(HttpServletRequest req) {
  -                String tldpath = req.getRealPath(PATH_TO_TLDS);
  +                String tldpath = \
getServletConfig().getServletContext().getRealPath(PATH_TO_TLDS);  File dir = new \
File(tldpath);  String[] files = dir.list();
   		
  
  
  

--
To unsubscribe, e-mail:   <mailto:taglibs-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-dev-help@jakarta.apache.org>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic