On Friday, August 8, 2003, at 08:08 AM, David Thielen wrote:
Hi;
I am displaying currency in my website. It is always in U.S. dollars
so I am doing:
NumberFormat.getCurrencyInstance().format( (float) price / 100f );
Two questions:
1.. I assume I should set the locale for this to en_US
On Thursday, Jul 10, 2003, at 12:34 America/Denver, Yuan, Saul (TOR-ML)
wrote:
I started using JSTL but found that it encouraged site builders to
start embedding logic in JSP's.
I'd sure be interested in some examples of this. JSTL doesn't really
provide anything more than what you could do
On Thursday, Jul 10, 2003, at 08:29 America/Denver, Mark Lowe wrote:
I started using JSTL but found that it encouraged site builders to
start embedding logic in JSP's. While I can see that JSLT is more
powerful, isn't it true to say that it encourages breaking with the
view-controller
, which is considerably easier
than JDBC or EJBs.
david
-Original Message-
From: David Geary [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 1:11 PM
To: Struts Users Mailing List
Subject: Re: Using JSTL tags instead of Struts tags
On Thursday, Jul 10, 2003, at 12:34 America/Denver, Yuan
On Thursday, Jul 10, 2003, at 14:40 America/Denver, David Graham wrote:
The work that you do with JSTL, and therefore in JSP pages instead of
actions, involves activities like iterating over data, conditional
tests, accessing URLs, i18n, xml manipulation and database access.
Except for database
On Thursday, Jul 10, 2003, at 15:18 America/Denver, Mark Galbreath
wrote:
Is this the same David Geary that wrote, among others, Advanced
JavaServer
Pages?
Yes.
david
Mark
-Original Message-
From: David Geary [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 5:09 PM
To: Struts
On Thursday, Jul 10, 2003, at 15:14 America/Denver, David Graham wrote:
--- David Geary [EMAIL PROTECTED] wrote:
On Thursday, Jul 10, 2003, at 14:40 America/Denver, David Graham
wrote:
The work that you do with JSTL, and therefore in JSP pages instead
of
actions, involves activities like
On Thursday, Jul 10, 2003, at 17:14 America/Denver, Mark Galbreath
wrote:
Craig's recommendation notwithstanding, I think the best JSTL book on
the
market right now is David Geary's Core JSTL: Mastering the JSP
Standard Tag
Library, (Sun/Prentice-Hall 2003). It is a really good read and has
The major selling point of tiles is that you can encapsulate, and reuse,
page layouts, much as you can reuse layout managers in classic UI
frameworks such as Struts. Beyond that, tiles have many other features
that will save you a great deal of time and effort, such as extending an
existing
Kenny Smith wrote:
Hi s.frank,
I think your first paragraph and second make different points. I
completely disagree that choice of IDE is just an aesthetic choice.
Your second point about the Perforce-Integration is talking about
specific functionality. If your project requires specific
What server are you using? I've seen this behaviour with Resin-ee-2.1.4.
It worked for me when I used Tomcat, so I assumed it was a Resin bug.
david
David Graham wrote:
Do you directly link to the index.jsp or go through the controller
servlet? You say the locale in the session is
If you forward, the URL won't change. If you really want it to change,
you can do a redirect instead.
david
Hoang, Hai wrote:
Transaction token only prevent resubmitting. How can I prevent URL of the
detail page from showing on the master page?
-Original Message-
From: Trieu, Danny
Craig R. McClanahan wrote:
I will have time to expand on this at length over the weekend ... but the
things I described in my JavaOne BOF on Struts 1.1 last March look like
they're going to come true (which is good news for Struts folks).
In the meantime, here's a short summary of JSF:
Faces
Rick Reumann wrote:
On Thursday, September 5, 2002, 5:11:40 PM, Devin wrote:
RDND are you doing your validations in JavaScript (html:javascript
RDND formName=myForm /) or are you doing it on the server with Java
RDND (myForm::validate())?
I'm using DynaValidatorForm and the validation
I'd really like to hear about the overlap and integration between Struts
and JSF also.
david
Sandra Cann wrote:
Craig,
You'd mentioned in one email on this list more news when JSR-127
eventually goes to public draft.
Now that that's happened I was wondering if you might tell us more about
Ted Husted wrote:
There are also tags for doing XML/XLS conversions within the JSP.
http://jakarta.apache.org/taglibs/doc/xsl-doc/intro.html
I suggest that folks use the JSP Standard Tag Library (JSTL) XML actions
instead. I'm not familiar with the taglib cited above, but after a quick
into other problems also.
Are you using beta 2 or what?
I'm using the nightly build from 8/19.
david
-Ted.
David Geary wrote:
Sorry to repost this, but it got buried in a bunch of biere messages
yesterday...
I'm trying to validate a range using the validator. I've got
Hi Keven,
Struts templates do not work with HTML frames; I believe that's the
cause of your problem. (If anyone has gotten them to work with frames,
please holler). When I originally developed templates, I tried to get
them to work with frames, but it was very difficult. If I remember
correctly
CB Thomas wrote:
With jsp:include, I can pass parameter values to the included page by
using jsp:param.
Can I get this functionality using the Struts template tag library?
Yes. Use the direct attribute, like this:
template:put name='title' content='Templates' direct='true'/
Then in your
Thanks for the suggestion, but that didn't work either.
It's strange because I'm validating other fields in the same form and
the error messages are correct for those fields. Also, If I change the
range message in the resource bundle, that change is reflected in the
message, but it always
I have an action that sets the user's locale with Action.setLocale().
After I set the locale, I verify that it's been set with
request.getSession().getAttribute(Action.LOCALE_KEY). It has.
Then the action forwards to a JSP page and within that JSP page, the
locale is null, which I verify with
:
That sounds a bit odd. What container are you using?
James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://www.open-tools.org/struts-atlanta
-Original Message-
From: David Geary [mailto:[EMAIL PROTECTED]]
Sent: Saturday, August
wrote:
That sounds a bit odd. What container are you using?
James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://www.open-tools.org/struts-atlanta
-Original Message-
From: David Geary [mailto:[EMAIL PROTECTED]]
Sent: Saturday, August
Sorry to repost this, but it got buried in a bunch of biere messages
yesterday...
I'm trying to validate a range using the validator. I've got this in
validation.xml...
form-validation
formset
form name='loginForm'
field property='number' depends='range'
I don't mind the relaxed Fridays, but I wish important emails wouldn't
get buried in an avalanche of nonsense.
I've posted a question about validation twice now, only to see it
disappear under a mountain of beer messages (I'm guilty of generating
one myself) and this voting business.
I wish
Elderclei R Reami wrote:
Hi,
Even though, I'm passionate about Java, I need to recognize: M$ really makes UI
development a lot easier than Sun/Java/Open Source Community. If you ever developed a
VB app and a Swing-based Java app, knows what I mean.
FWIW, I agree that .NET is a great deal
Is there any documentation available that shows how to implement a
custom validator for a field form with the validator? I've read the
section in the O'Reilly book, but I found it to be more confusing than
helpful.
Thanks,
david
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For
I'm trying to validate a range using the validator. I've got this in
validation.xml...
form-validation
formset
form name='loginForm'
field property='number' depends='range'
arg0 key='login.number.displayName'/
arg1 name='min'
Je bois beacoup de biere dans mon bureau tous les jour. ;-)
david
Galbreath, Mark wrote:
Je pars du bureau tot pour obtenir une biere.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 2:21 PM
Can we have a [Mark] tag added?
+1
--
is too restrictive : we
could effectively define a screen , but we can do much more with it, like defining
a 'Component' ;-) . So maybe we need to propose something else for this tag name
(first ideas : 'template:definition', or 'template:instance' ).
Cedric
David Geary wrote:
I see
Yes, that's a good idea, applicable for static screens.
We should still allow for programmatic definitions, though. Servlets or
servlet filters are good candidates for creating dynamic screen
definitions.
david
Wong Kok Wai wrote:
Is it possible to define the screen definition in the
and enable global layout
changes, screens simplify screen creation and maintenance, and allow global
screen changes.
david
* The ContentMap class has been renamed to ScreenDefinition.
** I wanted to take Joel's advice and add some attributes to the existing
template:insert tag, but this ne
Davina and Mac wrote:
Has anybody out there implemented a roles-based security system in a Struts
application? If so, did you use an existing class library or write your own?
It seems to me that relying on container providers for security schemes
makes it almost impossible to write portable
Mihir Parekh wrote:
role based security is part of servlet 2.2 specs.
That's true.
So, if you are using servlet
2.2 container the application will remain portable.
The servlet specification does not address how to specify users and roles; for
example, Tomcat3.2 specifies them in
"Craig R. McClanahan" wrote:
Maya Muchnik wrote:
Hello, Torsen,
It is not an answer to your question. But I would like to use this email and
ask the struts development team about compatibility template library and
components library (http://www.lifl.fr/~dumoulin/components/).
Andrew Boyko wrote:
during this process. First off, the web pages we will be creating will
have a common navigation bar used across the whole web site. It would be
great if we can create one HTML file called navigation.jsp which
all pages use.
If that's the only common element on the
I'm looking for somebody that can translate some English
phrases into a CJK (Chinese-Japanese-Korean) language.
This is for my Advanced JSP book; please reply to this email for
details.
david
(Sorry for this off-topic message to struts-user)
notifications, since
they happen on every request.
Ok.
david
Thoughts?
Craig
David Geary wrote:
ABSTRACT
It's often convenient, and sometimes necessary, to handle Struts events,
such as when an action has its locale set, or when the action servlet
processes an action's form. Th
These are excellent questions, which I've answered below.
Some of you have suggested the Barracuda (formerly Rocks) event model,
which I'm looking into. You can read more about it at
http://xmlc.enhydra.org/EventHandler/.
Ted Husted wrote:
Could the model be extended to optionally log events
ABSTRACT
It's easy for Web application users to inadvertently resubmit forms
with bookmarks or the reload and back buttons. Because of this potential
for mischief, web applications must guard against resubmission of sensitive
forms. This document proposes using the delegation event model and
ABSTRACT
It's often convenient, and sometimes necessary, to handle Struts events,
such as when an action has its locale set, or when the action servlet
processes an action's form. This document proposes retrofitting Struts
with the delegation event model. That model, which is used by the AWT
I just committed changes to the template:put tag and the template tld. The tag
works exactly like it did before, but now you can put direct content in the body
of the put tag.
If the put tag has body content:
1. You can't have a content attribute. (the tag body is the content)
2. You can't
Ted Husted wrote:
Anyone have other struts article or powered by references?
The November issue of Java Report has an article on Struts that focuses
on Struts MVC.
The article's code is a little out of date, due to all of the changes that
have
occurred since the article was written.
david
Jim Richards wrote:
As I understand it, is the basic design of struts generally to avoid
any direct java code in the .jsp files, and do everything through tags?
Tags and beans, yes.
And although we can so things within % % tags, it is not
preferred?
That's the conventional wisdom;
Joel Schneider wrote:
Description of Problem:
A typical Struts based web site might be configured to have requests
matching the pattern"*.do" sent to the ActionServlet. After a request is
handled by its Action class, processing is typically forwarded to a .jsp
page.
However, it's also
The template mechanism in the article is nearly identical to the one in
Struts. See org.apache.struts.taglib.template.
david
[EMAIL PROTECTED] wrote:
Take a look at this Sept Javaworld article. It explains how to use a JSP
template mechanism with three custom tags.
46 matches
Mail list logo