RE: Add blank option to select

2003-03-03 Thread Bredesen, Chris - NA US HQ Delray
Because I'm a big moron and like to overcomplicate things!  I better get
back home, my village is missing its idiot.

Thanks a million 

> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 03, 2003 4:57 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Add blank option to select
> 
> 
> Why can't you just put this at the beginning of your select 
> box  value="">?
> 
> David
> 
> 
> 
> >From: "Bredesen, Chris - NA US HQ Delray" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" 
> <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List (E-mail)" 
> <[EMAIL PROTECTED]>
> >Subject: Add blank option to select
> >Date: Mon, 3 Mar 2003 16:50:59 -0500
> >
> >Hi All,
> >
> >I have a proprietary table object which I expose to 
> html:options via an
> >adaptor class that extends AbstractList.  The List 
> implementation gives
> >collection-like random access to my proprietary object which 
> is then used 
> >to
> >build a select box.
> >
> >What I need is to add a blank option to the select that is 
> not present in 
> >my
> >data.  Since my List implementation is just an adaptor, and 
> not a new data
> >structure, I cannot just add another member.  I tried doing 
> a Union in my
> >SQL query to tack on a blank record but the crap DB API 
> won't have it.
> >
> >Any way to do with Struts 1.0.2?  I guess extending the 
> OptionsTag (haven't
> >worked this one out in my head yet but I assume it would be fairly
> >straightforward) is the way to go, but if anyone has another 
> way, I'm all
> >ears.
> >
> >Thanks,
> >
> >Chris
> >
> >
> >Chris Bredesen
> >Software Architect
> >MyTravel USA
> >part of MyTravel group
> >(561) 266-6154
> >[EMAIL PROTECTED]
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> _
> The new MSN 8: smart spam protection and 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Add blank option to select

2003-03-03 Thread Bredesen, Chris - NA US HQ Delray
Hi All,

I have a proprietary table object which I expose to html:options via an
adaptor class that extends AbstractList.  The List implementation gives
collection-like random access to my proprietary object which is then used to
build a select box.

What I need is to add a blank option to the select that is not present in my
data.  Since my List implementation is just an adaptor, and not a new data
structure, I cannot just add another member.  I tried doing a Union in my
SQL query to tack on a blank record but the crap DB API won't have it.

Any way to do with Struts 1.0.2?  I guess extending the OptionsTag (haven't
worked this one out in my head yet but I assume it would be fairly
straightforward) is the way to go, but if anyone has another way, I'm all
ears.

Thanks,

Chris


Chris Bredesen
Software Architect
MyTravel USA
part of MyTravel group
(561) 266-6154
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[FRIDAY] The Frog and the Engineer

2003-01-31 Thread Bredesen, Chris - NA US HQ Delray
An engineer was crossing a road one day when a frog called out to him and
said, "If you kiss me, I`ll turn into a beautiful princess".

He bent over, picked up the frog and put it in his pocket.

The frog spoke up again and said, "If you kiss me and turn me back into a
beautiful princess, I will stay with you for one week."

The engineer took the frog out of his pocket, smiled at it and returned it
to the pocket.

The frog then cried out, "If you kiss me and turn me back into a princess,
I`ll marry you!"

Again the engineer took the frog out, smiled at it and put it back into his
pocket.

Finally, the frog asked, "What is the matter? I`ve told you I`m a beautiful
princess, that I`ll marry you. Why won`t you kiss me?"

The engineer said, "Look I`m an engineer. I don`t have time for a
girlfriend, but a talking frog, now that`s cool." 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: one desing question, need help

2003-01-31 Thread Bredesen, Chris - NA US HQ Delray
Put me down for the Util class approach.  We make a habit out of doing the
heavy lifting in a logic layer which is accessed via static calls or a
Singleton instance depending on the need.  I don't like to see 2000 line
Action classes full of business logic because it doesn't let us move that
logic around without making tidal waves in the app.  If we ever want to
implement something in a filter or some other layer that doesn't exist yet,
we simply need to call out to the util classes that are already coded &
tested.

