You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Zsolt Koppany <zk...@web.de> on 2002/11/19 00:35:52 UTC

How to use
Hi,

how can I write the variable for example field[5] using <bean:write.../> ? I 
would like to use bean:write because I want to use the filter option to 
convert specific html characters.

<logic:iterate id="field" indexId="counter" name="rows" 
    type="java.lang.Object[]">

<bean:write ....

Zsolt

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: How to use Posted by Rick Reumann <ma...@reumann.net>.

On Monday, November 18, 2002, 6:35:52 PM, Zsolt wrote:

ZK> <logic:iterate id="field" indexId="counter" name="rows" 
ZK>     type="java.lang.Object[]">

ZK> <bean:write ....

    I'm pretty sure you could just do
    <bean:write name="field"/>
    as you are iterating (assuming the Object[] array in this example
    is something meaningful to display (like a String or even an int).
    If it's an array of beans use..
    <bean:write name="field" property="nameOfTheFieldInTheObject"/>


-- 

Rick
mailto:maillist@reumann.net


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Posted by Jay Wright <jw...@once.com>.
I have two distinct types of error pages within my webapp.  In each I am
using <html:errors/>, but the layouts are very different in the two pages.
Can struts support multiple error tag formatting?

For example, I would want

errors.header
errors.footer
errors.prefix
errors.suffix

values in my resource bundle to be different for different pages.

More specifically, on one page I want my errors to be a list <ul></ul> and
on the other, not part of a list.

Jay


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>