You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Gerald Fernando <ge...@gmail.com> on 2009/07/17 09:28:23 UTC

How to get context path of Application

How to get context path of Application

Thanks7Regards,
Gerald A

AW: How to get context path of Application

Posted by Tokalak Ahmet <to...@yahoo.de>.
To locate the file use MyClass.class.getResource()




________________________________
Von: Gerald Fernando <ge...@gmail.com>
An: users@wicket.apache.org
Gesendet: Freitag, den 17. Juli 2009, 12:50:39 Uhr
Betreff: Re: How to get context path of Application

if i do this webRequest cannot be resolved to a type and RequestCycle cannot
be resolved what can i do

Thanks&Regards,
Gerald A

On Fri, Jul 17, 2009 at 2:53 PM, Linda van der Pal <
lvdpal@heritageagenturen.nl> wrote:

> Well I guess Alex already gave the answer.
>
>
>> ((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest().getContextPath()
>>
>
> Alex Objelean
>>
>
>
> Linda
>
>
> Gerald Fernando wrote:
>
>> Hi Linda,
>> Actually my page need to call a XML file.I have stored that file in my web
>> content .error shows that the system could not find the file.but i give a
>> absolute path it is working so i need to get my tomcat path to access that
>> file.
>> How can i access that file?Is there any other way.
>> am expecting your reply urgent.
>>
>> Thanks&regards,
>> Gerald A
>>
>> On Fri, Jul 17, 2009 at 1:12 PM, Linda van der Pal <
>> lvdpal@heritageagenturen.nl> wrote:
>>
>>
>>
>>> What is it exactly you are trying to do?
>>>
>>> Linda
>>>
>>> Gerald Fernando wrote:
>>>
>>>
>>>
>>>>  How to get context path of Application
>>>>
>>>> Thanks7Regards,
>>>> Gerald A
>>>>
>>>>
>>>>  ------------------------------------------------------------------------
>>>>
>>>>
>>>> No virus found in this incoming message.
>>>> Checked by AVG - www.avg.com Version: 8.5.375 / Virus Database:
>>>> 270.13.17/2242 - Release Date: 07/16/09 18:00:00
>>>>
>>>>
>>>>
>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>
>>>
>>
>>  ------------------------------------------------------------------------
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - www.avg.com Version: 8.5.375 / Virus Database:
>> 270.13.17/2242 - Release Date: 07/16/09 18:00:00
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>



      

Re: How to get context path of Application

Posted by Gerald Fernando <ge...@gmail.com>.
if i do this webRequest cannot be resolved to a type and RequestCycle cannot
be resolved what can i do

Thanks&Regards,
Gerald A

On Fri, Jul 17, 2009 at 2:53 PM, Linda van der Pal <
lvdpal@heritageagenturen.nl> wrote:

> Well I guess Alex already gave the answer.
>
>
>> ((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest().getContextPath()
>>
>
> Alex Objelean
>>
>
>
> Linda
>
>
> Gerald Fernando wrote:
>
>> Hi Linda,
>> Actually my page need to call a XML file.I have stored that file in my web
>> content .error shows that the system could not find the file.but i give a
>> absolute path it is working so i need to get my tomcat path to access that
>> file.
>> How can i access that file?Is there any other way.
>> am expecting your reply urgent.
>>
>> Thanks&regards,
>> Gerald A
>>
>> On Fri, Jul 17, 2009 at 1:12 PM, Linda van der Pal <
>> lvdpal@heritageagenturen.nl> wrote:
>>
>>
>>
>>> What is it exactly you are trying to do?
>>>
>>> Linda
>>>
>>> Gerald Fernando wrote:
>>>
>>>
>>>
>>>>  How to get context path of Application
>>>>
>>>> Thanks7Regards,
>>>> Gerald A
>>>>
>>>>
>>>>  ------------------------------------------------------------------------
>>>>
>>>>
>>>> No virus found in this incoming message.
>>>> Checked by AVG - www.avg.com Version: 8.5.375 / Virus Database:
>>>> 270.13.17/2242 - Release Date: 07/16/09 18:00:00
>>>>
>>>>
>>>>
>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>
>>>
>>
>>  ------------------------------------------------------------------------
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - www.avg.com Version: 8.5.375 / Virus Database:
>> 270.13.17/2242 - Release Date: 07/16/09 18:00:00
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: How to get context path of Application

Posted by Linda van der Pal <lv...@heritageagenturen.nl>.
Well I guess Alex already gave the answer.

> ((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest().getContextPath()

> Alex Objelean


Linda

Gerald Fernando wrote:
> Hi Linda,
> Actually my page need to call a XML file.I have stored that file in my web
> content .error shows that the system could not find the file.but i give a
> absolute path it is working so i need to get my tomcat path to access that
> file.
> How can i access that file?Is there any other way.
> am expecting your reply urgent.
>
> Thanks&regards,
> Gerald A
>
> On Fri, Jul 17, 2009 at 1:12 PM, Linda van der Pal <
> lvdpal@heritageagenturen.nl> wrote:
>
>   
>> What is it exactly you are trying to do?
>>
>> Linda
>>
>> Gerald Fernando wrote:
>>
>>     
>>>  How to get context path of Application
>>>
>>> Thanks7Regards,
>>> Gerald A
>>>
>>>  ------------------------------------------------------------------------
>>>
>>>
>>> No virus found in this incoming message.
>>> Checked by AVG - www.avg.com Version: 8.5.375 / Virus Database:
>>> 270.13.17/2242 - Release Date: 07/16/09 18:00:00
>>>
>>>
>>>
>>>       
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>     
>
>   
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com 
> Version: 8.5.375 / Virus Database: 270.13.17/2242 - Release Date: 07/16/09 18:00:00
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to get context path of Application

Posted by Gerald Fernando <ge...@gmail.com>.
Hi Linda,
Actually my page need to call a XML file.I have stored that file in my web
content .error shows that the system could not find the file.but i give a
absolute path it is working so i need to get my tomcat path to access that
file.
How can i access that file?Is there any other way.
am expecting your reply urgent.

Thanks&regards,
Gerald A

On Fri, Jul 17, 2009 at 1:12 PM, Linda van der Pal <
lvdpal@heritageagenturen.nl> wrote:

> What is it exactly you are trying to do?
>
> Linda
>
> Gerald Fernando wrote:
>
>>  How to get context path of Application
>>
>> Thanks7Regards,
>> Gerald A
>>
>>  ------------------------------------------------------------------------
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - www.avg.com Version: 8.5.375 / Virus Database:
>> 270.13.17/2242 - Release Date: 07/16/09 18:00:00
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: How to get context path of Application

Posted by Linda van der Pal <lv...@heritageagenturen.nl>.
What is it exactly you are trying to do?

Linda

Gerald Fernando wrote:
> How to get context path of Application
>
> Thanks7Regards,
> Gerald A
>
>   
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com 
> Version: 8.5.375 / Virus Database: 270.13.17/2242 - Release Date: 07/16/09 18:00:00
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to get context path of Application

Posted by Alex Objelean <al...@yahoo.com>.
((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest().getContextPath()

Alex Objelean


Gerald Fernando wrote:
> 
> How to get context path of Application
> 
> Thanks7Regards,
> Gerald A
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-get-context-path-of-Application-tp24529877p24529972.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org