Author Login
Post Reply
user Digest 5 Mar 2010 12:47:09 -0000 Issue 9020
Topics (messages 205257 through 205265):
Re: jsp out to a differnet outputstream
205257 by: adam pinder
205258 by: adam pinder
Re: Struts 2, Log4J and turning off WARNING messages
205259 by: carl ballantyne
205260 by: adam pinder
205261 by: Raghuveer
205264 by: carl ballantyne
Re: Passing parameters to <s:property>
205262 by: Ricardo Jorge
struts 2 display tag problem
205263 by: Rakesh K nair
Re: logic bean iterator
205265 by: abhishek jain
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)
----------------------------------------------------------------------

Attachment:
user_205257.ezm (zipped)
then create a new result type handler class, add into struts.xml and use that to handle file creation.
i've not done it myself, but there are result types for handling jasper reports etc.. so can't be too involved.
adam
> Date: Fri, 5 Mar 2010 14:57:07 +0530
> Subject: Re: jsp out to a differnet outputstream
> From: abhishek.netjain@(protected)
> To: user@(protected)
>
> Hi Adam,
> Thanks for replying, It is a file on server side,
> I could have written plain java code in JSP, but that will loose the benefit
> of jsp and also rework on my end, I am sure there must be a method to
> redirect the output of *out *to a file and not to STDOUT or so.
>
> thanks
> abhi
>
> On Fri, Mar 5, 2010 at 2:10 PM, adam pinder <apinder@(protected):
>
> >
> >
> >
> > is it a file on the client side or server side ?
> >
> >
> >
> > if client side, you can specify a result type in the struts.xml but the
> > user will be prompted to save the file as its a security risk to write it
> > without there confirmation.
> >
> >
> >
> > server side, just use plain java code in jsp to write and then do a page
> > redirect or return null.
> >
> >
> >
> > adam
> >
> >
> >
> > > Date: Fri, 5 Mar 2010 12:52:33 +0530
> > > Subject: Re: jsp out to a differnet outputstream
> > > From: abhishek.netjain@(protected)
> > > To: user@(protected)
> > >
> > > On Fri, Mar 5, 2010 at 11:05 AM, Dale Newfield <dale@(protected)>
> > wrote:
> > >
> > > > abhishek jain wrote:
> > > >
> > > >> I am not sure if it a direct struts question, if it is not pl pardon
> > me
> > > >> and
> > > >> let me know,
> > > >>
> > > >
> > > > Maybe a filter in your web.xml?
> > > >
> > > > How are your pages put together? tiles? sitemesh?
> > > > Since those are already filters, you might see if those can do what you
> > > > want...
> > > >
> > > Hi,
> > > I am using Tiles.
> > > Can tiles do the work for me?
> > > thanks
> > > abhi
> >
> > _________________________________________________________________
> > We want to hear all your funny, exciting and crazy Hotmail stories. Tell us
> > now
> > http://clk.atdmt.com/UKM/go/195013117/direct/01/
> >
>
>
>
> --
> Thanks and kind Regards,
> Abhishek jain
> +91 9971376767
_________________________________________________________________
Send us your Hotmail stories and be featured in our newsletter
http://clk.atdmt.com/UKM/go/195013117/direct/01/

Attachment:
user_205258.ezm (zipped) implement this interface
com.opensymphony.xwork2.Result to create your own result type.
> Date: Fri, 5 Mar 2010 14:57:07 +0530
> Subject: Re: jsp out to a differnet outputstream
> From: abhishek.netjain@(protected)
> To: user@(protected)
>
> Hi Adam,
> Thanks for replying, It is a file on server side,
> I could have written plain java code in JSP, but that will loose the benefit
> of jsp and also rework on my end, I am sure there must be a method to
> redirect the output of *out *to a file and not to STDOUT or so.
>
> thanks
> abhi
>
> On Fri, Mar 5, 2010 at 2:10 PM, adam pinder <apinder@(protected):
>
> >
> >
> >
> > is it a file on the client side or server side ?
> >
> >
> >
> > if client side, you can specify a result type in the struts.xml but the
> > user will be prompted to save the file as its a security risk to write it
> > without there confirmation.
> >
> >
> >
> > server side, just use plain java code in jsp to write and then do a page
> > redirect or return null.
> >
> >
> >
> > adam
> >
> >
> >
> > > Date: Fri, 5 Mar 2010 12:52:33 +0530
> > > Subject: Re: jsp out to a differnet outputstream
> > > From: abhishek.netjain@(protected)
> > > To: user@(protected)
> > >
> > > On Fri, Mar 5, 2010 at 11:05 AM, Dale Newfield <dale@(protected)>
> > wrote:
> > >
> > > > abhishek jain wrote:
> > > >
> > > >> I am not sure if it a direct struts question, if it is not pl pardon
> > me
> > > >> and
> > > >> let me know,
> > > >>
> > > >
> > > > Maybe a filter in your web.xml?
> > > >
> > > > How are your pages put together? tiles? sitemesh?
> > > > Since those are already filters, you might see if those can do what you
> > > > want...
> > > >
> > > Hi,
> > > I am using Tiles.
> > > Can tiles do the work for me?
> > > thanks
> > > abhi
> >
> > _________________________________________________________________
> > We want to hear all your funny, exciting and crazy Hotmail stories. Tell us
> > now
> > http://clk.atdmt.com/UKM/go/195013117/direct/01/
> >
>
>
>
> --
> Thanks and kind Regards,
> Abhishek jain
> +91 9971376767
_________________________________________________________________
We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
http://clk.atdmt.com/UKM/go/195013117/direct/01/