-Breddy

> -Original Message-
> From: Andrew Hill [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 30, 2003 10:41 PM
> To: Struts Users Mailing List
> Subject: RE: one desing question, need help
> 
> 
> Shared utility class is probably your best bet.
> 
> In my app, I actually created my own dispatch action class 
> that extended my
> base Action class (by cutting and pasting the struts dispatch 
> action source
> into my own class changing the 'extends'declaration), though this has
> various drawbacks, the most notable of which being that you 
> would need to
> update the code in this class if you changed the version of 
> struts you were
> using. Id recommend you go with the static utility class, 
> though as other
> posters mentioned, certain things are better suited to 
> filters, so you do
> have a couple of options to look at.
> 
> -Original Message-
> From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 31 January 2003 07:30
> To: [EMAIL PROTECTED]
> Subject: one desing question, need help
> 
> 
> Hi,
> 
> I want to write 2 classes , one class say MyAction
> extends Action and the other class say
> MyDispatchAction extends DispatchAction.
> I want to have some code ( like setting some
> parameters or getting connection from pool) handled in
> both the classes, but i want to write it in such a way
> that i dont have to code all the common methods in
> both classes.
> I dont want to have one class which extends
> DispatchAction, because DispatchAction needs parameter
> as required field in struts-config file.
> 
> This way i would be reducing my coding  and future
> maintenance, since if there is any modification i can
> do it at only one place and will be applicable to both
> places
> 
> Any suggestions are welcome
> 
> 
> 
> 
> 
> 
> 
> =
> A$HI$H
> 
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Help!! Getting NT User

2003-01-29 Thread Bredesen, Chris - NA US HQ Delray
IIRC, this will return the OS username only if basic authentication has been
used and as such the username is in the HTTP header in clear text.

-Chris

> -Original Message-
> From: Ramu, Manjukumar [PRDUS] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 29, 2003 4:45 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Help!! Getting NT User
> 
> 
> Thanks for the reply! But it will not give the NT User information. It
> returns null.
> 
> -Manju
> 
> -Original Message-
> From: Robert Taylor [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 29, 2003 4:40 PM
> To: Struts Users Mailing List
> Subject: RE: Help!! Getting NT User
> 
> 
> HttpServletRequest.getRemoteUser() (I think)
> 
> robert
> 
> > -Original Message-
> > From: Ramu, Manjukumar [PRDUS] [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 29, 2003 4:15 PM
> > To: 'Struts Users Mailing List'
> > Subject: Help!! Getting NT User
> >
> >
> > Hello,
> > Is there any easy way to get client's NT User from JSP/Servlet
> > without using JAAS? My requirement: Once the user access 
> the application
> > URL, I want to get the use profile based on NT User 
> name(Assuming that the
> > user already authenticated by the NT domain).
> >
> > Appreciate your help!!
> >
> > Thanks,
> > Manju
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: [OT] ActionForm prepopulation

2003-01-29 Thread Bredesen, Chris - NA US HQ Delray
Sounds like you're in deep .do.do . oh my sides!

> -Original Message-
> From: Durham David Cntr 805CSS/SCBE 
> [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 29, 2003 4:01 PM
> To: Struts Users Mailing List
> Subject: RE: [Newbie] ActionForm prepopulation
> 
> 
> The project I'm working on goes something like .do -> .do -> 
> .do ...   no .jsp except those forwarded to by a .do.  Haha, 
> I'm insane and I can not be stopped.  Just .do it!
> 
> -Dave
> 
> 
> 
> > -Original Message-
> > From: Jarnot Voytek Contr AU HQ/SC 
> > Sent: Wednesday, January 29, 2003 2:54 PM
> > To: 'Struts Users Mailing List'
> > Subject: RE: [Newbie] ActionForm prepopulation
> > 
> > 
> > Why is JSP -> .do -> .do -> JSP bad?  
> > 
> > I don't think you could make a case for doing population in 
> > the form bean
> > constructor - too much logic.  Besides, it wouldn't work, 
> as that same
> > constructor would be called when the user submitted the form 
> > - you wouldn't
> > want to redo the database calls then, right?  We don't do 
> > action -> action
> > very often (don't need to), but when needed it works fine.
> > 
> > --
> > Voytek Jarnot
> > Quidquid latine dictum sit, altum viditur.
> > 
> > 
> > > -Original Message-
> > > From: Bredesen, Chris - NA US HQ Delray
> > > [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, January 29, 2003 2:43 PM
> > > To: Struts Users Mailing List (E-mail)
> > > Subject: [Newbie] ActionForm prepopulation
> > > 
> > > 
> > > Hi group,
> > > 
> > > There's one general struts concept that I haven't fully 
> > gotten my arms
> > > around yet.  I'm trying to design without using action 
> > > chaining, but I have
> > > the following scenario:
> > > 
> > > - JSP posts to an action which accesses a form bean and does 
> > > some business
> > > logic
> > > - The next JSP in the process has a DIFFERENT form bean on 
> > > it, and values on
> > > that one must be prepopulated using ... another action?
> > > 
> > > This would cause JSP -> .do -> .do -> JSP which we know is bad.
> > > 
> > > So then do I pre-pop my Form bean values in the ActionForm 
> > > constructor?  As
> > > member variables?  What happens when reset() is called ... 
> > > how do I make
> > > sure they return to their proper initial values upon reset?
> > > 
> > > Thanks for participating,
> > > 
> > > Chris
> > > *Struts Evangelist in Training*
> > > 
> > > 
> > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: [Newbie] ActionForm prepopulation

2003-01-29 Thread Bredesen, Chris - NA US HQ Delray
Perhaps I've musunderstood what action chaining is then?

> -Original Message-
> From: Jarnot Voytek Contr AU HQ/SC 
> [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 29, 2003 3:54 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [Newbie] ActionForm prepopulation
> 
> 
> Why is JSP -> .do -> .do -> JSP bad?  
> 
> I don't think you could make a case for doing population in 
> the form bean
> constructor - too much logic.  Besides, it wouldn't work, as that same
> constructor would be called when the user submitted the form 
> - you wouldn't
> want to redo the database calls then, right?  We don't do 
> action -> action
> very often (don't need to), but when needed it works fine.
> 
> --
> Voytek Jarnot
> Quidquid latine dictum sit, altum viditur.
> 
> 
> > -Original Message-
> > From: Bredesen, Chris - NA US HQ Delray
> > [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 29, 2003 2:43 PM
> > To: Struts Users Mailing List (E-mail)
> > Subject: [Newbie] ActionForm prepopulation
> > 
> > 
> > Hi group,
> > 
> > There's one general struts concept that I haven't fully 
> gotten my arms
> > around yet.  I'm trying to design without using action 
> > chaining, but I have
> > the following scenario:
> > 
> > - JSP posts to an action which accesses a form bean and does 
> > some business
> > logic
> > - The next JSP in the process has a DIFFERENT form bean on 
> > it, and values on
> > that one must be prepopulated using ... another action?
> > 
> > This would cause JSP -> .do -> .do -> JSP which we know is bad.
> > 
> > So then do I pre-pop my Form bean values in the ActionForm 
> > constructor?  As
> > member variables?  What happens when reset() is called ... 
> > how do I make
> > sure they return to their proper initial values upon reset?
> > 
> > Thanks for participating,
> > 
> > Chris
> > *Struts Evangelist in Training*
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




[Newbie] ActionForm prepopulation

2003-01-29 Thread Bredesen, Chris - NA US HQ Delray
Hi group,

There's one general struts concept that I haven't fully gotten my arms
around yet.  I'm trying to design without using action chaining, but I have
the following scenario:

- JSP posts to an action which accesses a form bean and does some business
logic
- The next JSP in the process has a DIFFERENT form bean on it, and values on
that one must be prepopulated using ... another action?

This would cause JSP -> .do -> .do -> JSP which we know is bad.

So then do I pre-pop my Form bean values in the ActionForm constructor?  As
member variables?  What happens when reset() is called ... how do I make
sure they return to their proper initial values upon reset?

Thanks for participating,

Chris
*Struts Evangelist in Training*

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: [OT] Re: Struts officially supported at Ford

2003-01-23 Thread Bredesen, Chris - NA US HQ Delray
Nope, tiling.

> -Original Message-
> From: Pani, Gourav [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 23, 2003 2:57 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [OT] Re: Struts officially supported at Ford
> 
> 
> Now is that specific case of death enforced by public stoning?
> 
> -Original Message-
> From: James Childers [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 23, 2003 2:54 PM
> To: Struts Users Mailing List
> Subject: RE: [OT] Re: Struts officially supported at Ford
> 
> 
> Under Sharia law puns that bad are punishable by death.
> 
> -= J
> 
> > -Original Message-
> > From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 23, 2003 1:51 PM
> > To: 'Struts Users Mailing List'
> > Subject: RE: [OT] Re: Struts officially supported at Ford
> > 
> > 
> > Yes, that's his real name.  He hunts buffalo with a java-lin, too.
> > 
> > -Original Message-
> > From: Durham David Cntr 805CSS/SCBE 
> > [mailto:[EMAIL PROTECTED]] 
> > Sent: Thursday, January 23, 2003 2:49 PM
> > To: Struts Users Mailing List
> > Subject: RE: [OT] Re: Struts officially supported at Ford
> > 
> > 
> > It was a real question.  No offense :)
> > 
> > -Dave
> > 
> > > -Original Message-
> > > From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, January 23, 2003 1:41 PM
> > > To: 'Struts Users Mailing List'
> > > Subject: RE: [OT] Re: Struts officially supported at Ford
> > > 
> > > 
> > > There are those on the precipice, and then there are those in
> > > the abyss
> > > 
> > > -Original Message-
> > > From: Durham David Cntr 805CSS/SCBE
> > > [mailto:[EMAIL PROTECTED]] 
> > > Sent: Thursday, January 23, 2003 1:59 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: [OT] Re: Struts officially supported at Ford
> > > 
> > > 
> > > Is that your real name?
> > > 
> > > > -Original Message-
> > > > From: Joe Barefoot [mailto:[EMAIL PROTECTED]]
> > > > Sent: Thursday, January 23, 2003 12:57 PM
> > > > To: Struts Users Mailing List
> > > > Subject: RE: [OT] Re: Struts officially supported at Ford
> > > > 
> > > > 
> > > > Mark, I believe your particular brand of flippant 
> > facetiousness is 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Broadvision 6.0 and context-relative path in form mappings

2003-01-23 Thread Bredesen, Chris - NA US HQ Delray
Hi all,

I'm composing this message as a reply to an archived one in hopes that it
will help tracking and/or cause any potential helpers to recall the inital
discussion...

We had the same problem as described in this original message:

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg15172.html

We overcame this in Struts 1.0 by overriding the getActionMappingURL()
method on the FormTag class and all was well.  In Struts 1.1 (I'm using beta
3), said method has been factored out into the RequestUtils class and is
called explicitly in a few places within FormTag.  This leaves me no way
that I can see to override the method.

The bottom line is that what SHOULD be "/some-action.do" actualy needs to be
posted to "/cgi-bin/bvisapi.dll/some-action.do" and since BV's crippled
version of Tomcat has no knowledge of this, it fails to report the full &
proper servletPath including the ISAPI DLL information.

Is there another way around this?  How are other Struts/BV users coping?  I
checked the BV Broadway example which uses struts and there is no occurance
of "html:form" so I can't use them as an example.

Modifying the Struts base code would work but that's a cheap hack and leaves
us open to problems when future versions of Struts are released.  I would
like to move to Struts 1.1 because of the nifty html:optionsCollection
support.

TIA,

Chris

PS - I would never expect Craig or Ted to support this -- I'm asking other
BV users for ideas.  If I get something solid, I'll post a HOWTO.


Chris Bredesen
Software Architect
MyTravel USA
part of MyTravel group
(561) 266-6154
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: