Problem with submitting an additional param in a form

2008-04-03 Thread Peter Theissen
Hello everbody, I'm new to Struts2 and also this mailing list. I'm programming a user management for a non-profit organisation. My question is now: I have started with the basic struts2 application. In the index.jsp there is a form which looks (nearly) like this: >>>

Simple interceptor is not called

2008-04-08 Thread Peter Theissen
Hi everybody, doese anybody see why the following (quite simple) interceptor isnt called: BTW: list.jsp seems to be called correctly. struts.xml >>> class="quickstart.interceptor.simpleInterceptor"/> class="registrationWaitingAction" method="ex

Re: Simple interceptor is not called

2008-04-08 Thread Peter Theissen
Hi, Are you sure it isn't? yes ;-) What happens if you return something other than SUCCESS from your action? Unfortunately, exactly the same happens. That will test whether or not it's getting the result from the intercept call or the action itself. Now I returned Action.NONE and the

Again: question to interceptors

2008-04-10 Thread Peter Theissen
Hello, first of all thanks for all your previous answers. Somehow, I got the interceptor working for the simplest case, but honestly I still dont know exactly why. Maybe it was a caching issue. Now I have some questions: I have the "SimpleInterceptor": >>> public String intercept(ActionInvocati

Re: Again: question to interceptors

2008-04-10 Thread Peter Theissen
Hi all, dear Ralf, thanks a lot for your answer it was really helpful. Honestly, I didnt understand the call-stack-principle behind the interceptors at all. So your hint: "To understand recursion, you must understand recursion" was a good one and also this picture: [1] http://struts.apache.org/2.

Scheduled DB clean up service with Struts2

2008-04-11 Thread Peter Theissen
Hello, I now searched a while to get an idea how to implement a DB clean up service with Struts2. The best link I found was the following one: following http://www.javabeat.net/javabeat/ejb3/articles/timer_services_api_in_ejb_3_0_2.php What I dont understand is how to get the session context.

Re: Scheduled DB clean up service with Struts2

2008-04-11 Thread Peter Theissen
No, no dependencies at all. It should just do the cleanup every day. However, I would like to use my certain action methods, since they already contain all the funtionalities for DB acces. Thanks Peter I would have thought of implementing the clean up service as servlet filter outside struts. O

[OT] Scheduled DB clean up service with Spring

2008-04-12 Thread Peter Theissen
kind of straightforward, but has nothing to do with Struts 2. 2008/4/11, Peter Theissen <[EMAIL PROTECTED]>: Hello, I now searched a while to get an idea how to implement a DB clean up service with Struts2. The best link I found was the following one: following

Re: [OT] Scheduled DB clean up service with Spring

2008-04-15 Thread Peter Theissen
lina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206) at java.lang.ClassLoader.loadClassInternal(Unknown Source) ... 53 more <<< Best regards Peter Peter Theissen wrote: Hi, the quartz

Re: [OT] Scheduled DB clean up service with Spring

2008-04-15 Thread Peter Theissen
Hi all, sorry to continue with that OT thread, but its starting to get really mad out here. But first of all, thanks for the hint that the runtime classpath (rcp) has to be configured independently. Well, I tried that but it ended up in a mess! Of course, first thing I did was adding spring.jar

Re: [OT] Scheduled DB clean up service with Spring

2008-04-16 Thread Peter Theissen
Hi, many thanks to you! I was really making things more complicated then it was neccessary: Adding the quartz.jar to the runtime classpath was enough to fix the problem. Have a nice day Peter Hi Peter, Please try adding the quartz.jar or spring-quartz.jar to your classpath. You can check ou

Declarative validation: show colored message

2008-04-19 Thread Peter Theissen
Hi, how can I show up a colored message when doing declarative validation via xml file. I tried to surround the message text by a div, but then the messages werent shown any longer: >>> You must enter your fistname. <<< Therefore, I dont know how to color that output string. Can anyone help me?

[Nb] Problem with fieldvalidator of type fieldexpression

2008-05-21 Thread Peter Theissen
Hello, I have a certain problem with the fieldvalidator of type fieldexpression: It is not running at all! Even if I try the simplest possible case it doesnt work (I assume that 'false' is a valid OGNL expr): This is only a test. What can be the reason for it? Im now googli

Internationalization via ActionClass-properties

2008-05-24 Thread Peter Theissen
Hello, I have a question concerning internationalization via ActionClass-properties: I now have a file InitAction-properites that corresponds to the class InitAction and contains certain strings, which are assigned to labels of the jsp result page of the InitAction. Loading the labels works f

Re: Internationalization via ActionClass-properties

2008-05-24 Thread Peter Theissen
/propfile.html might help? Dave --- Peter Theissen <[EMAIL PROTECTED]> wrote: Hello, I have a question concerning internationalization via ActionClass-properties: I now have a file InitAction-properites that corresponds to the class InitAction and contains certain strings, which are assig