RE: [OT] Estimating a Struts-based project

2003-03-25 Thread Nelson, Laird
> -Original Message- > From: Chappell, Simon P [mailto:[EMAIL PROTECTED] > Hmmm. I'll see what I can scrounge up from the QA reject bin. As long as it can be customized. Extensively. Cheers, Laird - To unsubscribe, e-ma

RE: [OT] Estimating a Struts-based project

2003-03-25 Thread Nelson, Laird
> -Original Message- > From: Chappell, Simon P [mailto:[EMAIL PROTECTED] > Different section of IS. The area that I'm in is responsible > for distribution operations, so we'll schedule, pick, pack > and ship your customised LE suit to you, but the Internet > group will actually take your

RE: [OT] Estimating a Struts-based project

2003-03-25 Thread Nelson, Laird
> -Original Message- > From: Chappell, Simon P [mailto:[EMAIL PROTECTED] > Interestingly enough, the 768hr estimate that was in my > original post (and that I was worried was too low) has killed > the project. The resource manager took one look at it and is > not even planning to submit

RE: [OT] Estimating a Struts-based project

2003-03-25 Thread Nelson, Laird
> -Original Message- > From: Chappell, Simon P [mailto:[EMAIL PROTECTED] > There is screaming and wailing and gnashing of teeth if the > estimate is "too big". Long post follows, but I find this stuff interesting. I'll shut up after this. :-) I've found time estimate discussions are us

RE: [Q] Return-to-page - is there a slick solution?

2003-03-21 Thread Nelson, Laird
> -Original Message- > From: Jeff Smith [mailto:[EMAIL PROTECTED] > While you're at it, you might want to ensure that getting > back to the "start > point" includes a nice, juicy screen refresh so that any > dynamic information > altered by your wizard sequence is updated on the page. :-)

RE: [Q] Return-to-page - is there a slick solution?

2003-03-21 Thread Nelson, Laird
> -Original Message- > From: Jeff Smith [mailto:[EMAIL PROTECTED] > Thanks, I think that solves my immediate problem. But it sure > would be nice > if struts had a built-in mechanism for supporting these kinds > of sequences. I think I raised the same issue Many Moons Ago, claimed I'd do

RE: [Unverified Sender] RE: [OT] response.sendRedirect with proxy servers

2003-03-06 Thread Nelson, Laird
> -Original Message- > From: Nelson, Laird [mailto:[EMAIL PROTECTED] > send back a > tiny response that contains a Javascript payload that > instructs the browser > to replace its location with the correct URL (relative). The other thing I thought of: perhaps there&#x

RE: [OT] response.sendRedirect with proxy servers

2003-03-06 Thread Nelson, Laird
> -Original Message- > From: Bueno Carlos M [mailto:[EMAIL PROTECTED] > I have Tomcat sitting behind a firewall. I have two Apaches > that forward > requests to this Tomcat. I am never able to perform a > response.sendRedirect() command because the Location header > sent to the > browser

RE: DynamicForwardAction

2003-03-05 Thread Nelson, Laird
> -Original Message- > From: Eric Jain [mailto:[EMAIL PROTECTED] > That's not easy, considered that the Struts servlet may only have one > single mapping! Especially after pestering other people to get rid of > the '/cgi-bin/', '/servlet/', '.pl' and '.jsp's in the addresses, I'd > rather n

RE: [OT] Ancient computing

2003-03-05 Thread Nelson, Laird
> -Original Message- > From: du Plessis, Corneil C [mailto:[EMAIL PROTECTED] > Playing the Space shuttle games on the Commodore 64 was just awesome! Attempting--very, very, very badly--to write Donkey Kong on a TRS-80 was better. :-) Laird ---

RE: [OT] Ancient computing

2003-03-05 Thread Nelson, Laird
> -Original Message- > From: Tim Shadel [mailto:[EMAIL PROTECTED] > First family computer I remember: 8080 > > First that I used: Atari or Commodore64 with BASIC (hooked it > to the TV, > screen was blue with white letters [forboadings of M$??], > eventually had > a 5 1/4 disk drive)

RE: Accessing individual array elements (no longer OT)

2003-02-24 Thread Nelson, Laird
> -Original Message- > From: Ian Hunter [mailto:[EMAIL PROTECTED] > As far as struts is concerned, you MUST drop the "s" - Struts > does not use > the indexed methods at all, but if you want to, you have to > change the name > because as Laird so accurately states (paraphrased:) "Struts

RE: [Unverified Sender] RE: [OT] (Slightly OT) Accessing individ ual array elements (was Re: "multiple" problems)

2003-02-24 Thread Nelson, Laird
> -Original Message- > From: Kris Schneider [mailto:[EMAIL PROTECTED] > You shouldn't drop the "s". How right you are. Teach me to post based off (incorrect) memory. :-( Laird - To unsubscribe, e-mail: [EMAIL PROTECTED

RE: [Unverified Sender] RE: [OT] (Slightly OT) Accessing individual array elements (was Re: "multiple" problems)

2003-02-24 Thread Nelson, Laird
> -Original Message- > From: Nelson, Laird [mailto:[EMAIL PROTECTED] > So, to sum up, you should have: > > public String[] getIds(); > public void setIds(String[] ids); > public void setId(int i, String id); ...and public String

RE: [OT] (Slightly OT) Accessing individual array elements (was Re: "multiple" problems)

2003-02-24 Thread Nelson, Laird
> -Original Message- > From: Ian Hunter [mailto:[EMAIL PROTECTED] > My "setter" method is called "public void setIds (String > ids[])" -- when I > created a method called "public void setIds(int i, String > ids)" that killed > it because BeanUtils.populate was calling the wrong setter met

RE: [OT] Modeling tools

2003-02-11 Thread Nelson, Laird
> -Original Message- > From: Durham David Cntr 805CSS/SCBE > Craig, are you doing any seminars/presentations on struts. Is anyone? Probably not; after all that beer and being so far off the ground he'd probably fall over. And the audience would probably get neck strains. Laird ---

RE: set-property in the struts-config file

2003-01-31 Thread Nelson, Laird
> -Original Message- > From: Smith, Johnathan M. [mailto:[EMAIL PROTECTED]] > I am trying to pass a propert to one of my actions. Remember that the element in struts-config.xml describes an Action*Mapping*, not an Action instance. So will take effect on your custom ActionMapping impleme

RE: JavaScript / struts submit problems

2003-01-28 Thread Nelson, Laird
> -Original Message- > From: Mei Zhu [mailto:[EMAIL PROTECTED]] > > In your jsp page, the hidden field should be: > The first character > of the property > name should be lower case. No; see http://java.sun.com/j2se/1.4.1/docs/api/java/beans/Introspector.html#decapit alize(java.lang.Str

RE: Struts productivity metrics?

2003-01-27 Thread Nelson, Laird
> -Original Message- > From: Scott Piker [mailto:[EMAIL PROTECTED]] > I am interested in obtaining some real-world productivity > metrics for struts > usage. For example, has moving to struts greatly improved > your/your team's > overall productivity? Yes, in all of the places that I've

RE: flow control decision making

2003-01-21 Thread Nelson, Laird
Funny you should mention that. I've been wondering the same thing. Search the archives for a long discussion that Ted and I had on the issue. The short answer is no, there's not. The long answer is if I ever get any free time yes, there will be. Laird -- Laird J. Nelson Electronic Channel Gro

RE: Validator

2003-01-14 Thread Nelson, Laird
> -Original Message- > From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]] > Can anyone explain to me what this regular expression means: > > ^\d{5}\d*$ -- Zip validation that comes with the validator Start of line followed by five digits followed by zero or more digits followed by end of

RE: Re[4]: A Struts Haiku

2003-01-13 Thread Nelson, Laird
> -Original Message- > From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] > Mark returns to list > Limericks Haiku explode > a coincidence? A small proposal: Release Struts under the new Poetic License. Laird -- To unsubscribe, e-mail: For additional commands

RE: Session Management

2003-01-10 Thread Nelson, Laird
> -Original Message- > From: JONATHAN PHILIP HOLLOWAY [mailto:[EMAIL PROTECTED]] > 1. Storing things within the standard servlet session > > 2. Using a UserWrapper object and storing that within the session. > > Is the second way more preformance intensive or not and which is best > pract

RE: [FRIDAY] Best error message ever

2002-12-16 Thread Nelson, Laird
> -Original Message- > From: Peter S. Hamlen [mailto:[EMAIL PROTECTED]] > Please investigate yourself? Do you need to hire a private > investigator > to run a background search on yourself? :) I just like the fact that it apparently should be the type of self-investigation that could ge

RE: [FRIDAY] Best error message ever

2002-12-16 Thread Nelson, Laird
> -Original Message- > From: James Turner [mailto:[EMAIL PROTECTED]] > FILE SYSTEM FUKT: Call RMS Oh, that's priceless. I'm just picturing the matter/anti-matter explosion that would have resulted had RMS showed up in a room full of generals. Cheers, Laird -- To unsubscribe, e-mail: <

[FRIDAY] Best error message ever

2002-12-13 Thread Nelson, Laird
Just ran across this error message in an old legacy system (I couldn't make this up if I tried): Unspecified security problem. Please investigate yourself, but call [name changed to protect the innocent] team if you get stuck. Cheers, Laird -- To unsubscribe, e-mail:

Struts and MVC (long, OTish?) (was: All actions in one ActionClass)

2002-12-11 Thread Nelson, Laird
> -Original Message- > From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] > In business logic classes completely outside of the Struts > arena. Exactly right. This actually has some neat MVC implications if you do it right. I think of Struts Actions as presentation-layer-specific contro

RE: Struts design: All actions in one ActionClass

2002-12-11 Thread Nelson, Laird
> -Original Message- > From: Jordan Thomas [mailto:[EMAIL PROTECTED]] > What is the best way to design my application? Is it better to > a) Put all my actions for a particluar area (i.e. creating, > editing and > deleting user accounts) in one Action class > > or > > b) Use a seperate ac

RE: query parameters

2002-12-09 Thread Nelson, Laird
> -Original Message- > From: Anuj Agrawal [mailto:[EMAIL PROTECTED]] > Thanks for the additional note Laird. This could be solved by using > appropriate logging in the servlet though, right? Yes, and that's the proper way to do it. Unless, of course, purely hypothetically speaking :-), y

RE: query parameters

2002-12-09 Thread Nelson, Laird
> -Original Message- > From: Anuj Agrawal [mailto:[EMAIL PROTECTED]] > Aha! Thanks Laird! That's where i was mistaken (somehow i recall, > mistakenly, having a web app that used > requestDispatcher.forward(...) and > the URL was changed, must have done something differently i > guess).

RE: query parameters

2002-12-09 Thread Nelson, Laird
> -Original Message- > From: Anuj Agrawal [mailto:[EMAIL PROTECTED]] > However, even in that example, when the > requestDispatcher.forward(...) is executed, doesn't the > browser display the > URL that the requestDispatcher forwarded to (which would be > the JSP page)? Nope. > So when t

RE: query parameters

2002-12-09 Thread Nelson, Laird
> -Original Message- > From: Anuj Agrawal [mailto:[EMAIL PROTECTED]] > > Thanks for the response Laird. That's exactly the way i > understood it so > your response helped validate my understanding (and yes, > that's precisely > why i'm trying to use Struts - to separate business logic >

RE: query parameters

2002-12-09 Thread Nelson, Laird
> -Original Message- > From: Anuj Agrawal [mailto:[EMAIL PROTECTED]] > I know (i think) how to do this directly in the JSP (using JSTL's > db-querying tags), but i thought that only the servlet should > access the > database and obtain the record, so how would my JSP page > invoke the ser

RE: Best Practices for Logging?

2002-12-06 Thread Nelson, Laird
> -Original Message- > From: Justin Ashworth [mailto:[EMAIL PROTECTED]] > The log4j API only defines isDebugEnabled() and > isInfoEnabled(). My guess > as to why they don't have such calls for higher log levels is > that you would > generally have some other condition around a warn, erro

RE: Best Practices for Logging?

2002-12-06 Thread Nelson, Laird
> -Original Message- > From: Rene Eigenheer [mailto:[EMAIL PROTECTED]] > I often see debug messages code like: > if (log.isDebugEnabled() { >log.debug("debug message"); > } > and sometimes: > log.debug("debug message"); // let the log class decide > whether it has to > do debug > whic

RE: AW: java.sql.Date again!!

2002-11-25 Thread Nelson, Laird
> -Original Message- > From: Slava_L [mailto:[EMAIL PROTECTED]] > But is it possible to hide DateWrapper behind java.sql.Date ? > i wish to use > JDBC type in my FormBean As a rule, FormBeans should only work with Strings. For example, suppose the date field on your FormBean is supposed

RE: Digester finding file, parsing, not outputting any debugging info

2002-07-26 Thread Nelson, Laird
> -Original Message- > From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] > Are you using recent nightlies of Digester? They use > commons-logging for > debug output instead of the old System.out stuff now. My mistake; I'm using struts 1.0.2 and its copy of Digester. Cheers, Laird -

Digester finding file, parsing, not outputting any debugging info

2002-07-26 Thread Nelson, Laird
I'm going bats.  I'm creating a new Digester instance, setting its debug to a non-zero value, and telling it to parse a URL that I validate exists and matches the rule templates I've added to the new Digester instance.  Digester's parse() method fires, doesn't throw an exception, and nothing

RE: Digester finding file, parsing, not outputting any debugging info

2002-07-26 Thread Nelson, Laird
> -Original Message- > From: Nelson, Laird [mailto:[EMAIL PROTECTED]] > My mistake; I'm using struts 1.0.2 and its copy of Digester. Solved the problem (of course; which is why I usually post to this list; the minute the email goes out I find the answer...). I h

RE: Struts/Container-Managed Authentication Question

2002-07-18 Thread Nelson, Laird
> -Original Message- > From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] (First off, I take your point, but am just stupid enough to think that an implementation is nevertheless possible. The following is just to spur further thought.) > What'a a "user" (i.e. what properties does one

RE: Struts/Container-Managed Authentication Question

2002-07-18 Thread Nelson, Laird
> -Original Message- > From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] > I do not believe there will ever be such a thing as a "generic" > application security solution that meets a large majority of people's > needs. The problem is that the needs (well, at least their > wants :-) v

RE: unsubscribe me

2002-07-11 Thread Nelson, Laird
> -Original Message- > From: James Mitchell [mailto:[EMAIL PROTECTED]] > All your base are belong to us!! In A.D. 2002 Struts v1.1 was beginning. Craig: What happen ? Ted: Somebody set up us the struts-config.xml ActionServlet: We get incoming HTTP request Craig: What ! ActionServlet:

RE: Struts architecture performance

2002-07-10 Thread Nelson, Laird
> -Original Message- > From: pierre jauffret [mailto:[EMAIL PROTECTED]] > We heard about Struts, and we would like to know if the > struts architecture based on 1 Servlet Controler(MVC) is > better than a classical architecture based on several > Servlets(MVC also): and for what reasons

RE: How to transfer control

2002-07-02 Thread Nelson, Laird
> How to transfer/forward from one JSP to another JSP on > clicking a button. http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/ Cheers, Laird -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: Problem with Populate the way I want to use it...

2002-06-26 Thread Nelson, Laird
> -Original Message- > From: [EMAIL PROTECTED] > If I remove the cast then it blows up with an argument mismatch > somewhere in the bowels of the beanutils... > > Class factory = target.getClass(); > Object bean = factory.newInstance(); > BeanUtils.populate(bean,map); > l

RE: Making 1.0.2 behave like 1.1

2002-06-25 Thread Nelson, Laird
> -Original Message- > From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] > I suppose it is not possible to convince your PHBs (pointy > haired bosses, > for non-Dilbert fans) that customizing your own copy of > Struts 1.0.2 to > deal with this would leave you a *less* supported Struts

Making 1.0.2 behave like 1.1

2002-06-25 Thread Nelson, Laird
First off, let me say that I got Craig's warning loud and clear: don't try to make Struts 1.0.2 support multiple sub-applications. Unfortunately, I'm kind of between a rock and a hard place and have to figure something out fast to tide us over until we move to 1.1. We're somewhat lucky in that w

RE: Is ActionMappings shared by all the servlets ?

2002-06-24 Thread Nelson, Laird
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] > Please don't even try to get 1.0 to do this (multiple > controller servlets > in one webapp) -- it will never ever ever work. Well, that's what I call a ringing endorsement. :-) I'll see what we can do towards convincing Those Who Must A

RE: Is ActionMappings shared by all the servlets ?

2002-06-24 Thread Nelson, Laird
> -Original Message- > From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] > Struts 1.0.x does not support any notion of multiple struts-config.xml > files in the same web application. You will have *lots* of problems > because of assumptions that there is only one controller > servlet

RE: Exception Handling - Chapter 10

2002-06-05 Thread Nelson, Laird
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] > What's the purpose of the single-argument constructor in > Example 10-1 on > page 8? How do you mean: African or European? Cheers, Laird -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: DTD Question

2002-05-30 Thread Nelson, Laird
> -Original Message- > From: James Holmes [mailto:[EMAIL PROTECTED]] > What version of Struts are you using? Struts 1.0 and > later use a resource locator that grabs the DTD from > the Struts Jar and should resolve DTDs very quickly. In case the original poster is working under Visual Ag

RE: Application State == View or Business Logic

2002-05-15 Thread Nelson, Laird
> -Original Message- > From: Robert Taylor [mailto:[EMAIL PROTECTED]] > > My point of contention is with the view or > view helpers containing the logic which actually > interacts with the business layer therefore > circumventing the controller. That is, I wanted > to make the point >

RE: Form Bean vs. State Bean

2002-05-10 Thread Nelson, Laird
> -Original Message- > I may just be confused. I thought that I needed a state bean > to hold the > address information in and that I needed a form bean to > create the form on > the jsp page. Think of the form bean (or form beans, plural) as the state of some portion of the total numb

RE: servlet-mapping and url-pattern

2002-05-10 Thread Nelson, Laird
> -Original Message- > From: Galpin, Charles [mailto:[EMAIL PROTECTED]] > Web.xml: > > > action > tiles/* > > > Struts-config.xml: > > > > > > Any ideas? You can't use the servlet path ("/tiles") in an action mapping. Action mappings out of the box on

RE: synchronizing access to instance var. on action

2002-05-03 Thread Nelson, Laird
> -Original Message- > From: Emmanuel Bridonneau [mailto:[EMAIL PROTECTED]] > Am i to synchronized on 'method' instance variable of the action? Generally, instance variables in Action classes are bad. You probably want to store the value of that variable as an attribute in the session in

RE: how do I do something after a forward?

2002-05-03 Thread Nelson, Laird
> -Original Message- > From: Malcolm Dew-Jones [mailto:[EMAIL PROTECTED]] > Want I want is conceptually the same as > >public final class myAction report extends Action >{ > public ActionForward perform(...) > { > dbh = get_database_connection() >

Redirect related question

2002-05-02 Thread Nelson, Laird
A question on HTTP 302 redirects and, somewhat indirectly, Struts: We have a situation where one of our Actions needs to send a redirect (HttpServletResponse.SC_MOVED_TEMPORARILY) to the client. It is a requirement that the incoming request parameters, whether they be GET or POST, be sent along

RE: Struts Actions are Singletons?

2002-04-24 Thread Nelson, Laird
> -Original Message- > From: Abhishek Srivastava [mailto:[EMAIL PROTECTED]] > And to make it thread safe I have use "synchronize" blocks of > code which can > cause all the requests to get queued up. (Java has lock per object, > therefore if my code had 2 synchronized blocks, then the 2nd

RE: Struts Actions are Singletons?

2002-04-24 Thread Nelson, Laird
> -Original Message- > From: abhishek srivastava [mailto:[EMAIL PROTECTED]] > Are the Action classes that we write for Struts Singletons? > or are they > created and destroyed per request. http://jakarta.apache.org/struts/doc-1.0.2/userGuide/building_controller.htm l#action_classes Exc