Re: I18N - Currency question

2003-08-09 Thread David Geary
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

Re: Using JSTL tags instead of Struts tags

2003-07-10 Thread David Geary
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

Re: Using JSTL tags instead of Struts tags

2003-07-10 Thread David Geary
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

Re: Using JSTL tags instead of Struts tags

2003-07-10 Thread David Geary
, 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

Re: Using JSTL tags instead of Struts tags

2003-07-10 Thread David Geary
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

Re: Using JSTL tags instead of Struts tags

2003-07-10 Thread David Geary
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

Re: Using JSTL tags instead of Struts tags

2003-07-10 Thread David Geary
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

Re: JSTL Book

2003-07-10 Thread David Geary
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

Re: Sell me on tiles

2003-02-19 Thread David Geary
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

Re: AW: [OT] Eclipse IDE - The Two Towers

2003-01-21 Thread David Geary
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

Re: Session Values for Action.LOCALE_KEY Change

2002-09-10 Thread David Geary
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

Re: Help with master-details screens

2002-09-09 Thread David Geary
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

Re: Struts -- JSF roadmap

2002-09-06 Thread David Geary
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

Re: concern over validation results

2002-09-05 Thread David Geary
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

Re: JavaServer Faces and Struts

2002-09-04 Thread David Geary
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

Re: Not using JSP as the view

2002-09-04 Thread David Geary
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

Re: [VALIDATOR] Bad Error Message when Validating a Range

2002-09-03 Thread David Geary
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

Re: template

2002-09-02 Thread David Geary
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

Re: Using the template tag library with parameters like jsp:param

2002-08-31 Thread David Geary
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

Re: [VALIDATOR] Bad Error Message when Validating a Range

2002-08-31 Thread David Geary
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

[I18N] Locale Mysteriously Reverts to null

2002-08-31 Thread David Geary
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

Re: [I18N] Locale Mysteriously Reverts to null

2002-08-31 Thread David Geary
: 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

Re: [I18N] Locale Mysteriously Reverts to null

2002-08-31 Thread David Geary
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

[VALIDATOR] Bad Error Message when Validating a Range

2002-08-30 Thread David Geary
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'

Re: [VOTE] Should this list discontinue it's long, treasured heritage of relaxed fridays?

2002-08-30 Thread David Geary
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

Re: Java Server Faces and Developer Life Comments

2002-08-30 Thread David Geary
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

Documentation for writing custom validators available?

2002-08-30 Thread David Geary
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

Validating a Range

2002-08-29 Thread David Geary
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'

Re: [BEER] Is it Friday Yet?

2002-08-29 Thread David Geary
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 --

Re: PROPOSAL: Template Screens

2001-03-01 Thread David Geary
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

Re: PROPOSAL: Template Screens

2001-02-28 Thread David Geary
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

PROPOSAL: Template Screens

2001-02-27 Thread David Geary
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

Re: Has anyone implemented security and authentication in a Struts app?

2001-02-25 Thread David Geary
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

Re: Has anyone implemented security and authentication in a Struts app?

2001-02-25 Thread David Geary
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

Re: Struts, WebLogic 6.0 and template tags

2001-02-21 Thread David Geary
"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/).

Re: Template tags?

2001-02-20 Thread David Geary
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

Wanted: Translator For JSP Book

2001-02-07 Thread David Geary
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)

Re: Proposal: RetroFit Struts with the Delegation Event Model

2000-12-27 Thread David Geary
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

Re: Proposal: RetroFit Struts with the Delegation Event Model

2000-12-23 Thread David Geary
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

Proposal: Tokens and Events Guard Against Form Resubmission

2000-12-22 Thread David Geary
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

Proposal: RetroFit Struts with the Delegation Event Model

2000-12-20 Thread David Geary
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

Re: Templating Mechanism

2000-12-12 Thread David Geary
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

Java Report Struts Article (was Re: Article on JavaWorld)

2000-12-06 Thread David Geary
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

Re: design question

2000-12-06 Thread David Geary
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;

Re: *.jsp back door issue

2000-11-14 Thread David Geary
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

Re: Templating Mechanism

2000-11-12 Thread David Geary
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.