Attachment:
user_205259.ezm (zipped)Thanks Raghuveer,
I already have the log4j.properties in the WEB-INF/classes folder.
And I want to turn the messages off, hence I have put
log4j.logger.org.apache.struts2=DEBUG. But it seems to have no effect.
Cheers,
Carl.
Quoting Raghuveer <raghuveerv@(protected)>:
> 1. Place log4j.properties in WEB-INF\classes
> 2. Set log4j.logger.org.apache.struts2=warn, struts in log4j.properties.
>
> Raghuveer
>
> -----Original Message-----
> From: carl ballantyne [mailto:carl.ballantyne@(protected)]
> Sent: Wednesday, March 03, 2010 6:25 PM
> To: Struts Users Mailing List
> Subject: Struts 2, Log4J and turning off WARNING messages
>
> Hi All,
>
> I cannot seem to turn off the warning messages Struts 2 is putting in
> my log files. This makes it impossible to follow debugging in some
> parts of the applications. I keep getting messages like following:
>
>
> [#|2010-03-03T13:45:10.345+0100|WARNING|sun-appserver2.1|org.apache.struts2.
> util.TextProviderHelper|_ThreadID=23;_ThreadName=httpSSLWorkerThread-8080-2;
> _RequestID=5867914b-d1a7-4fd5-a848-a419944b1ad6;|The default value
> expression 'Guardar' was evaluated and did not match a property. The
> literal value 'Guardar' will be
> used.|#]
>
>
> I have googled around and looked at the archives and cannot find a
> solution that works. Below is my log4j.properties which is in the
> WEB-INF/classes folder.
>
>
> # Set root logger level to WARN and append to stdout
> log4j.rootLogger=ERROR, stdout
>
> log4j.appender.stdout=
org.apache.log4j.ConsoleAppender> log4j.appender.stdout.layout=
org.apache.log4j.PatternLayout>
> # Pattern to output the caller's file name and line number.
> log4j.appender.stdout.layout.ConversionPattern=%d %5p (%c:%L) - %m%n
>
> # Print only messages of level ERROR or above in the package noModule.
> log4j.logger.noModule=FATAL
>
>
>
> Any ideas? Anyone else having the same problem?
>
> Cheers, Carl.
>
>
>
>
>
>
> *Advertencia legal: en virtud de lo establecido en la Ley Organica 15/1999
> de Proteccion de Datos de Caracter Personal, le informamos de que los datos
> personales que pueda facilitarnos se incorporaran a un fichero automatizado
> titularidad de CAST INFO, S.A. con la finalidad de gestionar la relacion
> negocial que nos vincula. Podra revocar su consentimiento al tratamiento de
> los datos, asi como ejercer sus derechos de acceso, rectificacion,
> cancelacion u oposicion dirigiendose por escrito a CAST INFO domiciliada en
> C/ Tuset 23, 1 -- 08006 Barcelona, o a la direccion de correo electronico
> lopd@(protected).
>
> Este mensaje y los ficheros anexos que pueda contener son confidenciales,
> pueden contener informacion sometida a secreto profesional y se dirige
> exclusivamente a su destinatario. Si ha recibido este mensaje por error o
> tiene conocimiento del mismo por cualquier motivo, le rogamos que nos lo
> comunique inmediatamente por este mismo medio y se abstenga de utilizarlo,
> reproducirlo, alterarlo, archivarlo o comunicarlo a terceros. El emisor no
> se responsabiliza de posibles perjuicios derivados de la captura,
> incorporaciones de virus o cualesquiera otras manipulaciones efectuadas por
> terceros.
>
> Antes de imprimir este e-mail piense bien si es necesario hacerlo.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
> *Advertencia legal: en virtud de lo establecido en la Ley Organica
> 15/1999 de Proteccion de Datos de Caracter Personal, le informamos
> de que los datos personales que pueda facilitarnos se incorporaran a
> un fichero automatizado titularidad de CAST INFO, S.A. con la
> finalidad de gestionar la relacion negocial que nos vincula. Podra
> revocar su consentimiento al tratamiento de los datos, asi como
> ejercer sus derechos de acceso, rectificacion, cancelacion u
> oposicion dirigiendose por escrito a CAST INFO domiciliada en C/
> Tuset 23, 1 -- 08006 Barcelona, o a la direccion de correo
> electronico lopd@(protected).
>
> Este mensaje y los ficheros anexos que pueda contener son
> confidenciales, pueden contener informacion sometida a secreto
> profesional y se dirige exclusivamente a su destinatario. Si ha
> recibido este mensaje por error o tiene conocimiento del mismo por
> cualquier motivo, le rogamos que nos lo comunique inmediatamente por
> este mismo medio y se abstenga de utilizarlo, reproducirlo,
> alterarlo, archivarlo o comunicarlo a terceros. El emisor no se
> responsabiliza de posibles perjuicios derivados de la captura,
> incorporaciones de virus o cualesquiera otras manipulaciones
> efectuadas por terceros.
>
> Antes de imprimir este e-mail piense bien si es necesario hacerlo.
>
*Advertencia legal: en virtud de lo establecido en la Ley Organica 15/1999 de Proteccion de Datos de Caracter Personal, le informamos de que los datos personales que pueda facilitarnos se incorporaran a un fichero automatizado titularidad de CAST INFO, S.A. con la finalidad de gestionar la relacion negocial que nos vincula. Podra revocar su consentimiento al tratamiento de los datos, asi como ejercer sus derechos de acceso, rectificacion, cancelacion u oposicion dirigiendose por escrito a CAST INFO domiciliada en C/ Tuset 23, 1 -- 08006 Barcelona, o a la direccion de correo electronico lopd@(protected).
Este mensaje y los ficheros anexos que pueda contener son confidenciales, pueden contener informacion sometida a secreto profesional y se dirige exclusivamente a su destinatario. Si ha recibido este mensaje por error o tiene conocimiento del mismo por cualquier motivo, le rogamos que nos lo comunique inmediatamente por este mismo medio y se abstenga de utilizarlo, reproducirlo, alterarlo, archivarlo o comunicarlo a terceros. El emisor no se responsabiliza de posibles perjuicios derivados de la captura, incorporaciones de virus o cualesquiera otras manipulaciones efectuadas por terceros.
Antes de imprimir este e-mail piense bien si es necesario hacerlo.

Attachment:
user_205260.ezm (zipped) are you sure its not your appserver logging and not struts logging.
adam
> Date: Fri, 5 Mar 2010 11:02:07 +0100
> From: carl.ballantyne@(protected)
> To: user@(protected)
> Subject: RE: Struts 2, Log4J and turning off WARNING messages
>
> Thanks Raghuveer,
>
> I already have the log4j.properties in the WEB-INF/classes folder.
>
> And I want to turn the messages off, hence I have put
> log4j.logger.org.apache.struts2=DEBUG. But it seems to have no effect.
>
> Cheers,
> Carl.
>
> Quoting Raghuveer <raghuveerv@(protected)>:
>
> > 1. Place log4j.properties in WEB-INF\classes
> > 2. Set log4j.logger.org.apache.struts2=warn, struts in log4j.properties.
> >
> > Raghuveer
> >
> > -----Original Message-----
> > From: carl ballantyne [mailto:carl.ballantyne@(protected)]
> > Sent: Wednesday, March 03, 2010 6:25 PM
> > To: Struts Users Mailing List
> > Subject: Struts 2, Log4J and turning off WARNING messages
> >
> > Hi All,
> >
> > I cannot seem to turn off the warning messages Struts 2 is putting in
> > my log files. This makes it impossible to follow debugging in some
> > parts of the applications. I keep getting messages like following:
> >
> >
> > [#|2010-03-03T13:45:10.345+0100|WARNING|sun-appserver2.1|org.apache.struts2.
> > util.TextProviderHelper|_ThreadID=23;_ThreadName=httpSSLWorkerThread-8080-2;
> > _RequestID=5867914b-d1a7-4fd5-a848-a419944b1ad6;|The default value
> > expression 'Guardar' was evaluated and did not match a property. The
> > literal value 'Guardar' will be
> > used.|#]
> >
> >
> > I have googled around and looked at the archives and cannot find a
> > solution that works. Below is my log4j.properties which is in the
> > WEB-INF/classes folder.
> >
> >
> > # Set root logger level to WARN and append to stdout
> > log4j.rootLogger=ERROR, stdout
> >
> > log4j.appender.stdout=
org.apache.log4j.ConsoleAppender> > log4j.appender.stdout.layout=
org.apache.log4j.PatternLayout> >
> > # Pattern to output the caller's file name and line number.
> > log4j.appender.stdout.layout.ConversionPattern=%d %5p (%c:%L) - %m%n
> >
> > # Print only messages of level ERROR or above in the package noModule.
> > log4j.logger.noModule=FATAL
> >
> >
> >
> > Any ideas? Anyone else having the same problem?
> >
> > Cheers, Carl.
> >
> >
> >
> >
> >
> >
> > *Advertencia legal: en virtud de lo establecido en la Ley Organica 15/1999
> > de Proteccion de Datos de Caracter Personal, le informamos de que los datos
> > personales que pueda facilitarnos se incorporaran a un fichero automatizado
> > titularidad de CAST INFO, S.A. con la finalidad de gestionar la relacion
> > negocial que nos vincula. Podra revocar su consentimiento al tratamiento de
> > los datos, asi como ejercer sus derechos de acceso, rectificacion,
> > cancelacion u oposicion dirigiendose por escrito a CAST INFO domiciliada en
> > C/ Tuset 23, 1 -- 08006 Barcelona, o a la direccion de correo electronico
> > lopd@(protected).
> >
> > Este mensaje y los ficheros anexos que pueda contener son confidenciales,
> > pueden contener informacion sometida a secreto profesional y se dirige
> > exclusivamente a su destinatario. Si ha recibido este mensaje por error o
> > tiene conocimiento del mismo por cualquier motivo, le rogamos que nos lo
> > comunique inmediatamente por este mismo medio y se abstenga de utilizarlo,
> > reproducirlo, alterarlo, archivarlo o comunicarlo a terceros. El emisor no
> > se responsabiliza de posibles perjuicios derivados de la captura,
> > incorporaciones de virus o cualesquiera otras manipulaciones efectuadas por
> > terceros.
> >
> > Antes de imprimir este e-mail piense bien si es necesario hacerlo.
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
> > *Advertencia legal: en virtud de lo establecido en la Ley Organica
> > 15/1999 de Proteccion de Datos de Caracter Personal, le informamos
> > de que los datos personales que pueda facilitarnos se incorporaran a
> > un fichero automatizado titularidad de CAST INFO, S.A. con la
> > finalidad de gestionar la relacion negocial que nos vincula. Podra
> > revocar su consentimiento al tratamiento de los datos, asi como
> > ejercer sus derechos de acceso, rectificacion, cancelacion u
> > oposicion dirigiendose por escrito a CAST INFO domiciliada en C/
> > Tuset 23, 1 -- 08006 Barcelona, o a la direccion de correo
> > electronico lopd@(protected).
> >
> > Este mensaje y los ficheros anexos que pueda contener son
> > confidenciales, pueden contener informacion sometida a secreto
> > profesional y se dirige exclusivamente a su destinatario. Si ha
> > recibido este mensaje por error o tiene conocimiento del mismo por
> > cualquier motivo, le rogamos que nos lo comunique inmediatamente por
> > este mismo medio y se abstenga de utilizarlo, reproducirlo,
> > alterarlo, archivarlo o comunicarlo a terceros. El emisor no se
> > responsabiliza de posibles perjuicios derivados de la captura,
> > incorporaciones de virus o cualesquiera otras manipulaciones
> > efectuadas por terceros.
> >
> > Antes de imprimir este e-mail piense bien si es necesario hacerlo.
> >
>
>
>
>
> *Advertencia legal: en virtud de lo establecido en la Ley Organica 15/1999 de Proteccion de Datos de Caracter Personal, le informamos de que los datos personales que pueda facilitarnos se incorporaran a un fichero automatizado titularidad de CAST INFO, S.A. con la finalidad de gestionar la relacion negocial que nos vincula. Podra revocar su consentimiento al tratamiento de los datos, asi como ejercer sus derechos de acceso, rectificacion, cancelacion u oposicion dirigiendose por escrito a CAST INFO domiciliada en C/ Tuset 23, 1 -- 08006 Barcelona, o a la direccion de correo electronico lopd@(protected).
>
> Este mensaje y los ficheros anexos que pueda contener son confidenciales, pueden contener informacion sometida a secreto profesional y se dirige exclusivamente a su destinatario. Si ha recibido este mensaje por error o tiene conocimiento del mismo por cualquier motivo, le rogamos que nos lo comunique inmediatamente por este mismo medio y se abstenga de utilizarlo, reproducirlo, alterarlo, archivarlo o comunicarlo a terceros. El emisor no se responsabiliza de posibles perjuicios derivados de la captura, incorporaciones de virus o cualesquiera otras manipulaciones efectuadas por terceros.
>
> Antes de imprimir este e-mail piense bien si es necesario hacerlo.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
_________________________________________________________________
Got a cool Hotmail story? Tell us now
http://clk.atdmt.com/UKM/go/195013117/direct/01/

Attachment:
user_205261.ezm (zipped)1. Place log4j.properties in WEB-INF\classes
2. Set log4j.logger.org.apache.struts2=warn, struts in log4j.properties.
Raghuveer
-----Original Message-----
From: carl ballantyne [mailto:carl.ballantyne@(protected)]
Sent: Wednesday, March 03, 2010 6:25 PM
To: Struts Users Mailing List
Subject: Struts 2, Log4J and turning off WARNING messages
Hi All,
I cannot seem to turn off the warning messages Struts 2 is putting in
my log files. This makes it impossible to follow debugging in some
parts of the applications. I keep getting messages like following:
[#|2010-03-03T13:45:10.345+0100|WARNING|sun-appserver2.1|org.apache.struts2.
util.TextProviderHelper|_ThreadID=23;_ThreadName=httpSSLWorkerThread-8080-2;
_RequestID=5867914b-d1a7-4fd5-a848-a419944b1ad6;|The default value
expression 'Guardar' was evaluated and did not match a property. The
literal value 'Guardar' will be
used.|#]
I have googled around and looked at the archives and cannot find a
solution that works. Below is my log4j.properties which is in the
WEB-INF/classes folder.
# Set root logger level to WARN and append to stdout
log4j.rootLogger=ERROR, stdout
log4j.appender.stdout=
org.apache.log4j.ConsoleAppenderlog4j.appender.stdout.layout=
org.apache.log4j.PatternLayout# Pattern to output the caller's file name and line number.
log4j.appender.stdout.layout.ConversionPattern=%d %5p (%c:%L) - %m%n
# Print only messages of level ERROR or above in the package noModule.
log4j.logger.noModule=FATAL
Any ideas? Anyone else having the same problem?
Cheers, Carl.
*Advertencia legal: en virtud de lo establecido en la Ley Organica 15/1999
de Proteccion de Datos de Caracter Personal, le informamos de que los datos
personales que pueda facilitarnos se incorporaran a un fichero automatizado
titularidad de CAST INFO, S.A. con la finalidad de gestionar la relacion
negocial que nos vincula. Podra revocar su consentimiento al tratamiento de
los datos, asi como ejercer sus derechos de acceso, rectificacion,
cancelacion u oposicion dirigiendose por escrito a CAST INFO domiciliada en
C/ Tuset 23, 1 -- 08006 Barcelona, o a la direccion de correo electronico
lopd@(protected).
Este mensaje y los ficheros anexos que pueda contener son confidenciales,
pueden contener informacion sometida a secreto profesional y se dirige
exclusivamente a su destinatario. Si ha recibido este mensaje por error o
tiene conocimiento del mismo por cualquier motivo, le rogamos que nos lo
comunique inmediatamente por este mismo medio y se abstenga de utilizarlo,
reproducirlo, alterarlo, archivarlo o comunicarlo a terceros. El emisor no
se responsabiliza de posibles perjuicios derivados de la captura,
incorporaciones de virus o cualesquiera otras manipulaciones efectuadas por
terceros.
Antes de imprimir este e-mail piense bien si es necesario hacerlo.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

Attachment:
user_205264.ezm (zipped)Hi Adam,
Looks to me like it is Struts.
I am using GlassFish 2.1 and went into the admin console and turned
the logging off for the Root ( javax.enterprise; ). But doing that
turns of any logging at all. I cannot set it to another level because
the level WARNING is higher than DEBUG which is what I want. And that
would set it to that level for every class. I just want to turn it off
for the annoying WARNING messages from org.apache.struts2.util.
Even log4j.logger.org.apache.struts2.util=OFF does not work. Despite
that fact I should not need it since I have the root set to ERROR.
Cheers,
Carl.
Quoting adam pinder <apinder@(protected)>:
>
>
>
> are you sure its not your appserver logging and not struts logging.
>
>
>
> adam
>
>
>
>> Date: Fri, 5 Mar 2010 11:02:07 +0100
>> From: carl.ballantyne@(protected)
>> To: user@(protected)
>> Subject: RE: Struts 2, Log4J and turning off WARNING messages
>>
>> Thanks Raghuveer,
>>
>> I already have the log4j.properties in the WEB-INF/classes folder.
>>
>> And I want to turn the messages off, hence I have put
>> log4j.logger.org.apache.struts2=DEBUG. But it seems to have no effect.
>>
>> Cheers,
>> Carl.
>>
>> Quoting Raghuveer <raghuveerv@(protected)>:
>>
>> > 1. Place log4j.properties in WEB-INF\classes
>> > 2. Set log4j.logger.org.apache.struts2=warn, struts in log4j.properties.
>> >
>> > Raghuveer
>> >
>> > -----Original Message-----
>> > From: carl ballantyne [mailto:carl.ballantyne@(protected)]
>> > Sent: Wednesday, March 03, 2010 6:25 PM
>> > To: Struts Users Mailing List
>> > Subject: Struts 2, Log4J and turning off WARNING messages
>> >
>> > Hi All,
>> >
>> > I cannot seem to turn off the warning messages Struts 2 is putting in
>> > my log files. This makes it impossible to follow debugging in some
>> > parts of the applications. I keep getting messages like following:
>> >
>> >
>> >
>> [#|2010-03-03T13:45:10.345+0100|WARNING|sun-appserver2.1|org.apache.struts2.
>> >
>> util.TextProviderHelper|_ThreadID=23;_ThreadName=httpSSLWorkerThread-8080-2;
>> > _RequestID=5867914b-d1a7-4fd5-a848-a419944b1ad6;|The default value
>> > expression 'Guardar' was evaluated and did not match a property. The
>> > literal value 'Guardar' will be
>> > used.|#]
>> >
>> >
>> > I have googled around and looked at the archives and cannot find a
>> > solution that works. Below is my log4j.properties which is in the
>> > WEB-INF/classes folder.
>> >
>> >
>> > # Set root logger level to WARN and append to stdout
>> > log4j.rootLogger=ERROR, stdout
>> >
>> > log4j.appender.stdout=
org.apache.log4j.ConsoleAppender>> > log4j.appender.stdout.layout=
org.apache.log4j.PatternLayout>> >
>> > # Pattern to output the caller's file name and line number.
>> > log4j.appender.stdout.layout.ConversionPattern=%d %5p (%c:%L) - %m%n
>> >
>> > # Print only messages of level ERROR or above in the package noModule.
>> > log4j.logger.noModule=FATAL
>> >
>> >
>> >
>> > Any ideas? Anyone else having the same problem?
>> >
>> > Cheers, Carl.
>> >
>> >
>> >
>> >
>> >
>> >
>> > *Advertencia legal: en virtud de lo establecido en la Ley Organica 15/1999
>> > de Proteccion de Datos de Caracter Personal, le informamos de que
>> los datos
>> > personales que pueda facilitarnos se incorporaran a un fichero
>> automatizado
>> > titularidad de CAST INFO, S.A. con la finalidad de gestionar la relacion
>> > negocial que nos vincula. Podra revocar su consentimiento al
>> tratamiento de
>> > los datos, asi como ejercer sus derechos de acceso, rectificacion,
>> > cancelacion u oposicion dirigiendose por escrito a CAST INFO
>> domiciliada en
>> > C/ Tuset 23, 1 -- 08006 Barcelona, o a la direccion de correo electronico
>> > lopd@(protected).
>> >
>> > Este mensaje y los ficheros anexos que pueda contener son confidenciales,
>> > pueden contener informacion sometida a secreto profesional y se dirige
>> > exclusivamente a su destinatario. Si ha recibido este mensaje por error o
>> > tiene conocimiento del mismo por cualquier motivo, le rogamos que nos lo
>> > comunique inmediatamente por este mismo medio y se abstenga de utilizarlo,
>> > reproducirlo, alterarlo, archivarlo o comunicarlo a terceros. El emisor no
>> > se responsabiliza de posibles perjuicios derivados de la captura,
>> > incorporaciones de virus o cualesquiera otras manipulaciones
>> efectuadas por
>> > terceros.
>> >
>> > Antes de imprimir este e-mail piense bien si es necesario hacerlo.
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: user-unsubscribe@(protected)
>> > For additional commands, e-mail: user-help@(protected)
>> >
>> >
>> > *Advertencia legal: en virtud de lo establecido en la Ley Organica
>> > 15/1999 de Proteccion de Datos de Caracter Personal, le informamos
>> > de que los datos personales que pueda facilitarnos se incorporaran a
>> > un fichero automatizado titularidad de CAST INFO, S.A. con la
>> > finalidad de gestionar la relacion negocial que nos vincula. Podra
>> > revocar su consentimiento al tratamiento de los datos, asi como
>> > ejercer sus derechos de acceso, rectificacion, cancelacion u
>> > oposicion dirigiendose por escrito a CAST INFO domiciliada en C/
>> > Tuset 23, 1 -- 08006 Barcelona, o a la direccion de correo
>> > electronico lopd@(protected).
>> >
>> > Este mensaje y los ficheros anexos que pueda contener son
>> > confidenciales, pueden contener informacion sometida a secreto
>> > profesional y se dirige exclusivamente a su destinatario. Si ha
>> > recibido este mensaje por error o tiene conocimiento del mismo por
>> > cualquier motivo, le rogamos que nos lo comunique inmediatamente por
>> > este mismo medio y se abstenga de utilizarlo, reproducirlo,
>> > alterarlo, archivarlo o comunicarlo a terceros. El emisor no se
>> > responsabiliza de posibles perjuicios derivados de la captura,
>> > incorporaciones de virus o cualesquiera otras manipulaciones
>> > efectuadas por terceros.
>> >
>> > Antes de imprimir este e-mail piense bien si es necesario hacerlo.
>> >
>>
>>
>>
>>
>> *Advertencia legal: en virtud de lo establecido en la Ley Organica
>> 15/1999 de Proteccion de Datos de Caracter Personal, le informamos
>> de que los datos personales que pueda facilitarnos se incorporaran
>> a un fichero automatizado titularidad de CAST INFO, S.A. con la
>> finalidad de gestionar la relacion negocial que nos vincula. Podra
>> revocar su consentimiento al tratamiento de los datos, asi como
>> ejercer sus derechos de acceso, rectificacion, cancelacion u
>> oposicion dirigiendose por escrito a CAST INFO domiciliada en C/
>> Tuset 23, 1 -- 08006 Barcelona, o a la direccion de correo
>> electronico lopd@(protected).
>>
>> Este mensaje y los ficheros anexos que pueda contener son
>> confidenciales, pueden contener informacion sometida a secreto
>> profesional y se dirige exclusivamente a su destinatario. Si ha
>> recibido este mensaje por error o tiene conocimiento del mismo por
>> cualquier motivo, le rogamos que nos lo comunique inmediatamente
>> por este mismo medio y se abstenga de utilizarlo, reproducirlo,
>> alterarlo, archivarlo o comunicarlo a terceros. El emisor no se
>> responsabiliza de posibles perjuicios derivados de la captura,
>> incorporaciones de virus o cualesquiera otras manipulaciones
>> efectuadas por terceros.
>>
>> Antes de imprimir este e-mail piense bien si es necesario hacerlo.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>
> _________________________________________________________________
> Got a cool Hotmail story? Tell us now
> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>
> *Advertencia legal: en virtud de lo establecido en la Ley Organica
> 15/1999 de Proteccion de Datos de Caracter Personal, le informamos
> de que los datos personales que pueda facilitarnos se incorporaran a
> un fichero automatizado titularidad de CAST INFO, S.A. con la
> finalidad de gestionar la relacion negocial que nos vincula. Podra
> revocar su consentimiento al tratamiento de los datos, asi como
> ejercer sus derechos de acceso, rectificacion, cancelacion u
> oposicion dirigiendose por escrito a CAST INFO domiciliada en C/
> Tuset 23, 1 -- 08006 Barcelona, o a la direccion de correo
> electronico lopd@(protected).
>
> Este mensaje y los ficheros anexos que pueda contener son
> confidenciales, pueden contener informacion sometida a secreto
> profesional y se dirige exclusivamente a su destinatario. Si ha
> recibido este mensaje por error o tiene conocimiento del mismo por
> cualquier motivo, le rogamos que nos lo comunique inmediatamente por
> este mismo medio y se abstenga de utilizarlo, reproducirlo,
> alterarlo, archivarlo o comunicarlo a terceros. El emisor no se
> responsabiliza de posibles perjuicios derivados de la captura,
> incorporaciones de virus o cualesquiera otras manipulaciones
> efectuadas por terceros.
>
> Antes de imprimir este e-mail piense bien si es necesario hacerlo.
>
>
*Advertencia legal: en virtud de lo establecido en la Ley Organica 15/1999 de Proteccion de Datos de Caracter Personal, le informamos de que los datos personales que pueda facilitarnos se incorporaran a un fichero automatizado titularidad de CAST INFO, S.A. con la finalidad de gestionar la relacion negocial que nos vincula. Podra revocar su consentimiento al tratamiento de los datos, asi como ejercer sus derechos de acceso, rectificacion, cancelacion u oposicion dirigiendose por escrito a CAST INFO domiciliada en C/ Tuset 23, 1 -- 08006 Barcelona, o a la direccion de correo electronico lopd@(protected).
Este mensaje y los ficheros anexos que pueda contener son confidenciales, pueden contener informacion sometida a secreto profesional y se dirige exclusivamente a su destinatario. Si ha recibido este mensaje por error o tiene conocimiento del mismo por cualquier motivo, le rogamos que nos lo comunique inmediatamente por este mismo medio y se abstenga de utilizarlo, reproducirlo, alterarlo, archivarlo o comunicarlo a terceros. El emisor no se responsabiliza de posibles perjuicios derivados de la captura, incorporaciones de virus o cualesquiera otras manipulaciones efectuadas por terceros.
Antes de imprimir este e-mail piense bien si es necesario hacerlo.

Attachment:
user_205262.ezm (zipped)Thank you both for your help. I got this working with your suggestions. :)
I made an experiment with various ways of working this out. Here are the
results. They may be helpful to others looking for the same answer.
1. Doesn't work
name('Locale.US'): <s:property value="name('Locale.US')" />
2. Doesn't work
name(Locale.US): <s:property value="name(Locale.US)" />
3. Doesn't work
getName(Locale.US): <s:property value="getName(Locale.US)" />
4. Works. notice the ' in the parameter
getName('Locale.US'): <s:property value="getName('Locale.US')"
/>
5. Works. i tried something similar before but I was just using 'name'
instead of 'getName'
getName(@
java.util.Locale@(protected)
value="getName(@
java.util.Locale@(protected))" />
6. Doesn't wok. I tried this previously. See nº5
name(@
java.util.Locale@(protected)
value="name(@
java.util.Locale@(protected))" />
7. Works but probably only because there is also a getName(String s) where s
is the locale as a string
name('en_US'): <s:property value="getName('en_US')" />
8. Works but probably only because there is also a getName(String s) where s
is the locale as a string
name('US'): <s:property value="getName('US')" />
Also, I did not need to use struts.ognl.allowStaticMethodAccess
-------------
>
> i still think you should be looking at this differently and using the i18n
interceptor and resource bundles to handle different
> languages.
@adam: I'm using Liferay and this is a class provided by the Portal to get
the names of the pages in localized format. The getName method (without
parameters) returns XML content with the various languages so I need to get
the right locale using the provided getName(Locale locale).
Perhaps I could create an additional class where I would store the
information I need in an already localized format and handle this in the
Action.
Best Regards,
Ricardo
2010/3/4 adam pinder <apinder@(protected)>
>
>
>
> just pass an alias to the locale in the parameter
>
>
>
> <s:property value="getName('US')"/>
>
>
>
> and let the getName class handle the actual locale.
>
>
>
> adam
>
> > Date: Thu, 4 Mar 2010 18:20:19 +0100
> > Subject: Re: Passing parameters to <s:property>
> > From: lukasz.lenart@(protected)
> > To: user@(protected)
> >
> > 2010/3/4 Ricardo Jorge <rvjsapi@(protected)>:
> > > PS: I've just tried the following but it did not work
> > > <s:property value="name(@
java.util.Locale@(protected))" />
> >
> > Take a look on some examples here [1] and try
> > <s:property value="getName(@
java.util.Locale@(protected))" />
> >
> > [1] http://struts.apache.org/2.x/docs/ognl-basics.html
> >
> >
> > Regards
> > --
> > Łukasz
> > http://www.lenart.org.pl/
> > Kapituła Javarsovia 2010
> > http://javarsovia.pl
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
>
> _________________________________________________________________
> Tell us your greatest, weirdest and funniest Hotmail stories
> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>

Attachment:
user_205263.ezm (zipped)
Attachment:
user_205265.ezm (zipped)On Fri, Mar 5, 2010 at 2:02 PM, abhishek jain <abhishek.netjain@(protected):
> Hi friends,
> I am using struts 1 , and i am trying to fetch a list from database, (as a
> use case the students and marks )
> i need to display that in the jsp page by itegrating,
> I can print via out.print() in jsp and not via the normal logic:iterate,
> Can any one point me to a suitable tutorial or cheat sheat or some notes,
> Pl i have tried a lot of times and cant get that through.
>
> Also another problem i am facing is that i am migrating my site from PHP to
> Struts, i need to use apache + mod_rewrte, and deploy the struts application
> in the tomcat port forward,
> I am novice at this, can someone let me access some notes which can correct
> me,
> Pl. dont mind i have tried but cannt find a starter tutorial at this the
> closest i found was http://rimuhosting.com/mod_jk2_and_mod_proxy_ajp.jsp and
> it does not solve my problem.
>
>
>
The iterator problem has been solved,
Still looking the sol. for mod_rewrite and how to deploy ?
Thanks all for the replies,
- abhi