You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jonathan Fuerth <fu...@sqlpower.ca> on 2002/03/09 00:05:42 UTC
RT expression in html:errors tag
Hi. I'm trying to do this on a JSP page:
<logic:iterate collection="foobar" id="foo" indexId="i">
<html:text name="foo" property="myValue" indexed="true"/>
<html:errors property="foo<%= i %>"/>
</logic:iterate>
And my form's validate method adds to the ActionErrors using:
errors.add("foo"+i, new ActionError("errors.badFoo"));
The problem is, I can get all the error messages back with a simple
<html:errors/> tag, but the above construct doesn't show the error
messages at all.
I have double-checked that I'm using the same error names in the form
validtor and on the jsp.
--
Jonathan Fuerth - SQL Power Group Inc.
(416)218-5551 (Toronto); 1-866-SQL-POWR (Toll-Free)
Unleash the Power of your Corporate Data - http://www.sqlpower.ca/
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
#anchors in page
Posted by Jay sissom <js...@toybox.uits.indiana.edu>.
I have a web page with a form that has 5 different sections. Each of
these 5 sections has an <a name="anchor"> at the beginning of it.
I would like for my action to decide (based on user input) which section
of the page to return the user to.
I can't figure out how to tell the browser to position the screen on one
of these anchor pages. Has anyone come up with a good solution for this?
Thanks
Jay
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: RT expression in html:errors tag
Posted by Jonathan Fuerth <fu...@sqlpower.ca>.
On Fri, Mar 08, 2002 at 06:05:42PM -0500, Jonathan Fuerth wrote:
> <html:errors property="foo<%= i %>"/>
I figured it out. I changed the above line to:
<html:errors property='<%= "foo"+i %>'/>
And now it works just as I wanted it to!
Does anyone know why this is? Something to do with the way RTExpr
attributes are supposed to work in JSP? Or maybe it's a quirk with
the way code gets generated by Jasper.
--
Jonathan Fuerth - SQL Power Group Inc.
(416)218-5551 (Toronto); 1-866-SQL-POWR (Toll-Free)
Unleash the Power of your Corporate Data - http://www.sqlpower.ca/
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>