Re: httpheader result type

2009-09-03 Thread Mark Rollins
ty-up the 404 page, use >> web.xml and skip any of the struts configuration. If you are looking >> to incorporate 404 into some sort of application-specific logic, make >> sure that's *really* what you want to do first, then if so, check one >> more time before you do

Re: httpheader result type

2009-09-02 Thread Mark Rollins
Thanks Wes. The 'documentation' (it's very limited) gives the impression that you can specify an error message when using the errorMessage parameter with the error parameter, and even being able to pick up a message from the value stack using an OGNL expression. Having looked at what is returne

httpheader result type

2009-09-02 Thread Mark Rollins
Hi, I need to be able to return a status and message to users of a particular URL. If I use... 404 I can successfully return a 404 status, but with no message. If I use... 404 Some details about the error go here, or an OGNL expression The page returned to the browser has no co

Re: Simple Question?

2008-12-16 Thread Mark Rollins
Thanks Dave, that's sorted it. I've worked with many technologies over many years, but the quirks of OGNL with Struts2 seem to defy reason for me. Totally frustrating! But thanks again for your help. >The answer is that OGNL interprets a single character between single quotes as a character, n

Simple Question?

2008-12-16 Thread Mark Rollins
I know this should be obvious. Perhaps I'm just too thick to use Struts2! I have an action class with a private String editAction and corresponding public getter/setter. I know the value for this String is "I". In the view I need to test the value of this field using , to see if it is "I" I've

Re: Session problem

2007-08-28 Thread Mark Rollins
Re Spring IOC, I agree. The back end of the application operates using IOC, I just haven't got round to finding out what I need to do to Struts to get it to inject into an Action class, yet. Anyway, I have got to the bottom of the problem which was that despite earlier assurances, I hadn't config

Re: Session problem

2007-08-27 Thread Mark Rollins
I'm actually using two different browsers, IE and Firefox, as I thought this would guarantee me two separate sessions. How are you starting a new browser from this *same* machine? If you are pressing Ctrl-N New Window, this is your problem! This will appear to be two browsers, when actually i

RE: Session problem

2007-08-26 Thread Mark Rollins
You are correct - I decided to refactor as I was pasting!! Sorry. Rod Bollinger wrote: > > This may not be the only issue but I do see a typo in setSession()... > > It should be: this.session = session; instead of this.session = map; > > -Rod > > > -Origina

Re: Session problem

2007-08-25 Thread Mark Rollins
This is my first Struts app, so it's quite simplistic. What I'm trying to achieve is to lock down certain precesses so that only one user can run them at a time. I intended to do this by having an application variable holding the User object for the user currently running the process and examinin