Re: [OT Friday] Re: How to pass variable from servlet to jsp?

2005-02-11 Thread Frank W. Zammetti (MLists)
r and Chief Software Architect Omnytex Technologies http://www.omnytex.com > Quoting "Frank W. Zammetti (MLists)" <[EMAIL PROTECTED]>: > >> It's not an argument Eric, it's a debate. Are not debates about how to >> approach various problems part of what this

Re: How to pass variable from servlet to jsp?

2005-02-11 Thread Frank W. Zammetti (MLists)
It's not an argument Eric, it's a debate. Are not debates about how to approach various problems part of what this list is for? After all, you can ignore the threads you have no interest in, I do it all the time :) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies h

Re: How to pass variable from servlet to jsp?

2005-02-11 Thread Frank W. Zammetti (MLists)
On Fri, February 11, 2005 12:43 pm, Larry Meadors said: > Hmm, I only sent it twice (once for each of the emails I got from you). > > Odd. Not a problem, probably just the typical list posting issues that pop up every so often. I should have thrown a smiley at the end of that first paragraph, I c

Re: Struts Studio

2005-02-11 Thread Frank W. Zammetti (MLists)
have to get dirty > at some point although I'd probably stop at downloading the Struts > source and not reach for my copy of Peter Norton's Guide to x86 > Assembler :-) > The real fun comes later with that pesky data, but that's a whole > separate topic. > My 2p &

Re: Struts Studio

2005-02-11 Thread Frank W. Zammetti (MLists)
I hope I didn't come across being anti-IDE... that wasn't my intent. Even though I don't use an IDE myself for my web development work, I would not dissuade anyone from using one. The point I was trying to make, perhaps not as elloquently as I had hoped, was that starting out by hand will probabl

Re: How to pass variable from servlet to jsp?

2005-02-11 Thread Frank W. Zammetti (MLists)
nytex.com On Fri, February 11, 2005 11:43 am, Larry Meadors said: > No offense, but that is *crazy* *bad* advice Frank. > > Larry > > On Fri, 11 Feb 2005 11:22:26 -0500 (EST), Frank W. Zammetti (MLists) <[EMAIL PROTECTED]> wrote: >> <%@ page language="java&qu

Re: How to pass variable from servlet to jsp?

2005-02-11 Thread Frank W. Zammetti (MLists)
There's two ways you can go... One is to have an ActionForm associated with your Action, another is to use request directly. Using request directly, you simply do this in your Action class: request.setAttribute("temp_", temp_); (that's an unusual variable name... was that underscore a typo?) ..

Re: Struts Studio

2005-02-11 Thread Frank W. Zammetti (MLists)
To answer your question, no, I haven't used it. But, since you are new to Struts, I'd actually caution against using such a tool. As a general rule, I believe it is better to do things manually by hand when you are new to them. I think you will get a better understanding of how everything works

Re: read local file in ActionStruts

2005-02-01 Thread Frank W. Zammetti (MLists)
I do something like this in one app... I'm creating PDFs on-the-fly and then displaying them on the browser. I have a directory named temp under my webapp that the PDFs get written to. The files are named according the the user ID. You have the Action writing out the file already... if we assum

Why is JCL thread-safe in an Action?

2005-01-31 Thread Frank W. Zammetti (MLists)
Today I find myself converting an existing webapp from using Log4J directly to using JCL instead. As per the JCL User's Guide, I'm creating a private static Log variable in all my classes, Struts Actions included. My question is, why is this OK? Static variables in Actions are a Bad Thing, that'

test

2004-12-13 Thread Frank W. Zammetti (MLists)
Please ignore me. Just seeing if my web host fixed the webmail problem I've been having. Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Forward to a file on hard drive

2004-09-22 Thread Frank W. Zammetti (MLists)
on context. I base that on the 404 and the >> location being the RouterAction with parm... >> >> http://localhost:9080/AIM/router.do?destination=handHeld >> >> from a forward of >> >> forward name="handHeld" >> path="file:///C:/AIM/AuditorW

Re: Forward to a file on hard drive

2004-09-22 Thread Frank W. Zammetti (MLists)
ode sample I posted wouldn't work. > > Hubert > > On Wed, 22 Sep 2004 14:05:43 -0400 (EDT), Frank W. Zammetti (MLists) > <[EMAIL PROTECTED]> wrote: >> That presumes that the app server is on the same box as the client >> (which >> is, I think, the only way the fi

Re: Forward to a file on hard drive

