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

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

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 a tag. HTH, -Rod -Original Message- From: Dave Newton [mailto:[EMAIL

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

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

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
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 Subject: Re: [OT] Re: Struts tile and other tag

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

2007-08-12 Thread Rod Bollinger
. 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 Subject: Re: [OT] Re: Struts tile and other tag includes 'vew learned

RE: [S1]minipulate output of bean:write

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: c:out value=${fn:toUpperCase(myAttr)} / HTH, -Rod -Original Message- From: Alexander Jede [mailto:[EMAIL PROTECTED] Sent: Thursday, August 02, 2007 04:53 To: user@struts.apache.org

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: Help in using regex in Validation.xml

2007-08-01 Thread Rod Bollinger
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 Validation.xml This won't

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

2007-04-27 Thread Rod Bollinger
Hi Piloupy, You can do this using JSTL as such: c:forEach var=item items=myCollection varStatus=status c:set var=myOutput value=${myOutput}${item} / c:if test=${not status.last} c:set var=myOutput value=${myOutput}, / /c:if /c:forEach Then you can

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 html:link tag: fmt:message var=myContactMail key=${contact.mail} / html:link href=${myContactMail} ... / Also, take a look at: http://struts.apache.org/1.3.8/struts-taglib/tlddoc/html/link.html, you can actually specify a

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 jsp:useBean tag. The useBean exposes its creation datetime as a scoped variable! Beacause of this you can do the following: jsp:useBean id=now class=java.util.Date / c:set var=today value=${now} / Now you

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

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

RE: html:text autocomplete=off possible?

2007-04-19 Thread Rod Bollinger
Hi John, The autocomplete attribute of the input 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

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, April 17, 2007

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

2007-04-16 Thread Rod Bollinger
no 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

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

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: fmt:formatDate value=${myDateValue} dateStyle=myDateStyleString / The dateStyle attribute uses the same semantics as the