Re: [OT]: Struts, Web Development, J2EE, and what is too much?

2003-03-10 Thread Tony Baity

Aaron,
Try not to think just in terms of EJBs. Instead picture the scenario of persistence 
management in general. Throw CMPs, BMPs, JDO, Session Beans, Etc. out on the table and 
consider what each is buying you. In some cases the benefit is in providing a JNDI 
lookup for other Apps to use if you have several clients using your module. In other 
cases the benefit is in the memory management features that allow an EJB container to 
out-perform the servlet container. 
For myself, I am in the process of ramping up the use of JDO within stateless session 
beans and Struts is providing the major command pattern breakout of different use 
cases in the servlet container. A lot of the lower level conditionals and case 
statement logic for data gathering/updating is in the session beans... some of which 
uses the strategy pattern for conditionally different persistence management 
operations.
-Tony
 Aaron O'Hara [EMAIL PROTECTED] wrote:I know this question has probably been asked 
before, and that biased
publications have had their opinions on it, but I wanted to get some
feedback regarding some real user experience regarding the use of EJB
in a web application used along with Struts.

I am creating a web application and I have decided to use struts. The
application needs to be high performance, uses a single database (so it
doesn't have heterogeneous transactional db requirements). I have
designed the application in layers, and it will only have a web
interface. It's starting small, but will grow to have many functions.
Even though I'm confident that I need not invest in EJB's, I don't want
to develop the application to find out I should have used them (hence
why I'm creating this post).

In what scenarios have people found the use of EJB beneficial? When
have they been overkill? Does struts integrate smoothly with EJBs?

My fear is that I'll make the application overly complex by implementing
EJBs, but I'd like to hear from people with experience building large
web-only projects with struts.

Thanks,

Aaron




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


.
.
.
Tony Baity
.
.
.


-
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, and more

Re: struts IDE

2003-03-06 Thread Tony Baity

[SERIOUS] The number of times that this topic has come up, does anyone have a 
poll-taking web site that struts users can place their votes on for favorite IDEs or 
OR Mapping tools or whatever? [NOT SERIOUS] Or perhaps C|NET could be talked into 
providing this.
.
 Buics [EMAIL PROTECTED] wrote:how about scioworks camino 3.0.1



Alok Garg wrote:

 Jbulider8.0
 and Eclipse
 - Original Message -
 From: Buics 
 To: Struts Users Mailing List 
 Sent: Thursday, March 06, 2003 12:52 PM
 Subject: struts IDE

  good day!
 
  anyone could suggest an IDE for struts rapid development?
 
  thank you in advance!
 
 
 

 
 

  -
  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]

.
.
.
Tony Baity
.
.
.


-
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, and more

RE: Any good suggestions on implementing Security

2003-02-13 Thread Tony Baity

Craig,
Would you by any chance know anyone/anyproduct that instead of using JDBCRealm has 
create a SOAPRealm where the user data is available via a web service instead of a 
database?
 
 Craig R. McClanahan [EMAIL PROTECTED] wrote:

On Wed, 12 Feb 2003 [EMAIL PROTECTED] wrote:

 Date: Wed, 12 Feb 2003 09:57:38 -0600
 From: [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List 
 To: Struts Users Mailing List 
 Subject: RE: Any good suggestions on implementing Security


 Depending on the container, your groups and group memberships can be
 dynamically mapped to roles, with declarative specification of what
 resources can be accessed.

 Is this the case with tomcat? I did not think so.


It is. The element (in web.xml) includes a section
that maps URL patterns to the role(s) that a user must have in order to
access that URL. This is all in the servlet spec, and portable across
containers. The only part that's not portable across containers is how
you actually set up the users and roles database (in Tomcat terms, that is
a matter of which Realm implementation you use).

 Our needs our very similar.
 The users with a admin page that allows them to change access to pages.


For Tomcat specifically, this can be done easily if you use a JDBCRealm to
get user and role information from a database. Then, writing an admin
program to manage users is just like any other database maintenance
application -- just make it update the same tables that JDBCRealm is using
to authenticate and authorize users.

Struts also has some built-in support for checking roles dynamically
during execution:

* You can use a roles attribute on an to limit which
users can execute that Action.

* You can use to conditionally display
parts of your UI to only people that have the role you specify.

Craig


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


.
.
.
Tony Baity
.
.
.


-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


Re: jsp, multiple forms and beans

2003-02-12 Thread Tony Baity

Jacky,
Recently an associated of mine became tired of trying to get DHTML to work properly 
between NS and IE and came up with a crafty way of hitting the server just to pass a 
flag value in a request parameter to tell the JSP to add a new section of HTML to the 
page without affecting any other data that had already been entered on the page. The 
Action class basically did nothing but route the request to the same JSP page. 
He used a single form per page and named the line item input field(s) with [counter] 
and the Form class set accessor method was something like setX(String key, String 
value) { x.put(key,value); } where x is a HashMap. Both the JSP and Action class that 
processes the data use a loop to pull data out of the HashMap where key = 1, 2, 
3 etc. until a null value is returned.
Although this is a bit creative and worked, I am not sure if it is recommend by the 
Struts old-timers. 
I would avoid using multiple Forms per page. I would also avoid any use of the 
innerHTML for dynamic client side adding of input fields into a Form. About the only 
choice left that I see is to make a server hit and let the JSP build more line items.
Anyone else out there use something like a NoAction action for this sort of thing?
I hope this helps?
-Tony
.
 Jacky Kimmel [EMAIL PROTECTED] wrote:Here I go:

I have a jsp that contains 4 forms. One for main info, another for 
merchandise info, and two for ship address address and bill address. 
Currently upon submit, I have an addressAction that gets passed the 
addressForms info. I stuff those parameters into AddressValue objects and put 
them into the httpRequestServletAttribute. I do the same with 
lineItems (which I need to change in the future because I need to have the 
ability to have muliple lineItems). Then the createPoAction gets the 
address and lineItem value objects from the requestAttributes and then call 
createPO(). How do I write the jsp appropriatly? Do I need to use 
form nesting? On the flip side, when I retrieve from the db, can I use 
this same grouping of forms or should I create a new form to diplay all 
of the data? Anyone have a suggestion on how to allow for a add line 
Item button that will just give another row of blank fields to the 
existing form?

I know this a lot but am in the trenches solo!!!




-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

.
.
.
Tony Baity
.
.
.


-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


Re: AW: easy struts 0.6.3 ?

2003-02-05 Thread Tony Baity

Uhura! Turn on the universal translator. I'm not getting any I18N. Kirk out!
 
 Hirschmann, Bernhard [EMAIL PROTECTED] wrote:
emmanuel,

vielen Dank für diese aussagekräftige Nachricht.

Freundliche Grüße,
Bernhard Hirschmann

-Ursprüngliche Nachricht-
Von: Emmanuel Boudrant [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 5. Februar 2003 14:24
An: [EMAIL PROTECTED]
Cc: Struts Users Mailing List
Betreff: Re: easy struts 0.6.3 ?


HEllo Alex,

J'imagine que c'est à propos du bug avec les projets Tomcat Sysdeo, si oui
alors il est corrigé
dans CVS mais j'ai pas eu le temps de faire une release (j'ai pas CVS au
boulot).

Voici un pointeur vers le fichier concerné :

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/easystruts/easystruts-plugin/
src/org/easystruts/eclipse/wizards/NewStrutsSupportWizardPage.java

a+
-emmanuel


--- alexj a écrit :  Hi anybody know when the easy
struts 0.6.3 plug in for
eclipse 
 will be released ?
 Or anybody know in the source code where to update the add easy struts
 support ?
 
 Thanks
 
 --
 Alexandre Jaquet
 -
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.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]


.
.
.
Tony Baity
.
.
.


-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


Re: Streaming PDF file problem

2003-02-03 Thread Tony Baity

Sheldon,
While I was doing a little RD with FOP a couple of years ago, I found that IE would 
fail to deal with a streamed PDF file unless I did an outputStream.flush() before the 
close(). This was not always the case. Sometimes small PDF streams worked OK.
Mozilla never seemed to have a problem.
-Tony
 C. Struts [EMAIL PROTECTED] wrote:Sheldon,

I had a similar problem with Excel sheets, below is what finally worked.

*
//set response header, content type and content length
response.setHeader(Content-Disposition,inline;filename=Report_ +
reportName.replaceAll( ,).replaceAll(/,) + .xls);
response.setContentType( application/vnd.ms-excel );
response.setContentLength( (int)stringBuffer.length() );
ServletOutputStream outputStream = response.getOutputStream();

//put to output stream
outputStream.write( stringBuffer.toString().getBytes() );
outputStream.close();
*

Claude.


- Original Message - 
From: 
To: 
Sent: Monday, February 03, 2003 1:48 PM
Subject: RE: Streaming PDF file problem


 BTW, the code for streaming a servlet works perfectly as a stand alone
 servlet, but fails for IE in the struts framework.
 
 Sheldon
 
  -Original Message-
  From: Chan, Sheldon 
  Sent: Monday, February 03, 2003 9:36 AM
  To: '[EMAIL PROTECTED]'
  Subject: Streaming PDF file problem
  
  Hi all,
  
  I'm trying to stream a PDF from a Struts action by writing an array of
  bytes to the OutputStream of HttpServletResponse. It works great in
  Mozilla, however it fails on IE. When I attempt to execute the action, IE
  brings up its Save or Open dialogue box with the request Url as the file
  it's trying to save. When I click on Save, it gives me an error
  dialogue of Internet Explorer cannot download... . Any ideas?
  
  Thanks in advance for any help.
  
  Sheldon
  
  
  Here's the psuedo-code.
  
  OutputStream outputstream = null;
  
  try {
  byte[] responseBytes = getBody().getBytes(ENCODING);
  
  response.setContentType(application/pdf);
  response.setContentLength(responseBytes.length);
  response.setHeader(Content-Disposition, 
  attachment; filename=myfile.pdf);
  response.setHeader(Pragma, no cache);
  response.setHeader(Cache-Control, no-cache);
  
  outputStream = response.getOutputStream();
  
  outputStream.write(responseBytes, 0, responseBytes.length);
  } catch (Exception e) {
  // do something
  } finally {
  outputStream.close();
  }
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

.
.
.
Tony Baity
.
.
.


-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


Re: [Friday] Obscure (?) Computer Languages

2003-01-30 Thread Tony Baity

I know of some folks that put a few satellites in orbit that run on Forth. There is 
nothing quite like having your hands right on the program stack. :)
M (the language formally known as MUMPS)... the database is the code / the code is the 
database... the whole DB structure looks like DOM with nodes and tree walking and 
everything I hear that is was good for fast fourier transforms though for pattern 
recognition of sounds, images, etc.
 Joel Rees [EMAIL PROTECTED] wrote: Hmmm, ok, let's dig into the memory here for 
