A perusal of the mailing list archives gives me the impression that there is
no way around printing out the error header and footers when using the
html:errors tag. While I understand that the html:errors tag is to be used
mostly for printing form validation errors, what about those errors that
The docs for the property attribute of this tag state:
Name of the property for which error messages should be displayed.
The property of what? The bean specified by name?
Carl
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
As part of formatting some validation error messages, I'm trying to print
out html:errors tag from within a single celled table. I only want the html
for the table to be printed if errors are present. I tried the
logic:present tag, which can print out the html if the error bean is
present. The
I'd like to get an array of all keys from the MessageResources object. The
API states MessageResources only inherits from object, so needless to say
there were no methods there, and I can't find any on the MessageResources
object itself. Am I correct in assuming this is not possible?
Carl
--
Forgot to mention I'm running struts 1.0.1 and cannot upgrade at this time,
just in case it matters.
Carl
-Original Message-
From: Schmidt, Carl [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 03, 2002 11:15 AM
To: Struts (E-mail)
Subject: Retrieving keys from the MessageResources
://www.jamesholmes.com/struts/
--- Schmidt, Carl [EMAIL PROTECTED]
wrote:
I'd like to get an array of all keys from the
MessageResources object. The
API states MessageResources only inherits from
object, so needless to say
there were no methods there, and I can't find any on
the MessageResources
object
I've read the docs, but it just gives me some intro on the concepts behind
localization, resource bundles, etc. I also read the source, but got a
little lost. Can someone please direct me to the .java file within struts
where the application resources. props file is read in to the resource
i've created a bean that is to be used to populate a select box. This bean
is created in an Action, and saved as an attribute under the request object.
However, the tag lib for OptionsTag is telling me that it can't find a bean
with name SecurityQuestionsManager, and therefore cannot populate a
I have a reset password section of the web site where the user must go
through a set of pages, verifying their information and then have their
password reset. Each page submits to the same action mapping, and I have a
session bean that tracks answers to each of the questions on each page. As
I've already looked through the html and bean taglib but I can't find a tag
that will allow me to print the value from a form bean simply as is, without
rendering a text box or other form item. Does such a thing exist?
Carl
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional
The form bean has a name in the request equal to its name in the
struts-config file form-bean element.
You can access attributes with bean:write like so:
bean:write name=PropertyMainForm property=description/
-Greg
-Original Message-
From: Schmidt, Carl [mailto:[EMAIL PROTECTED
I have a multi-page submittal of information, and a form bean is active in
session scope across the set of pages. After each page is submitted, the
form bean is populated with the input form. Once the set of pages have been
completed, I automatically call an overriden reset() method to clear
Thank you for the reply. However, isn't setInput essentially setting the
input attribute of the action mapping tag in struts-config.xml? In other
words, since the action mapping is part of a global collection, will the
setInput changes be reflected to any other users on the site, accessing
Thanks for that excellent explanation, that has certainly cleared some
things up. Now I understand why the Actions are singletons, and I believe I
understand from the STRUTS code _how_ the singletons are enforced, but I'd
like to ask another 2 questions to make sure:
1. I notice that the only
error criteria for multiple other error pages.
Schmidt, Carl wrote:
Thank you for the reply. However, isn't setInput essentially setting the
input attribute of the action mapping tag in struts-config.xml? In other
words, since the action mapping is part of a global collection, will the
setInput
I have an inital page, called ResetPasswordActionForm.jsp. It has a hidden
form field called submitFlag, which is hardcoded to true. The form is
submitted to action path : /ResetPasswordUserName. In the action class I
set the the submitFlag to false, and forward directly to another action
I have created a no cache custom tag to be inserted on various page. Here
is the specific doStartTag method:
public int doStartTag() {
HttpServletResponse response = (HttpServletResponse)
pageContext.getResponse();
response.setHeader(Cache-Control,
17 matches
Mail list logo