Re: [OT] Generating microsoft word documents (use HTML!!!)

2003-02-12 Thread Peter S. Hamlen
John, We had the same problem here - in particular, our clients were accustomed to some standard packets that were generated in Word and still wanted them to be Word documents, open them in Word, edit them in Word, but have the original document generated by our webapp. Our eventual solution: Ja

[JSTL] How can I use c:if to check the size of a list?

2003-02-12 Thread Peter S. Hamlen
I'm a bright new convert to the beautiful world of JSTL,and I'm struggling over one tricky issue. We're paging over a resultset using the c:forEach tag and specifying the start and end parameters. I would like to be able to create a "previous" and "next" button. Obviously, if we're at the end of

RE: [OT] how do people work in project with one CVS server

2003-02-07 Thread Peter S. Hamlen
Just to add two more recommendations to Craig's list: * Have an automated build process that builds from scratch and runs your tests. Run this process at least once a day (cf. the nightly build process for Struts and other Jakarta projects.) This ensures that if someone does "break the buil

Re: [FRIDAY] Best error message ever

2002-12-13 Thread Peter S. Hamlen
LOL! Please investigate yourself? Do you need to hire a private investigator to run a background search on yourself? :) -Peter On Fri, 2002-12-13 at 12:42, Nelson, Laird wrote: > Just ran across this error message in an old legacy system (I couldn't make > this up if I tried): > > Unspecifie

Re: [Sorting within an Iterate tag]

2002-10-30 Thread Peter S. Hamlen
ry wrote: > Response below. > > "Peter S. Hamlen" <[EMAIL PROTECTED]> wrote: > We display lists throughout our Struts application, and depending on the > screen, the lists need to be sorted differently. Is there a useful > SortedIterate tag or somesuch out there?

Sorting within an Iterate tag

2002-10-30 Thread Peter S. Hamlen
I'm sure other people have encountered this, and I hope someone has a simple answer somewhere: We display lists throughout our Struts application, and depending on the screen, the lists need to be sorted differently. Is there a useful SortedIterate tag or somesuch out there? Example: We often

Sorting within an Iterate tag

2002-10-29 Thread Peter S. Hamlen
I'm sure other people have encountered this, and I hope someone has a simple answer somewhere: We display lists throughout our Struts application, and depending on the screen, the lists need to be sorted differently. Is there a useful SortedIterate tag or somesuch out there? Example: We often

RE: Design Problem: Multiple Object Update

2002-10-04 Thread Peter S. Hamlen
Try this url - it uses the tag to good effect: http://www.keyboardmonkey.com/StrutMonkey/monkey-action-v2.do You can go http://www.keyboardmonkey.com to find out more about how it works. -Peter On Fri, 2002-10-04 at 13:28, Mark Silva wrote: > you still need to declare your variables in the c

RE: [OT][FRIDAY] brain types

2002-10-04 Thread Peter S. Hamlen
Clearly you're a IAP type Investigative, Anti-Plagiarist!!! :) -Peter On Fri, 2002-10-04 at 12:38, Brad Rhoads wrote: > They ripped off Kiersey & Bates and don't even seem to give them credit! > > See > http://www.amazon.com/exec/obidos/tg/detail/-/0960695400/qid=1033749305/sr=8 > -2/ref=sr_8

Re: Persistence Framework Comparison?

2002-10-04 Thread Peter S. Hamlen
Search the message list - this got asked just a few days ago. Or google on "Castor Torque Hibernate" Here's an interesting letter that might help: http://www.mail-archive.com/mav-user@lists.sourceforge.net/msg00190.html Personally, I've been using Torque for two projects now and I think it's th

Re: JSP to forward to "please wait" page and then "result" JSP

2002-10-04 Thread Peter S. Hamlen
What I've done in the past: Store a variable in the user's session (eg, queryInProgress). On the "results page", use tags to display the "please wait" content, and otherwise display the results set. (Make sure that the bit running the query sets the variable back to false when it's done, of co

Re: Need some design hand-holding

2002-10-03 Thread Peter S. Hamlen
Wendy, A possible way to do all of this - not necessarily the best, but enough to get you started. Assume: 1) Let's assume that the field that takes the name is called "ContactName" in your form. 2) The button next to "Contact Name" has a value of "NameLookup", and is a submit button (as oppos

Re: logic:iterate question

2002-10-02 Thread Peter S. Hamlen
Since you can access specific item in a list through something like this: You should be able to do what you want through a scriptlet: ie We use this trick all the time ( and I gleaned it from this fabulous list in the first place.) -Peter On Wed, 2002-10-02 at 14:51, Andy Kriger wrote: > I

Re: Throwing a 404?

2002-10-02 Thread Peter S. Hamlen
Just my two cents: Use HttpServletRequest:sendError rather than redirecting to a special page, and have your webserver configuration redirect the user to a pretty page if that's necessary. Rationale: In every website that I've put up, someone somewhere has eventually wanted to see a count of the

Re: [SELL STRUTS] How do you sell the ActionForm idea?

2002-09-30 Thread Peter S. Hamlen
I suppose selling him with "look, so many other people are being productive with this tool, let's just use it" is out? :) >From my own experience: 1) Sell him on the fact that you can create (either via DynaForm or through the magic of Mapped Properties) a generic ActionForm that behaves just

Re: Incomplete page!!!

2002-09-27 Thread Peter S. Hamlen
Yep, we've seen the same behavior a lot. The trick is that there is SOME error occuring on the page (in our case, it was often non-existent property references in our JSP tags). You can narrow it down fastest by looking at your log4j logs (or whatever logging mechanism you're using.) Note that

[FRIDAY] [OT] Best misunderstanding of an acronym?

2002-09-27 Thread Peter S. Hamlen
Yesterday, I sent an email to a co-worker on a topic, and added at the bottom YMMV without bothering to explain the acronym. This morning (about ten minutes ago), she showed up and asked: "What does YMMV mean? You Make Me Vomit? " Anyone else have any choice examples of misunderstood acronyms?

Re: User Notification

2002-09-24 Thread Peter S. Hamlen
I've had to implement "mail like systems" like this in a variety of places. If I could just make some suggestions: 1) Notification is usually accomplished as a side-effect of how you store your messages. For instance, if each message is stored with a "read-flag", then it's a simple query to fi

RE: SQL Query Builder [Off Topic]

2002-09-17 Thread Peter S. Hamlen
It doesn't quite fit the exact bill you're looking for but just to put in the two cents for another wonderful Jakarta project: We use Torque (http://jakarta.apache.org/torque) to do our database access. It supports most major databases (mysql, oracle, postgres, sql server, etc, etc.). One of th

Re: Doing business logic validation in the Action -ValdiatableAction

2002-07-08 Thread Peter S. Hamlen
James, I'll just mention that we've taken an alternate approach from the others mentioned on the newsgroup. What we did was the following: 1) Create an interface called "ValidatableAction", with a method called "validate". 2) Create a "ValidatingForm" (bad name, I know) - within its Validat

Newbie question: Best practices on logging?

2002-06-24 Thread Peter S. Hamlen
Hello, everyone. We're starting to work with Struts1.1b2 (using Tomcat 4 on Linux). I have some basic beginner questions about logging with struts. I've looked on JGuru and the Struts documentation, and even mucked about in the source code (but only a little...) There are clearly debug message