Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » How to configure RAP Application through web.xml?(How to configure RAP Application through web.xml?)
icon5.gif  How to configure RAP Application through web.xml? [message #757615] Sun, 20 November 2011 11:23 Go to next message
Andreas Hollmann is currently offline Andreas HollmannFriend
Messages: 20
Registered: June 2011
Location: Dresden
Junior Member
Dear Eclipse Community,

I developed my first RAP-Application and deployed it as .war file in tomcat. Now I'd like to configure my RAP-application through init-parameters defined in web.xml.
<init-param>
  <param-name>name</param-name>
  <param-value>Joe</param-value>
</init-param>

Usually such parameters can be accessed through ServletContext.

How can I access the ServletContext or values of defined parameters?

Cheers
Andrej
Re: How to configure RAP Application through web.xml? [message #758165 is a reply to message #757615] Tue, 22 November 2011 08:32 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
Andrej,

within a running request, you can access the ServletContext with
RWT.getSessionStore().getHttpSession().getServletContext().

HTH
Rüdiger

On 20.11.2011 12:23, Andrej wrote:
> Dear Eclipse Community,
>
> I developed my first RAP-Application and deployed it as .war file in
> tomcat. Now I'd like to configure my RAP-application through
> init-parameters defined in web.xml.
> <init-param>
> <param-name>name</param-name>
> <param-value>Joe</param-value>
> </init-param>
>
> Usually such parameters can be accessed through ServletContext.
>
> How can I access the ServletContext or values of defined parameters?
>
> Cheers
> Andrej
>
--
Rüdiger Herrmann
http://codeaffine.com
icon14.gif  Re: How to configure RAP Application through web.xml? [message #758179 is a reply to message #758165] Tue, 22 November 2011 09:14 Go to previous messageGo to next message
Andreas Hollmann is currently offline Andreas HollmannFriend
Messages: 20
Registered: June 2011
Location: Dresden
Junior Member
Aha,
Thank you very much!

Razz
Andrej
Re: How to configure RAP Application through web.xml? [message #758180 is a reply to message #758165] Tue, 22 November 2011 09:14 Go to previous message
Andrej is currently offline AndrejFriend
Messages: 10
Registered: July 2009
Junior Member
Aha,
Thank you very much!

:p
Andrej
Previous Topic:How to deploy a RAP 1.5.0M2 application onto Tomcat server?
Next Topic:Drag&Drop to Editor Area, Javascript error
Goto Forum:
  


Current Time: Tue Apr 23 09:16:22 GMT 2024

Powered by FUDForum. Page generated in 0.03015 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top