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
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
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
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
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
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
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:
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
.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
22 matches
Mail list logo