cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "K. Rumman Akhter" <>
Subject RE: User input in xsps
Date Thu, 02 Mar 2000 21:57:30 GMT

-----Original Message-----
From: Mike Engelhart []
Sent: Thursday, March 02, 2000 4:45 PM
Subject: Re: User input in xsps

K. Rumman Akhter wrote:

> i guess my question would be, what is the equavalent syntax of
> request.getParameter("foo"); and request.putValue(); as in XSPs.
> RUmman
The xsp processor includes wrappers for all those objects and predefines the
variables for many of them.  i'm not sure what you mean by syntax??  The XSP
documentation explains all of this in detail...

Here's a simple example though:

<?xml version="1.0"?>

<?cocoon-process type="xsp"?>
<?cocoon-process type="xslt"?>
<?xml-stylesheet href="yoursheet.xsl" type="text/xsl"?>

<xsp:page language="java" xmlns:xsp="">
            session = request.getSession(true);
            String myFormVariable = request.getParameter("MYFORMVARIABLE");
            session.putValue("VAR1", myFormVariable);

If you're using tomcat or some other JSDK 2.2 compliant servlet engine, use
session.setAttribute("VAR1", myFormVariable)

session.putValue() is deprecated in 2.2


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message