> This is what I have in viewschedule.jsp:
>
> <logic:messagesPresent message="true">
> there were some messages
> <UL>
> <html:messages id="message" message="true"/>
> <LI><bean:write name="message"/></LI>
> </html:messages>
> </UL>
> </logic:messagesPresent>
>
> As you can see in the above, there are id="message" and name="message".
I'm
> not positive, but I think that one of those ="message" refers to the
> "message" in
>
> message.rows.added=Du har tilf�jet {0} ny kursus
> message.rows.deleted=Du har bortvist {0} kursus
>
> from my ApplicationResources.properties, so it may be important to prefix
> any strings that you want to display as messages, with "message."
>
Not true. In the html:messages tag, the "id" attribute can be set to any
name. Think of the html:messages tag as a for loop that iterates over the
messages. Think of the "id" attribute as the for loop counter variable that
is set in page scope (local variable in your JSP). For each iteration of the
html:messages tag, you want to display the counter variable "message". When
you use a bean:write and specify the "name" attribute, you are specifying
the name of an attribute to lookup in some scope. Since you did not specify
a scope in the bean:write tag, it looks for this attribute in all scopes
starting with the page scope. Since the surrounding html:messages tag
declared a variable called "message" in the page scope, it finds this one
and displays it.
The important thing in your above example is the "message" atttribute which
should be set to "true". If you don't do this, the errors (as opposed to
messages) will be displayed.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.435 / Virus Database: 244 - Release Date: 12/31/2002
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>