Freemarker applyDecorator only works on JSP files

2010-03-19 Thread jonathan doklovic
Hi, I ran into an issue that others seem to have but I was able to debug a little and get more info on it. The issue is: https://issues.apache.org/jira/browse/WW-1744 Basically, if you try to use the JspTagLib and do: <#assign page=JspTaglibs["http://www.opensymphony.com/sitemesh/page";]> <@

Re: Struts2 + Sitemesh + Freemarker doesn't work

2010-03-19 Thread jonathan doklovic
Thanks, I actually decided to just build it from source should have just done that in the first place. That got everything mostly working, however, I'm also using the struts-osgi plugin and found a bug where the FreemarkerManager (in osgi it's BundleFreemarkerManager) wasn't looking for r

Re: Struts 1 log out issue

2010-03-19 Thread Arpan
Thanks for the response. Is there any way struts-cofig.xml read any properties file? On Fri, Mar 19, 2010 at 8:06 PM, Girish Naik wrote: > There are multiple ways to do it. > > one is to write a piece of code where we can use redirect dispatcher for > redirecting to the required url. > second o

Re: Struts 1 log out issue

2010-03-19 Thread Girish Naik
There are multiple ways to do it. one is to write a piece of code where we can use redirect dispatcher for redirecting to the required url. second on click of logout link take the user to a jsp where session is invalidated , after this forward the user to the desired location. Regards, -

Re: Struts 1 log out issue

2010-03-19 Thread Arpan
No it doesn't work On Fri, Mar 19, 2010 at 6:19 PM, Brian Thompson wrote: > I'm not 100% sure, but ${property-name} might work. > > -Brian > > > On Fri, Mar 19, 2010 at 3:43 AM, Arpan wrote: > > Hi, > > > > I our project we need to put a dynamic log out link,which will come from > a > > properti

Re: [Struts 2.1.8.1] Internationalization: how to remain in the current page ?

2010-03-19 Thread Ulf Liedén
Hi Celinio, personally, I would build a method that gives back the URL of the page you are currently visiting, including all parameters. You put this method in a superclass of all your actions, so that its available everywhere. In the code you decide which locale parameter to set, according to you

Re: Struts 1 log out issue

2010-03-19 Thread Brian Thompson
I'm not 100% sure, but ${property-name} might work. -Brian On Fri, Mar 19, 2010 at 3:43 AM, Arpan wrote: > Hi, > > I our project we need to put a dynamic log out link,which will come from a > properties file. > While logging out we want to invalidate the session also. > > I have written a logou

[Struts 2.1.8.1] Internationalization: how to remain in the current page ?

2010-03-19 Thread Celinio Fernandes
hi, I have a quick and basic question. Regarding internationalization, whenever a user clicks on a link with a flag, i want to change the locale (language) of the web application. That works well with the i18n interceptor. However i always redirect the user to the home page (home.jsp) when i do th

Struts 1 log out issue

2010-03-19 Thread Arpan
Hi, I our project we need to put a dynamic log out link,which will come from a properties file. While logging out we want to invalidate the session also. I have written a logout action class where i m invalidating and removing the attribute from the session. Then after success in struts-config.xm