[S2] 404 handling

2007-09-24 Thread Kevin Lawrence
Went live today with a Japanese translation of the site. Thanks to the struts and tiles developers for making it so easy! I have some questions though: 1. I have found that using struts tags in error.jsp or error404.jsp in tomcat does not work because the value stack is not initialized so I can't

Re: Dojo refresh in firefox2.0 on Ubuntu

2007-09-11 Thread Kevin Lawrence
On 9/11/07, Tapio Holopainen <[EMAIL PROTECTED]> wrote: > > Hi, > > Have you tried to put delay="0"? That's it! Thanks Tapio! > > > > > >href="%{content}" > >updateFreq="2000" > >delay="2000" > >showLoadingText="false" > >err

Re: Using JSTL Expression Language with Struts 2 tags

2007-09-06 Thread Kevin Lawrence
I am not Zoran but I tried for a few weeks to use OGNL but everytime I tried to type an OGNL expression it took me 3 or 4 attempts to make it do what I wanted. In every case, I was able to get the EL right first time. In the end I settled on the following rules for myself: - in a struts tag,

Dojo refresh in firefox2.0 on Ubuntu

2007-09-06 Thread Kevin Lawrence
Hi, I have an ajax div that I use to poll for the status of some asynchronous jobs: This works for me in every OS/browser combination except firefox on linux. I can see from my access log that it is not even making the request. Help, anyone? If you want to try it: The

Re: [S2] Where to put hibernate's SessionFactory?

2007-08-31 Thread Kevin Lawrence
I'm a newbie too - so I can't tell you the best way - but what I did is lazily create one and put it in the the application context. Kevin http://www.junitfactory.com Just went live with Struts2 wild_oscar wrote: My question is: what is the most appropriate way of binding the SessionFactory

Re: S2 : XML vs annotation validation - thoughts?

2007-08-07 Thread Kevin Lawrence
to define resourcebundle key substitution in this way ; and is there a way we can substitute the right message using some kind of reflection to know which context the object is being used ? Code examples for these will really help. -Joseph On 8/7/07, Kevin Lawrence <[EMAIL PROTECTED]> wr

Re: S2 : XML vs annotation validation - thoughts?

2007-08-07 Thread Kevin Lawrence
pp and "please enter co-applicant's first name" when firstname is used in coapp instance. Does annotation provide enough flexibility to define resourcebundle key substitution in this way ; and is there a way we can substitute the right message using some kind of reflection to know whic

Re: S2 : XML vs annotation validation - thoughts?

2007-08-07 Thread Kevin Lawrence
I started with annotations and wild-carded actions and I very quickly ran into the problem of not all fields apply to every action. I briefly considered switching to xml validations but decided instead to stick with one method per action. I hated the duplicate code in the actions and in struts

Link in checkbox label

2007-08-02 Thread Kevin Lawrence
Is there away to stop the label of a checkbox from being escaped? results in: I have read the legal stuff TIA Kevin www.junitfactory.com You send us code. We send back tests. For free. - To

Re: Flashing Ajax Content

2007-07-27 Thread Kevin Lawrence
Excellent! Works great! Thanks for the quick response. Kevin Musachy Barroso wrote: just set showLoadingText="false" (this will be the default on the future, from 2.1 on) regards musachy On 7/27/07, Kevin Lawrence <[EMAIL PROTECTED]> wrote: I am using Ajax/dojo in Struts 2

Flashing Ajax Content

2007-07-27 Thread Kevin Lawrence
I am using Ajax/dojo in Struts 2.0 to reload the content of a div. It works but there is a really annoying flash every time the content refreshes and the loadingText gets displayed. Any workarounds? Or should I go back to my own hand-rolled javascript? Thanks! Kevin www.junitfactory.com You

Re: Flashing Ajax Content

2007-07-27 Thread Kevin Lawrence
BTW Here's my markup: Kevin Kevin Lawrence wrote: I am using Ajax/dojo in Struts 2.0 to reload the content of a div. It works but there is a really annoying flash every time the content refreshes and the loadingText gets displayed. Any workarounds? Or should I go

Re: Unable to get started with Struts2

2007-07-26 Thread Kevin Lawrence
Michelle Baert wrote: Aladin wrote: I have the simplest of Struts2 application and I keep getting an error in the logs stating: ERROR TP-Processor5 org.apache.catalina.core.StandardContext - Error filterStart ... This looks very similar to what I get with all my struts2 apps. See thread: "I

Re: Don't expose .action to user?

2007-07-20 Thread Kevin Lawrence
I have a solution that seems to work. Feedback on whether it is a good solution or rather, why it is not, would be wonderful. Executive summary: map *.action to struts filter add main.action as the first entry in web.xml's welcome list Have all user-visible urls look like directories: htt

Re: Don't expose .action to user?

2007-07-19 Thread Kevin Lawrence
I have not. Can you give me a link? Thanks, Kevin Adam Ruggles wrote: Have you looked at using the restful url stuff? Kevin Lawrence wrote: I know you were joking but, for me, there are two concerns: 1. I want the urls to be memorable www.junitfactory.com/demo is easier to remember than

Re: Don't expose .action to user?

2007-07-19 Thread Kevin Lawrence
I know you were joking but, for me, there are two concerns: 1. I want the urls to be memorable www.junitfactory.com/demo is easier to remember than www.junitfactory.com/demo.action (or .htm or .html or .jsp) 2. I will almost certainly move part of my site to a CMS in the near future and I

Re: Don't expose .action to user?

2007-07-19 Thread Kevin Lawrence
Hi Matt, My solution does seem to work for the few simple cases that I tried. The only overhead is that you have to create an empty main.action file in each directory that corresponds with an action url. That suits my purposes quite well as, despite best practice recommendations, I don't wan

Don't expose .action to user?

2007-07-18 Thread Kevin Lawrence
Hi, I am a struts newbie and am exploring struts2 for a website rewrite. I don't want the user to know whether or not they are accessing an action - and I don't want to expose the .action suffix in the url. examples: http://www.junitfactory.com/demo - needs to go via DemoAction to /demo/