The JSTL tags have the ability to read the parameters.  You need to sit down
with the Spec or a decent book on JSTL.  A couple of hours now will save you
tons later.

This will get the job done:

<c:set var="password" value="${param.password}" />

R
----- Original Message -----
From: "Mike Steigerwald" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, July 20, 2003 10:08 AM
Subject: Nested tags syntax


Hi, all,

I'm relatively new at tag syntax, and I'm struggling to 'nest' two
attributes that must be quoted. I'm hoping this will be a simple question
for the more experienced users.

I'm trying to set a page variable to be equal to the value of a page
parameter using the c:set and req:parameter tags. I haven't been able to
figure out the correct combingation of quotes, brackets, and braces.

Essentially, this is my best guess at setting the variable 'password' to the
parameter of the same name:

<c:set value= "<req:parameter name='password'/>" var="password"/>

Can anyone help me find the error in the above syntax?

Many thanks in advance.


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


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

Reply via email to