Validator valid-when help

2005-03-30 Thread David Kennedy
rule, but I want to chain it to the other, perfectly good but complicated, rule. This seems like a very standard recipe - anyone able to walk me through it? Thanks, -- David Kennedy Swan Labs http://www.swanlabs.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-29 Thread David Kennedy
Rick Reumann wrote: David Kennedy wrote the following on 3/18/2005 9:01 PM: > [snip me talking about Layout] But the above has never been the role of struts - to create view components. Yes, I agree and understand the relationships between the projects better now. I must apologise, much of

Re: Using constants in JSP pages

2005-03-21 Thread David Kennedy
edding entire programs in scriptlets, but I have to say that it's better than the solutions for this problem at least. Cheers, David Kennedy Marsh-Bourdon, Christopher wrote: Agreed, but with my fluff most ides (Eclipse, JBuilder etc) will parse and throw an exception/error if the ... in &

Using constants in JSP pages

2005-03-21 Thread David Kennedy
nts.FOO %> rather than use bind at all! (*) Where obviously the real var names are longer and easier to typo than foo. -- David Kennedy Swan Labs http://www.swanlabs.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to call a Struts 'forward' from a CustomRequestProcessor?

2005-03-20 Thread David Kennedy
Preprocess() doesn't have an ActionMapping parameter, so I guess what I should have asked was, "How can I make an ActionMapping?" However, I'm now thinking, "I was tired earlier and should just have overridden processRoles() and not processPreprocess()"! ----- Ori

How to call a Struts 'forward' from a CustomRequestProcessor?

2005-03-20 Thread David Kennedy
est.getRequestDispatcher( "/logon/logon.jsp").forward(request, response); } catch(Exception e) { log.error("Unable to forward to /logon",e); } } return false; } -- David Kenned

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread David Kennedy
I see a lot of promise in the Struts toolkit, better be, sort of bet the project on it now!, and would love to see more consensus emerging about Best Practices. -- David Kennedy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Validation not honouring 'bundle' attribute?

2005-03-18 Thread David Kennedy
round to changing Struts. http://jakarta.apache.org/commons/validator/changes-report.html Niall - Original Message ----- From: "David Kennedy" <[EMAIL PROTECTED]> Sent: Friday, March 18, 2005 1:40 AM Hi folks, I've just changed our Struts 1.2.6 (ie, with added i18n support

Re: Validation not honouring 'bundle' attribute?

2005-03-18 Thread David Kennedy
going to cheat for now and have Ant build one-resource-bundle to rule them all, which also makes the JSP pages a bit easier to read as all the bundle="" tags vanish. David Kennedy wrote: Hi folks, I've just changed our Struts 1.2.6 (ie, with added i18n support) application to us

Validation not honouring 'bundle' attribute?

2005-03-17 Thread David Kennedy
;s a snippet of what I have in validation.xml: mask ${fourDigitNumberRegexp} Anyone know how to sort this out or do I have to scrap (ie, not check in) several hours work? :-( -- David Kennedy Swan Labs http://www.swanlabs.com --

Struts Layout:treeview problems

2005-03-13 Thread David Kennedy
ing, the styling looks sensible-but-basic. Does anyone know a good way or satisfying the requirement that the current menu item (ie, current page) and menu category are highlighted in the tree? Cheers, -- David Kennedy Swan Labs http://www.swanlabs.com -

Easy: Including a file with a parameter?

2005-03-08 Thread David Kennedy
used to do this, but neither solution is suitable for other/legacy reasons. I tried using [EMAIL PROTECTED] but can't figure out how to refer to the variable inside the page such that the compiler is happy. Anyone got an example? Thanks, -- David Kennedy Swan Labs ht

Re: of a header gives an SSL exception?

2005-02-23 Thread David Kennedy
id certification path to requested target I can see that SSL is involved, but I was able to get past the login pages etc so I don't understand what Struts/Tomcat is trying to tell me here; any advice? If it helps, I can load https://1.2.3.4:8443/ui/includes/header.jsp manually just fin

Re: of a header gives an SSL exception?

2005-02-23 Thread David Kennedy
. Using or not using <%=header%> doesn't affect the error though. Have you looked at the SSLExt library (http://sslext.sourceforge.net/)? I have now, looks very useful and I'll probably use it in future, but given that I do want headers on SSL pages I'm not sure how it addr

of a header gives an SSL exception?

2005-02-22 Thread David Kennedy
I have a jsp which is trying to include a simple nav bar across the top of the screen: <%=header%> where 'header' is defined in struts-config.xml like this: Simple. But when it loads as part of my 'ui' app I get this: javax.servlet.ServletException: Exception opening reso

not working after Validation errors?

2005-02-21 Thread David Kennedy
Hi folks, Three days until iteration deadline, and I have a frustrating bug! It's almost textbook - I have a simple logon page (username/password) which includes a button which works nicely ... unless I press 'submit' with known bad input and come back to the form with Validation errors. In t