2004-09-22 Thread Frank W. Zammetti (MLists)
[EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: >> >> >> "Frank W. Zammetti (MLists)" <[EMAIL PROTECTED]> wrote on 09/22/2004 >> 01:34:07 PM: >> >> > Are you actually trying to FORWARD to the file or is your intention to >> > initiate

Re: Forward to a file on hard drive

2004-09-22 Thread Frank W. Zammetti (MLists)
PROTECTED] said: > > > > > > > > > > "Frank W. Zammetti (MLists)" <[EMAIL PROTECTED]> wrote on 09/22/2004 > 01:34:07 PM: > >> Are you actually trying to FORWARD to the file or is your intention to >> initiate download of the file? > > FORWARD > >

Re: Forward to a file on hard drive

2004-09-22 Thread Frank W. Zammetti (MLists)
Are you actually trying to FORWARD to the file or is your intention to initiate download of the file? If the later, you'll need to do the usual download code, and just point it at the file. Your specifying an HTML file though, so I assume you want the user to see that page... So, the question is,

Re: Need Best Practices Thoughts on Actions

2004-09-22 Thread Frank W. Zammetti (MLists)
I've had the same requirement a couple of times. The way I've settled on doing it, whether it's the best or not I don't know, is this... I used client-side scripting to prompt the user whether they want to save or not (just some simple dirty data checking, i.e., any time they press a key I set a

Re: Action Granularity

2004-09-21 Thread Frank W. Zammetti (MLists)
I've MOSTLY fell on the side of the one Action per use case way of thinking. There have been instances where I did the multiple functions in a single Action, but generally not. One production app I did here has something on the order of 400 Actions. Kind of a lot I think :) I'm not sure if it m

Re: Where to put the business logics?

2004-09-21 Thread Frank W. Zammetti (MLists)
That's a good point... If you KNOW your application is NEVER going to be anything other than a web-based application, and if you KNOW you won't need to re-use your business logic (or expose it in any way outside the application), and if your development team is not really separated (especially if

Re: Where to put the business logics?

2004-09-21 Thread Frank W. Zammetti (MLists)
Thanks for defining POJO Dennis! I've seen that floating around lately and wasn't sure what it meant. Glad it's not something new I'll have to learn :) (Leave it to the tech industry to invent an acronym for something that doesn't need an acronym at all! :) ) -- Frank W. Zammetti Founder and C

Re: Where to put the business logics?

2004-09-21 Thread Frank W. Zammetti (MLists)
One thing to be careful of, a mistake I've seen made often, is a clean separation of the business delegates and the Actions... When calling on your delegates, be sure NOT to pass anything that is web-specific like session or request objects. This will make changing business classes a lot easier an

Re: RFC: BLOBAction

2004-09-19 Thread Frank W. Zammetti (MLists)
> If I understand your code correctly, you are loading all the bytes of > the file (or BLOB) into memory at once, without good reason (a good > reason might be if several objects were editing an XML document before > it was to be served). > > I would use a variable (but small) buffer size. Then I w

RFC: BLOBAction

2004-09-19 Thread Frank W. Zammetti (MLists)
I posted this a few days ago to the Struts dev list... I only got one response, which I think either means (a) we're too busy to look at this right now, or (b) this is stupid, go away. I'm OK with either answer, but I thought maybe posting it here would be a good idea, especially if the answer is

Re: COMPARING PROPERTY VALUES OF TWO JAVABEANS ...please help

2004-09-19 Thread Frank W. Zammetti (MLists)
Erik's answer is what I would call the correct one... That being said, if for some reason you don't want to use that approach, I don't think there's anything specifically in Struts to do what you want anyway, but you might want to have a look through the Commons BeanUtils packages. If such a thing

Re: Action mapping Path resolution

2004-09-18 Thread Frank W. Zammetti (MLists)
I think your getting confused because when you set up a path to an Action, it's a virtual path, but when it's a forward, it's a physical path, in BOTH cases it's relative to the root of your webapp. For instance... You may have an Action that you map to the path "/my/action/is/the/best/Action.act"

Re: I'm going back to just using regular Actions.. a question

2004-09-17 Thread Frank W. Zammetti (MLists)
e to fight myself to NOT do what feels natural after so many years :) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Fri, September 17, 2004 2:57 pm, Rick Reumann said: > Frank W. Zammetti (MLists) wrote the following on 9/17/2004 2:54 PM

Re: I'm going back to just using regular Actions.. a question

2004-09-17 Thread Frank W. Zammetti (MLists)
ogies http://www.omnytex.com On Fri, September 17, 2004 2:54 pm, Frank W. Zammetti (MLists) said: > I personally use #3. In fact, all my projects have a pretty > internally-standard packaging scheme (my own creation)... > > com.company.project > | > *---actionfo

Re: I'm going back to just using regular Actions.. a question

2004-09-17 Thread Frank W. Zammetti (MLists)
I personally use #3. In fact, all my projects have a pretty internally-standard packaging scheme (my own creation)... com.company.project | *---actionforms | *---actions | *---business | *---config | *---daemonthreads | *---exceptions | *---listeners | *---plugins | *---webservi