There is also Tiles for this sort of thing.

David Geary wrote:

> CB Thomas wrote:
>
>> With jsp:include, I can pass parameter values to the included page by 
>> using jsp:param.
>>
>> Can I get this functionality using the Struts template tag library?
>
> Yes. Use the direct attribute, like this: 

Tiles is a more feature-rich version of the template mechanism in 
Struts.  It supports this as well.

> <template:put name='title' content='Templates' direct='true'/>
>
> Then in your template, you can access that value; for example, like this:
>
> <html><head><title><template:get name='title'/></title></head>...</html>
>
> Normally, the <template:get> tag will include content associated with 
> the named parameter, but if you
> specify direct='true' with <template:put>, the <template:get> tag will 
> just retrieve the value.
>
> See 
> http://www.javaworld.com/javaworld/jw-09-2000/jw-0915-jspweb_p.html 
> for more information about templates and the direct attribute.
>
> btw, if at all possible, I suggest that you use Tiles instead of 
> templates. The former, which is an extension of the latter, has more 
> functionality.
>
>>   If so, can I use request.getParameter to retrieve values in the 
>> included page? 
>
> No, but you can use <template:get> as illustrated above.
>
> david 

Regards,

Eddie



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

Reply via email to