How to get the key name

2009-12-02 Thread Louis Voo
Hi, I've this text field in my jsp and this property in the resource bundle error.required = ${getText(fieldName)} is required. label.name = Name When there is validation error, it looking for user.name property, it is fine because I'm using fieldName, so my question is there anyway I can g

how to get exception stack after redirect to action

2009-08-25 Thread Louis Voo
Hi, What I'm trying to do is when exception happen, it redirect to ExceptionHandlingAction and do something extra like sending email. My question are 1) How to get the exception in ExceptionHandlingAction ? I've this setter in the action public void setException(Exception exception), but nothin

LoggingInterceptor

2009-08-14 Thread Louis Voo
HI, I tried the LoggingInterceptor, it print 2009-08-14 16:26:02,062 INFO com.opensymphony.xwork2.interceptor.LoggingInterceptor.info:31 - Starting execution stack for action /louis/excludeParam/excludeParam Is it possible to print the actual class name like this? 2009-08-14 16:26:02,078 DEB

struts2-ssl-plugin problem

2009-08-14 Thread Louis Voo
Hi, I download this plug-in and put into my /lib, and in my struts.xml has this when I start the tomcat, it throw error : Caused by: Unable to find interceptor class referenced by ref-name secureStack What else I need to configure to use this plug-in? Thanks Louis

exception not print

2009-08-13 Thread Louis Voo
Hello, I follow the example to configure the global exception handling. Here is my error.jsp contain this Exception Name: What you did wrong: And in my action I throw a nullpointer exception, the error page is display, but no value show for exception and exceptionStack, what I missing ? Reg

How to prevent user invoke a method?

2009-08-13 Thread Louis Voo
Hello, Is there anyway to prevent user invoke a method which is not define in the configuration file? For e.g, in my UserAction, there is a public String getPassword() method. So in the url, user can enter User!getPassword to directly call this method(), of course they won't be a result map to

Log Issue

2009-08-07 Thread Louis Voo
Hello, I'm using logger interceptor, and I want it log into a file, but somehow it go to my eclipse console. Here is my log4j.xml Could anyone help me to check what else I need to set? And also I'm trying to get rid of all these logs as well 07-Aug

[S2] Get struts.url.http.port value

2009-07-27 Thread Louis Voo
Hi, How to get the value of struts.url.http.port and struts.url.https.port in the Action? Regards Louis

How to set Array properties?

2009-07-27 Thread Louis Voo
Hi, For e.g, I've this iteration in my jsp page and this in action public User[] getUsers(){ return this.users; } public User[] setUsers(){ return this.users; } When the user submit the form, I want struts set the firstName & lastName back to users array, how to achieve this? Re

action-method-validation

2009-07-20 Thread Louis Voo
Hi, Does struts2 support action-method-validation ? Regards Louis