Using constants in JSP pages

2005-03-21 Thread David Kennedy
write %= com.foo.Constants.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

Re: Using constants in JSP pages

2005-03-21 Thread David Kennedy
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 %= ... % is undeclared or there is a typo there. That at least gives David

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

2005-03-20 Thread David Kennedy
); } catch(Exception e) { log.error(Unable to forward to /logon,e); } } return false; } -- David Kennedy Swan Labs http://www.swanlabs.com - To unsubscribe, e-mail

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

2005-03-20 Thread David Kennedy
() 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()! - Original Message - From: David Kennedy [EMAIL

Re: Validation not honouring 'bundle' attribute?

2005-03-18 Thread David Kennedy
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 use several message-resources

Re: Validation not honouring 'bundle' attribute?

2005-03-18 Thread David Kennedy
://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) application to use several message-resources

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

2005-03-18 Thread David Kennedy
Practices. -- David Kennedy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Validation not honouring 'bundle' attribute?

2005-03-17 Thread David Kennedy
? -- var var-namemask/var-name var-value${fourDigitNumberRegexp}/var-value /var /field 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
. 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 - To unsubscribe

Easy: Including a file with a parameter?

2005-03-08 Thread David Kennedy
bean:include can be 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 http

Re: bean:include of a header gives an SSL exception?

2005-02-23 Thread David Kennedy
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 addresses my current issue! Anyone else? David Kennedy wrote: I have

Re: bean:include of a header gives an SSL exception?

2005-02-23 Thread David Kennedy
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 fine. -- David Kennedy Swan Labs http

bean:include 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: body bean:include id=header forward=header/ %=header% !-- other stuff here -- where 'header' is defined in struts-config.xml like this: global-forwards forward name=header

html:reset 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 html:reset button which works nicely ... unless I press 'submit' with known bad input and come back to the form with Validation