the icky stuff:
 
 Forth

Oh, come on. FORTH is the best language there is. Except for the library.
It needs a better library. ;P

 POP-11/POPLOG

(mutters under the breath)

 Smalltalk

Don't really know enough about it to say much, but I am under the
impression that Java owes a lot of its existence to Smalltalk (and to
FORTH, too, come to think of it).

 RPG/400

Now, now, just because you have to play tricks with the declarations to
get any sort of procedural stuff happening, there's no reason to
disparage it. It's still a great little way to describe a (certain
kind of) report. :-/

 There are a ton of others, but those are the weirdest.

Interesting that your top four are all what we used to call fourth
generation languages, and are direct contributors to the
object-oriented approach to computer languages.

-- 
Joel Rees 


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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


Re: [OT] Geek Code

2003-01-30 Thread Tony Baity
]



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


.
.
.
Tony Baity
Directoro ofo Computingo
Institiono ofo pigo lantino
Northo Americano


-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


Re: Role Based Struts Validation

2003-01-29 Thread Tony Baity

Peter,
I have also been involved with a cutomer that wants client side field validation and 
even page sections that magically appear when certain radio buttons and check boxes 
are clicked.
These are people that have been using an Oracle forms based solution for many years 
and have become attached to the way the that those kind of screen behave. As a result, 
the last web based system that i helped them with involved a whole bunch of pop-up 
windows to try to emulate what they are used to seeing. 
A long time ago, an ex-project leader of mine once told me that the first task of any 
software development project has to reduce customer expectations. But this is easier 
said than done. I have even tried the approach of painting a negative view of 
javascript... but  many end user only really care about how good it looks on the 
screen and not how well it is engineered under the skin.
About the only way I have seen to sell good engineering practices is to talk about the 
$$ saved on maintenance costs.
 Peter A. Pilgrim [EMAIL PROTECTED] wrote:David Graham wrote:
 In fact my client has made a major decision, to do a lot of validation
 using JavaScript using a massive library with minimum server-side
 validation if they can help it.
 
 
 Does your client realize the security problems associated with that 
 decision? It's trivial to write a program that posts data to a web 
 application; without server side checks a hacker could craft a malicious 
 piece of data.
 

