i know i can do it like that but i would like to do it with some kind of interceptor or filter ... so i can easily add or remove it to ALL pages, from my spring configuration files
Type: Posts; User: bowa; Keyword(s):
i know i can do it like that but i would like to do it with some kind of interceptor or filter ... so i can easily add or remove it to ALL pages, from my spring configuration files
What would be the easiest way to add the total time that was needed to process a page request to the model ? (so i can put in the footer of the page for debugging).
So the delta between the...
In the admin panel of my webapp i would like to give an overview of the currently logged in users and the timestamp of the last 'activity'.
What is the best approach for this ?
Is there a central...
isnt this what the org.springframework.web.filter.CharacterEncodingFilter is supposed to be doing ?
like i said the freemarker templates load ok as UTF-8, no problem there, its the response headers that are not UTF-8.
i have tried a lot of things but i cant get my pages outputted by my controllers to have a UTF-8 encoding
the response headers keep on giving:
Content-Type text/html;charset=ISO-8859-1
there...
the problem is that once i make the bean applicationContextAware i get these errors.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'openProjectJob'...
some extra usefull information
the startup logs:
21 dec 2007 11:57:00 INFO [main] org.quartz.core.QuartzScheduler - Quartz Scheduler v.1.5.0 created.
21 dec 2007 11:57:00 INFO [main]...
on my development environment (windows) everything works like expected, on my staging environment (linux) my job starts 4 times ??
<bean id="thumbsJob"...
<bean id="openProjectJob"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="projectManager"/>
<property name="targetMethod"...
ok i was thinking the getLocalizedMessage would use the visitors locale, but that exception has no knowledge of that locale, so it uses the system locale, adding a -Duser.language=nl to my tomcat...
in my login controller i have this code:
if("1".equals(request.getParameter("login_error"))){
AuthenticationException ae = (AuthenticationException)...
I have a LoggingListener bean that also accepts AuthenticationSuccessEvent's
public void onApplicationEvent(ApplicationEvent appEvent) {
if(appEvent instanceof...
Ok thanks for the insight, so instead of just making only my DAO transactional, i want to make my business logic beans transactional. like i did with the OrderListnerHelper.
ok i found a working solution:
OrderListener:
public class OrderListener implements ApplicationListener {
private OrderListenerHelper orderListenerHelper = null;
protected final...
i was thinking that my orderDAO and txManager would take care of it.
<bean id="orderDaoTarget" class="my.package.order.dao.HibernateOrderDAO">
<property name="sessionFactory"...
Hmm, i still didn't get this working.
i added some logging statements so the error occors in this method.
public void onApplicationEvent(ApplicationEvent event) {
if (event instanceof...
i have a SessionLocaleResolver that adds a Locale to the users session.
<bean id="localeResolver" class="org.springframework.web.servlet.i18n.SessionLocaleResolver">
<property...
I am using freemarker as a view technology, i have the authz taglibs set up and they work fine. I can check if a certain user has this or that Role or not. But i cant find a clean way to check where...
I think the problem is that my ApplicationListeners get executed in a different thread by the ThreadPoolTaskExecutor. And that way there is no session bound to the thread.
I tried injecting my...
using a "openSessionInViewInterceptor" helped me to keep my sessions open during the rendering of my view.
now i am also using hibernate from an ApplicationListener instance ... what would be the...
http://forum.springframework.org/showthread.php?t=15089
:-)
i like that approach ... the query itself is configuration, not code.
also comes in handy if your DBA asks for a list of all the queries you do for a project, just give him the apropriate spring...
11 okt 2007 08:34:53 DEBUG myPackage.mvc.controller.DocumentViewController - loaded document with id : 1633
11 okt 2007 08:34:53 DEBUG org.hibernate.impl.SessionImpl - initializing proxy:...
the logs ... (sorry for the long longs but i guess they might be helpfull)
34:53 DEBUG myPackage.mvc.controller.DocumentViewController - request for document with id 1633
11 okt 2007 08:34:53...