Hi Frank,

You can build up a request parameter in the content url :

<template:put name='details' content='details.jsp?value="Jon"
direct='true'/>

Then in the included jsp use a bean:parameter tag to define the request
param as a scripting varible avalible to the write tag etc. i.e :

<bean:parameter id="firstname" name="value"/>
<bean:write name="firstname"/>

Jon.

-----Original Message-----
From: Stefan Frank [mailto:[EMAIL PROTECTED]] 
Sent: 15 June 2001 08:46
To: Struts-User
Subject: IS there any way to check in a template whether a value has been
set?!

I'm using
        <template:put name='<%=description%>'
content='<%=aBean.getDescription()
%>'     direct='true'/>

inside an iterate to fill a template with values - inside the Template i
want to check wether the value is not null -> then show a link or show it,
when it is bull - I tried

<logic:present name="Description">
                       hey, I'm present
        </logic:present>

but the putted values don't seem to be in scope - anyone tried something
like this before and came up with a better solution?!

Greetings
Stefan

Reply via email to