RE: java Beautiful

2002-12-06 Thread Gideon, Thomas
Artistic Style http://astyle.sf.net Thomas Gideon Sr. Software Developer B2eMarkets 301.230.2236 Tel. 301.230.2248 Fax. [EMAIL PROTECTED] www.B2eMarkets.com

RE: Serialization question...

2002-10-28 Thread Gideon, Thomas
gt; I don't see anything regarding serialization that talks about a > possibility to mark members as transient. Would you happen to have > references Thomas? > > Gideon, Thomas wrote: > > >Can't you also mark your members as transient if you don't want them &g

RE: Serialization question...

2002-10-28 Thread Gideon, Thomas
Can't you also mark your members as transient if you don't want them serialized? So shouldn't a combination of Serializable and transient properties also meet the requirement for serializing the object itself? Just curious if anyone is even using the transient keyword... Thomas Gideon Sr. Softwar

RE: [OT] HTML Performance question

2002-10-25 Thread Gideon, Thomas
I would say there's no real cause for concern with the scenario you describe. External JavaScript files and CSS stylesheets are typically cached by the browser, so you shouldn't be generating any significant number of additional requests. Also, since these files are not included into the HTML sou

RE: [OT - BeanUtils.populate] 'Case' of property name

2002-10-09 Thread Gideon, Thomas
"FROM > case_detail_1, cases_1 " + > "WHERE > case_detail_1.case_id = cases_1.id AND " + > > "case_detail_1.appl_id = 'OE_WEB' &quo

RE: [OT - BeanUtils.populate] 'Case' of property name

2002-10-09 Thread Gideon, Thomas
ck to calling my bean setters individually :-( > > Jerry > > > -Original Message- > > From: Gideon, Thomas [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, October 08, 2002 1:52 PM > > To: 'Struts Users Mailing List' > > Subject: RE: [OT - B

RE: [OT - BeanUtils.populate] 'Case' of property name

2002-10-08 Thread Gideon, Thomas
Probably the best solution is to alias the columns, if your RDBMS supports this, in your select statement, so they match with your JavaBean properties. To do so, you would alter the select clause to look like: select SOMEFIELD as "SomeField", ANOTHERFIELD as "AnotherField", ... fr

RE: struts tags in java file

2002-10-03 Thread Gideon, Thomas
Karen, No, because they way you written this code, you are already outputting directly to the response, rather than invoking the translation and execution phases of the JSP container, which is when and where custom tags, like , get evaluated. You could invoke the tag handler class directly, but

RE: jsp-to-action-to-action: when does the request die

2002-09-19 Thread Gideon, Thomas
Actually, the value of the redirect attribute also plays a role. True, when forwarding to a JSP, utlimately the request ends with the JSP generating content and sending it the the browser. If one of your actions is invoking another action using findForward, pay attenting to the redirect attribut

RE: Integrating Jakarta Taglibs with Struts

2002-09-18 Thread Gideon, Thomas
> -Original Message- > From: Joe Germuska [mailto:[EMAIL PROTECTED]] > > Well, the tag has a method, "formatValue" which returns > Strings with no changes at all. That's probably in large part > because formatting was an add on in Struts 1.1 and making any > assumptions about how to

RE: Integrating Jakarta Taglibs with Struts

2002-09-18 Thread Gideon, Thomas
> -Original Message- > From: Joe Germuska [mailto:[EMAIL PROTECTED]] > > It's just that when you format currency, the value should be a > number, not a String. Do the Struts I18N tags not coerce the value before calling the relevant java.text classes? I believe that the JSTL does (man

RE: Integrating Jakarta Taglibs with Struts

2002-09-18 Thread Gideon, Thomas
> -Original Message- > From: Norman Klein [mailto:[EMAIL PROTECTED]] > > I want to be able to use the Jakarta Taglib taglib (assuming > that the locale > is either already set or defaults to the parent) JSTL plays quite nicely with Struts. I believe if I recall the spec correctly for t

RE: [BEAN/LOGIC] How to avoid some ugliness

2002-09-18 Thread Gideon, Thomas
What about referencing the isEmpty() method on Collection, inherited by List? the is* is a valid JavaBean construct--shouldn't it be evaluated as such by the Struts tags? Does anyone else know if the empty operator in JSTL is intelligent enough to also check the return from isEmpty() if the oper

RE: newbie include question

2002-09-17 Thread Gideon, Thomas
> Yes, I goofed on that one - sorry. Heh, it happens, even to the best of us. d^; > I tend to advocate as clean of a solution as possible. That's why I > tend to try and shove the JSTL at folks. I can't begin to > say how much > easier it can make a person's life. I agree completely, but

RE: how to change locale

2002-09-17 Thread Gideon, Thomas
tag I posted to > bugzilla: > > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12648 > > Shameless self promotion, I know, but I do think it's useful. > > Dave > > > >From: "Gideon, Thomas" <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mai

RE: newbie include question

2002-09-17 Thread Gideon, Thomas
> introducing scriplets into your code-base. > > Gideon, Thomas wrote: > > >>-Original Message- > >>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > >> > >>I think you could use the syntax: > >> > >> > >>

RE: newbie include question

2002-09-17 Thread Gideon, Thomas
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > I think you could use the syntax: > > > > This will work if variable is a *scripting* variable already. If it is a form bean, then you may have to add a scriptlet, first, like: <% Object variable = p

RE: Bean with HashMap in JSP

2002-09-17 Thread Gideon, Thomas
> -Original Message- > From: Knoernschild, Kirk W [mailto:[EMAIL PROTECTED]] > > I have a display bean that has within it a variable of type > HashMap. From within the JSP, instead of iterating over the > values of the HashMap, I *need* to access the individual > values based on the k

RE: how to change locale

2002-09-17 Thread Gideon, Thomas
We use something like request.getSession().setAttribute(Action.LOCALE_KEY, locale); within the logon action of our application, and that seems to work. Thomas Gideon Sr. Software Developer B2eMarkets 301.230.2236 Tel. 301.230.2248 Fax. [EMAIL PROTECTED] www.B2eMarkets.com > -Original M