velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Kuhn" <bnk...@hotmail.com>
Subject Re: Accessing to request object
Date Tue, 05 Aug 2003 17:52:27 GMT

Try adding

   context.put("request", request)

to your servlet.


-Brian



----Original Message Follows----
From: "Guillermo Meyer" <gmeyer@sib.interbanking.com.ar>
Reply-To: "Velocity Users List" <velocity-user@jakarta.apache.org>
To: "Velocity Users List" <velocity-user@jakarta.apache.org>
Subject: Accessing to request object
Date: Tue, 5 Aug 2003 12:18:50 -0300
MIME-Version: 1.0
Received: from apache.org ([208.185.179.12]) by mc6-f38.law1.hotmail.com 
with Microsoft SMTPSVC(5.0.2195.5600); Tue, 5 Aug 2003 08:18:33 -0700
Received: (qmail 23032 invoked by uid 500); 5 Aug 2003 15:18:20 -0000
Received: (qmail 23010 invoked from network); 5 Aug 2003 15:18:20 -0000
Received: from unknown (HELO venus.tis.com.ar) (63.69.231.252)  by 
daedalus.apache.org with SMTP; 5 Aug 2003 15:18:20 -0000
Received: from fwsib ([10.1.6.2] helo=SIB24)by venus.tis.com.ar with smtp 
(Exim 3.35 #1)id 19k3Zn-0004eR-00for velocity-user@jakarta.apache.org; Tue, 
05 Aug 2003 12:18:15 -0300
X-Message-Info: JGTYoYF78jEHjJx36Oi8+YDSEg8qKPPD
Mailing-List: contact velocity-user-help@jakarta.apache.org; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:velocity-user-unsubscribe@jakarta.apache.org>
List-Subscribe: <mailto:velocity-user-subscribe@jakarta.apache.org>
List-Help: <mailto:velocity-user-help@jakarta.apache.org>
List-Post: <mailto:velocity-user@jakarta.apache.org>
List-Id: "Velocity Users List" <velocity-user.jakarta.apache.org>
Delivered-To: mailing list velocity-user@jakarta.apache.org
Message-ID: <00a401c35b64$f1ec0560$1601cd0a@SIB24>
References: <1058569735.22675.9.camel@skjeret.homelinux.net> 
<Pine.GSO.4.56.0307182057330.6327@razor.utdallas.edu> 
<1058599662.8154.0.camel@skjeret.homelinux.net>
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
Return-Path: 
velocity-user-return-11478-bnkuhn=hotmail.com@jakarta.apache.org
X-OriginalArrivalTime: 05 Aug 2003 15:18:33.0331 (UTC) 
FILETIME=[D5802C30:01C35B64]

Hi:
This is a simple question. I'm new on Velocity.
I want to access to a request attribute from a Velocity template:

in a servlet I set an attribute:
request.serAttribute("propertyName", "nameXX");

in velocity I want to access this attribute value::
$request.getAttribute("propertyName")

but this doesn't work.

Can anyone tell me the syntax I should use?

Thanks in advance.
Guillermo.


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus


Mime
View raw message