RE: Regex in Struts 1 tags?

2008-02-24 Thread Rod Bollinger
You can use the JSTL function library to do fn:startsWith() -Rod -Original Message- From: Andy [mailto:[EMAIL PROTECTED] Sent: Sunday, February 24, 2008 03:38 To: user@struts.apache.org Subject: Regex in Struts 1 tags? Is there any kind of support or even a workaround to using regex in

RE: [S2] Best approach to separate look & feel with same backend code

2008-01-13 Thread Rod Bollinger
Hi Neil, When you say Look and Feel are you referring to just the visual aspects of the site or are you referring to a marked difference in front-end functionality? If you are not providing differing functionality or the functionality being provided is mostly similar to the current site, your bes

RE: [s2] templating approach / own tag?

2007-11-02 Thread Rod Bollinger
Tiles (and in Struts 1? Tiles) :-) http://struts.apache.org/1.x/struts-tiles/ -Rod -Original Message- From: lbastil [mailto:[EMAIL PROTECTED] Sent: Friday, November 02, 2007 10:43 To: user@struts.apache.org Subject: [s2] templating approach / own tag? Hi, I want to archive the follo

RE: Link: new window or new tab

2007-10-30 Thread Rod Bollinger
Keep in mind however in POHTML the "target" attribute is deprecated unless you are doing frames development (which I hope you are not ;-)). The proper way to get a new window is to use the window.open() call from your tag. HTH, -Rod -Original Message- From: Dave Newton [mailto:[EMAIL PR

RE: Audit trail - implementation strategies

2007-10-25 Thread Rod Bollinger
Depending on the DB you can implement this using triggers and log your audit trail directly in the DB itself. -Rod -Original Message- From: wild_oscar [mailto:[EMAIL PROTECTED] Sent: Thursday, October 25, 2007 14:36 To: user@struts.apache.org Subject: Audit trail - implementation strateg

RE: Struts2 Cookbook Question

2007-10-01 Thread Rod Bollinger
BeanUtils is part of Apache Commons: http://commons.apache.org/beanutils/ HTH, -Rod -Original Message- From: Whitmire, Tracy Carroll [mailto:[EMAIL PROTECTED] Sent: Monday, October 01, 2007 13:17 To: user@struts.apache.org Subject: Struts2 Cookbook Question I'd like to use some of the i

RE: pass parameters to action

2007-09-07 Thread Rod Bollinger
There is nothing wrong with Javascript in general - when used judiciously. The problem with Javascript (in this particular situation) is that if Javascript is disabled or unavailable for any reason, the user will not be able to submit the request - this is a major accessibility no-no. IIRC the O

RE: Session problem

2007-08-25 Thread Rod Bollinger
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 -Original Message- From: Mark Rollins [mailto:[EMAIL PROTECTED] Sent: Saturday, August 25, 2007 05:47 To: user@struts.apache.org Subject: Re:

RE: [OT] Re: Struts tile and other tag includes

2007-08-12 Thread Rod Bollinger
information. No "libs" are being included. This is not a "dirty" practice and is, in fact, the intention of the specification. -Rod Bollinger -Original Message- From: Yayo [mailto:[EMAIL PROTECTED] Sent: Sunday, August 12, 2007 15:50 To: Struts Users Mailing List Subj

RE: [OT] Re: Struts tile and other tag includes

2007-08-12 Thread Rod Bollinger
end reading (or re-reading) the JSP 2.1 specification - especially section JSP.1.10.5 (including data in JSP pages) for more information. Regards, -Rod Bollinger -Original Message- From: Yayo [mailto:[EMAIL PROTECTED] Sent: Sunday, August 12, 2007 14:23 To: Struts Users Mailing List

RE: [S1]minipulate output of

2007-08-02 Thread Rod Bollinger
Hi Alex, If I understand what you are trying to do, you can use JSTL to accomplish the task as such: HTH, -Rod -Original Message- From: Alexander Jede [mailto:[EMAIL PROTECTED] Sent: Thursday, August 02, 2007 04:53 To: user@struts.apache.org Subject: [S1]minipulate output of Hallo l

RE: Help in using regex in Validation.xml

2007-08-01 Thread Rod Bollinger
a 9-digit number which starts with 000: any of the other possible problems aren't addressed. Chris -Original Message- From: Rod Bollinger [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 01, 2007 10:33 AM To: 'Struts Users Mailing List' Subject: RE: Help in using regex in V

RE: Help in using regex in Validation.xml

2007-08-01 Thread Rod Bollinger
This won't actually work. The parentheses should be braces and if you don't supply the start ("^") and end ("$") delimiters you will match nine-digit patterns within larger patterns as well (which I assume you don't want). The correct simple syntax is: ^000\d{6}$ In your code, if you DON'T get a

RE: how to test the 1st and last iteration ?

2007-04-27 Thread Rod Bollinger
Hi Piloupy, You can do this using JSTL as such: Then you can reference ${myOutput} anywhere you like. HTH, -Rod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of piloupy GOTTAPIL Sent: Friday, April 27, 200

RE: [S2] Formatting inside Iterator tag

2007-04-23 Thread Rod Bollinger
The JSTL format tags are always a viable option as well. -Rod -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Monday, April 23, 2007 18:31 To: Struts Users Mailing List Subject: Re: [S2] Formatting inside Iterator tag if you can somehow cast to bean you can use be

RE: DateTimePicker in time format not working with today

2007-04-23 Thread Rod Bollinger
Sorry about the last post, I guess I didn't read closely enough. The solution provided, although it works very well, will most likely not address your DateTimePicker issue. Again, my apologies for the list clutter. -Rod -Original Message- From: ××œ×—× ×Ÿ מעין [mailto:[EMAIL PROTECT

RE: DateTimePicker in time format not working with today

2007-04-23 Thread Rod Bollinger
Hello, A cool little trick on the "today" issue is to use a little known aspect of the tag. The useBean exposes its creation datetime as a scoped variable! Beacause of this you can do the following: Now you can use ${today} anywhere you like. Personally, I use the tag to format into what

RE: Use EL to access to a key from the MessageResources.properties

2007-04-23 Thread Rod Bollinger
Hi Piloupy, You can use JSTL to format the link before passing it to the tag: Also, take a look at: http://struts.apache.org/1.3.8/struts-taglib/tlddoc/html/link.html, you can actually specify a bundle and access key for the tooltip message directly in the tag. HTH -Rod -Original Messa

RE: html:text autocomplete=off possible?

2007-04-19 Thread Rod Bollinger
Hi John, The autocomplete attribute of the tag is not standard - it is not specified by the W3C and is supported only on IE5.0+ and Safari 1.0+. This is most likely why you will not find support for it in the Struts tags. I would caution against using non-standard attributes if you want to main

RE: Struts in Servlet 2.4

2007-04-17 Thread Rod Bollinger
Hi Tim, For 2.4 the URIs have changed. They are now: <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"; prefix="fmt" %> HTH, -Rod -Original Message- From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] Sent: Tuesday, Apri

RE: tiles-defs.xml and extended attributes...

2007-04-16 Thread Rod Bollinger
difference to the code, everything works just fine. Thanks for the response, -Rod -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Monday, April 16, 2007 02:52 To: Struts Users Mailing List Subject: Re: tiles-defs.xml and extended attributes... 2007/4/13, Rod

RE: How to format util date with JSTL

2007-04-13 Thread Rod Bollinger
Vinit, Place the following at the top of your JSP: <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"; prefix="fmt" %> Then, use the following to format your date: The dateStyle attribute uses the same semantics as the SimpleDateFormat. You can alternatively use the pattern attribute to specif

tiles-defs.xml and extended attributes...

2007-04-13 Thread Rod Bollinger
Hello, I have a menuing system using a custom tag to create menus based on configurations specified in Tiles. I needed to create a more robust solution for menu specification than was provided by the org.apache.struts.tiles.beans.SimpleMenuItem. I extended the org.apache.struts.tiles.beans.MenuIte