Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Setting url parameter
Setting url parameter [message #74840] Wed, 20 February 2008 07:12 Go to next message
Eclipse UserFriend
Originally posted by: fannyziegler.gmx.de

Hi,
to read a parameter out of the url of my rap servlet I use the following:
HttpServletRequest request = RWT.getRequest();
System.out.println(request.getParameter("id"));

Is it also possible to change the parameter values in the url? How can I
achieve this? I need to write a parameter value in the url so that another
application can read it.

Thanks,
Fanny
Re: Setting url parameter [message #74873 is a reply to message #74840] Wed, 20 February 2008 08:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

this is common servlet technology. The request object provided by the
server is readonly regarding the request parameters. To share key-value
pairs with 'other' applications regarding the same request you may use
HttpServletRequest#setAttribute(String,Object). For RAP internal
exchange you may use the convenience RWT#getSessionStore()
implementation.

I'm sorry but I don't get the second question. What is it exactly that
you are trying to do, what do you mean by 'other application'?

Ciao
Frank

-----Ursprüngliche Nachricht-----
Von: Fanny [mailto:fannyziegler@gmx.de]
Bereitgestellt: Mittwoch, 20. Februar 2008 08:13
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: Setting url parameter
Betreff: Setting url parameter


Hi,
to read a parameter out of the url of my rap servlet I use the
following:
HttpServletRequest request = RWT.getRequest();
System.out.println(request.getParameter("id"));

Is it also possible to change the parameter values in the url? How can I
achieve this? I need to write a parameter value in the url so that
another application can read it.

Thanks,
Fanny
Re: Setting url parameter [message #74903 is a reply to message #74873] Wed, 20 February 2008 08:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fannyziegler.gmx.de

Hi,
thanks for your answer.
I need to add to the url that is displayed in the browser a new parameter.
So my url is: http://127.0.0.1:2028/rap?startup=default
When a button is pressed I want to change the url so that it displays:
http://127.0.0.1:2028/rap?startup=default&id=1 for example.
Re: Setting url parameter [message #74939 is a reply to message #74903] Wed, 20 February 2008 08:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

this isn't possible since RAP uses AJAX for request processing. This
means the URL in the browser which represents the initial session
request doesn't change anymore. There is only one document for the
complete user session, no browser history etc. RAP (as with any
AJAX-app) does not replace the current document with a new document each
time a request is proceeded, the response of RAP-Requests are used to
modify the current loaded document subsequently.


Ciao
Frank

-----Ursprüngliche Nachricht-----
Von: Fanny [mailto:fannyziegler@gmx.de]
Bereitgestellt: Mittwoch, 20. Februar 2008 09:38
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: Setting url parameter
Betreff: Re: Setting url parameter


Hi,
thanks for your answer.
I need to add to the url that is displayed in the browser a new
parameter.
So my url is: http://127.0.0.1:2028/rap?startup=default
When a button is pressed I want to change the url so that it displays:
http://127.0.0.1:2028/rap?startup=default&id=1 for example.
Re: Setting url parameter [message #74948 is a reply to message #74939] Wed, 20 February 2008 09:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fannyziegler.gmx.de

Hi,
ok, I understand that I canŽt change the url within one user session. But
I could start a new session with a changed url, couldn`t I? Would this be
possible or wouldnŽt this change the browser url?
Greetings,
Fanny
Re: Setting url parameter [message #75298 is a reply to message #74948] Sat, 23 February 2008 21:49 Go to previous message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

that's true, using a link with a changed URL would change the entry in
the URL-Field in the browser.


Ciao
Frank

-----Ursprüngliche Nachricht-----
Von: Fanny [mailto:fannyziegler@gmx.de]
Bereitgestellt: Mittwoch, 20. Februar 2008 10:11
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: Setting url parameter
Betreff: Re: Setting url parameter


Hi,
ok, I understand that I canŽt change the url within one user session.
But I could start a new session with a changed url, couldn`t I? Would
this be possible or wouldnŽt this change the browser url?
Greetings,
Fanny
Previous Topic:Custom widgets and Themes
Next Topic:Synchronized scrollbars
Goto Forum:
  


Current Time: Thu Apr 25 15:03:18 GMT 2024

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

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

Back to the top