MVC + Validation tips?

2003-03-28 Thread James Higginbotham
Hi, After searching the archives, I couldn't find an email that described a good solution to my question, and Ted's sample chapter on Validation didn't touch on it either. I have an action that is called which prepares the appropriate data and forwards to a JSP which contains a struts form. I

RE: [OT] FWIW

2003-03-18 Thread James Higginbotham
Mark, Some interesting information for digestion: From a reputable source, BBC, regarding Iraq torturing children: http://news.bbc.co.uk/2/hi/world/from_our_own_correspondent/2058253.stm Iraq training the terrorists (PBS Frontline):

RE: Opinions on Struts code generator - A zipped version

2003-03-16 Thread James Higginbotham
Interesting.. How about taking this to the next level, which all struts generators have failed to do (except a BEA tool that requires you to buy into them): 1) Offer the ability to define the concept of a page, which has associated to it the action and an JSP page 2) Define the fields that will

RE: Opinions on Struts code generator - A zipped version

2003-03-16 Thread James Higginbotham
SQL. .V James Higginbotham wrote: Interesting.. How about taking this to the next level, which all struts generators have failed to do (except a BEA tool that requires you to buy into them): 1) Offer the ability to define the concept of a page, which has associated

RE: struts IDE

2003-03-06 Thread James Higginbotham
No kidding! This needs to be on the frontpage, just as the question of when 1.1 is going to be released.. This is getting painful! www.mail-archive.com - use it people! -Original Message- From: Tony Baity [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2003 8:04 AM To: Struts

RE: struts IDE

2003-03-06 Thread James Higginbotham
Thinking outloud - could a nice search box somewhere on the struts site that POSTs to mail-archive.com help? Dunno if the majority of these posts could be prevented or if its just going to happen due to lack of research.. -Original Message- From: James Higginbotham Sent: Thursday

RE: [OT] IDE / ERD modeling (Was: Re: struts IDE)

2003-03-06 Thread James Higginbotham
I am an Emacs/JDE user myself, and I am beginning to look into Eclipse only because it seems to make me more efficient with some tasks.. I always liked the paradigm that VAJ provided but hated the repository due to its difficulty in CVS integration. Eclipse is a nice middle ground, giving me good

RE: [OT] IDE / ERD modeling (Was: Re: struts IDE)

2003-03-06 Thread James Higginbotham
Ah, yes... I can't imagine my life without ERWin, though I haven't upgraded since it was owned by Platinum. It still works like a champ after 6 years.. Too bad there isn't a similar product that is x-plat for Becky's needs. James -Original Message- From: Mitchell Morris [mailto:[EMAIL

RE: REPOST: How to specify input to validating multi-page wizard?

2003-03-05 Thread James Higginbotham
I assume you are managing the wizard using your own action and mappings? If so, I did a similar design for my product. Essentially, I had to create a mapping for each step so that the input could be specified properly. Then, each JSP posted to the proper step mapping. For example, I had /wizard1,

RE: [OT] Text editor usage (was RE: [OT]: What is vim?)

2003-03-04 Thread James Higginbotham
I think an open plugin-based IDE like Eclipse can do much, much more.. by actually embedding Emacs within the IDE as a true component plugin, much like it allows the embedding of multiple HTML/JSP editors, viewers or VCM tools etc. Amen! I'm torn between the two and having the power

RE: [OT] Text editor usage (was RE: [OT]: What is vim?)

2003-03-04 Thread James Higginbotham
]: What is vim?) I don't use it but eclipse does have an emacs keybindings preference. David From: James Higginbotham [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED],[EMAIL PROTECTED] Subject: RE: [OT] Text

RE: [OT] Ancient computing (was RE: [OT] Don't beat on James! (wasRE:[OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data)

2003-03-04 Thread James Higginbotham
Ah, a fellow c=64 programmer! Yep, I even bought a C=128 + floppy drive + some games from Goodwill computers in Austin about a year ago.. Haven't unpacked it since the move.. Mail Order Monsters here I come! James -Original Message- From: Becky Norum [mailto:[EMAIL PROTECTED] Sent:

RE: struts Content Management System

2003-02-27 Thread James Higginbotham
I wish! I'm working on a simliar thing for my church using Struts, Tiles, Slide, and JBoss. It seems that quality CMS systems in Java are very rare and usually not what you want anyway (I know, I've tried to forcefit a number of them for my needs). James -Original Message- From: rajiv

RE: Jboss and Struts Menu

2003-01-31 Thread James Higginbotham
What version of Jboss are you using? They've recently been including some of the jakarta libs for bootstrapping and other needs, so the classloader could be an issue. They've also fixed some classloader issues in jb 3.0.6, which was released just Mon/Tues of this week. Sorry, but I haven't tried

[Validator] Anyone have a fields match rule?

2003-01-21 Thread James Higginbotham
Hi, Anyone out there written the validator and Javascript for validating 2 fields, say a password and confirm password, to ensure that they match? I am using the Dec 12th CVS of Struts and related validation jars and haven't found anything yet. CVS diffs show that nothing new has been added to

RE: How to access CVS log information

2002-12-13 Thread James Higginbotham
Try: cvs log filename James -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 12, 2002 8:44 PM To: [EMAIL PROTECTED] Subject: Re: How to access CVS log information I use eclipse to open up a particular .java file in the resource

RE: How to access CVS log information

2002-12-13 Thread James Higginbotham
Sorry, I forgot to add the help.. It allows you to specify the date range as well, and you can do just one file or a whole tree.. I think Ant offers a tag for this in 1.5.1 that can assist with additional options as well. HTH, James Usage: cvs log [-lRhtNb] [-r[revisions]] [-d dates] [-s

RE: future of struts

2002-11-22 Thread James Higginbotham
If Struts is to move to being used as a generic MVC architecture that can be used in a wide range of other environments it may be appropriate to consider 'abstracting' the request and response objects (or at least provide an option to) to isolate them from the HTTP protocol. Otherwise,

RE: Struts in CMS ?

2002-11-19 Thread James Higginbotham
Blogging != CMS.. Google CMS and get a formal definition. I just did a requirements gathering project to find a true CMS solution, and I don't know how many people classified blogging and cheesy web site publishing as a CMS solution (well, at least 350 before I quite counting). Just a pet peave of

Struts nightly - Beanutils exception

2002-11-19 Thread James Higginbotham
Hi, I am upgrading from a Jan 2002 nightly binary to the 11/13/02 nightly binary and I am seeing the following exception during a form bean population. I saw that a bug was in the commons-beanutils jar recently, so I upgraded that to the 11/19/02 jar and still no help. Please let me know what

RE: Redux: Actions and business logic, or Using Struts with the Rational Unified Process

2002-11-11 Thread James Higginbotham
John, is an MVC framework. Granted, while it tends toward the presentation layer, it does provide mechanisms that venture into the problem domain, like FormBeans. Not quite sure what you mean here, as FormBeans are simply javabeans that are used to store the user's input form data before its

RE: Redux: Actions and business logic, or Using Struts with the Rational Unified Process

2002-11-10 Thread James Higginbotham
Comments inline. Quite short on details, but the report recommends that the Struts framework should be used to implement the interaction between the presentation and business layers. Comments? True. example apps, so I'm interested in how Struts maps to the contructs of RUP.

RE: [OT] OJB/Struts and Jetspeed

2002-11-05 Thread James Higginbotham
Do you think that using the portal features of tiles could help in developing a portal application based on Struts? Well, if you need something now, like me, then you'll probably be doing what I do - comparing the potential of Jetspeed's codebase vs. writing something simple from scratch

RE: Final release for Struts 1.1

2002-11-05 Thread James Higginbotham
(This is what? The 1500th time Ive had to give this answer? Yes? No? Oh. Only 1499 times. Ok...) Yep, probably.. But I think as its been discussed before, some folks can work from the CVS version and some need some sort of minor release for political or stability reasons.. Even the Struts

RE: [OT] OJB/Struts and Jetspeed

2002-11-04 Thread James Higginbotham
Thanks for the info.. You should probably check out the BasicPortal project at http://basicportal.sourceforge.net/; it's based on Struts and organized by some pretty active members of the struts-user community. It doesn't use OJB as far as I know. Will do... As for Jetspeed being dead...

RE: [OT] OJB/Struts and Jetspeed

2002-11-04 Thread James Higginbotham
Jetspeed is dead - check some list archives. They *may* redo something to use the new portlet API, but I haven't seen much activity from them. There may be some folks out there still working on it, but in reality, some new codebase should probably take its place (or some new maintainers should

RE: Best Practice for optaining GLOBAL_ERRORS

2002-10-21 Thread James Higginbotham
Hey Dennis, long time no talk! Well, not sure if there is a better way, but here is what we do: html:errors property=org.apache.struts.action.GLOBAL_ERROR/ (removes the import).. I guess you could write a custom tag to create one of the html:errors tag instances, set the property name to the

RE: Am I the only one using java.util.Date?

2002-10-16 Thread James Higginbotham
If you search the list archives at www.mail-archive.com, I think you will find your question answered. Pappa Struts (Craig) answered it, as did other folks. James -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 16, 2002 11:22 AM To: Struts

RE: Re[2]: Am I the only one using java.util.Date?

2002-10-16 Thread James Higginbotham
! James -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 16, 2002 11:59 AM To: James Higginbotham Cc: Struts Users Mailing List Subject: Re[2]: Am I the only one using java.util.Date? On Wednesday, October 16, 2002, 12:28:15 PM, James

RE: Re[4]: Am I the only one using java.util.Date?

2002-10-16 Thread James Higginbotham
James, I posted myself many times in that thread. That thread does not answer the question. It deals with java.sql.Date not java.util.Date and yes Craig does mention about custom Converters but I'm wondering if others have done that as their solution for dealing with

RE: Users clicking twice

2002-10-15 Thread James Higginbotham
You might be able to use the transaction token (?) to ensure that a request is always valid. The docs have more info on this. I haven't tried it, just read about it in the past. Course, the first thing your action should do is invalidate the token to help the back-to-back presses. James

[OT] RE: DAO or ... ?

2002-10-15 Thread James Higginbotham
I'm still learning about patterns on my C=128 and Run Magazines that I picked up at a Goodwill for $20.. Oh, man - 80 col mode... drewl/ Is it Friday yet? James -Original Message- From: Dan Trevino [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 15, 2002 5:08 AM To: Struts Users

RE: When *exactly* does reset get called?

2002-10-13 Thread James Higginbotham
A simple read of the Javadoc explains it, and the source shows it: /** * Reset all bean properties to their default state. This method is * called before the properties are repopulated by the controller servlet. * p If you want to see where exactly, you could grep the source

RE: [OT] which object-relational mapping framework?

2002-10-10 Thread James Higginbotham
Search the mail archives via Google or www.mail-archive.com James -Original Message- From: Andy Kriger [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 1:29 PM To: Struts Users Mailing List Subject: [OT] which object-relational mapping framework? I'm embarking on a

RE: Whats the best way to use Struts?

2002-10-08 Thread James Higginbotham
Don't gauge a library by the number of jars required for import, determine if it solves your immediate and future needs. Struts uses a lot of jakarta commons jars, which were originally packaged in Struts and other apps but were refactored for use by others in a non-Struts application. If you

RE: enforcing max upload file size - before its too late!

2002-10-06 Thread James Higginbotham
Realistically, something is needed in the core web server (Apache, or in the lower layers of the socket listeners in the servlet spec) to stop incoming POST requests that exceed a certain amount. With this code (which I've used before as well), you can't stop the upload and close the connection,

RE: [OT] Guidelines for working weekends

2002-10-05 Thread James Higginbotham
Very, very odd. Netbeans somehow didn't save the changes I had made - but thought it did. Upon restarting the IDE my error (it's error!) was obvious ... Man, how I wish Emacs would pull up completions If you configure JDEE, it will do this with CTRL-C CTRL-V CTRL-. Let me know if

RE: Persistence Framework Comparison?

2002-10-04 Thread James Higginbotham
(I wish Struts had a non implemented persistance interface) Really? I think Struts is quite good at what it does, and to me, persistence seems to outside the scope of a web application MVC framework. Agreed. Struts does what it does best - web MVC framework. What the original author of

RE: Persistence Framework Comparison?

2002-10-04 Thread James Higginbotham
But, I'm curious why you think there would be any glue code needed? Isn't it just a matter of using the persistence framework directly from your DAOs (or from your Actions if you don't use DAOs)? At most, I could only conceive of perhaps providing a Struts PlugIn to initialize such a

RE: Using friendly names for application entry points

2002-10-04 Thread James Higginbotham
Your problem is that you are probably deploying the struts action with a .do mapping, whereas your user friendly name doesn't end in that extension and thus it never hits the struts framework for your global forward to work. Try writing or locating a servlet that you can map to that friendly

RE: [OT] RE: Persistence Framework Comparison?

2002-10-04 Thread James Higginbotham
-Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Friday, October 04, 2002 4:29 PM To: [EMAIL PROTECTED] Subject: [OT] RE: Persistence Framework Comparison? I think you missed the point. Yes, JDO lets you program to an interface with multiple vendors

RE: OFF topic: BeanUtils

2002-09-28 Thread James Higginbotham
Read the docs on the Jakarta commons logging library, which they use. You can disable it by using the package prefix up to the level you want to disable logging (org, org.apache, etc). James -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday,

RE: How to share Tiles between webapps ?

2002-09-27 Thread James Higginbotham
Hmm.. This sounds interesting.. Is there a pointer to more info about this, or can you share some more details about what you are doing? I'm about to start on a project that will behave like sourceforge, allowing subprojects to be hosted and managed by users. Sounds like this may be a good

RE: Struts and high performance sites revisited

2002-09-26 Thread James Higginbotham
Tom, I totally agree - its all in how the server gen's the code, for the most part. The rest is related to the spec itself and how much it allows app servers to optimize. There was a discussion about the thread safety of JSP tags a little while ago. Here is what I wrote up:

RE: Unit testing a struts application

2002-09-26 Thread James Higginbotham
I totally agree with this approach. Here is how I abstract Struts away from http: http://www.mail-archive.com/struts-user@jakarta.apache.org/msg40143.html This way, I can test as close to the protocol as possible, allowing me to remove the protocol-specific issues. Then if a bug comes up, I can

RE: [OT][WORKFLOW] Any best practice for back, save, continue buttons?

2002-09-26 Thread James Higginbotham
Dan, I did something in the past related to this, before Struts was available (I think). It required new instances of an action to be created for each jump with return, which cluttered the session but enabled these actions to store state about the process. Anyway, the one thing I learned, no

RE: [OT][WORKFLOW] Any best practice for back, save, continue buttons?

2002-09-26 Thread James Higginbotham
Dan, I did something in the past related to this, before Struts was available (I think). It required new instances of an action to be created for each jump with return, which cluttered the session but enabled these actions to store state about the process. Anyway, the one thing I learned, no

RE: Logout in a container-managed security environment -- Follow-up

2002-09-25 Thread James Higginbotham
Charles, The thing to keep in mind is that you cannot call the login page directly. Rather, you have to call a protected page, which will trigger the login page, then will post to the j_security_check, and the container will then forward to the protected page if the user authenticated correctly.

[OT] RE: User Notification

2002-09-24 Thread James Higginbotham
Ok, this thread has nothing to do with Struts, so I will make one more pass at it. After this, I'd suggest doing some prototypes and seeing what works best - trial and error with multiple quick prototypes is better learning than asking others to do the work for you. Now, a database can store

RE: [OT][WORKFLOW] Any best practice for back, save, continue buttons?

2002-09-24 Thread James Higginbotham
Dan, I did something in the past related to this, before Struts was available (I think). It required new instances of an action to be created for each jump with return, which cluttered the session but enabled these actions to store state about the process. Anyway, the one thing I learned, no

RE: User Notification

2002-09-23 Thread James Higginbotham
Ok, then you could use JMS to store a message in a topic and check for it on each request to show the user an indicator if a message exists. But, unless you turn off persistence for the topic, you will be using a DB on the backend anyway. And a query against a DB on a field that is indexed (such

RE: Call for comments: Method dispatching and access control framework.

2002-09-03 Thread James Higginbotham
Interesting.. You've take a similar approach to what I've done in the past, with some caching of the Methodsthat I didn't do.. Here is what I did in text form (no diags available right now): Create a base action class that implements the perform() method and offers an abstract method

RE: Java Server Faces and Developer Life Comments

2002-08-31 Thread James Higginbotham
1. NetDynamics is alive and well, see: http://developer.iplanet.com/tech/appserver/framework/index.jsp They have a nice sample app as well. But since I Planet has a bad rap, so does the Sun framework. Ummm... What am I missing? Sounds like they are using Jato instead of Struts, but I'm not

RE: Java Server Faces and Developer Life Comments

2002-08-30 Thread James Higginbotham
I have to agree with your assessment: Struts is a fabulous framework, and now we need a real application development environment to sit on top of it. Kudos to all those writing graphical interfaces to struts, but most of them are just GUI panels on top of the config files. I saw one (can't recall

RE: JSP thread safety

2002-08-28 Thread James Higginbotham
Well, the JSP spec says it all - may want to take a look, or just write a JSP page and have the compiler keep the generated code so you can look at what it does. JSP 7.1.2.1: quote The JSP page implementation class instantiates a tag handler object, or reuses an existing tag handler object, for

RE: Problem deploying ejb combined with struts

2002-08-20 Thread James Higginbotham
Search the Jboss archives for classloading under Jboss 3.0.. I believe you have to wrap the war into a single .ear with the EJBS, and remove the libs from the war and put them in the ear *only* if you are using embedded Tomcat with JBoss. Something about how the classloaders work under the new

RE: DAO - DTO business object to view beans

2002-08-20 Thread James Higginbotham
In my past experience, projects tend to start out with the DTOs matching the BOs 1-to-1 but as a project grows and matures, UI changes will require a DTO to change in such a way that they don't match the BOs anymore. So, do the right thing and have both BO and DTO, even if they are matching. This

RE: Decorators?

2002-08-19 Thread James Higginbotham
Take a look at tiles.. Its part of Struts 1.1 (currently in beta 2 I believe) or can be obtained separately.. The link to the current tiles docs are at http://www.lifl.fr/~dumoulin/tiles/, unless they got moved to the struts contrib directory recently.. James -Original Message-

Struts 1.1, Tiles, and blank webapp

2002-08-13 Thread James Higginbotham
Hello all, I've been using Struts 1.02 for some time, and started looking at Struts 1.1 and Tiles for our next pass of our application. I'm using JBoss 3.0.0 + Tomcat/Catalina 4.0.3, and have been trying to deploy the sample applications that some with Struts. After attempting to use 1.1 beta 1

Resolved with patches - RE: Struts 1.1, Tiles, and blank webapp

2002-08-13 Thread James Higginbotham
/header.jsp / put name=menu value=.mainMenu / put name=footer value=/common/footer.jsp / put name=body value=.portal.body / /definition Thanks! James -Original Message- From: James Higginbotham Sent: Tuesday, August 13, 2002 12:17 PM To: [EMAIL PROTECTED

RE: Most interesting question.

2002-05-15 Thread James Higginbotham
Well, if you follow the suggested guidelines of the J2EE Blueprints, you should be writing a custom JSP tag to fetch the data and push it into the request under the name desired (or passed in via an id or similiarly named attribute). This way, actions process forms and JSP pages + Custom tags

RE: Sharing information among web apps

2002-05-15 Thread James Higginbotham
Well, that's web services if you are sharing data across networks, sharing between technologies that don't integrate well, or are sharing data that is in XML form within your network. Otherwise, you have the overhead of setUp and teardown of the HTTP protocol and XML creation/parsing to share

RE: Struts vs EJB, thoughts?

2002-04-14 Thread James Higginbotham
EJB and Struts are not the same thing. Struts is an open source framework for building Web applications that integrates with standard technologies like Java Servlets, JavaBeans, and JavaServer Pages (JSP). Its goal is to do the mundane work of converting HTTP parameter information into more

Jetty, Struts, and the html:base tag

2002-04-11 Thread James Higginbotham
I apologize if this is a repeat question, but I couldn't locate an answer to this mailing list archive, nor via google to any of your docs or other FAQs. I'm using JBoss 3.0.0 with embedded Jetty. Just about everything works with our web application since we ported it to JBoss from Weblogic.