Title: RE: XMLForm: how to retrieve URL parameter?

Hi,

Try putting code like this in the prepare() method:

Request request = getRequest();
String stringId = request.getParameter("id");

Keith.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 31 March 2003 08:38
To: [EMAIL PROTECTED]
Subject: XMLForm: how to retrieve URL parameter?


Hello,

I'm using an URL like below to access to a XMLForm application:

http://myServer:8080/myApp?id=2500

I need to retrieve this parameter (id) from within the XMLForm Action class.

The purpose is to populate the Bean with an object (id=2500) coming from the database.

What is the best solution to retrieve the URL?


Thanks
Sylvain (T)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

********************************************************************************
  This electronic mail system is used for information purposes and is
  not intended to form any legal contract or binding agreement.
  The content is confidential and may be legally privileged. Access
  by anyone other than the addressee(s) is unauthorised and any
  disclosure, copying, distribution or any other action taken in
  reliance on it is prohibited and maybe unlawful

  All incoming and outgoing e-mail communications and attachments
  are scanned automatically by software designed to detect and remove
  any material containing viruses or other unauthorised content.  While
  we undertake best endeavours to ensure that this content checking
  software is up to date, recipients should take steps to assure themselves
  that e-mails received are secure.
***************************************************************************************

Reply via email to