You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Juergen Donnerstag (JIRA)" <ji...@apache.org> on 2011/06/24 23:59:47 UTC

[jira] [Commented] (WICKET-2815) public String getRealPath(String name) in public class MockServletContext implements ServletContext

    [ https://issues.apache.org/jira/browse/WICKET-2815?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13054705#comment-13054705 ] 

Juergen Donnerstag commented on WICKET-2815:
--------------------------------------------

?? I don't understand the request. Please explain

> public String getRealPath(String name) in  public class MockServletContext implements ServletContext
> ----------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-2815
>                 URL: https://issues.apache.org/jira/browse/WICKET-2815
>             Project: Wicket
>          Issue Type: Improvement
>         Environment: unit testing with eclipse
>            Reporter: adrian pascuts
>              Labels: features
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
>             try
>             {
>                 Resource resource=ContextHandler.this.getResource(path);
>                 if(resource!=null)
>                 {
>                     File file = resource.getFile();
>                     if (file!=null)
>                         return file.getCanonicalPath();
>                 }
>             }
>             catch (Exception e)
>             {
>                 Log.ignore(e);
>             }
>             
>             return null;

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira