You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Bailey, Shane C." <SH...@saic.com> on 2003/05/20 18:58:27 UTC
Struts Validator Kicking my ...
For some reason this Struts Validator stuff is strange to me.
1. I can't find the struts-validator.tld in any of the downloads of
Struts I have tried
2. The validation_1_1.dtd has DEPRECATED across every element and
attribute. Should I use validation_1_0.dtd?
3. Since I am using module I have this in my modules struts-config
file:
<message-resources key="RESOURCE" parameter="resources.usermgmt" />
So do I need this tag below and if so do I have to do anything else in
this tag for it to work with my module:
<message-resources
parameter="org.apache.struts.webapp.validator.ApplicationResources" />
4. I actually do get the validation to work (I think) except the error
message isn't printing.
I do have the <html:errors bundle="[the one for the module]"/> tag in JSP
and it comes back to the input page.
5. Is there a good example of how to do the tags in validation.xml to
use a resource message like
usermgmt.error.required={0} is required and then pass another message like
usermgmt.fname.label=First Name
to be replaced for that variable in the first message?
Re: Struts Validator Kicking my ...
Posted by Rob Leland <rl...@apache.org>.
Mark Galbreath wrote:
>The newest release of Validator doesn't use the TLD (but of course, this is
>not documented anywhere).
>
Ok, This is open source submit a patch. already ;-) !
Just busting your chops !!!
-Rob
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
WSAD 5.0.1 and JSP pre-compilation
Posted by Michael Ruppin <mr...@yahoo.com>.
All my jsps using the message attribute of the
logic:messagesPresent tag or the property attribute of
the html:messages tag cause errors during
pre-compilation:
JSPG0045I: Compiling...
C:/DOCUME~1/me/LOCALS~1/Temp/app_f5470b2bd9/ear/My.war/WEB-INF/classes/_my.java:809:
cannot resolve symbol
symbol : method setProperty (java.lang.String)
location: class
org.apache.struts.taglib.html.MessagesTag
[5/20/03 14:30:49:258 CDT] 4cea73b SystemErr R
_jspx_th_html_messages_0.setProperty("blah");
[5/20/03 14:30:49:258 CDT] 4cea73b SystemErr R
^
[5/20/03 14:30:49:274 CDT] 4cea73b SystemErr R
C:/DOCUME~1/me/LOCALS~1/Temp/app_f5470b2bd9/ear/My.war/WEB-INF/classes/_my.java:892:
cannot resolve symbol
symbol : method setMessage (java.lang.String)
location: class
org.apache.struts.taglib.html.MessagesTag
[5/20/03 14:30:49:274 CDT] 4cea73b SystemErr R
_jspx_th_html_messages_1.setMessage("true");
[5/20/03 14:30:49:367 CDT] 4cea73b SystemErr R
^
[5/20/03 14:30:49:414 CDT] 4cea73b SystemErr R
Anyone have a workaround for this?
m
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
WSAD 5.0.1 and JSP pre-compilation
Posted by Michael Ruppin <mr...@yahoo.com>.
All my jsps using the message attribute of the
logic:messagesPresent tag or the property attribute of
the html:messages tag cause errors during
pre-compilation:
JSPG0045I: Compiling...
C:/DOCUME~1/me/LOCALS~1/Temp/app_f5470b2bd9/ear/My.war/WEB-INF/classes/_my.java:809:
cannot resolve symbol
symbol : method setProperty (java.lang.String)
location: class
org.apache.struts.taglib.html.MessagesTag
[5/20/03 14:30:49:258 CDT] 4cea73b SystemErr R
_jspx_th_html_messages_0.setProperty("blah");
[5/20/03 14:30:49:258 CDT] 4cea73b SystemErr R
^
[5/20/03 14:30:49:274 CDT] 4cea73b SystemErr R
C:/DOCUME~1/me/LOCALS~1/Temp/app_f5470b2bd9/ear/My.war/WEB-INF/classes/_my.java:892:
cannot resolve symbol
symbol : method setMessage (java.lang.String)
location: class
org.apache.struts.taglib.html.MessagesTag
[5/20/03 14:30:49:274 CDT] 4cea73b SystemErr R
_jspx_th_html_messages_1.setMessage("true");
[5/20/03 14:30:49:367 CDT] 4cea73b SystemErr R
^
[5/20/03 14:30:49:414 CDT] 4cea73b SystemErr R
Anyone have a workaround for this?
m
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: Struts Validator Kicking my ...
Posted by Mark Galbreath <ma...@qat.com>.
The newest release of Validator doesn't use the TLD (but of course, this is
not documented anywhere).
Mark
-----Original Message-----
From: Bailey, Shane C. [mailto:SHANE.C.BAILEY@saic.com]
Sent: Tuesday, May 20, 2003 12:58 PM
To: struts-user@jakarta.apache.org
Subject: Struts Validator Kicking my ...
For some reason this Struts Validator stuff is strange to me.
1. I can't find the struts-validator.tld in any of the downloads of
Struts I have tried
2. The validation_1_1.dtd has DEPRECATED across every element and
attribute. Should I use validation_1_0.dtd?
3. Since I am using module I have this in my modules struts-config
file:
<message-resources key="RESOURCE" parameter="resources.usermgmt" />
So do I need this tag below and if so do I have to do anything else in
this tag for it to work with my module:
<message-resources
parameter="org.apache.struts.webapp.validator.ApplicationResources" />
4. I actually do get the validation to work (I think) except the error
message isn't printing.
I do have the <html:errors bundle="[the one for the module]"/> tag in JSP
and it comes back to the input page.
5. Is there a good example of how to do the tags in validation.xml to
use a resource message like
usermgmt.error.required={0} is required and then pass another message like
usermgmt.fname.label=First Name
to be replaced for that variable in the first message?
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org