Re: Multiple parameter names

2014-05-30 Thread Marc Michele
This is simple: public class MyAction extends ActionSupport { private String myParam; public String getMyParam() { return myParam; } public void setMyParam(String myParam) { this.myParam = myParam; } public void setAnotherName(String myParam) { th

Re: Multiple parameter names

2014-05-30 Thread Chris Pratt
You could have your Action implement ParameterAware then handle the parameter map yourself. (*Chris*) On Fri, May 30, 2014 at 2:15 AM, Yaragalla Muralidhar < yaragallamur...@gmail.com> wrote: > I think that is not possible. > > *Thanks and Regards,* > Muralidhar Yaragalla. > > *http://yaragall

Re: Struts 1 Logging

2014-05-30 Thread Christoph Nenning
> > Websphere is notorious for its poor logging support. I used Websphere for > about 5 years. The server exposes Commons Logging in the parent class > loader so it's already configured -- and not configurable by you. That was > my experience, at least. I think you should google "Websphere Strut

Re: Struts 1 Logging

2014-05-30 Thread Usha Ladkani
Alright.. Thanks a lot for your help . Regards Usha On Fri, May 30, 2014 at 7:09 PM, Paul Benedict wrote: > Websphere is notorious for its poor logging support. I used Websphere for > about 5 years. The server exposes Commons Logging in the parent class > loader so it's already configured --

Re: Struts 1 Logging

2014-05-30 Thread Paul Benedict
Websphere is notorious for its poor logging support. I used Websphere for about 5 years. The server exposes Commons Logging in the parent class loader so it's already configured -- and not configurable by you. That was my experience, at least. I think you should google "Websphere Struts Logging" an

Re: Struts 1 Logging

2014-05-30 Thread Usha Ladkani
yes.. below is how property file looks like. log4j.rootLogger=DEBUG, R log4j.logger.org.apache.struts=DEBUG log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=../updivalidation/UPDISetup.log log4j.appender.R.MaxFileSize=10MB log4j.appender.R.MaxBackupIndex=10 log4j.appende

Re: Struts 1 Logging

2014-05-30 Thread Dave Newton
Did you add the line for Struts debugging? Dave

Re: Struts 1 Logging

2014-05-30 Thread Usha Ladkani
I have the log file created which I have defined in log4j.properties. But I dont see any trace for struts in that File. I only below entries in the log file.- 05/30/14 12:40:20] source=com.ibm.bcg.consoleUI. action.partners.PartnerCreateAction thread=[WebContainer : 0] Logging initialized. [05/30

Re: Struts 1 Logging

2014-05-30 Thread Paul Benedict
Usha, I don't understand your response. So you have a log file and it's logging? Cheers, Paul On Fri, May 30, 2014 at 7:58 AM, Usha Ladkani wrote: > property file is in classpath , As the log file is being created with > trace. > > We are not using tomcat. we are using our own webserver which

Re: Struts 1 Logging

2014-05-30 Thread Usha Ladkani
property file is in classpath , As the log file is being created with trace. We are not using tomcat. we are using our own webserver which is running on IBM Websphere application server. On Fri, May 30, 2014 at 6:21 PM, Mark Shifman wrote: > > > On 05/30/2014 08:26 AM, Usha Ladkani wrote: > >>

Re: Struts 1 Logging

2014-05-30 Thread Mark Shifman
On 05/30/2014 08:26 AM, Usha Ladkani wrote: Now empty log file is being created. I see this error in systemout which i printed too [30/5/14 12:23:48:824 UTC] 0086 R UOW= source=SystemErr org=IBM prod=WebSphere component=Application Server thread=[WebContainer : 0] log4j:WARN N

Re: Struts 1 Logging

2014-05-30 Thread Usha Ladkani
now the file is created , but has no trace of struts. below is logged. 05/30/14 12:40:20] source=com.ibm.bcg.consoleUI.action.partners.PartnerCreateAction thread=[WebContainer : 0] Logging initialized. [05/30/14 12:40:20] source=com.ibm.bcg.consoleUI.action.partners.PartnerCreateAction thread=[Web

Re: Struts 1 Logging

2014-05-30 Thread Christoph Nenning
> Now empty log file is being created. > > I see this error in systemout which i printed too > > [30/5/14 12:23:48:824 UTC] 0086 R UOW= source=SystemErr org=IBM > prod=WebSphere component=Application Server thread=[WebContainer : 0] > log4j:WARN No appenders could be found for logg

Re: Struts 1 Logging

2014-05-30 Thread Usha Ladkani
Now empty log file is being created. I see this error in systemout which i printed too [30/5/14 12:23:48:824 UTC] 0086 R UOW= source=SystemErr org=IBM prod=WebSphere component=Application Server thread=[WebContainer : 0] log4j:WARN No appenders could be found for logger (com.ibm.bc

Re: Struts 2 Access messages with JSTL instead of s:text

2014-05-30 Thread Yaragalla Muralidhar
you have to use fmt tags in jstl. Using jstl is a good idea. *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ * On Wed, May 28, 2014 at 10:04 AM, Alireza Fattahi wrote: > In struts 2 the > > > > (is equivalent to...) > > JSTL:

Re: Struts 1 Logging

2014-05-30 Thread Christoph Nenning
> Hello Paul. > > Now I have configured log4j-1.2.13.jar. Below is my log4j.properties file > content. > > log4j.rootLogger=DEBUG, R > log4j.appender.R=org.apache.log4j.RollingFileAppender > log4j.appender.R.File=usha.log > log4j.appender.R.MaxFileSize=10MB > log4j.appender.R.MaxBackupIndex=10 >

Re: Struts 1 Logging

2014-05-30 Thread Usha Ladkani
Hello Paul. Now I have configured log4j-1.2.13.jar. Below is my log4j.properties file content. log4j.rootLogger=DEBUG, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=usha.log log4j.appender.R.MaxFileSize=10MB log4j.appender.R.MaxBackupIndex=10 log4j.appender.R.layou

Re: Multiple parameter names

2014-05-30 Thread Yaragalla Muralidhar
I think that is not possible. *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ * On Fri, May 30, 2014 at 2:08 PM, Mael Le Guével wrote: > Hi, > Given the following action: > > public class MyAction extends ActionSupport { > private

Multiple parameter names

2014-05-30 Thread Mael Le Guével
Hi, Given the following action: public class MyAction extends ActionSupport { private String myParam; public String getMyParam() { return myParam; } public void setMyParam(String myParam) { this.myParam = myParam; } } I am able to pass a "myParam" parameter t