Can I use Struts Validator with Mapped properties?
I.e something like this:
field property='property(lastName)'
depends='required'
/field
thanks,
--- Joachim
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
helper objects on this score:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg31271.html
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg31284.html
Joachim Gjesdal wrote:
hmm wouldn't there be nice to have something like:
InfoMessages messages = new InfoMessages
hmm wouldn't there be nice to have something like:
InfoMessages messages = new InfoMessages();
messages.add(InfoMessages.GLOBAL_ERROR, new InfoMessage(trans.generic.read_ok));
saveMessages(request, messages);
then a tag that pics up whatever infomessages that are there:
html:info/
Pruthee, Ranjan wrote:
In ur jsp u get this error message by calling
request.getAttribute(error)
or use the html:error/ tag :-)
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hani,
No, its easy :-) , just see the sourcecode for
org.apache.struts.MessageTAG, remove the JSPException that is thrown and
return the key.
joachim gjesdal
Hani Hamandi wrote:
Man! Is this a hard one? :(
-Original Message-
From: Hani Hamandi [mailto:[EMAIL PROTECTED]]
Sent: Monday
(pageContext, e);
throw e;
*/
ResponseUtils.write(pageContext, key);
}
joachim gjesdal
Hani Hamandi wrote:
Ok, and then what? Re-jar struts myself with this new source-code?
Thanks!
-Original Message-
From: Joachim Gjesdal [mailto:[EMAIL PROTECTED]]
Sent
how about,
%countyCode=country.+countryCode%
bean:message name=%=countryCode%/
joachim
Struts Newsgroup (@Basebeans.com) wrote:
Subject: apply a prefix to bean:message's key (or name + property) attribute?
From: Jeff [EMAIL PROTECTED]
===
Is it possible to specify some prefix that should be
Some more on root context...
Running struts 1.0 on Atg Dynamo 5.1 w/patch 1.1.p2
The context root (myroot) is added twice when the html is written:
I.e.
html:form action="myaction.do"> is written as : form name="myForm"
method="POST" action="/myroot/myroot/myaction.do">
Any variations on
Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/
Joachim Gjesdal wrote:
protected String getActionMappingURL() {
HttpServletRequest request =
(HttpServletRequest) pageContext.getRequest
Just found out. The problem is in ATG implementation of
response.encodeURL(...).
When request.getContextPath() returns /myroot (beginning with a slash), ATG's
version of encodeURL() automatically adds the root
I guess this is not J2EE behavior??
joachim
Joachim Gjesdal wrote:
Not exactly
Running struts 1.0 on Atg Dynamo 5.1 w/patch 1.1.p2
the context root (myroot) is added twice when the html is written:
I.e.
html:form action=myaction.do is written as : form name=myForm
method=POST action=/myroot/myroot/myaction.do
or
html:img page=/images/spacer.gif/ is written as: img
If you are building it using Netbeans, Ant uses the Xerces in Netbeans class path, my
solution was to add
xalan.jar(from jaxp1.1) to \netbeans\lib\ext
joachim gjesdal
Kief Morris wrote:
Howdy, I'm trying to compile the struts build from CVS, and am
having major xml parser headaches. My
12 matches
Mail list logo