What I meant by minimum validation is simple validation without
hard and fast interfield and security credential dependency rules.

In any case I going to have check that a String can covert to Date,
or Integer. It will be just going to back in time 9 months ago to
Struts 1.02 and Action Form and custom validation utility classes
which I wrote.

I have been unable to prove the concept that Struts Validator
can do what they want. And they want complex role based
validation for form fields.

--
Peter Pilgrim
__ _ _ _
/ //__ // ___// ___/ + Serverside Java
/ /___/ // /__ / /__ + Struts
/ // ___// ___// ___/ + Expresso Committer
__/ // /__ / /__ / /__ + Independent Contractor
/___/////// + Intrinsic Motivation
On Line Resume
||
\\=== `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''


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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


Re: [FRIDAY] Banging the rocks together

2003-01-24 Thread Tony Baity

I would have beaten them, but I accidentally engaged the Infinite Improbability Drive 
and wound up 33 minutes and 12 seconds ahead in time... and in Northern Virginia.
So if you ever plan to do a book signing in this area, please drop an announcement on 
the list. 
 Ted Husted [EMAIL PROTECTED] wrote:Both Rob Leland and Virginia Wiswell have 
submitted correct answers to 
today's favorite author's trivia quiz.

Since Rob is a Struts Committer, I'll declare his prize a bonus and 
offer both Virginia and Rob signed copies of Struts in Action.

These two lucky winners are invited to send me your mailing addresses by 
private Sub-Etha Sens-O-Matic transmission (or email if you must).

-Ted.

Ted Husted wrote:
 [Favorite author's triva quiz #2]
 
 
 .. the secret is to bang the rocks together, guys.
 
 Autographed copy of Struts in Action for the first lucky emailer to 
 correctly identify author, title, **AND** character.
 
 
 -Ted.
 
 
 (:= Not affiliated with Kent Beck or IntelliJ, just Struts in Action =:)


-- 
Ted Husted,
Struts in Action 


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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


Re: perform method deprecated??

2003-01-22 Thread Tony Baity

If you really like having the perform method separate from the execute, just keep it. 
But extend the Action class to create a new base class. That way, if perform is ever 
permanantly removed, your code will still work.
For instance, I created a base class that extended Action and called it 
CounselorAction ( for all the actions applicable to the business rules for counselors 
- whoever they are) and then packed a lot of common code before/after the call to the 
perform method inside the execute method. This way, all the action classes for 
counselors inherit all the common functionality. I ignore the deprecated warning in 
this case since I know what it is.
An alternative that I have seen is to create a second command pattern with is own base 
class and child classes for the business logic and execute those from the execute 
method in the child Action class but then the number classes that you have  to write 
is doubled for each action.
-Tony
 julian green [EMAIL PROTECTED] wrote:
Andrew Hill wrote:

Your upgrading from 1.02

Yes, and until the next non beta release is made that is where I will be 
staying. Just wanted to know what I am in for when I upgrade.


In 1.1 you use the execute() method.

Thankyou.

Julian



-Original Message-
From: julian green [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 22 January 2003 20:23
To: Struts Users Mailing List
Subject: perform method deprecated??


Ive downloaded struts 1.1b3 and im being told that all the perform
methods I developed are deprecated. What is the new method?

Ive got alot of code to refactor.

Julian


--
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: 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


DynaBeans, Struts, OR mapping tools and code generators

2003-01-22 Thread Tony Baity

Has anyone seen any effort afoot to make a drag-N-drop between a GUI like the one in 
MiddleGen and an ActionForm so that you can build your pages using point and click and 
have all the code generation for the action classes, DTOs/VOs, EJBs/DAOs done behind 
the scenes xdoclet style. I know the propriatary nature of some databases and app 
servers makes this a little difficult but it looks like a lot of pieces for this are 
starting to fall in place. Especially with the new commons-beanutils with features 
such as  RowSetDynaClass (as recently mentioned by Craig)

I don't mind coding all this stuff by hand... Not!... and don't mind trying out 
various popular OR mapping tools and code generators (free ones that is). But it seems 
like someone might be looking at assembling into a single tool many of the loosely 
coupled projects not only at Apache but also sourceforge.

I am looking forward to see what the SUN Faces product will do and how Struts and JSTL 
relates to or is incorporated into that but I do not know easy it will be to map 
database fields to a face.

But for my next scheduled development with Stuts 1.1 and the new commons code, this 
looks like still a lot of hand coding or hand configuring of code generators... 

I suppose I'll need to ask each of the current tool's user lists to see if they are 
planning to support some of the new features and integration with Struts. 

:) But I wanted poll the great Struts masses first :)

-Tony

 

 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


Re: flow control decision making

2003-01-21 Thread Tony Baity

I have been working on a series of pages that follow a guided tour approach where 
the logic used to determine the next routing may have not much to do with the updates 
that are performed by the action. The guided tour somewhat resembles a maze in a few 
places and sometimes relates to information gathered a few pages back in the tour. For 
instance, the business rules may say that after updating the database to say that you 
want Global Van Lines to move 5 boxes of stuff to the address XYZ, route to the data 
entry screen for customs form data for international moves, or route to the data entry 
page for moving stuff into temporary storage if that type of move was picked two pages 
back, or route the flow to the data entry page for moving a boat if that was the thing 
chosen to be moved 1 page back in the tour... etc.
So the decision making for what the next page in the tour is has nothing to do with 
the action of updating the database with Global Van Lines and I would prefer to put 
the logic for it in a separate class with a whereNext() method that is executed if 
the Action passes... lets say... a null ActionForward AND a routing decision class 
is configured for the action.
 David Graham [EMAIL PROTECTED] wrote:I'm confused by your question. The value 
returned from an Action *is* an 
ActionForward. Actions are already simply routing logic anyways. All 
actions should basically look like this

1. Perform business logic validation if necessary
2. Call business layer method to perform logic.
3. Return appropriate ActionForward to route to.

Seems like it's already as simple as it needs to be. You might look at 
DispatchAction if you don't want a large number of Action classes.

David






From: Tony Baity 
Reply-To: Struts Users Mailing List 
To: [EMAIL PROTECTED]
Subject: flow control decision making
Date: Mon, 20 Jan 2003 20:43:25 -0800 (PST)


Hello,

I've been off the list for a while... busy coding up about 60 action 
classes and all the JNDI behind them.

One thing I found about using the struts_config file is that it is a lot 
easier to refactor, fix flawed business rules dealing with page flow, etc 
in the struts config xml than it is to yank the java code around in the 
action classes. For instance, if I found that action X really needed to 
route to targets a, b, c and d instead of Action Y, I have to move the 
logic out of Action Y and put in into Action X whereas in the struts config 
all I need to do is move the elements.

I was thinking of developing a way to make the routing logic separate from 
the business logic that does all the data accessing and updating. But all I 
can think of is to create another action class to forward to for handling 
this.

Is there a way to specify in the struts_config a class that an element can use just 
for determining the action_forward and to ignore the 
value returned by the action class.

-Tony



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


_
The new MSN 8: smart spam protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail


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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


flow control decision making

2003-01-20 Thread Tony Baity

Hello,

I've been off the list for a while... busy coding up about 60 action classes and all 
the JNDI behind them.

One thing I found about using the struts_config file is that it is a lot easier to 
refactor, fix flawed business rules dealing with page flow, etc in the struts config 
xml than it is to yank the java code around in the action classes. For instance, if I 
found that action X really needed to route to targets a, b, c and d instead of Action 
Y, I have to move the logic out of Action Y and put in into Action X whereas in the 
struts config all I need to do is move the forward lines between the two action 
elements.

I was thinking of developing a way to make the routing logic separate from the 
business logic that does all the data accessing and updating. But all I can think of 
is to create another action class to forward to for handling this.

Is there a way to specify in the struts_config a class that an action element can use 
just for determining the action_forward and to ignore the value returned by the action 
class.

-Tony



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


Re: deprecated perform method in Action means roll your own Command Pattern

2002-10-25 Thread Tony Baity

David,
Perhaps I misinterpreted the UML for command pattern as is shown in Applied Java 
Patterns by Sun. I was assuming that the Action class was a combination of the 
aCommand:Command and the :Receiver on page 52 and herefore contained both the 
execute() and the doAction() (AKA perform).
-Tony
 
 David Graham [EMAIL PROTECTED] wrote:I'm not sure what you mean by all that. 
The perform method was just 
replaced by execute so it's still an implementation of the command pattern. 
Perform now just wraps a call to execute to maintain backward compatibility 
but I imagine it will be removed in later versions.

David



From: Tony Baity 
Reply-To: Struts Users Mailing List 
To: Struts Users Mailing List 
Subject: deprecated perform method in Action means roll your own Command 
Pattern
Date: Thu, 24 Oct 2002 18:13:40 -0700 (PDT)


Hello,
Just got back on the list again... man is it busy here
hey... about the command pattern that appears to be disappearing from the 
Action class... do we roll our own now just using Action as a base class?
I really like that combined execute and perform functionality... so that I 
can weed out common (background) functionality between Action classes and 
keep the size of the individual Action subclasses down to a minimum... and 
also perhaps put common initialization in an init() method (which is in the 
execute method just above the execution of the perform)
So... judging from the deprecation that I now (guess its been there for a 
while but just haven't looked) find in the Action class there will be a day 
when the perform method is GONE! Also, the example Actions now (BTW when 
did this change) override the execute not the perform. Are command patterns 
then considered part of the business logic?
... if so, then I am confused since I have always considered the Action 
classes borderline business logic since they basically hold the steps of a 
transaction.
-Tony ( I think the really cool people now hang out in the Commons user 
group)




-
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site


_
Broadband? Dial-up? Get reliable MSN Internet Access. 
http://resourcecenter.msn.com/access/plans/default.asp


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



-
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site


deprecated perform method in Action means roll your own Command Pattern

2002-10-24 Thread Tony Baity

Hello,
Just got back on the list again... man is it busy here
hey... about the command pattern that appears to be disappearing from the Action 
class... do we roll our own now just using Action as a base class?
I really like that combined execute and perform functionality... so that I can weed 
out common (background) functionality between Action classes and keep the size of the 
individual Action subclasses down to a minimum... and also perhaps put common 
initialization in an init() method (which is in the execute method just above the 
execution of the perform)
So... judging from the deprecation that I now (guess its been there for a while but 
just haven't looked) find in the Action class there will be a day when the perform 
method is GONE! Also, the example Actions now (BTW when did this change) override the 
execute not the perform. Are command patterns then considered part of the business 
logic?
... if so, then I am confused since I have always considered the Action classes 
borderline business logic since they basically hold the steps of a transaction.
-Tony ( I think the really cool people now hang out in the Commons user group)
 



-
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site


Re: Validation Framework Question..

2002-10-24 Thread Tony Baity

Hi,
Could  you perhaps use a different path for new departments... for instance...
newDepartment.do
that maps to DepartmentAction but does not do the validation?
-Tony (is it close enough to Friday to post a [FRIDAY] yet?)
 VEDRE, RANAPRATAP REDDY [EMAIL PROTECTED] wrote:
I use html links that point to an action in my jsps, so that i can do some
initialization before displaying a jsp.
for example:
New Department

clicking on link department.do takes the control to the action
class(DepartmentAction) which forwards to department.jsp

I use validation framework to validate my form(DepartmentForm).

as i have a .do link, validation fails due to validator framework,
since the newly created form is empty and as a result my input which is
department.jsp is displayed with validation errors even for the first time
its displayed.

i use the same action(DepartmentAction) for creating,editing too. i want
to bypass the validation framework when the action is executed by clicking
the .do link, but active when submit button(for create , edit) is clicked.


if i do the validation in my action class by coding the validation in a
validate method , i can bypass calling the validation method in the action
class when link is clicked and call the validate method only for create ,
edit when submit button is used.

This is not a problem if i link directly to a jsp using 
New Department 
but by doing this i am navigating to a jsp(view) from another jsp(view)
without the controller in between thus breaking MVC.
what is the best solution to this problem. any commnets are welcome.
thanks 


name=departmentForm 
type=DepartmentForm


type=DepartmentAction
name=departmentForm
scope=request
validate=true
input=department.jsp


















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



-
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site


[OT] Local DTDs to satisfy DOCTYPE

2002-10-24 Thread Tony Baity

  
Hello, 
Lets say I make a Struts application that runs on a private network... sort of an 
intranet kind of App. with no connection to the internet. 
Where do I put the DTDs locally to satisfy the DOCTYPE in the XML files? 
-Tony (if XFORMS is the answer, what was the question)



-
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site


RE: [OT] Local DTDs to satisfy DOCTYPE

2002-10-24 Thread Tony Baity

 
Oh my... the simplicity of it all is coming back to me. Thanks for jogging my memory. 
:)  
 
-Tony (too much work and not enough sleep)
 
 VEDRE, RANAPRATAP REDDY [EMAIL PROTECTED] wrote:how about using instead of the 
actual http url. 
u you have to change the path in the xml files if u change tha location of
ur DTD's to a different path.

-Rana.

-Original Message-
From: Tony Baity [mailto:tonybaity;yahoo.com]
Sent: Thursday, October 24, 2002 10:49 PM
To: [EMAIL PROTECTED]
Subject: [OT] Local DTDs to satisfy DOCTYPE




Hello, 
Lets say I make a Struts application that runs on a private network... sort
of an intranet kind of App. with no connection to the internet. 
Where do I put the DTDs locally to satisfy the DOCTYPE in the XML files? 
-Tony (if XFORMS is the answer, what was the question)



-
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site

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



-
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site


attribute vs name on action in struts-config

2002-10-21 Thread Tony Baity

hi,

I did a little cut and paste with the example struts-config and came up with the 
following.

!-- First Test--
actionpath=/test/firstTest
   type=mil.army.mtmc.tops.twc.business.test.FirstTestAction
  attribute=firstTestForm
  scope=request
   validate=false
  forward name=success  path=/test/FirstTest.jsp/
/action

 I was chasing after ghosts all afternoon and night trying to find out why my form 
bean was not showing up finally, after about three dozen System.out.println lines 
in ActionServlet, RequestProcessor, ApplicationConfig. etc, I found that the formbean 
config mapping wants to use a getName() .

So I added the following to struts-config after the 'attribute=firstTestForm'

name=firstTestForm

... and everything came up roses

my happy little form is now sitting nice and pretty in my request scope...

So what's the diff between attribute and name. Especially since (I seem to recall) 
that the getAttribute will return name if attribute is null.

Sorry about not checking the archive before sending this out... but it is after 1:00 
AM and if I don't ask now I'll probably forget to look.

-Tony




-
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site


RE: [OT] JavaScript

2002-09-26 Thread Tony Baity


NOSCRIPTPlease turn javascript back on/NOSCRIPT 


 Galbreath, Mark wrote:My favorite is the website that requires a login and password 
written with
JavaScript on the same HTML/JSP page. Doh!

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 11:00 PM

ROFL!

-Original Message-
From: Steven Banks [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 19:54

I have found web sites that use javascript for security. Noticed it when
trying to access a page. Turned off javascript, no more security.

 Andrew Hill 09/24/02 11:16AM 
Id be dead without JS, and I think people would be silly to disable it, but
cookies is another matter. I can understand folk disabling those...

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 22:10

Yes, it does! I can vouch for it! I personally know two (highly
educated) people that refuse to allow them. They are ignorant about
them, of course, but that doesn't change the fact that people *do*
disable cookies/JavaScript!

Now, if I know two people, then how many more people are there out
there that are doing this? Sorry to disagree - I view it as a fact of
life. Having said that though, I don't not use JavaScript because of
it. That's yet another opportunity to control things - it certainly
does have applicability.

Galbreath, Mark wrote:

Ahhh yes, the bane of web app developers! I solved this problem with
JavaScript and cookies - no browser back operations allowed!

And spare me the what if JavaScript is turned off noise - it just doesn't
happen in the REAL world.

Mark

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 3:02 AM

(Incidentally, using the browsers back button in such a case results in a
rather bad case of server state confusion!)


--
Eddie Bush

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



-
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!


Re: RE: RE: The right place/time to clean up a session before session tim e out, or user logoff

2002-09-23 Thread Tony Baity


Vernon,
Yes, there are some possible timing issues with using object references attached to 
the session in any class implementing HttpSessionBindingListener. I believe that the 
order which references are unbound is unpredictable. 
When I did this, I ran into the same problem and compromised by using a constructor 
that would copy any reference that I might need for the session, inside the class 
implementing HttpSessionBindingListener.

But... from a bird's eye view of this issue, I see that MVC, as used with servlet 
programming, appears to not be a complete solution for creating actions that are 
generated from clock events that need to interact with stateful data used by actions 
from user events. 

I would like to see a way to reuse a Struts action by a listener, etc. and set it up 
all within the struts_config. 

I do not want to turn Struts into daemon or anything like that. But it would be nice 
if it's footprint of responsibility might cover some of these other events that are 
not strictly MVC-user requests.

-Tony

 Vernon Wu wrote:
Jason,

Now, I see what you're doing here. Rather than calling the session invalidate method 
in the log off, you call the method 
to clean up the session. That is some thought. I, however, think there shall be a more 
straight forward solution than 
twise thing around by the servlet desing.

Thanks for explaining your solution.

Vernon

9/23/2002 7:31:36 PM, Miller, Jason wrote:





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



-
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!


Re: OK I have a real question

2002-09-22 Thread Tony Baity


Mark,
It looks like you and Zahid go way back... you should be friends by now :)
Summarize by:Date Author Subject Thread  Search 

Description: [EMAIL PROTECTED] (See other lists)
Subject: Results of Time slicing Thread Test

Options: Browse list | Browse messages with this subject | Browse this thread | Browse 
messages by this author 
   Previous message: It seems to me (Mark Galbreath) 
   Next message: Old mails [was: Re: Servlet with Swing] (Mahesh Davendran) 
   Next in thread: Results of Time slicing Thread Test (Mahesh Davendran) 
zahid rahman ([EMAIL PROTECTED]) writes on 2001-06-01 (display as raw message) 
Content-Type: text/plain; format=flowedDate: Fri, 1 Jun 2001 10:03:40 -From: zahid 
rahman [EMAIL PROTECTED]Subject: Results of Time slicing Thread 
Testsnipreal content/snip

...could this non struts specific conversation possibly end so that we lurkers dont' 
all run away? Or is that the intent?


 Zahid Rahman wrote:What did Galbreath, Mark mean by -
We don't owe you anything ?

The reason I am asking this question is because Kirk Yarina of
www.securebydesign.com also asked me do you know about
Intellect property rights.

I was also asked the same question by an Australian Architect ?

I was also informed by Mr Richard Monson-Haefel on the EJB-INTEREST public
line
that Rickard Oberge is a very smart guy who only invented one thing and I
invented two.

I would like a full and detailed explanation of the above ?


- Original Message -
From: Cliff Rowley 
To: 'Struts Users Mailing List' 
Sent: Monday, September 23, 2002 12:52 AM
Subject: RE: This guy from the bank raised a question ?




 -Original Message-
 From: Zahid Rahman [mailto:[EMAIL PROTECTED]]
 Sent: 23 September 2002 00:38
 To: Struts Users Mailing List
 Subject: Re: This guy from the bank raised a question ?
 
 
 
 This is the link I am reading at the moment.
 http://jakarta.apache.org/struts/userGuide/index.html

 Right..

 I am also reading documentation written Gal Schalor of IBM.

 Okay..

 

 But why do we care what you are reading? Especially since you have
 (potentially) offended several key contributors to this list. You were
 asked some perfectly reasonable questions and you (not impolitely) asked
 to do some research. In response to that, you've managed to regurgitate
 half of the English dictionary in the wrong order, resort to person
 insult and get yourself filtered (publicly by one, I would think there
 are more).

 In all the effort you have expended writing this drivel, you could have
 been half way through your research. Where's the sense in that?

 If I were you, I'd jump down from your high horse for a few moments -
 realise that you're not dealing with a bunch of retarded bigots, but
 real people who are willing to provide real help - provided you don't
 take the proverbial piss. You don't need to prove yourself here, and to
 be quite honest - I doubt anyone cares who you are or who you work for -
 in this medium you're just another subscriber.

 Settle down, take a deep breath, and start again. If you don't, you'll
 quickly find that struts-user is a big wall of deaf ears.


 --
 To unsubscribe, e-mail:

 For additional commands, e-mail:




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



-
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!


RE: Ending a Session After Browser Has Gone Away

2002-08-01 Thread Tony Baity


Look in the javadocs for HttpSession and how to use  HttpSessionBindingListener . 
I recommend allowing each browser instance to be allowed to login. Try to be 
stateless. If you want to do anything at all in the case of session timeout, use the  
HttpSessionBindingListener
 
 
 Becky Moyer wrote:Just set a short session timeout. 3 minutes of inactivity, session 
expires.
So by the time they reboot, they have to log in again.
Yeah, if someone stares at the page for 3 minutes and does something, they
have to log in again, but if you're that concerned with sessions getting
cleared, then it's not such a big deal.

Anything wrong with this?
Becky

 -Original Message-
 From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 01, 2002 11:33 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Ending a Session After Browser Has Gone Away


 Any suggestions?

 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 01, 2002 11:34 AM
 To: Struts Users Mailing List
 Subject: RE: Ending a Session After Browser Has Gone Away


 The web being the stateless environment that it is, you have no way know
 (without using javascript) that a user has closed a browser.

 I wouldn't advise to doing this anyway, because the user may have
 more than
 one window open, so if they close one of them and try to continue
 using your
 site, they will be met (rather rudely) with your login screens.

 I can't speak for other people, but whenever I'm navigating a
 site that does
 a shit job of navigation hierarchy, I always use shift+click if I want to
 keep the current page and not be sent off deep in the site with no hope of
 finding the original spot that sent me. If the site did as you propose,
 this would result in a very pissed off user. And you could bet that you'd
 hear about it (from me at least).

 Oh well, that's my 2 cents.



 James Mitchell
 Software Engineer\Struts Evangelist
 Struts-Atlanta, the Open Minded Developer Network
 http://www.open-tools.org/struts-atlanta




  -Original Message-
  From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, August 01, 2002 11:06 AM
  To: [EMAIL PROTECTED]
  Subject: Ending a Session After Browser Has Gone Away
 
 
  Is there a way to end a user session if the browser has closed either
  through user action or non-user actions such as power outages?
  If not, what
  are typical ways to get around this? We are talking about
  allowing the user
  to login again, checking for a current user session, and if
 they have one,
  killing it and starting a new one. Is this a sound approach? Thanks.
 
 
  Sean Cohan
  Software Performance Systems
 
 
 
  --
  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:
 



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



-
Do You Yahoo!?
Yahoo! Health - Feel better, live better


RE: Ending a Session After Browser Has Gone Away

2002-08-01 Thread Tony Baity


I'm not sure if this helps, but...
If the users use the File-New-Window on the browser, they will have multiple windows 
to the same session... but if they create a new instance of the browser (ie. clicking 
on the icon), these will be totally separate sessions where the user will have to 
identify their selves in some way... if you are not adversed to cookies, (long term 
cookies that is),  you could stash the user's identifier there... but I hate 
cookies... sorry I mentioned it. :) 
 
 Cohan, Sean wrote:We must be stateful. This not an internet application (although 
it will be
used across the internet.) It's an enterprise app and we must use state.
Also, the users have requested they be able to use multiple browsers and
won't want to log into to each one. 

I looked at HttpSessionBindingListener but didn't get a real good feel for
how it can help us when the browser (or I should say when all browsers) have
gone away and the user needs to log back in. Note: we flip a logged in flag
during the login process to prevent the user from logging in twice. This
gets flipped back when the user logs off or the session expires. This flag
will prevent the user from logging back in, unless we can somehow get around
cases where they've exited without logging out.

I'm sure this is an age old browser problem and I'm sure there have been
good solutions to getting around this. So I'm hoping someone can steer me
in the right direction.

Thanks a ton.


-Original Message-
From: Tony Baity [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 11:45 AM
To: Struts Users Mailing List
Subject: RE: Ending a Session After Browser Has Gone Away



Look in the javadocs for HttpSession and how to use
HttpSessionBindingListener . 
I recommend allowing each browser instance to be allowed to login. Try to be
stateless. If you want to do anything at all in the case of session timeout,
use the HttpSessionBindingListener


Becky Moyer wrote:Just set a short session timeout. 3 minutes of
inactivity, session expires.
So by the time they reboot, they have to log in again.
Yeah, if someone stares at the page for 3 minutes and does something, they
have to log in again, but if you're that concerned with sessions getting
cleared, then it's not such a big deal.

Anything wrong with this?
Becky

 -Original Message-
 From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 01, 2002 11:33 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Ending a Session After Browser Has Gone Away


 Any suggestions?

 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 01, 2002 11:34 AM
 To: Struts Users Mailing List
 Subject: RE: Ending a Session After Browser Has Gone Away


 The web being the stateless environment that it is, you have no way know
 (without using javascript) that a user has closed a browser.

 I wouldn't advise to doing this anyway, because the user may have
 more than
 one window open, so if they close one of them and try to continue
 using your
 site, they will be met (rather rudely) with your login screens.

 I can't speak for other people, but whenever I'm navigating a
 site that does
 a shit job of navigation hierarchy, I always use shift+click if I want to
 keep the current page and not be sent off deep in the site with no hope of
 finding the original spot that sent me. If the site did as you propose,
 this would result in a very pissed off user. And you could bet that you'd
 hear about it (from me at least).

 Oh well, that's my 2 cents.



 James Mitchell
 Software Engineer\Struts Evangelist
 Struts-Atlanta, the Open Minded Developer Network
 http://www.open-tools.org/struts-atlanta




  -Original Message-
  From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, August 01, 2002 11:06 AM
  To: [EMAIL PROTECTED]
  Subject: Ending a Session After Browser Has Gone Away
 
 
  Is there a way to end a user session if the browser has closed either
  through user action or non-user actions such as power outages?
  If not, what
  are typical ways to get around this? We are talking about
  allowing the user
  to login again, checking for a current user session, and if
 they have one,
  killing it and starting a new one. Is this a sound approach? Thanks.
 
 
  Sean Cohan
  Software Performance Systems
 
 
 
  --
  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:
 



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



-
Do You Yahoo!?
Yahoo! Health - Feel better, live better

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



-
Do You Yahoo!?
Yahoo! Health - Feel better, live better


Re: how to detect when the user presses the stop button

2002-07-29 Thread Tony Baity


This is a browser client and JavaScript question unless you are using an applet with 
an open connection to your server. You may want to redirect the question to the 
Mozilla org. The browser folks have not built in detection of those window component 
events on an individual basis except for general onClose purposes. There might be some 
tricks you can do with the mouse x and y to determine if the click was out of the 
regular screen area but this is cowboy hack and may not work for both IE and Netscape.
 Andrew Geery wrote:I was looking through the struts archive and I've seen this 
question asked
but never answered.

See http://nagoya.apache.org/eyebrowse/ReadMsg?listId=42msgNo=30063
for the original question.

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



-
Do You Yahoo!?
Yahoo! Health - Feel better, live better


Re: how to detect when the user presses the stop button

2002-07-29 Thread Tony Baity


On an associated topic...
When someone clicks the browser stop button and the session eventually times out, I 
have in the past implemented HttpSessionBindingListener on a special class used just 
for cleaning up the database/ejbs and attached an instance to the session in an 
overridden ActionServlet when a new session is detected.
Is there another way of doing this... Or something that I have overlooked in Struts.
 Craig R. McClanahan wrote:

On Mon, 29 Jul 2002, Eddie Bush wrote:

 Date: Mon, 29 Jul 2002 14:10:45 -0500
 From: Eddie Bush 
 Reply-To: Struts Users Mailing List 
 To: Struts Users Mailing List 
 Subject: Re: how to detect when the user presses the stop button

 Yes, it has been answered. The answer is that, assuming the page they
 are waiting to load is printing things out, you will get an IOException
 when you try to send output. AFAIK, this is the only way to detect it.


About the best you can hope for is that you *may* get an IOException --
there are no guarantees. Two cases where you definitely won't:

* When the response content is small enough to fit into the
response buffer, and you didn't flush it before returning
from the servlet's doGet() or doPost() method -- the container
might encounter a problem when it flushes, but it's too late
for your application to hear about it.

* When your client is conencted to you via a proxy server (or
something like the Apache-Tomcat web connector), where there
is an intermediary involved -- unless the intermediary is designed
to forward a disconnect notification in some manner that your
servlet container understands (and, for HTTP proxies, there's basically
nothing like this).

This is one of the issues that makes programming web apps quite
interesting ...

Craig


 Andrew Geery wrote:

 I was looking through the struts archive and I've seen this question asked
 but never answered.
 
 See http://nagoya.apache.org/eyebrowse/ReadMsg?listId=42msgNo=30063
 for the original question.
 
 --
 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: 



-
Do You Yahoo!?
Yahoo! Health - Feel better, live better


Re: Struts Vs. Sun J2EE Compliance and Design Patterns

2002-07-25 Thread Tony Baity


The pre-release Chapter 1 of Chuck's book has a section on this... about 15 pages down 
or so and explains the syndrome that your ex-colleague is demonstrating.
...Tell him that it's curable though :)

 
 Juan Alvarado (Struts List) wrote:
Hello folks:

Recently I had a discussion with an ex-colleague of mine regarding struts. I
explained to him that it's an awesome framework and that it has everything
for developing web applications using MVC.

His response was something to the effect of I'm sure struts is great but we
are very happy with our architecture here and that it has all the benefits
of struts and that they are 100% J2EE compliant and sun pattern compliant
and blah blah blah He also made it a point to point out that his
architecture is just J2EE and no third party libraries.

I tried telling him that struts was all J2EE also and that it was written in
pure java. His response was that it was a third party package on top of
J2EE. He then tried to tell me what patterns he uses for his architecture
and those consisted of: Service to Work, with Servlet Front Strategy,
Displatcher in Controller Strategy, and JSP View Strategy, Value Objects,and
Data Access Objects.

I tried to tell him that all that was nice and dandy, but with struts he
could use all those patterns with struts and in the process save himself a
ton of time in developing his application(s). Basically this was his
response:

I'm just against anything other than the base stuff. I don't like reallying
on any pieces that are from other parties or that put layers on top of
Java... to be honest, I'm just not interested. I'm sure that many of the
people on there will have lots to say about why struts is great, but I
already looked into it, along with all other options, and saw no benefits
beyond adopting J2EE and Sun's core J2EE patterns. There isn't anything
struts does that our architecture now doesn't do, and it doesn't do it any
easier, so why would I bother?

So my question is as follows... Isn't this person wrong in saying that
struts puts layers on top of Java and that struts doesn't do anything easier
than his sun based architecture?? If that was the case, why aren't we using
his architecture/framework?? I mean as far as I know, sun doesn't have
anything close to what struts is, and if truth be told, aren't they(Sun)
using at least one of the struts creators for their own Java Server Faces
framework.

I would love to hear what the community's reaction to these comments are.

Sorry for the long post, but I think this one was worth it.

**
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]


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



-
Do You Yahoo!?
Yahoo! Health - Feel better, live better


RE: O'Reilly Struts Cover

2002-07-24 Thread Tony Baity


 It needs a cart or a plow hitch...
  Galbreath, Mark [EMAIL PROTECTED] wrote: I dunno...you sure that's a hoof and 
not a road apple?

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 10:10 AM

LOL..that's what I thought to at first.

The tail is hiding a leg.actually the horse is depicted in mid-strut.

I'm not a horse expert, but I know it takes a lot of training for horses to
do that.


James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://www.open-tools.org/struts-atlanta




 -Original Message-
 From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 24, 2002 10:00 AM
 To: 'Struts Users Mailing List'
 Subject: RE: O'Reilly Struts Cover


 It's got only 3 legs!!!

 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 24, 2002 9:54 AM

 Hey, that's a nice picture.
 It's no SASQUATCH, but I like it.

 James Mitchell

 --
 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: 



-
Do You Yahoo!?
Yahoo! Health - Feel better, live better