Re: Re: alternative to strutscx using xsl and achieving localization?

Dudley Butt <[email protected]> Thu, 7 Apr 2005 18:37:17 +0200
Newsgroups gmane.comp.java.strutscx.user
Message-ID <[email protected]>
i get this info from debugxml=true
yayo, can i still use debugxml=true or is there another DOM tree i
need to be looking at? I see that I am getting some sort of thingy
displaying, not quite what i had in mind, but I do see that once the
validation passes it doesnt show the an error anymore, even despite
the fact that I can see the error when running debugxml=true.....???

On Apr 7, 2005 5:52 PM, Dudley Butt <[email protected]> wrote:
> Hi Yayo, Berny,
> 
> I tried running it using the validation.xml and it always adds the
> field and key to the actionerrors object, regardless of whether the
> validation passed or failed.
> 
> 
> On Mar 29, 2005 11:18 AM, Yayo <[email protected]> wrote:
> > Hi again. I've modified StrutsCX to get the same functionallity as Struts with
> > Validator. My messages are output as they where in good'ol Struts. Just need to
> > do somethinglikethis:
> >
> > <!-- In the validation... -->
> >
> > <arg0 key="login.label" resource="false"/>
> >
> > <!--
> >   This way the message goes "as is" to the output XML so I can select with
> > XPath the correct resource string...
> > -->
> >
> > // in an action
> >
> > errors.add("login", new ActioError("errors.required", "login.label"));
> >
> > //same as up there
> >
> > I've done my own DocumentBuilder based on StrutsCX one so I output the errors as
> > thiz:
> >
> > <root>
> > <!-- ... -->
> > <errors>
> >    <error key="errors.required">
> >        <arg0>login.label</arg0>
> >    </error>
> > </errors>
> >
> > and I've got a template wich call is similar to this:
> >
> > <xsl:call-template name="errors">
> >    <xsl:with-param name="property" value="login"/>
> > </xsl:call-template>
> >
> > ... and the new resources will look like thiz
> >
> > <messages>
> >    <msg key="errors.required">
> >       {0} is required.
> >    </msg>
> > </messages>
> >
> > Ok, So forth...
> >
> > I'd like to someone to show me up an efficient way to concatenate the arg0...
> > argn elements in an efficient way 'cos right now what I'm doing is substring and
> > reassign to a new variable each time... Could it be possible to substitute a
> > string from an string?
> >
> >
> > -------------------------------------------------------
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products from real users.
> > Discover which products truly live up to the hype. Start reading now.
> > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> > _______________________________________________
> > Strutscx-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/strutscx-user
> >
>


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click