RE: [ANNOUNCEMENT] Struts 1.1 Final released

2003-06-30 Thread Assenza, Chris
Great news, congrats. :)

-Original Message-
From: Martin Cooper [mailto:[EMAIL PROTECTED]
Sent: Monday, June 30, 2003 3:39 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: [ANNOUNCEMENT] Struts 1.1 Final released


The Struts team is proud, and extremely pleased, to announce the Final
release of Struts 1.1. This release includes significant new
functionality, as well as numerous fixes for bugs which were reported
against the previous release, and supersedes the earlier 1.0.2 version as
the latest official release of Struts from the Apache Software Foundation.

The binary distribution is available at:

http://www.apache.org/dist/jakarta/struts/binaries/

and the source distribution is available at:

http://www.apache.org/dist/jakarta/struts/source/

In addition, the library distribution, which contains updated binaries
without the sample applications, is available at:

http://www.apache.org/dist/jakarta/struts/library/

Details of the changes in this release are available in the Release Notes,
which can be found here:

http://jakarta.apache.org/struts/userGuide/release-notes-1.1.html

--
Martin Cooper

-
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: DAO or ... ?

2002-10-14 Thread Assenza, Chris

Though not a Patterns book, Refactoring (by Martin Fowler) is another
must-read for all OO developers. :-) 

Chris

-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 14, 2002 4:29 PM
To: 'Struts Users Mailing List'
Subject: RE: DAO or ... ?


Thanks - it's nice to know somebody out there respects me!  :-)

Seriously though, I agree with you 100%. Technology changes to quickly to be
able to rest on your laurels - just look at this list and evolution of
Struts in the past 90 days! Fortunately for me, I managed to find this list
when I first started learning Java (about 6 months ago) - and I can tell you
it has been the absolute best resource, and not just for struts and java.
I'm now to a point where I'm trying to refine my coding techniques, hence my
interest in patterns.  Besides the GoF book, are the any really great books
on patterns that are Java and web development specific?  It would be nice to
have all of this stuff in one location..

Jerry

> -Original Message-
> From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 14, 2002 3:12 PM
> To: Struts Users Mailing List
> Subject: RE: DAO or ... ?
> 
> 
> You have my sympathy and my respect.
> 
> While I graduated after you, they still hadn't invented the 
> World Wide Web and Java was a way off yet. Almost everything 
> skill that I use to earn my living today is something that I 
> have taught myself. I spotted Java and learned it back when 
> it first came out, and I have read enough material since I 
> graduated to sink a small aircraft carrier. It seems to me 
> that those that get anywhere in this industry are self-taught 
> self-starters. Sure, we start with a CS degree, but 
> everything goes out of date so quick in this industry, that 
> you can't sit back on your laurels and wait for people to 
> throw money at you. You have to go go and learn stuff outside of work.
> 
> As for patterns, I was associated with some Smalltalkers for 
> a while and heard them talking about patterns and saw the 
> GoF, bought a copy for myself and have been using them ever 
> since (just not calling them the right names! ;-)
> 
> Simon
> 
> >-Original Message-
> >From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, October 14, 2002 3:02 PM
> >To: 'Struts Users Mailing List'
> >Subject: RE: DAO or ... ?
> >
> >
> >You guys have it lucky to even know what a pattern is.  I 
> >graduated with a
> >C.S. degree in 1983 - object oriented programming barely 
> >existed then, let
> >alone taught.  Matter of fact we were required to learn IBM 
> >Assembler, and
> >either COBOL or PL/1 as a graduation requirement!  If I 
> >remember right, my
> >"Software Engineering" class dealt with writing a basic 
> compiler for a
> >COBOL-type language (written in assembler, or course).  You 
> ought to be
> >where I am trying to play catch-up on all of this Java / web / 
> >struts / 
> >stuff while trying to deliver projects on time and budget!
> >
> >Jerry
> >
> >> -Original Message-
> >> From: John Owen [mailto:[EMAIL PROTECTED]]
> >> Sent: Monday, October 14, 2002 2:45 PM
> >> To: Struts Users Mailing List
> >> Subject: Re: DAO or ... ?
> >> 
> >> 
> >> We were taught algorithms and finite state machines, but I 
> >> don't remember
> >> any design pattern coverage. I graduated in 1994 and other 
> >> than that, they
> >> perfectly prepared me for my future as a developer. We 
> >> covered many software
> >> design principles in my Software Engineering classes, but the 
> >> memory is so
> >> vague that I can't recall if anything was categorized into 
> patterns.
> >> - Original Message -
> >> From: "Chappell, Simon P" <[EMAIL PROTECTED]>
> >> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >> Sent: Monday, October 14, 2002 2:33 PM
> >> Subject: RE: DAO or ... ?
> >> 
> >> 
> >> I have no idea whether they teach patterns in University. I 
> >> graduated in
> >> 1990 and we didn't even have the Internet back then let alone 
> >> Patterns!
> >> 
> >> Jacob: How about it my friend? Do they teach patterns in the UW?
> >> 
> >> Simon
> >> 
> >> >-Original Message-
> >> >From: Wendy Smoak [mailto:[EMAIL PROTECTED]]
> >> >Sent: Monday, October 14, 2002 2:29 PM
> >> >To: 'Struts Users Mailing List'
> >> >Subject: RE: DAO or ... ?
> >> >
> >> >
> >> >> It's called experience  it's why they pay us old guys
> >> >more than you
> >> >young bucks! ;-)
> >> >
> >> >LOL!  It's also called being absolutely CERTAIN that someone
> >> >has solved this
> >> >problem before, and not going off reinventing the wheel.  As
> >> >an aside, are
> >> >patterns being taught in computer science?  I'm working on a
> >> >degree and the
> >> >senior-level course I'm taking this semester has been the
> >> >first time I've
> >> >seen a lecture about them.  And then he only covered 
> three (Factory,
> >> >Abstract Factory and Singleton) and not very in depth at that.
> >> >
> >> >I lik

RE: DAO or ... ?

2002-10-14 Thread Assenza, Chris

Speaking of Mr. Fowler, he has his next book online (proof) on his web site.
Another excellent "Patterns" book that is worth reading. :)

http://martinfowler.com/isa/index.html

-Chris

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 14, 2002 4:37 PM
To: Struts Users Mailing List
Subject: RE: DAO or ... ?


For patterns stick with the GoF book, just remember that the names are not
always the best.

Try Martin Fowler's Refactoring book. Absolutely wonderful. (most of the
examples are in Java)

Start using Ant for your project builds (The Ant book by Hatcher and
Loughran published by Manning is magnificent.)

Junit. http://junit.org/ Test first, test often! :-)

Failing that, this new fangled Internet thing has some useful stuff on it. I
have distilled a short list of very good links and posted on my website. Try
http://www.simonpeter.com/techie/java/links.html and see if that is useful
to you.

Simon

>-Original Message-
>From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
>Sent: Monday, October 14, 2002 3:29 PM
>To: 'Struts Users Mailing List'
>Subject: RE: DAO or ... ?
>
>
>Thanks - it's nice to know somebody out there respects me!  :-)
>
>Seriously though, I agree with you 100%. Technology changes to 
>quickly to be
>able to rest on your laurels - just look at this list and evolution of
>Struts in the past 90 days! Fortunately for me, I managed to 
>find this list
>when I first started learning Java (about 6 months ago) - and 
>I can tell you
>it has been the absolute best resource, and not just for 
>struts and java.
>I'm now to a point where I'm trying to refine my coding 
>techniques, hence my
>interest in patterns.  Besides the GoF book, are the any 
>really great books
>on patterns that are Java and web development specific?  It 
>would be nice to
>have all of this stuff in one location..
>
>Jerry
>
>> -Original Message-
>> From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, October 14, 2002 3:12 PM
>> To: Struts Users Mailing List
>> Subject: RE: DAO or ... ?
>> 
>> 
>> You have my sympathy and my respect.
>> 
>> While I graduated after you, they still hadn't invented the 
>> World Wide Web and Java was a way off yet. Almost everything 
>> skill that I use to earn my living today is something that I 
>> have taught myself. I spotted Java and learned it back when 
>> it first came out, and I have read enough material since I 
>> graduated to sink a small aircraft carrier. It seems to me 
>> that those that get anywhere in this industry are self-taught 
>> self-starters. Sure, we start with a CS degree, but 
>> everything goes out of date so quick in this industry, that 
>> you can't sit back on your laurels and wait for people to 
>> throw money at you. You have to go go and learn stuff 
>outside of work.
>> 
>> As for patterns, I was associated with some Smalltalkers for 
>> a while and heard them talking about patterns and saw the 
>> GoF, bought a copy for myself and have been using them ever 
>> since (just not calling them the right names! ;-)
>> 
>> Simon
>> 
>> >-Original Message-
>> >From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
>> >Sent: Monday, October 14, 2002 3:02 PM
>> >To: 'Struts Users Mailing List'
>> >Subject: RE: DAO or ... ?
>> >
>> >
>> >You guys have it lucky to even know what a pattern is.  I 
>> >graduated with a
>> >C.S. degree in 1983 - object oriented programming barely 
>> >existed then, let
>> >alone taught.  Matter of fact we were required to learn IBM 
>> >Assembler, and
>> >either COBOL or PL/1 as a graduation requirement!  If I 
>> >remember right, my
>> >"Software Engineering" class dealt with writing a basic 
>> compiler for a
>> >COBOL-type language (written in assembler, or course).  You 
>> ought to be
>> >where I am trying to play catch-up on all of this Java / web / 
>> >struts / 
>> >stuff while trying to deliver projects on time and budget!
>> >
>> >Jerry
>> >
>> >> -Original Message-
>> >> From: John Owen [mailto:[EMAIL PROTECTED]]
>> >> Sent: Monday, October 14, 2002 2:45 PM
>> >> To: Struts Users Mailing List
>> >> Subject: Re: DAO or ... ?
>> >> 
>> >> 
>> >> We were taught algorithms and finite state machines, but I 
>> >> don't remember
>> >> any design pattern coverage. I graduated in 1994 and other 
>> >> than that, they
>> >> perfectly prepared me for my future as a developer. We 
>> >> covered many software
>> >> design principles in my Software Engineering classes, but the 
>> >> memory is so
>> >> vague that I can't recall if anything was categorized into 
>> patterns.
>> >> - Original Message -
>> >> From: "Chappell, Simon P" <[EMAIL PROTECTED]>
>> >> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>> >> Sent: Monday, October 14, 2002 2:33 PM
>> >> Subject: RE: DAO or ... ?
>> >> 
>> >> 
>> >> I have no idea whether they teach patterns in University. I 
>> >> graduated in
>> >> 1990 and we didn't even have the Internet back then le

RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Assenza, Chris
I can't tell if you're being serious or not, but the question really has
been answered already.  The problem is that you're either A) missing the
point or B) a troll.  I prefer to assume A.  In that case, I believe I can
paraphrase what Craig has said: 

> (1) Does STRUTS support sending serialized VO
> objects (as against HTML or  XML text strings) back
> and forth between client
> app and server. 

Craig: "Yes."

> What needs to be changed in STRUTS
> components to suport this?

Craig: "Nothing."

It doesn't matter if it's a VO object or not, we're assuming already that
it's serialized and that we just need to get this serialized "thing" back to
the client.  Craig not only answered the question, but went a step further
to provide a couple suggestions as to how one might accomplish the desired
goal within a struts app. 

Best,

Chris

-Original Message-
From: Xue-Feng Yang [mailto:just4look@;yahoo.com]
Sent: Thursday, October 17, 2002 1:52 PM
To: Struts Users Mailing List
Subject: Re: Can V in MVC be Swing in Struts?


 --- Antoni Reus <[EMAIL PROTECTED]> wrote: > Hi,
> 
> A Dijous 17 Octubre 2002 19:31, Xue-Feng Yang va
> escriure:
> >  --- "Craig R. McClanahan" <[EMAIL PROTECTED]>
> > wrote: >
> >
> > > On Thu, 17 Oct 2002, Xue-Feng Yang wrote:
> > > > Date: Thu, 17 Oct 2002 13:19:48 -0400 (EDT)
> > > > From: Xue-Feng Yang <[EMAIL PROTECTED]>
> > > > Reply-To: Struts Users Mailing List
> > >
> > > <[EMAIL PROTECTED]>
> > >
> > > > To: Struts Users Mailing List
> > >
> > > <[EMAIL PROTECTED]>
> > >
> > > > Subject: RE: Can V in MVC be Swing in Struts?
> > > >
> > > > Let me copy your answer here with #, and tell
> me
> > >
> > > where
> > >
> > > > is your "correct" answer.
> > > >
> > > > > And you didn't understand the answer
> correctly
> > > :
> > > :-).
> > > :
> > > > # There are at least two different ways to
> > >
> > > accomplish
> > >
> > > > # this:
> > > >
> > > > #* Have your Action write the XML output
> directly
> > >
> > > to
> > >
> > > > #the response,
> > > > #  and then return null (indicates that the
> > >
> > > response
> > >
> > > > #has been completed,
> > > > #  so no forwarding is necessary).
> > >
> > > To use output directly generated by an Action
> > > (either serialized objects,
> > > or directly created XML), use this.
> >
> > Hahaha, where is the VO in your message with #?
> You
> > only talked about XML not VO.
> >
> 
> 
> html, xml, serialized objects, pdf, svg,  what's the
> difference?
> 
> For serialized objects:
> 
> Set the content type to
> "application/x-java-serialized-object"
> Grab the ServletOuputStream in a ObjectOutputStream
> and write(Object it)
> return null 
> 
> 
> Salut,
> 
> -- Antoni Reus


You should answer this question. It is correct now.
Just remind you that it is not my question.

A person asked the following question:

 (1) Does STRUTS support sending serialized VO
objects (as against HTML or  XML text strings) back
and forth between client
app and server. What needs to be changed in STRUTS
components to suport this?

And I just point out someone's answer is not a correct
answer. That's it.

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

__ 
Post your free ad now! http://personals.yahoo.ca

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: [OT] Oracle Magazine Java Developer of the Year

2002-10-28 Thread Assenza, Chris
That's great, congrats James!

Chris

-Original Message-
From: Bradley G Smith [mailto:bgsmith01@;fs.fed.us]
Sent: Monday, October 28, 2002 3:35 PM
To: [EMAIL PROTECTED]
Subject: [OT] Oracle Magazine Java Developer of the Year


The nov/dec issue of Oracle Magazine has several "person of the year"
awards. The person picked as Java developer of the year is James Holmes for
his work on Struts Console.

Struts is also mentioned in several articles as a key framework component
in the same issue.

Brad


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: How to access the Struts ConnectionPool from an ActionForm

2002-11-21 Thread Assenza, Chris
Steve,

If memory serves, I don't think you can get the ActionServlet (thus the
servlet) from the Form; but it's been a long time since I last looked at
that stuff and I may well be incorrect on that - it's just a guess. 

As for the db call issue, it makes more sense for something like that to be
in a separate class or your Action at the least.  You would simply call the
appropriate accessors on the form to set the results.  For example, if you
had three VARCHAR/TEXT columns you could query  and obtain a ResultSet.
Then, iterate through the ResultSet and set the appropriate form properties.
Obviously, that's just one way to do it and perhaps not the ideal way, but
it is a viable option.  

Chris

-Original Message-
From: Steven Citron-Pousty [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 4:46 PM
To: struts-user
Subject: How to access the Struts ConnectionPool from an ActionForm


Greetings all:
I am trying to populate the options for a select list from a DB call. 
And I am getting a null pointer exception from this line in the 
ActionForm (I copied it from my Action, where it works):

DataSource dataSource = (DataSource) 
servlet.getServletContext().getAttribute(Action.DATA_SOURCE_KEY);

What I am trying to do is use the ConnectionPool provided by Struts. 
This call works great in my Action but doesn't work in my ActionForm.
On the IRC channel (irc.freenode.net #struts) we have been discussing 
the merits of putting a DB call in an ActionForm.

SOoo, my main question is,
How do I ask the context for the connection pool in an ActionForm?

But I would also love to see discussion about the merits of putting a DB 
call in an ActionForm at all. If I didn't put the call in the ActionForm 
how would I get the data from the DB call into the actionForm?

Thanks in advance for all your help,
Steve

BTW it appears as if posting from the basebeans nntp doesn't get posted 
to the list.


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Get ServletContext from Action (Struts 1.0.2)

2002-11-22 Thread Assenza, Chris
Indeed it is. :)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, November 22, 2002 1:16 PM
To: [EMAIL PROTECTED]
Subject: Get ServletContext from Action (Struts 1.0.2)



Hello,
Can you tell me how to obtain the ServletContext in a Struts 1.0.2 Action.
Is the getServlet().getServletContext() call on my action the good way to
do that ?

Thanks.









This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

-

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: if condition with "or"

2002-12-05 Thread Assenza, Chris
I am also inclined to agree, that was my first reaction to seeing that code.
I don't know what to think though, it's not as if I have a better answer to
the problem either. :-\

-Chris

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 2:08 AM
To: Struts Users Mailing List
Subject: RE: if condition with "or"



what is the difference between having a scriptlet or what you use above?


Hehe I rather agree Jim!
(Mind you I am rather anti-JSP so my view is probably a bit biased!)

Your question reminds me of an old article I read several months ago by
Jason Hunter (author of the O'Rielly Servlet book) written back at the dawn
of time (or to be more precise in the year 2000).
http://www.servlets.com/soapbox/problems-jsp.html

The quote that stuck in my mind was:

Someday there will be custom tags for doing these loops. And custom tags for
"if" checks too. And JSP pages may look like a grotesque Java reimplemented
with tags


Hmmm??


   ... do something ...







-Original Message-
From: Jim Collins [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 14:29
To: Struts Users Mailing List
Subject: Re: if condition with "or"



- Original Message -
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, December 05, 2002 12:20 AM
Subject: Re: if condition with "or"


>
>
> On Wed, 4 Dec 2002, Jana Navaneethan wrote:
>
> > Date: Wed, 4 Dec 2002 17:23:42 -0500
> > From: Jana Navaneethan <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > Subject: if condition with "or"
> >
> > Hi,
> >   I want to use  in my JSP to replace the following
code.
> >
> > if  (count = 0 || count = 2 || count = 4)
> > do something.
> >
> > How to achieve this using  By the count is index value of
the
> > iterator i.e indexId.
> >
>
> This is one of the very large number of reasons that you should start
> using JSTL if you can (i.e. you're on a Servlet 2.3/JSP 1.2 or later
> container):
>
>   
> ... do something ...
>   
>
Hi Craig I remember seeing one of you posts where you say you are against
having java code in a JSP but what is the difference between having a
scriptlet or what you use above?

Regards

Jim.
>
> > Thanks in advance,
> > Jana.
> >
>
> Craig
>



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




[OT] What do you do with your SQL?

2002-07-26 Thread Assenza, Chris

Hi all, 

Been a while since I last wrote, but I've been lurking to observe all the
crazy antics. :)  Anyway, I've got a question of an [ot] nature that I
believe you folks will have an answer for. 

Our application is highly data-driven and as such a lot of our "business
logic" is written to build SQL statements and handle query results.  Pretty
typical stuff.  Using Struts we pass data objects to a stateless session EJB
where all the SQL is directly embedded into the java source one way or
another.  

We're currently converting this custom app into a product. As such, we need
to be able to have easily modifiable SQL statements without requiring
recompilation of code.  For example, if client A decides to buy our app and
they have xyz infrastructure or business rules, we need to be able to easily
modify sql, hints and the like while also supporting the client-specific
sql, hints, etc. of client B.  

A lot of our SQL is built on the fly so using properties files may be a
little cumbersome, though certainly not beyond our means.  I have other
ideas floating around, but I'd rather just hear yours - any suggestions? 

Thanks,

Chris


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




RE: [OT] What do you do with your SQL?

2002-07-29 Thread Assenza, Chris

Good thoughts, some comments. :)

Our design is actually not the most typical EJB design.  Due to a large
amount of redundancy in our code, we implemented a single EJB that then
calls methods on a specific implementation class depending on the object
requested from the Struts tier (sort of like a "controller" of sorts).  For
example, there are three objects we deal with (these are fabricated for
demonstration's sake):

Pencil
Pen
Crayon

To perform SQL operations or some business operation on one of these
objects, an EJB is invoked and told what implementation class it should use
for doing "something."  Thus, all calls to the pencil implementation class
really come through the EJB.  I'll leave the reasons we did that aside,
suffice it to say that we have an EJB that has numerous supporting
implementation classes that can be called depending on the incoming request.
All [I should say "most"] our SQL is in those specific implementation
classes.  The requirement is not so much to be able to support a different
DBMS, but to be able to customize the SQL without editing a Java file (ie.
ultimately "recompilation of code").  

I like your idea Joe, and we do have a such a JNDI lookup system in place,
but the bottom of your email is the crux of the matter - it's not so much
that we care about providing that flexibility to the client, but it has the
potential to be *very* convenient for us. :) That is, of course, if it
doesn't take us too many hours to implement and then refactor existing code.
=p

Thanks for the consideration, if there are any additional ideas please shoot
them my way, for now it seems I have a lot to consider. :-)

-Chris

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




RE: [OT] What do you do with your SQL?

2002-07-29 Thread Assenza, Chris

Good idea, I think the only problem we might have with this is the fact that
we'd have to build a lot of dynamic sql into our SP - which can be more
annoying then just leaving it in the Java code. :)

Thanks,

Chris


-Original Message-
From: Yang, Pedro [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 4:57 PM
To: 'Struts Users Mailing List'
Subject: RE: [OT] What do you do with your SQL?


Where you actually place your SQL logic (statements) sometimes has a lot to
do: 
(1) what DBMS your system is using (MS SQL Server, Oracle, to name a few); 
(2) what DB development resource and knowledge your team has. 

If a right DBMS is used, with the sufficient DB knowledge, the stored
procedures can be a good solution. 
The common pitfall with this approach is to hardcode the SP name and
parameters in the Java codes.  To avoid this problem, you can store the
values in a xml file.

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




RE: strusts + log4j

2002-08-09 Thread Assenza, Chris

Chandra,

It may be that your problems are related to the fact that JBoss 3
initializes a server-wide Log4j service on startup [at least that's what
I've observed...their documentation is less then tolerable].  At any rate,
you will notice a log4j.xml file in the ${jboss_home}/server/default/conf
directory.  That is probably what has been controlling the logging you've
seen thus far. 

Chris

-Original Message-
From: Chandra Gottipati [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 08, 2002 4:24 PM
To: Struts Users Mailing List
Subject: Re: strusts + log4j


Chuck,

I went through the logging chapter and configured log4j to implement logging
in my action classes and JSPs. My problem is I can see the logging in my
stdout but the log file I specified in my log4j.properties file is not being
created.

I am using jboss-3.0.0 that has it's own web container. I went through the
log files for JBoss and didn't find any error messages there.

I placed,

commons-logging.jar, log4j.jar in my WEB-INF/lib directory and
commons-logging.properties, log4j.properties in my WEB-INF/classes directory

It looks like the server is not finding the log4.j.properties file. What am
I missing?

Thanks,

Chandra.


- Original Message -
From: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, August 03, 2002 12:43 PM
Subject: Re: strusts + log4j


> Take a look at the draft logging chapter in my upcoming
> struts book. I cover Struts and log4j.
>
> You can find it here:
> http://www.theserverside.com/resources/strutsreview.jsp
>
> chuck
> > Craig,
> >
> > I did and it didn´t tell me very much.  Anyway, as I explained later
there
> > appeared to be a mix-up with older and newer jars which led to this
error.
> >
> > Of course it seems like a trivial error and I don´t want to waste your
time
> > with such things, but it just seemed so strange what was happening.
> >
> > Thanks,
> >
> > Michael
> >
> >
> > - Original Message -
> > From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Saturday, August 03, 2002 7:01 PM
> > Subject: Re: strusts + log4j
> >
> >
> > >
> > >
> > > On Sat, 3 Aug 2002, Michael Delamere wrote:
> > >
> > > > Date: Sat, 3 Aug 2002 14:53:19 +0200
> > > > From: Michael Delamere <[EMAIL PROTECTED]>
> > > > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > > > To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > > > Subject: Re: strusts + log4j
> > > >
> > > > Of course I´m using my controller servlet ;-).
> > > >
> > > > I will try that although I still find it a bit strange that struts
> > suddenly
> > > > stops working just because I dropped the log4j jar into my lib
> > directory!  I
> > > > mean if I wasn´t logging in a servlet but say in a normal java
class,
> > why
> > > > would I do the "log4j initialization servlet entry in web.xml".
> > > >
> > > > Maybe there´s something I´m not understanding here.
> > > >
> > >
> > > The very first thing you should do when strange things like this
happen is
> > > check the log files produced by your servlet container.  There will
> > > generally be some message or stack trace that can give you a clue
about
> > > what is going wrong.
> > >
> > > > Regards,
> > > >
> > > > Michael
> > >
> > > Craig
> > >
> > >
> > > >
> > > >
> > > > - Original Message -
> > > > From: "Tarun Sainanee" <[EMAIL PROTECTED]>
> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > > Sent: Saturday, August 03, 2002 2:44 PM
> > > > Subject: Re: strusts + log4j
> > > >
> > > >
> > > > log4j initialization servlet entry in web.xml. and a corresponding
java
> > > > file
> > > > I hope u r also using a controller servlet!!!
> > > > Regards,
> > > > Tarun Sainanee
> > > > TCS Delhi
> > >
> >
> --
> > --
> > > > --
> > > > Nothing gives one person so much advantage over another as to remain
> > > > always cool and
> > > > unruffled under all circumstances.
> > > > -- Thomas Jefferson
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > "Michael Delamere" <[EMAIL PROTECTED]>
> > > > 08/03/2002 05:43 PM
> > > > Please respond to "Struts Users Mailing List"
> > > >
> > > >
> > > > To: "Struts Users Mailing List"
> > <[EMAIL PROTECTED]>
> > > > cc:
> > > > Subject:Re: strusts + log4j
> > > >
> > > >
> > > > What do you mean exactly with the following sentence:
> > > >
> > > > > Have u configured log4j initialization servlet?
> > > >
> > > > Thanks for your reply,
> > > >
> > > > Michael
> > > >
> > > >
> > > > - Original Message -
> > > > From: "Tarun Sainanee" <[EMAIL PROTECTED]>
> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > > Sent: Saturday, August 03, 2002 2:10 PM
> > > > Subject: Re: strusts + log4j
> > > >
> > > >
> > > > No, Struts and Log4j gel well tog

RE: XP (and not the Microsoft kind)

2002-08-19 Thread Assenza, Chris

XP is great, but it's not necessarily new.  People have been doing rapid
agile development for years and just might not know it by that name.  The
real value is the fact that it can be molded for any situation and it's not
the type of methodology where you MUST follow every step.  If you can't do
pair programming, then don't, simple as that.  It provides flexibility when
we've been so caught up in rigidity.  

The biggest shortcoming I see with it, so far, is the fact that the client
must also be of the same mindset as you.  In other words, it is such an open
system that the client can have significant impact on the development
process itself, which is true in any case, but seems moreso in XP's.  If
your client is a "bad" one, you're essentially finished before starting.  

I have seen a project where the client started out willing to try the XP
approach only to end up much later having decided that they didn't want to
do that afterall and now no one knew what was really built in the interim.
As with anything else, the best course of action is to use wisdom and
experience to decide the best methodology to use. XP allows you to mix and
match as needed, while providing some excellent foundations - in my mind
that's why it is good. :)

Chris

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




RE: [VOTE] Should this list discontinue it's long, treasured heritage of "relaxed fridays"?

2002-08-30 Thread Assenza, Chris

Do you feel this list should discontinue it's long heritage of "relaxed 
fridays"? 

[addendum: "Friday" is herein defined as the sixth day of the week.  A week
is defined as a seven day period that begins with a day designated "Sunday"
and ends on a day designated "Saturday."  "Friday" does not mean "all week"
or "parts of a week" it means a single day as here defined] ;-p

(   )  Yes
( X )  No

-Original Message-
From: John Owen [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 10:58 AM
To: Struts Users Mailing List
Subject: Re: [VOTE] Should this list discontinue it's long, treasured
heritage of "relaxed fridays"?




 Do you feel this list should discontinue it's long heritage of "relaxed
 fridays"?

 (   )  Yes
(X )  No

However, this week it started on Wednesday, which I think is the major
complaint.


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: all this traffic

2002-09-26 Thread Assenza, Chris

>Usually mailing list operators solve this problem
>by separating mailing lists to a newbie list and
>a list for more experienced users.

>struts-user-beginner
>struts-user

Which was one thing he originally suggested... =p

/me 
Doesn't care so much, I simply don't have enough time to read all this
stuff, I usually scroll by to see what catches my eye, otherwise I select
all and delete. :)

-Chris

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




RE: all this traffic

2002-09-30 Thread Assenza, Chris

> Setting up your mail reader to automatically forward STRUTS-USER messages
> to a separate folder, and then sorting by thread, is a trivially easy
> approach to dealing with volume issues.  Your inbox is no longer clogged,
> you can go read Struts mail when you have time, and can ignore entire
> irrelevant threads with a single command to advance to the next thread.

Indeed, that is in fact my method of choice for using this list.  All one
has to do is look at subject headers to asses interest and move on.  I
usually read everything I want to read and then delete the contents of the
folder.  

There are some drawbacks to this approach [or any client-based solution]
though, most notably if you have low size limits on your mail account or if
you access your mail remotely on a regular basis (ie. a traveller).  Sitting
in a hotel room waiting to communicate with Exchange (or worse POP3) becomes
rather burdensome when there are 1k+ unread messages in the Struts folder.
Overall, still the best approach, but I can definitely see why some people
might want to reduce volume.  However, I'm not big on the struts-newbie list
idea myself. 

-Chris

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




RE: JBoss-3.0.3_Tomcat4_1_12

2002-10-09 Thread Assenza, Chris

My struts app deploys fine with the distribution posted on JBoss' site;
however, my Jasper 2  or (perhaps JBoss' Catalina service) seems to be doing
some crazy things with my JSP pages.  

Apparently, custom tags nested within an iterator are being interpreted more
then once...in fact they're being interpreted exponentially within each
iteration...it's gruesome. =P

Bottom line is that I believe it might not be wise to jump to that
distribution of JBoss at this time.  JBoss-3.0.3_Tomcat4_0_5 seems to be
much stabler.   Although, kudos to the Tomcat folks, despite the possible
Jasper problems I've observed in my app, it is lightning fast!

Chris

-Original Message-
From: Theo Harper [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 6:07 PM
To: 'Struts Users Mailing List'
Subject: RE: JBoss-3.0.3_Tomcat4_1_12


Indeed it shouldn't, but for some reason whilst loading the
configuration from WEB-INF, JBoss/Tomcat decides to use the Digester
class loaded using the system class loader and not the web app's class
loader.  I walked through the deployment code and the class loader for
the Digester is null.  My class loader knowledge isn't great but I
assume this means the system class loader.

The fact that it works for James Mitchell, suggests there is probably
something really obvious wrong with my set-up, but I can't see it.

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]] 
Sent: 09 October 2002 22:52
To: Struts Users Mailing List
Subject: Re: JBoss-3.0.3_Tomcat4_1_12

It shouldn't matter.  That shouldn't even have a chance to affect a 
web-app -- that's in the server's private classloader path.

Theo Harper wrote:

>Do you have common-digester in
>jboss-3.0.3_tomcat-4.1.12/tomcat-4.1.x/server/lib/commons-digester.jar?
>
-- 
Eddie Bush




--
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: JBoss-3.0.3_Tomcat4_1_12 [typo correction]

2002-10-09 Thread Assenza, Chris

> my Jasper 2  or (perhaps JBoss' Catalina service) seems 
> to be doing some crazy things with my JSP pages.  

That should be "THE Jasper 2..." not "my Jasper 2."  Although it should be
obvious that is a typo, I didn't want anyone out there to assume that I had
been modifying Jasper or developing my own Catalina service for JBoss. ;-P

Chris

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




RE: Opinions: fine or coarse grained actions

2003-02-07 Thread Assenza, Chris
The new one on design patterns: 
http://www.amazon.com/exec/obidos/tg/detail/-/0321127420/qid=1044650306/sr=8
-1/ref=sr_8_1/104-1055391-3511918?v=glance&s=books&n=507846

Chris

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 3:37 PM
To: 'Struts Users Mailing List'
Subject: RE: Opinions: fine or coarse grained actions


Is that in "Refactoring: Improving the Design of Existing Code" or his
co-authored book on design patterns?

Mark

-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 07, 2003 3:12 PM

Personally, I liken the fine-grained Actions to what Fowler [1] calls 
"Transaction Scripts", and coarse-grained Actions to what Fowler calls 
"Domain Models".

In that latter case, the Domain Model is finely grained and so an Action 
can become more coarse.

-Ted.



-
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: Rendering alternate rows of a table in Struts

2003-02-07 Thread Assenza, Chris
Craig wrote: 

> * Tag files, which allow a page author to point at a chunk of
>   JSP code (which might itself have tag invocations insode) and
>   say, in effect, "treat this chunk of stuff as a custom tag".
>   Now, page authors can create and reuse presentation-ish stuff
>  just as easily as Java programmers can reuse classes.

Now THAT is cool. Really glad to hear that - I've got to start getting
up-to-date on some of the newer specs. :)

-Chris


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




RE: Rendering alternate rows of a table in Struts

2003-02-07 Thread Assenza, Chris
Indeed, JSP is starting to feel mature in many more ways. :)

Chris

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 3:54 PM
To: [EMAIL PROTECTED]
Subject: RE: Rendering alternate rows of a table in Struts


Cool!  JSP is catching up to ColdFusion's ease of use.  I'm a big CF fan but

there's really no need for it when we have free Java.

David

>You are correct that designing correct tags in JSP 1.1/1.2 isn't all that
>easy.  However, folks will *really* like what is coming up in JSP 2.0 in
>this area -- in particular two interesting features:
>
>* A new tag invocation protocol (SimpleTag) that is so simple :-)
>   you almost can't get it wrong -- a single method call to implement,
>   and no worries about tag pooling or instance reuse.
>
>* Tag files, which allow a page author to point at a chunk of
>   JSP code (which might itself have tag invocations insode) and
>   say, in effect, "treat this chunk of stuff as a custom tag".
>   Now, page authors can create and reuse presentation-ish stuff
>   just as easily as Java programmers can reuse classes.
>

>
>Craig


_
The new MSN 8: advanced junk mail 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]

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




RE: [OT - Java] Need a recommendation on a Design Pattern class

2003-02-11 Thread Assenza, Chris
The company that owns and runs TheServerSide.com seems to have some nice
offerings that should satisfy your needs, though I've never attended their
training so I can't vouch for it. :)

http://www.middleware-company.com/training/trainingIndex.shtml
http://www.middleware-company.com/training/schedule.shtml

Chris

-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 12:36 PM
To: [EMAIL PROTECTED]
Subject: [OT - Java] Need a recommendation on a Design Pattern class


Hi All,

Sorry for the OT post, but I need a recommendation from all you guru's out
there.  I've been asked to find a 3 to 5 day class on Design Patterns with a
Java slant.  If anyone has attended something like this, and can recommend
for (or against), I would appreciate it.  You can reply via the list or
directly to me.

TIA!

Jerry Jalenak
Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496
[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error, please
immediately notify LabOne at the following email address:
[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: [OT] Text editor usage (was RE: [OT]: What is vim?)

2003-03-03 Thread Assenza, Chris
If one were to make a value judgement such as "better" then one would
require a common basis for comparison.  I would be safe in assuming that not
everyone here is analyzing this question based on a common frame of
reference, in fact I bet we all have slightly different concepts of who or
what makes a better programmer.

Therefore, the first question to ask must instead be: "What does it mean to
be a good programmer?" or even: "What is a good programmer."  For argument's
sake, as part of our answer to that question we say that one trait of a good
programmer is thorough knowledge (or perhaps memorization) of a syntax.  If
that is true, then someone who uses a text editor is more likely to be
considered a better programmer.  

However, it can be argued that syntax memorization is not so all-important.
For example, there are many excellent writers and thinkers who cannot spell
worth a dime, yet they work with words all day long.  As such, the
programmer who uses an IDE may well be a "better" programmer in the sense
that A) the IDE supplements their knowledge of the syntax and B) separates
the programmer from a requirement to memorize syntax and instead allows them
to focus on what they're supposed to be doing: engineering software through
solid design principles, etc. 

Ultimately, I think the answer is completely subjective and depends wholly
on what one means by "better" programmer. Certainly someone who lives in an
IDE cannot jump into Textpad and be expected to be nearly as productive, but
that does not necessarily diminish their core aptitude as a programmer! 

All that being said, if you don't use Textpad you're a n00b! =)

-Chris

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
Sent: Monday, March 03, 2003 4:58 PM
To: Struts Users Mailing List
Subject: RE: [OT] Text editor usage (was RE: [OT]: What is vim?)


No. I very specifically said that the better programmers CAN use text
editors and command-line tools. This does not mean that they have to, only
that they COULD use them if they choose to. I now use the Eclipse IDE for
alot of my personal programming because it is like a text editor that wants
to be helpful. I like the wrappers that it gives me for the compiles and
junit tests, but that it keeps out of the way for the actual editing if I
don't invoke any of the "helpful" intelli-wotsits.

Simon

>-Original Message-
>From: Chen, Gin [mailto:[EMAIL PROTECTED]
>Sent: Monday, March 03, 2003 3:49 PM
>To: 'Struts Users Mailing List'
>Subject: RE: [OT] Text editor usage (was RE: [OT]: What is vim?)
>
>
>I think your confusing personal perference with programming skill.
>Thats like saying that Ted drink Sprite when most of the 
>better programmers
>drinks Mountain Dew.
>-Tim
>
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
>Sent: Monday, March 03, 2003 4:38 PM
>To: Struts Users Mailing List
>Subject: [OT] Text editor usage (was RE: [OT]: What is vim?)
>
>
>Actually, my primary point was text editor usage and 
>programmer ability.
>
>It is my personal observation that the better programmers use 
>text editors.
>(vi or emacs or jedit or vim ... I don't care ... that's not 
>the argument
>here). I'm not quite saying that IDEs are bad, although I'm certainly
>tempted to say that some days, but programmers who CAN program 
>with text
>editors and command-line tools are orders of magnitude better 
>than those who
>can't. You are more than welcome to tell me that you believe 
>this is not so,
>but I have observed it enough that, to me, it is a truism.
>
>Simon
>
>>-Original Message-
>>From: David Graham [mailto:[EMAIL PROTECTED]
>>Sent: Monday, March 03, 2003 2:56 PM
>>To: [EMAIL PROTECTED]
>>Subject: RE: [OT]: What is vim?
>>
>>
>>> >
>>> >VIM (vi) beats the hell out of EMACS, unless you are a LISP
>>> >weenie with a
>>> >masochistic bent.  And any non-dot-completion editor refines
>>> >your sense of
>>> >the API because it forces you to RTFM.
>>> >
>>> >Mark
>>
>>I use an ide and am referencing javadoc all the time anyways.  
>>I don't see 
>>any correlation between ide use and api ignorance.
>>
>>David
>>
>>
>>_
>>Add photos to your messages with MSN 8. Get 2 months FREE*.  
>>http://join.msn.com/?page=features/featuredemail
>>
>>
>>-
>>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,

RE: [OT] Contract Work: Going Rate?

2003-03-28 Thread Assenza, Chris
That's really over-generalized.  Those statistics cannot be so broadly
applied to the market. 100,000 available jobs in IT can mean anything from
network admins to programmers or perhaps help desk / customer-support
people.  I also think you'd need to compare the number of tangible
programming positions and their technology demands (like Java or .NET,
Cobol, HTML, etc.) to the available market of potential workers with the
appropriate experience and interest.  Not everyone is going to want to, or
be able to, switch careers and go bang their head against Cobol for IBM
Mainframes if their interest and expertise is J2EE; unless, they physically
-must- do so for their own survival.  In that case, it may be true, perhaps
they are not qualified. 

The bottom line is that you can only talk about qualification within the
context of a single given programming position (or a number of like
programming positions), not the IT sector as a whole.  It's irrelevant and
even a bit gauche. 

Chris

-Original Message-
From: Sterin, Ilya [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 1:34 PM
To: 'apachep2 '; ''Struts Users Mailing List' '
Subject: RE: [OT] Contract Work: Going Rate?


Not sure about why all are ranting about this economy, but there are more
than enough jobs available in IT.  It's qualifications what set the ones
with a job apart from the ones without.  There are still over 100,000
reported unfilled jobs in the IT sector, as well as if you go to
monster.com, jobs.perl.org, and many other sites, you'll see daily postings
of jobs.  So there are jobs, I guess the question is whether the developers
we are speaking of are qualified for those jobs.

Ilya

-Original Message-
From: apachep2
To: 'Struts Users Mailing List'
Sent: 3/28/03 7:50 AM
Subject: RE: [OT] Contract Work: Going Rate?

Have you guys ever think of a situation, when a developer loses his job
for a while, he will take whatever contract it is and being paid
whatever the employer will offer? In this economy condition, supply of
developers always exceeds demanding. I see seniors applying for an entry
level job.

-Original Message-
From: Sterin, Ilya [mailto:[EMAIL PROTECTED] 
Sent: March 28, 2003 9:04 AM
To: 'Andrew Hill '; 'Struts Users Mailing List '
Subject: RE: [OT] Contract Work: Going Rate?

I'm still not understanding why you are having problems believing those
rates?

Here, an average IT employee salary for full time staff employee, is
$30+/hour.  An employer, spends about another 20% on benefits, madical,
dental, etc...  So the employer, really faces about a $36-$40 average
expense on an employee.  Now, if this contract is say 1 year or less,
then
there is a drawback of having someone stay, when they are not needed
after
the work is done.

Now, $40 dollars, is just per employee expense.  Now, each employer has
to
pay FICA tax, for each on staff employee, which is about 15% more.  So
now
were are up to about the $50 round about figure per hour.  Lets see,
then
there is office expenses, etc... so the figure is getting higher and
higher
and that's just the average.

Now, an average rate for a contractor is about $50, which actually saves
the
company money, for outsourcing it, then also allows them to only be
billed
for hours as needed, so if one week there is a break, and no work is
done,
there is no bill, at least some of the time, since as we know,
consultants
always find ways to bill:-)

Now, getting to higher figures of say $75/hour-$150/hour, those are
usually
for expert consultants.  Say, I know people who've written books on the
subject, and they have the credibility to charge that much, etc...  Also
past experience, thorough knowledge of technology, being a core team
developer of this particular technology or similar ranking.  Also, most
of
those rates are for shorter term projects.

I hope this helps you understand this a bit better.  An averag
McDonald's
employee is costing the company about $25/hour, so if the burger flipper
was
smart, he or she would break a deal of $20/hour and call it a day:-)

Ilya


-Original Message-
From: Andrew Hill
To: Struts Users Mailing List
Sent: 3/27/03 9:02 PM
Subject: RE: [OT] Contract Work: Going Rate?

Half right. :-)

I guess low is a distinctly relative term. Especially when comparing
apples & oranges (or salary & contract) ;->.

Rates here may be low compared to US or UK contract rates (are they
really so high?  - still have trouble believing those figures!), but as
for those in India, Russia, etc... they would get a fraction of the
going rate here, and there are probably folk doing the same stuff
elsewhere who get even less. 

-Original Message-
From: Scott Barr [mailto:[EMAIL PROTECTED]
Sent: Friday, 28 March 2003 07:44
To: Struts Users Mailing List
Subject: RE: [OT] Contract Work: Going Rate?



Yeah, but we both (i think Andrew is an Aussie) live in Australia. Land
of low wages 

Scott
www.exergonic.com.au

On Fri, 2003-03-28 at 06:26, Sterin, Ilya 

RE: Flash+Struts how?

2003-01-28 Thread Assenza, Chris
I suspect the original poster was just having him/herself a little fun with
the list using an anonymous email account knowing its history with the
topic. In that case, while I hate to admit it, Mark's reply was probably
quite apropos. =p

-Chris

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 11:27 PM
To: Struts Users Mailing List
Subject: RE: Flash+Struts how?


Yes, it does seem a bit off form.
Normally any reference to the F word really gets him going.
Maybe he's a bit under the weather this week?

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 28 January 2003 04:02
To: Struts Users Mailing List
Subject: RE: Flash+Struts how?




>-Original Message-
>From: Eric Rizzo [mailto:[EMAIL PROTECTED]]
>Sent: Monday, January 27, 2003 1:09 PM
>To: Struts Users Mailing List
>Subject: Re: Flash+Struts how?
>
>
>Mark Galbreath wrote:
>> Only a weenie programmer would use Flash with Struts[...]
>
>Nice attitude. I hope I misunderstood that reply...

Actually, knowing Mark, that was one of his more restrained replies. He's
mellowing in his old age. ;-)



Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526

--
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: creating ear files

2002-04-24 Thread Assenza, Chris

If you're using any WebSphere before version 4 it does not support EAR
files. 

Chris

-Original Message-
From: Bhaskar Gopalan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 3:21 PM
To: Struts Group (E-mail)
Subject: creating ear files


Hi,
is there any tool to create a ear file? I tried 'jar cvf xyz.ear files' but
when I try
to import it into Websphere app server, it gives an error 
APPW0003E Chosen module or EAR file is not a valid file. 
APPW0004E Application install or modify bindings action for the chosen
application failed. 


Thnx,
Bhaskar

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: New Struts User

2001-09-26 Thread Assenza, Chris

You need a modified Struts.jar with some minor modifications to the Form
tag.
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg10964.html
(details)

http://www.enfused.com/struts.jar (modified jar)

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 26, 2001 1:32 PM
To: [EMAIL PROTECTED]
Subject: New Struts User


Hi,

I am trying to use Struts and have not been able to make it work in my
environment.  I am running Visual Age for Java 3.5.3 (JSP 1.1 & Servlet
2.2).  I followed the instructions for setup and have double checked them.
I am getting the following error in my browser when I invoke a jsp.  I was
hoping someone might have a clue as to where the problem might be OR where
I might look to find more info.

Error 500
An error has occured while processing
request:http://localhost:8080/employeelist/jsp/employeeSearch.jsp
Message: Server caught unhandled exception from servlet [jsp]: cant remove
Attributes from request scope

Target Servlet: jsp
StackTrace:


Root Error-1: cant remove Attributes from request scope

java.lang.IllegalArgumentException: cant remove Attributes from request
scope
 java.lang.Throwable(java.lang.String)
 java.lang.Exception(java.lang.String)
 java.lang.RuntimeException(java.lang.String)
 java.lang.IllegalArgumentException(java.lang.String)
 void
org.apache.jasper.runtime.PageContextImpl.removeAttribute(java.lang.String,
int)
 int org.apache.struts.taglib.html.FormTag.doEndTag()
 void
jsp._employeeSearch_xjsp._jspService(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
 .(more)

I've traced the generated java code for the jsp and the exception happens at
the doEndTag() method (as the stack trace shows above) for the
 tag.
The simple jsp I'm invoking is shown below.

<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>



Name: 
Find All: 


http://localhost:8080/employeelist/jsp/employeeEdit.jsp";>Add an
Employee


The action servlet shouldn't even be invoked yet since I'm calling the jsp
and it won't even display.  I'm sure it's something simple but I can't find
it.  Does this mean anything to anyone?  I've been struggling with this for
a while and am out of ideas.

Thanks,
Ken





---
This message and any included attachments are from Siemens Medical Solutions

Health Services Corporation and are intended only for the addressee(s).  
The information contained herein may include trade secrets or privileged or 
otherwise confidential information.  Unauthorized review, forwarding,
printing, 
copying, distributing, or using such information is strictly prohibited and
may 
be unlawful.  If you received this message in error, or have reason to
believe 
you are not authorized to receive it, please promptly delete this message
and 
notify the sender by e-mail with a copy to [EMAIL PROTECTED]  Thank you



RE: Support of Struts in IBM Websphere 4.0

2001-10-01 Thread Assenza, Chris



This 
is true! :) Not sure what they'd be patching it outside of upgrading their 
servlet spec to take care of an un-patched form tag. 
 
Chris
 
Christopher Assenza Phone:  412.201.6026 Fax: 412.201.6060 Email:  [EMAIL PROTECTED] ACCESSDATA 
Moving Your Business from Point A to Point 
e.SM 
http://www.accessdc.com/ 

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, October 01, 2001 1:39 
  PMTo: [EMAIL PROTECTED]Subject: Re: Support 
  of Struts in IBM Websphere 4.0Scott, I and a number of others are 
  already using Struts (1.0) in WAS 4.0.0 and it works fine. Here to 
  help, Stephen :-{) Stephen Brand Software Architect 
  [EMAIL PROTECTED] 


RE: Support of Struts in IBM Websphere 4.0

2001-10-01 Thread Assenza, Chris

Make sure you use the modified struts jar from
http://www.enfused.com/struts.jar

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: Scott Ryan [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 01, 2001 3:48 PM
To: [EMAIL PROTECTED]
Subject: Re: Support of Struts in IBM Websphere 4.0


Thanks.  We will give it another try.

Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044

>>> [EMAIL PROTECTED] 10/01/01 11:39AM >>>
Scott,

I and a number of others are already using Struts (1.0) in WAS 4.0.0
and it 
works fine.

Here to help,
Stephen :-{)

Stephen Brand
Software Architect
[EMAIL PROTECTED] 



RE: Support of Struts in IBM Websphere 4.0

2001-10-01 Thread Assenza, Chris

Well that's your call. The changes to the form tag are very minor at best,
and I don't really see the them having any significant negative impact for
most projects, but yours may be that unfortunate exception.  

If it makes you uneasy or annoyed (which the later does me), then I
recommend contacting IBM and getting on their case...repeatedly. ;) 

Best,

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: Scott Ryan [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 01, 2001 4:52 PM
To: [EMAIL PROTECTED]
Subject: RE: Support of Struts in IBM Websphere 4.0


Chris,
Now I am confused.  I am trying to get away from having to use a
modified struts jar.  The reason the jar needs to be modified is because
IBM has a problem with their implementation of Jasper.  I saw in an
email on this forum that IBM had comitted to fix this problem but did
not commit to a timeframe.  I would like to be able to use the latest
struts build without having to modify the code because the modification
causes other problems.

Thanks for your feedback

Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044

>>> [EMAIL PROTECTED] 10/01/01 01:45PM >>>
Make sure you use the modified struts jar from
http://www.enfused.com/struts.jar 

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED] 
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/ 



-Original Message-
From: Scott Ryan [mailto:[EMAIL PROTECTED]] 
Sent: Monday, October 01, 2001 3:48 PM
To: [EMAIL PROTECTED] 
Subject: Re: Support of Struts in IBM Websphere 4.0


Thanks.  We will give it another try.

Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044

>>> [EMAIL PROTECTED] 10/01/01 11:39AM >>>
Scott,

I and a number of others are already using Struts (1.0) in WAS 4.0.0
and it 
works fine.

Here to help,
Stephen :-{)

Stephen Brand
Software Architect
[EMAIL PROTECTED] 



RE:

2001-10-02 Thread Assenza, Chris

Martin,

All browsers supporting HTML 3.2 should support this attribute, the
constants that can be used as valid values differs with browser version
although the 4.x and up support is pretty consistent. 

However, one thing to note is that it only works with input where type =
"image" It is ignored with all other input types. :)

Chris

(sample code: quick, ugly, not to spec, but functional)


Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph

Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph


Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 30, 2001 10:06 PM
To: [EMAIL PROTECTED]
Subject: Re: 


I made the code changes for this, and was testing to make sure it worked. It
didn't. So I went back to basics, and tried out the 'align' attribute with
the  element in plain HTML, using 'left', 'middle' and
'right' values. That didn't work either. As far as I can tell, IE 5.5,
Navigator 4.7, and Opera 5.12 all ignore the 'align' attribute when it is
applied to a text input element.

Can someone tell me which browser(s) supports this, so that I have a way of
testing the changes? I'd be surprised if newer versions of the browsers I
tried have introduced support for a deprecated attribute, but stranger
things have happened. :-)

Thanks!

--
Martin Cooper


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 23, 2001 11:26 AM
Subject: Re: 


> Interestingly, in the HTML 4.01 Transitional DTD, the type of the 'align'
> attribute on the  tag is 'IAlign'. This is the alignment type
> specified for images, so it would seem that it wasn't intended to be used
> for text. However, if browsers know what to do with it for text, and
people
> want to be able to use it that way, I have no problem with that.
>
> David, could you please submit a bug report for this in bugzilla
> (http://nagoya.apache.org/bugzilla/), to make sure we don't lose track of
> it? Thanks.
>
> --
> Martin Cooper
>
>
> - Original Message -
> From: "Ted Husted" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, September 23, 2001 6:32 AM
> Subject: Re: 
>
>
> > It seems to have been in HTML specification since at least 3.2 - I'm not
> > sure why we didn't include it. I'm also not seeing anything in the
> > archives :~|
> >
> > [EMAIL PROTECTED] wrote:
> > >
> > > My guess is because the 'align' attribute is not part of XHTML, and is
> also
> > > not in the HTML 4 Strict DTD. But it might just be an oversight. :-}
> > >
> > > --
> > > Martin Cooper
> > >
> > > - Original Message -
> > > From: "David Corbin" <[EMAIL PROTECTED]>
> > > To: "Struts User" <[EMAIL PROTECTED]>
> > > Sent: Friday, September 21, 2001 1:33 PM
> > > Subject: 
> > >
> > > > Is there any reason that html:text doesn't support the align
> attribute?
> > > >
>
>




RE:

2001-10-02 Thread Assenza, Chris

I'm sure you're seeing something, but I suspect it is a browser thing. The
align attribute is not even a valid attribute for text input tags! In HTML
3.2 it's for type="image". In 4.0+ it's deprecated.

Browser to spec inconsistencies wouldn't be a first and if it works with
only "right" that's an even bigger clue. It should be completely ignored
outside of image types.  

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: David Corbin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 02, 2001 2:34 PM
To: [EMAIL PROTECTED]
Subject: Re: 


That's not true.  It works with type=text just fine fore me...at least,
align="right".
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 02, 2001 12:41 PM
Subject: Re: 


> > However, one thing to note is that it only works with input where type =
> > "image" It is ignored with all other input types. :)
>
> This is what I inferred from the spec, and demonstrated to myself with a
> quick test. However, this thread started with the implication that it
worked
> for text elements, and so should be added to the Struts  tag. I
> guess I'll back out the changes I made...
>
> Thanks!
>
> --
> Martin Cooper
>
>
> - Original Message -
> From: "Assenza, Chris" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 02, 2001 8:09 AM
> Subject: RE: 
>
>
> > Martin,
> >
> > All browsers supporting HTML 3.2 should support this attribute, the
> > constants that can be used as valid values differs with browser version
> > although the 4.x and up support is pretty consistent.
> >
> > However, one thing to note is that it only works with input where type =
> > "image" It is ignored with all other input types. :)
> >
> > Chris
> >
> > (sample code: quick, ugly, not to spec, but functional)
> >
> > 
> > Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
> > Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
> > Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
> > Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
> > Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
> > Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
> > Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
> > Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
> > Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
> > Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
> > Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
> >  > height="20">
> > Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
> > Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
> > Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
> > Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
> > Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
> > Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
> > Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
> > Paragraph Paragraph Paragraph Paragraph Paragraph Paragraph
> > 
> >
> > Christopher Assenza
> > Phone: 412.201.6026
> > Fax: 412.201.6060
> > Email: [EMAIL PROTECTED]
> > ACCESSDATA
> > Moving Your Business from Point A to Point e.SM
> > http://www.accessdc.com/
> >
> >
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, September 30, 2001 10:06 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: 
> >
> >
> > I made the code changes for this, and was testing to make sure it
worked.
> It
> > didn't. So I went back to basics, and tried out the 'align' attribute
with
> > the  element in plain HTML, using 'left', 'middle'
and
> > 'right' values. That didn't work either. As far as I can tell, IE 5.5,
> > Navigator 4.7, and Opera 5.12 all ignore the 'align' attribute when it
is
> > applied to a text input element.
> >
> > Can someone tell me which browser(s) supports this, so that I have a way
> of
> > testing the changes? I'd be surprised if newer versions of the browsers
I
> > tried have introduced support for a deprecated attribute, but stranger
> > things have happened. :-)
> >
> &g

RE: Bug in Struts Template

2001-10-03 Thread Assenza, Chris

In WebSphere you *must* use the flush attr. :)

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: Minh Tran [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 03, 2001 1:35 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Bug in Struts Template


I am using Websphere Application Server 4.0

Let met try the flush.. hopefully it will work..

thanks,
Minh

> -Original Message-
> From: Cedric Dumoulin [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, October 03, 2001 1:17 AM
> To:   [EMAIL PROTECTED]
> Subject:  Re: Bug in Struts Template
> 
>   Hi,
> 
>   It is a bug from your web container, not from Templates lib.
>   Which web Container do you use ?
>   You can bypass this problem by adding flush="true" in all your 
> tags
> (i.e. : )
> 
> Cedric
> 
> 
> Minh Tran wrote:
> 
> > Hi,
> >
> > can someone please let me know if there is a known bug with the struts
> > template libs.. on how it produces html code...  notice in the html
> output
> > below has the  structure defined in the template at the end with
> all
> > of the dynamic data printed ahead of it...  there is definitely
> something
> > wrong.. the data should be within the template structure defined..
> >
> > I know this has to be a known bug.. since it's too big of a bug to not
> be
> > known...
> >
> > also.. could you please let me know how to fix it..
> >
> > Thanks,
> > Minh
> >
> > Topics
> >   
> > 
> > Introduction 
> >
> > 
> > Using Templates 
> >
> > 
> > Optional Content 
> > 
> > ... and more ...
> >   
> >
> > 
> >
> >   
> >   
> >
> > 
> > This example application is based on  >
> href="http://www.javaworld.com/javaworld/jw-09-2000/jw-0915-jspweb_p.html";
> >U
> > sing JSP templates to encapsulate Webpage layout and encourage modular
> > design by David Geary. Follow that link for the full article, which
> also
> > covers using role-based and nested templates. The template classes
> described
> > in the Java World article were the basis for those included with Struts
> > 1.0.
> > Introduction
> > Window toolkits typically provide a layout
> mechanism
> > that positions widgets in a container; for example, AWT and Swing have
> > layout managers, whereas VisualWorks Smalltalk has wrappers.
> > Because layout undergoes many changes over the
> course
> > of development, it's important to encapsulate that functionality so
> layout
> > can be modified with minimal impact to the rest of the application. In
> fact,
> > layout managers are an example of one of the tenets of object-oriented
> > design: encapsulate the concept that varies, which is also a fundamental
> > theme for many design patterns.
> > JSP does not provide direct support for
> encapsulating
> > layout, so web pages with identical formats usually replicate layout
> code;
> > for example, A Web Page Layout shows a web page containing
> sections
> > for a header, footer, sidebar, and main content.
> > The layout of the page shown in A Web Page
> > Layout is implemented with HTML table tags, as listed in Including
> > Content.
> > 
> > Including Content
> > 
> > Templates
> > 
> > 
> > 
> > 
> > 
> >  
> > 
page='sidebar.jsp'/> > > > > > > > >
> >
> > > > In Including Content, content is included with > > which allows content to vary without modifying HTML; > > however, because the layout is hardcoded, layout changes require > > modifications to the page. If a website has many pages with identical > > formats, even simple layout changes require modifications to all of the > > pages. > > Using A Template > > > > > > <%@ taglib URI='/WEB-INF/struts-template.tld' prefix='template' > %> > > > > > > > > > > > > > > > > > > > > To minimize the impact of layout changes, a > mechanism > > is needed for dynamically including layout in addition to content. That > way, > > both layout and content can be changed without modifying files that use > > them. For large websites that have many pages with identical formats, > such a > > mechanism is valuable because it localizes changes to layout. That > mechanism > > is JSP templates. > >

RE: OS / Browser tag?

2001-10-04 Thread Assenza, Chris

I have something written that will do the server-side browser detection,
etc. but not a tag for it. It's actually an adaptation of a nice PHP-based
script that I stumbled on a while back. :) It'd be a great idea for a tag
though - go for it! :) 

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 03, 2001 4:59 PM
To: [EMAIL PROTECTED]
Subject: Re: OS / Browser tag?




Sorry, maybe that wasn't clear!

I am basically looking for an IF tag which utilises the OS and/or the
browser
that the client is running on.

eg IF Unix and Netscape THEN
would be 
  //do something

and the tag would automatically check for current client os and browser.

Hope that's clearer!

Cheers,

Dave





"David_Hay/Lex/Lexmark.LEXMARK"@sweeper.lex.lexmark.com on 10/03/2001
04:17:59
PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  OS / Browser tag?





Hi everyone.

Just wondering if anyone has written a tag to do something specific to OS or
Browser?

I'm probably going to write my own if no-one else has already done it!

Cheers,

Dave










RE: struts1.0 and VAJ3.5.4

2001-10-04 Thread Assenza, Chris

Check out:
http://www7.software.ibm.com/vad.nsf/data/document2558?OpenDocument&p=1&BCT

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: Loka, Murlidhar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 11:04 AM
To: '[EMAIL PROTECTED]'
Subject: struts1.0 and VAJ3.5.4


I am trying to setup struts and vaj3.5.4  in WinNT.
Has anyone setup the WTE and if so - can I please get guidance to do the
same my end?

Thanks in advance.
Murlidhar.


This e-mail and any attachments may contain confidential and privileged
information. If you are not the intended recipient, please notify the sender
immediately by return e-mail, delete this e-mail and destroy any copies. Any
dissemination or use of this information by a person other than the intended
recipient is unauthorized and may be illegal. Unless otherwise stated,
opinions expressed in this e-mail are those of the author and are not
endorsed by the author's employer.




RE: struts.net?

2001-12-13 Thread Assenza, Chris

Lol, I love .NET.  

You really don't need Struts with ASP.NET, it already has the core
functionality that Struts aims to provide as part of its native
architecture.  Obviously it's a different approach and people will argue ad
infinitum whether or not it's better or worse; or, if Java rules and ASP
drools, etc. etc. 

-Chris

Christopher Assenza
Email:  [EMAIL PROTECTED]
ACCESSDATA
http://www.accessdc.com/



-Original Message-
From: Knee, Jeff [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 4:53 PM
To: 'Struts Users Mailing List'
Subject: RE: struts.net?


Oh boy!  Did I just hear someone yell "fire" in a movie theater full of
firemen?!?

Hopefully, the majority of the firemen will remain calm and we won't see
Peter get crushed to death but firemen trying to (constructively or not)
help Peter see "the light."

(Apache.org seems to me to be quite happy in the J2EE model.)

+= Jeff Knee

> -Original Message-
> From: Peter Bismuti [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 14, 2001 4:26 AM
> To: [EMAIL PROTECTED]
> Subject: struts.net?
> 
> 
> Has anyone ported or considered porting struts to asp.net?  Before you
> respond with something like "f@#* ASP.NET!", just consider 
> that some have no
> choice in the matter.
> 
> THAnks
> 
> --
> 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: DHTML Menus and Form Objects

2002-03-06 Thread Assenza, Chris

To the best of my knowledge there is no workaround, it's a "feature" of
today's browsers. No amount of finagling z-indexes is going to help.  

A viable option that Microsoft implemented was to hide (as in hide the
layer) the select boxes whenever a menu came in contact with one, then to
unhide it when the menu was gone.  It's a little more trouble then it is
worth to implement and not the most reliable of solutions.

Just another reason not to use drop-downs on a web page actually. 
This stupid bug has been a thorn in my side before. :\  Shame really,
drop-downs nice for application development. 

Here's a link to one guys experience with this back in IE4 days. 
http://www.wdvl.com/Authoring/DHTML/Menus/des.html

-Chris Assenza

-Original Message-
From: John M. Corro [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 10:37 AM
To: [EMAIL PROTECTED]
Subject: OT: DHTML Menus and Form Objects


This is off topic from Struts, but I was wondering if anyone else has run
into this

If you have one of those DHTML/JS pulldown menus, it'll get hidden behind
specific types of form objects (mostly select boxes).  I've scoured google
to see how to get around this and the only posts I've seen (that don't say
"you're SOL" - which is most of them) that have any constructive input say
to surround the form object w/ a div tag and to set the z-index property to
something very low, then to set your DHTML/JS menu to something very high.
The idea being that the form objects are assigned a lower z index than the
menu so the menu should display over all the form object elements.  

I've tried that w/ the following statement:  and
wasn't able to get it to work.  I've tried surrounding the entire form and
just the offending form element, but neither way has worked.  Has anyone
been able to effectively make this type of workaround work?

I'm using HierMenus from www.dhtml.com on a W2k box w/ IE 5.

John M. Corro
Cornerstone Consulting
414.212.3500

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




RE: Struts Questions

2001-06-12 Thread Assenza, Chris

We are doing so right now - all we had to do was create an additional class
that has all the getters/setters of the ActionForm for a particular screen
or set of screens.  Then call all the sets from the Action and pass the
object along to the EJB. That's it. :) No tangible performance loss/gain.

(BTW, any better ways of doing this for future reference?) :)

Chris

-Original Message-
From: George, Carl [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 1:14 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Struts Questions


Yes, I've done this.  Difficult is a relative term.  If you know ejb and you
know struts, no it's not difficult.  

-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 11:42 AM
To: [EMAIL PROTECTED]
Subject: Struts Questions


Has anyone implemented Struts with EJBs for business logic.  If so, was it
difficult?  Also, does anyone know of any performance statistics for Struts?
 
Thanks,
 
Matt



RE: Struts Questions

2001-06-12 Thread Assenza, Chris

I agree - very true - but we did not use entity beans (we've found them to
be slow in the past and the data we're working with doesn't really fit the
"entity bean mold" so to speak) -- only session beans taking advantage of
JDBC, etc.  :(

Some of our tables have over 90 columns, thus having our own object made
sense from a re-usability perspective.  I guess we could have put
getters/setters on the bean itself - but we use the data objects elsewhere,
so it has been useful too. :)

Chris

-Original Message-
From: George, Carl [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 1:34 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Struts Questions


I think there is a better way, we just call the ejb from the action servlet
and fill in the appropriate data.  The best architect for entity beans is to
have session beans in front of them anyway, so any methods you need you put
in a session bean, and call with the appropriate fields.

-Original Message-
From: Assenza, Chris [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 1:27 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Struts Questions


We are doing so right now - all we had to do was create an additional class
that has all the getters/setters of the ActionForm for a particular screen
or set of screens.  Then call all the sets from the Action and pass the
object along to the EJB. That's it. :) No tangible performance loss/gain.

(BTW, any better ways of doing this for future reference?) :)

Chris

-Original Message-
From: George, Carl [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 1:14 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Struts Questions


Yes, I've done this.  Difficult is a relative term.  If you know ejb and you
know struts, no it's not difficult.  

-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 11:42 AM
To: [EMAIL PROTECTED]
Subject: Struts Questions


Has anyone implemented Struts with EJBs for business logic.  If so, was it
difficult?  Also, does anyone know of any performance statistics for Struts?
 
Thanks,
 
Matt



RE: WebSphere, Jasper and Struts 1.0b3

2001-06-15 Thread Assenza, Chris

I completely agree Dan.

Chris
-Original Message-
From: Dan Miser [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 15, 2001 11:42 AM
To: [EMAIL PROTECTED]
Subject: Re: WebSphere, Jasper and Struts 1.0b3


Kyle,

While I appreciate the magnitude of the R&D on WAS/VAJ, I also think IBM has
been the worst offender in adopting and conforming to standards. Issues such
as the one you raise below could have been minimized by having dependency
documents, or architecting the system in a more self-contained manner, such
that only a specific sub-system of WAS needs version x of xerces, or there
is a very well-documeted reason for needing a different version.

I don't expect IBM to run and update WAS/VAJ for every nightly CVS release
of things like Tomcat, but I do expect that a serious effort would be made
to integrate the latest stable/release build when IBM releases an update.
Look at the mess this Tomcat fiasco made, along with things like
JAXP/Xerces. And if provisions can't be made to update the install, at the
*very* least, there should be some sort of instruction for those that want
to run on stable versions.

Anyways, I know you have nothing to do with this, but if you want to pass it
on, that's fine by me.
--
Dan Miser
http://www.distribucon.com

- Original Message -
From: "Kyle Brown" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 13, 2001 1:28 PM
Subject: RE: WebSphere, Jasper and Struts 1.0b3


> I can't speak officially for IBM on this, but the short answer is testing.
> Building an application server is an enormous undertaking.  The
application
> servers themselves are some of the biggest Java applications on the
planet.
> We're easily talking about close to a million lines of code.  As such they
> have enormous test suites and enormous testing requirements -- especially
> since everyone wants the application servers to work "just right" for
THEIR
> apps.   All this testing entails manpower requirements, and even a company
> as big as IBM can only afford to spend so much on testing...
>
> Every change to a core feature (like the JSP compiler) has ramifications
> all the way up and down the product.  For instance, suppose that this
> particular build of Jasper requires a particular build of Xerces -- well,
> multiple other parts of the system depended on the LAST build of Xerces,
> and the new build just changes one or two minor things...  you get the
> picture.  This is the reason why these decisions aren't made lightly, and
> only come at fixed intervals.




RE: [ANNOUNCEMENT] Struts 1.0 (Final) Released

2001-06-18 Thread Assenza, Chris

Craig et. al -- congratulations and thank you. I hope when I get some free
time I can help out on a project like this one. It is an excellent piece of
work and a darn fine help. :)

Chris Assenza

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 15, 2001 9:09 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [ANNOUNCEMENT] Struts 1.0 (Final) Released




On Fri, 15 Jun 2001, Jason Chaffee wrote:

> Hey Craig,
> 
> Will the documentation be updated anytime soon?
> 

Which docs in particular are you thinking about?  I updated the Jakarta
web site with the most current information immediately prior to sending
the announcement.

Craig


> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 15, 2001 5:23 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
> [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: [ANNOUNCEMENT] Struts 1.0 (Final) Released
> 
> 
> As promised at JavaOne, the Struts project team is proud to announce the
> availability of Version 1.0 (final release) of the Struts Framework.  The
> binary distribution is available at:
> 
>   http://jakarta.apache.org/builds/jakarta-struts/release/v1.0/
> 
> and the source distribution is available at:
> 
>   http://jakarta.apache.org/builds/jakarta-struts/release/v1.0/src/
> 
> 
> Craig McClanahan
> 



RE: table tag

2001-06-19 Thread Assenza, Chris

I've been half working on it conceptually, but there's nothing to show for
it - I never get time to implement it. :(  So I'd be interested too. :)

Chris


-Original Message-
From: Charles Baker [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 19, 2001 9:07 AM
To: [EMAIL PROTECTED]
Subject: table tag


Hello,
Has anyone done any work with a table custom tag that can pull
directly 
from a TableModel class? The need for this stems from the fact that my table

columns are potentially dynamic both in number and content.

CEB

_
Get your FREE download of MSN Explorer at http://explorer.msn.com



RE: java report article says "bye-bye struts"

2001-06-19 Thread Assenza, Chris

To be honest, personally I like nothing more then Textpad and maybe Forte
(free) for debugging.  :)

Chris

-Original Message-
From: Bill G [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 19, 2001 4:40 PM
To: [EMAIL PROTECTED]
Subject: RE: java report article says "bye-bye struts"


Hi John,

Your forgiven, Thanks!

Somewhat off topic but - I'm in the process of buying/deciding which
development tool to purchase, I am down to Borland Studio and WebGain
Studio. Any opinions on this with regard to Struts and EJB's. I am a one man
shop with finite resources.

Email me directly if you think this in not relevant to this list.

Thanks,
BG...

-Original Message-
From: Hogan, John [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 19, 2001 1:02 PM
To: '[EMAIL PROTECTED]'
Subject: RE: java report article says "bye-bye struts"


Oops, sorry Bill.  I missed the quotes and attributed the "Struts is not
ready to take on EJB" to you.  Please forgive me.  I should have read
closer, but just found the quote so pompous and uninformed I couldn't
resist.

JohnH

-Original Message-
From: Bill G [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 19, 2001 3:19 PM
To: [EMAIL PROTECTED]
Subject: RE: java report article says "bye-bye struts"


what are you talking about, do you have anything of value to add?

-Original Message-
From: Hogan, John [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 19, 2001 6:09 AM
To: '[EMAIL PROTECTED]'
Subject: RE: java report article says "bye-bye struts"


wasn't it nicer under that rock?

-Original Message-
From: Bill G [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 5:04 PM
To: [EMAIL PROTECTED]
Subject: RE: java report article says "bye-bye struts"


Hi Craig,

"Although excellent in dealing with Web-based applications, Struts is not
ready to take on EJB."

This is a concern of mine as well but as a newbie to this technology, I am
wondering how to adopt the Struts framework knowing that I will move to
EJB's. Is it worth starting with Struts with the idea of moving to EJB's or
what? Any info on this matter is seriously appreciated!

Thanks
BG...



-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 11:14 AM
To: '[EMAIL PROTECTED]'
Subject: RE: java report article says "bye-bye struts"




On Mon, 18 Jun 2001, Ritter, Steve wrote:

> Hi Hal, yeah I read the same article and couldn't help but laugh.
> Prashant really made some outlandish comments and hopefully those
> comments will diminish any negative impact his article might have on
> Struts (or, the adoption of Struts I should say).
>
> Craig, if you read this thread it might not be a bad idea to send a
> quick email to the editor's of Java Report and let them know about
> some of the mis-leading statements.  Sounds like their review board
> needs a little re-org.
>

Looks like I'll have to go buy a copy -- I don't pay a lot of attention to
trade magazines in print, because production cycles make them so far out
of date.

Judging from the many thank-you's I've received for the 1.0 final
release, I wouldn't worry to much about negative impact on Struts
adoption.  :-)

> --Steve
>

Craig

> > -Original Message-
> > From: Deadman, Hal [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, June 18, 2001 7:52 AM
> > To: 'Struts List'
> > Subject: java report article says "bye-bye struts"
> >
> >
> > Clearly there are too many java magazines and they will
> > publish anything. In
> > the July issue of Java Report there is an article titled
> > "Writing a Reusable
> > Implementation of the MVC Design Pattern" by Prashant Sarode
> > from Brience.
> > It's interesting because it has a section title of "Bye-Bye
> > Struts". The
> > section starts out as follows:
> >
> > "While the Struts framework is a powerful idea, it is not yet
> > a product.
> > Although excellent in dealing with Web-based applications,
> > Struts is not
> > ready to take on EJB."
> >
> > There are other gems in the article but I won't reproduce
> > them all here.
> >
> > The premise of the article is that the author went looking for an MVC
> > framework. He found the Blueprint document and liked that but
> > it was too
> > complicated. He then found Struts but apparently it didn't
> > meet his need for
> > "a reusable implementation of the MVC pattern." Prashant must
> > be a hard man
> > to please. I think he wants one framework that can be used
> > for both web
> > applications and desktop applications. Personally I would
> > rather share the
> > model components and let my MVC framworks be a little less
> > abstract and more
> > useful to the task at hand.
> >
> > I couldn't find the article on-line. I just skimmed the rest
> > of the article
> > because it it was hard to concentrate or take it seriously
> > after the Bye-Bye
> > Struts section.
> >
> > Hal
> >
>



RE: Contribution: 1) IF, AND, OR, THEN, ELSE, ELSEIF tags 2) SWITCH, CASE, DEFAULT tags

2001-06-25 Thread Assenza, Chris

Lol! I was just sitting here friday complaining "Darn I wish Struts' logic
tags supported OR and ELSE! :D 

Thanks!

Chris

>  -Original Message-
> From: Niall Pemberton [mailto:[EMAIL PROTECTED]] 
> Sent: Sunday, June 24, 2001 4:28 PM
> To:   [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject:  Contribution: 1)  IF, AND, OR, THEN, ELSE, ELSEIF tags  2)
SWITCH, CASE, DEFAULT tags
> 
> Hi,
> 
> I have extended the IF, THEN, ELSE functionality I posted a while ago to
now include AND, OR and ELSEIF tags. I have also added an enhacement to the
original CASE tag which now allows an operator as well as value to be
specified.
> 
> I attach the source code for these tags and would like to propose them to
be considered for inclusion in Struts. If you agree with including them in
Struts, then send some feedback to the development list
([EMAIL PROTECTED]).
> 
> 1) Tags which make up the IF/ELSE logic are:
> 
>IfTag
>AndTag
>OrTag
>ThenTag
>ElseTag
>ElseifTag
> 
> 2) Tags which make up the SWITCH/CASE logic are:
> 
>SwitchTag
>CaseTag
>DefaultTag
> 
> These tags use the same Struts base tags which the existing logic tags use
and are effectively just new "wrappers" to provide IF/ELSE and SWITCH/CASE
functionality.
> 
> The IfTag, AndTag, OrTag and ElseifTag provides the same functionality as
the existing Struts logic tags (e.g. EqualTag etc) by specifying an operator
(e.g. op="equal") attribute. Valid operator values are:  Equal, NotEqual,
LessEqual, LessThan, GreaterThan, GreaterEqual, Match. NoMatch, Present,
NotPresent
> 
> The CaseTag also uses an operator attribute and can have the following
values:  Equal, NotEqual, LessEqual, LessThan, GreaterThan, GreaterEqual
> 
> Its obvious that trying to specify complex conditional logic in an XML
format is never going to have the same clarity as a programming language, so
I hope you bear that in mind when seeing how these tags achieve that.
> 
> Using the IF/ELSE TAGS
> -
> I have included a few examples below to demonstrate how to use the tags
and I also try document the key points when laying out these tags:
> 
> How the tags are ordered and embedded in each other is important:
> 
> 1) The first tag must be an IfTag which encloses all other tags
> 2) AndTags and OrTags must be embedded after an IfTag or ElseIfTag and
before the ThenTag and ElseTag.
> 3) AndTags can only have OrTags embedded in them
> 4) OrTags can only have AndTags embedded in them
> 5) You can't mix and match AndTags and OrTags at the SAME level - must be
all AndTags or all OrTags
> 
> 
> Niall
> 
>  << File: amarda-logic.tld >>  << File: logic-src.jar >> 
> 
> 
> **
> Example 1 - IF, OR, THEN, ELSE
> 
> 
> 
> 
> 
>
>  At least one of the above conditions is true. 
>
> 
>
>  All of Above conditions are false 
>   
> 
>
> 
> **
> Example 2 - IF, AND, OR, THEN, ELSE, ELSEIF
> 
> 
> 
>
>  No details found for this Person 
>
> 
>
>   
>  
> 
>> 
>
> 
>  
>  
>  
>  
> 
>  
> This person is of working age - that is between the ages of 16
and 65, 
> except for Doctors, Dentists and Lawyers who retire at 55 
> and presidents and senators who can be any age over 16. 
>  
> 
>  
> This person is either too young to work or past retirement
age. 
>  
> 
>   
> 
>
> 
> 
> **
> Example 3 - - IF, OR, THEN, ELSE, ELSEIF
> 
> 
> 
>
>
> 
>
>  This if the first quarter of the year. 
>
> 
>
>   
>   
> 
>   
> This if the second quarter of the year. 
>   
> 
>   
>  
>  
> 
>  
>This if the third quarter of the year. 
>  
> 
>  
>This if the fourth quarter of the year. 
>  
> 
>   
> 
>
> 
>
> 
> **
> Example 4 - SWITCH, CASE, DEFAULT
> 
> 
>
> 
>   Value is 1
> 
>   Value is 2 to
10
> 
>   Value is 11 to
100
> 
>   Value is greater than
1000
> 
>   Value is 101 to 1000
> 
>
> 
> 
> 
> 



RE: Problem loading DATABASE: org.xml.sax.SAXException

2001-06-25 Thread Assenza, Chris

Have you placed Jaxp 1.0.1 (not 1.1.1)  jar's in the servlets directory
before firing up the server? 

Chris

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, June 25, 2001 9:18 AM
To: [EMAIL PROTECTED]
Subject: Problem loading DATABASE: org.xml.sax.SAXException




Hello!

I am using STRUTS with WEBSPHERE 3.5.3.
I try to use the STRUTS EXAMPLE.

When I start the Default Server via the Admin Console, I have the following
exception:

22/06/01 14:19 : AUDIT [uc2902/Default Server]: SRVE0091I: [Servlet LOG]:
"database: Initializing database servlet"
22/06/01 14:19 : AUDIT [uc2902/Default Server]: SRVE0091I: [Servlet LOG]:
"database: Loading database from '/WEB-INF/database.xml'"
22/06/01 14:19 : AUDIT [uc2902/Default Server]: SRVE0092I: [Servlet LOG]:
"database: Database load exception": org.xml.sax.SAXException:
org.apache.struts.webapp.example.User
 at com.sun.xml.parser.Parser.parseInternal(Parser.java:461)
 at com.sun.xml.parser.Parser.parse(Parser.java:284)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:77)
 at org.apache.struts.digester.Digester.parse(Digester.java:755)
 at
org.apache.struts.webapp.example.DatabaseServlet.load(DatabaseServlet.java:2
51)
 at
org.apache.struts.webapp.example.DatabaseServlet.init(DatabaseServlet.java:1
75)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.ja
va:604)
 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleSe
rvlet.java:136)

 at
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycl
eServlet.java:244)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleSer
vlet.java:102)

 at
com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:284)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
 at
com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:
76)
 at
com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServlet
Manager.java:91)

 at
com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebA
ppServletManager.java:158)

 at
com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:806)
 at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:93)
 at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:121)
 at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:82)
 at com.ibm.servlet.engine.srt.WebGroup.restart(WebGroup.java:155)
 at
com.ibm.servlet.engine.ServletHost.restartWebGroup(ServletHost.java:176)
 at
com.ibm.servlet.engine.ServletEngineDynamicUpdateSupport.restartWebGroup(Ser
vletEngineDynamicUpdateSupport.java:106)

 at
com.ibm.ejs.sm.active.ActiveServletGroup.setRefreshConfigAction(ActiveServle
tGroup.java:193)

 at java.lang.reflect.Method.invoke(Native Method)
 at
com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.ja
va:93)

 at
com.ibm.ejs.sm.active.ActiveObject.invokeContainedObject(ActiveObject.java:4
87)
 at
com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.ja
va:110)

 at
com.ibm.ejs.sm.active.ActiveObject.invokeContainedObject(ActiveObject.java:4
87)
 at
com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.ja
va:110)

 at
com.ibm.ejs.sm.agent.AdminAgentImpl.invokeActiveObject(AdminAgentImpl.java:6
2)
 at
com.ibm.ejs.sm.agent._AdminAgentImpl_Tie._invoke(_AdminAgentImpl_Tie.java:80
)
 at
com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(ExtendedServerDelegate.ja
va:506)
 at com.ibm.CORBA.iiop.ORB.process(ORB.java:2282)
 at com.ibm.CORBA.iiop.WorkerThread.run(WorkerThread.java:195)
 at com.ibm.ejs.oa.pool.ThreadPool$PooledThread.run(ThreadPool.java:535)

Could anyone help me?

Thanks.

 MIKAEL




RE: onkeyup support on html:form ...

2001-06-27 Thread Assenza, Chris

Just my $0.02 but for many applications built around the Struts framework
there will be specific controlled environments (and for many there won't be)
wherein the browser is a known variable.  While events like onkeyup are
supported on forms for IE4 and above only, it would be nice to have them
available as part of the form tag if the developer is unconcerned with a
cross-browser implementation. :) 

Chris

-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 27, 2001 6:27 AM
To: [EMAIL PROTECTED]
Subject: Re: onkeyup support on html:form ...


The tags for the actual HTML controls accept Javascript events. 

I don't believe you can attach an event to the HTML form itself. (We can
only do what the browser's and HTML support ;-)

The one and only 1.1 TODO list is on the site. 


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/


"Charlesworth, Chico" wrote:
> 
> what i want to do is:
> 
> ...
> 
> 
> does anyone know if this supported yet or is it on  the todo list?
> 
> chico
>



RE: onkeyup support on html:form ...

2001-06-27 Thread Assenza, Chris

Excellent solution (which could, in the long run, be applicable in more
places then just html:form)!! :)

Chris

-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 27, 2001 8:11 AM
To: [EMAIL PROTECTED]
Subject: Re: onkeyup support on html:form ...


For the HTML tags, one solution would be to add a standard "options"
parameter that would pass through the value uninterpreted. This would
keep us from having to worry about vendor-specific implementations. 

"Assenza, Chris" wrote:
> 
> Just my $0.02 but for many applications built around the Struts framework
> there will be specific controlled environments (and for many there won't
be)
> wherein the browser is a known variable.  While events like onkeyup are
> supported on forms for IE4 and above only, it would be nice to have them
> available as part of the form tag if the developer is unconcerned with a
> cross-browser implementation. :)
> 
> Chris



Struts 1.0 Final Migration Errors

2001-06-29 Thread Assenza, Chris

All,

I'm upgrading our app from Struts 1b1 to Struts 1.0.  Unfortunately, nothing
in our app seems to be working, so I went back a step and tried deploying
the struts-example.war file and received the same error when trying to
"logon" in the demo.  

We're using JBoss 2.0 w/ Tomcat 3.2b7 (basically the previous JBoss dist).
I'm not exactly certain where to begin with tracking down this particular
error so any help is appreciated.  I recall reading something about the
version of Jasper being used by certain servlet engines may not be up to
spec, and as such will not support the way removeAttribute is being used
with PageContextImpl -- does this look that's what I'm encountering?

Thanks,

Chris

Error: 500
Location: /struts-example/logon.jsp
Internal Servlet Error:

javax.servlet.ServletException: cant remove Attributes from request scope
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:453)
at
_0002flogon_0002ejsplogon_jsp_4._jspService(_0002flogon_0002ejsplogon_jsp_4.
java:393)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
9)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:745)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

Root cause: 
java.lang.IllegalArgumentException: cant remove Attributes from request
scope
at
org.apache.jasper.runtime.PageContextImpl.removeAttribute(PageContextImpl.ja
va:289)
at org.apache.struts.taglib.html.FormTag.doEndTag(FormTag.java:591)
at
_0002flogon_0002ejsplogon_jsp_4._jspService(_0002flogon_0002ejsplogon_jsp_4.
java:368)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
9)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:745)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)



RE: Compiled JSP got too big and produced this Error/ Anyone know of a Solution/Fix?

2001-07-02 Thread Assenza, Chris

Unfortunately I've seen it. :-(

-Chris

Here is a previous reply on this subject from Mr. Cooper: 


I am, unfortunately, intimately familiar with this problem.

The problem is that there is a limit on the size of a compiled method in a 
Java class file, and that limit is what we're running up against. Recall 
that a JSP page is compiled into a servlet, and into essentially only one 
method in that servlet. Hence, if your page contains many, many tags, that 
method becomes too big, and up comes the exception that you're seeing.

There are a couple of (partial) solutions.

1) Break your giant page up into multiple smaller pages and bring them 
together at run time using . Note that <%@include> won't work, 
because that's a compile-time include, which will get you straight back to 
the original problem.

2) Look for places to save on tags. For example, the  tag was 
recently extended to allow the specification of the text to display, so 
that you can replace this:



with this:



If you have a lot of cases of this pattern, it can help quite a bit. In 
addition to the  tag, some other Struts tags allow the same 
shortcut to including the text. Also, you might consider replacing 
 sequences with  if you can build an appropriate 
collection up front.

Unfortunately, we can't use solution (1), because our giant page is almost 
entirely one . (Please don't ask... :-} ) Many of the  
tags won't work if they are on a separate page from the  tag 
itself. That means I've spent quite some time on option (2).

We have several of our own tags, too, so that was the next place for me to 
look. I discovered that changing some frequently used tags from extending 
BodyTagSupport to extending TagSupport, and marking them with 
empty in the .tld file, made a significant 
reduction in generated code size. Of course, this is not always feasible, 
but it helped us quite a bit.

One other trick is to create custom tags for frequently used groups of 
related elements. For example, I created a simple DatePickerTag which is a 
Struts-like tag that combines three drop-down boxes for month, day and 
year, with the localized strings obtained from the JVM, and the current 
values pulled from a bean.

That's about all I can think of that I've tried so far. All our pages are 
now within the limit, but one is very close to breaking it. I really want 
to put a "do not touch" notice on that file!

Hope this helps.

--
Martin Cooper

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 1:32 PM
To: [EMAIL PROTECTED]
Subject: Compiled JSP got too big and produced this Error/ Anyone know
of a Solution/Fix?



Have any of you ever seen anything like this before?  I think that compiled
code for this JSP got too big.

Error: 500
Location: /eCMS/CareManager/PfPatientSummaryBody.jsp
Internal Servlet Error:

javax.servlet.ServletException: (class:
CareManager/_0002fCareManager_0002fPfPatientSummaryBody_0002ejspPfPatientSum
maryBody_jsp_0, method: _jspService signature:
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo
nse;)V) Illegal target of jump or branch



RE: proposal: splitting struts mailing list

2001-07-02 Thread Assenza, Chris

Agreed. :) 

Chris

-Original Message-
From: Peter Alfors [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 1:57 PM
To: [EMAIL PROTECTED]
Subject: Re: proposal: splitting struts mailing list


The problem with splitting into two lists is that the "advanced" users will
not be around to answer the "beginner" questions.
I agree that there is a lot of traffic on this list, both beginner and
advanced.  I see it as a benefit though.
The beginners get to learn from the advanced, and the advanced (developers)
get to see the typical types of questions that are asked.  This may then
lead to a better design, or better documentation, etc.

Just my two cents.   :)

Pete



RE: Struts 1.0 on WebSphere 3.5.4??

2001-07-03 Thread Assenza, Chris

The problem I reported to the list the other day (that error) in JBoss 2 w/
Tomcat 3.2b7 is actually the same issue as this. Granted, I haven't actually
tested this in WebSphere, but it is the same issue and others have tried it
with success IIRC.  

Anyway, the problem is (as others have previously reported), the JASPER
version used by the WebSphere servlet engine is not up to the latest spec
and as such does not support the way the Form tag is currently written.  If
you like, I can attach an updated Struts.jar that has the fix compiled and
ready to go.  If you want to change it yourself, here's the code:

(This fix was suggested by David Janovy)

In doEndTag on the Form tag, change: 

pageContext.removeAttribute(Constants.BEAN_KEY,
PageContext.REQUEST_SCOPE);
pageContext.removeAttribute(Constants.FORM_KEY,
PageContext.REQUEST_SCOPE);

To:

pageContext.getRequest().removeAttribute(Constants.BEAN_KEY);
pageContext.getRequest().removeAttribute(Constants.FORM_KEY);
pageContext.removeAttribute(Constants.BEAN_KEY);
pageContext.removeAttribute(Constants.FORM_KEY);

Chris

-Original Message-
From: Christine Eckstein [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 6:03 PM
To: [EMAIL PROTECTED]
Subject: Struts 1.0 on WebSphere 3.5.4??


Has anyone been able to get Struts 1.0 to work on WebSphere
3.5.4 (yes, that's with the new patch 4)?

I can get index.jsp to run, but I'm not getting farther
than that. I've made the recommended DTD changes, but that
didn't help (no ActionMapping, or similar, errors have
shown up in the log.)  What I'm looking to find out is if I
need to go through the additional process of modifying the
Struts code as was declared necessary for 3.5.2 and
below.

Any ideas?  Thanks for your help

The following is the reported error:

-
Error 500
An error has occured while processing
request:http://hca320872k/strutsexample/logon.jsp
Message: Server caught unhandled exception from servlet
[jsp11]: cant
remove Attributes from request scope

Target Servlet: jsp11
StackTrace: 


Root Error-1: cant remove Attributes from request scope

java.lang.IllegalArgumentException: cant remove Attributes
from
request scope
 at java.lang.RuntimeException. 
(RuntimeException.java:49)
 at java.lang.IllegalArgumentException.  
(IllegalArgumentException.java:45)
 at 
org.apache.jasper.runtime.PageContextImpl.removeAttribute(PageContextImpl.ja
va:23
6)
 at
org.apache.struts.taglib.html.FormTag.doEndTag(FormTag.java:591)
 at _logon_jsp_1._jspService(_logon_jsp_1.java:357)
 at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:127)
 at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va:39
6)
 at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:718)
 at
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:872)
 at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java
:626)
 at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServ
let.java:160)
 at 
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.jav
a:287)
 at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servl
et.java:105)
 at 
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:36
0)
 at 
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.
java:775)
 at 
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.ja
va:701)
 at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebApp
RequestDispatcher.java:478)
 at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
Dispa
tcher.java:234)
 at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
ispat
cher.java:138)
 at 
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.
java:
77)
 at 
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn
vocat
ion.java:67)
 at 
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ
estPr
ocessor.java:155)
 at 
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener
.java
:300)
 at 
com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQ
Event
ListenerImp.java:230)
 at 
com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventL
isten
erImp.java:104)
 at 
com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQE
ventS
ource.java:212)
 at 
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu
nnabl
e.notifyService(SQWrappe

RE: Struts 1.0 on WebSphere 3.5.4??

2001-07-03 Thread Assenza, Chris

Sure thing - I already sent it but the list refused it due to its file size.
As an alternative, I'll put it up on my personal FTP space and anyone who
wants it can download it from there! :) 

Struts.jar with Form tag modifications: http://www.enfused.com/struts.jar

-Chris

-Original Message-
From: Christine Eckstein [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 03, 2001 11:09 AM
To: [EMAIL PROTECTED]
Subject: RE: Struts 1.0 on WebSphere 3.5.4??


Thank you for responding so quickly as I was about to hit
my head against a wall!  Perhaps you could attach that
working version you mentioned I could use?  In the
meantime, I'm going to obtain the rest of the software I'll
need in order to compile Struts myself -- just in case. 
Thank you so much!

-cme-

--- "Assenza, Chris" <[EMAIL PROTECTED]> wrote:
> The problem I reported to the list the other day (that
> error) in JBoss 2 w/
> Tomcat 3.2b7 is actually the same issue as this. Granted,
> I haven't actually
> tested this in WebSphere, but it is the same issue and
> others have tried it
> with success IIRC.  
> 
> Anyway, the problem is (as others have previously
> reported), the JASPER
> version used by the WebSphere servlet engine is not up to
> the latest spec
> and as such does not support the way the Form tag is
> currently written.  If
> you like, I can attach an updated Struts.jar that has the
> fix compiled and
> ready to go.  If you want to change it yourself, here's
> the code:
> 
> (This fix was suggested by David Janovy)
> 
> In doEndTag on the Form tag, change: 
> 
> pageContext.removeAttribute(Constants.BEAN_KEY,
> PageContext.REQUEST_SCOPE);
> pageContext.removeAttribute(Constants.FORM_KEY,
> PageContext.REQUEST_SCOPE);
> 
> To:
> 
>
>
pageContext.getRequest().removeAttribute(Constants.BEAN_KEY);
>
>
pageContext.getRequest().removeAttribute(Constants.FORM_KEY);
> pageContext.removeAttribute(Constants.BEAN_KEY);
> pageContext.removeAttribute(Constants.FORM_KEY);
> 
> Chris
> 
> -Original Message-
> From: Christine Eckstein [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 02, 2001 6:03 PM
> To: [EMAIL PROTECTED]
> Subject: Struts 1.0 on WebSphere 3.5.4??
> 
> 
> Has anyone been able to get Struts 1.0 to work on
> WebSphere
> 3.5.4 (yes, that's with the new patch 4)?
> 
> I can get index.jsp to run, but I'm not getting farther
> than that. I've made the recommended DTD changes, but
> that
> didn't help (no ActionMapping, or similar, errors have
> shown up in the log.)  What I'm looking to find out is if
> I
> need to go through the additional process of modifying
> the
> Struts code as was declared necessary for 3.5.2 and
> below.
> 
> Any ideas?  Thanks for your help
> 
> The following is the reported error:
> 
> -
> Error 500
> An error has occured while processing
> request:http://hca320872k/strutsexample/logon.jsp
> Message: Server caught unhandled exception from servlet
> [jsp11]: cant
> remove Attributes from request scope
> 
> Target Servlet: jsp11
> StackTrace: 
>

> 
> Root Error-1: cant remove Attributes from request scope
> 
> java.lang.IllegalArgumentException: cant remove
> Attributes
> from
> request scope
>  at java.lang.RuntimeException. 
> (RuntimeException.java:49)
>  at java.lang.IllegalArgumentException.  
> (IllegalArgumentException.java:45)
>  at 
>
org.apache.jasper.runtime.PageContextImpl.removeAttribute(PageContextImpl.ja
> va:23
> 6)
>  at
>
org.apache.struts.taglib.html.FormTag.doEndTag(FormTag.java:591)
>  at _logon_jsp_1._jspService(_logon_jsp_1.java:357)
>  at
>
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:127)
>  at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at 
>
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
> va:39
> 6)
>  at
>
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:718)
>  at
>
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:872)
>  at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at 
>
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
> .java
> :626)
>  at 
>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
> eServ
> let.java:160)
>  at 
>
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
> t.jav
> a:287)
>  at 
>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
&

RE: Know of any consulting companies?

2001-07-05 Thread Assenza, Chris

Although I'm not familiar with ARS or Digita, the company I work for (Access
Data Corp - http://www.accessdc.com) does indeed do consulting/software
development with Java; and, while we do not necessarily specialize in using
Jakarta components, we are very apt to use them.  Case in point, the project
I'm currently working on which involves Struts, RegExp (possibly ORO) and a
couple other misc. Jakarta things. 

What do you need? 

-Chris

Christopher Assenza
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.(sm)
http://www.accessdc.com/


-Original Message-
From: Eric Loeb [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 4:40 PM
To: [EMAIL PROTECTED]
Subject: Know of any consulting companies?



Is there an ARS-Digita-like consulting company that
uses the various jakarta components to build web apps
for clients?

thanks in advance,
Eric Loeb


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



RE: Problem upgrading from struts-1.0-b1 to struts-1.0

2001-07-06 Thread Assenza, Chris

Guus, 

See the thread from before I cut and pasted below.
--

Sure thing - I already sent it but the list refused it due to its file size.
As an alternative, I'll put it up on my personal FTP space and anyone who
wants it can download it from there! :) 
Struts.jar with Form tag modifications: http://www.enfused.com/struts.jar

-Chris

-Original Message-
From: Christine Eckstein [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 03, 2001 11:09 AM
To: [EMAIL PROTECTED]
Subject: RE: Struts 1.0 on WebSphere 3.5.4??

Thank you for responding so quickly as I was about to hit
my head against a wall! Perhaps you could attach that
working version you mentioned I could use? In the
meantime, I'm going to obtain the rest of the software I'll
need in order to compile Struts myself -- just in case. 
Thank you so much!
-cme-
--- "Assenza, Chris" <[EMAIL PROTECTED]> wrote:
> The problem I reported to the list the other day (that
> error) in JBoss 2 w/
> Tomcat 3.2b7 is actually the same issue as this. Granted,
> I haven't actually
> tested this in WebSphere, but it is the same issue and
> others have tried it
> with success IIRC. 
> 
> Anyway, the problem is (as others have previously
> reported), the JASPER
> version used by the WebSphere servlet engine is not up to
> the latest spec
> and as such does not support the way the Form tag is
> currently written. If
> you like, I can attach an updated Struts.jar that has the
> fix compiled and
> ready to go. If you want to change it yourself, here's
> the code:
> 
> (This fix was suggested by David Janovy)
> 
> In doEndTag on the Form tag, change: 
> 
> pageContext.removeAttribute(Constants.BEAN_KEY,
> PageContext.REQUEST_SCOPE);
> pageContext.removeAttribute(Constants.FORM_KEY,
> PageContext.REQUEST_SCOPE);
> 
> To:
> 
> 
>
pageContext.getRequest().removeAttribute(Constants.BEAN_KEY);
> 
>
pageContext.getRequest().removeAttribute(Constants.FORM_KEY);
> pageContext.removeAttribute(Constants.BEAN_KEY);
> pageContext.removeAttribute(Constants.FORM_KEY);
> 
> Chris
> 
> -Original Message-
> From: Christine Eckstein [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 02, 2001 6:03 PM
> To: [EMAIL PROTECTED]
> Subject: Struts 1.0 on WebSphere 3.5.4??
> 
> 
> Has anyone been able to get Struts 1.0 to work on
> WebSphere
> 3.5.4 (yes, that's with the new patch 4)?
> 
> I can get index.jsp to run, but I'm not getting farther
> than that. I've made the recommended DTD changes, but
> that
> didn't help (no ActionMapping, or similar, errors have
> shown up in the log.) What I'm looking to find out is if
> I
> need to go through the additional process of modifying
> the
> Struts code as was declared necessary for 3.5.2 and
> below.
> 
> Any ideas? Thanks for your help
> 
> The following is the reported error:
> 
> -
> Error 500
> An error has occured while processing
> request:http://hca320872k/strutsexample/logon.jsp
> Message: Server caught unhandled exception from servlet
> [jsp11]: cant
> remove Attributes from request scope
> 
> Target Servlet: jsp11
> StackTrace: 
>

> 
> Root Error-1: cant remove Attributes from request scope
> 
> java.lang.IllegalArgumentException: cant remove
> Attributes
> from
> request scope
> at java.lang.RuntimeException. 
> (RuntimeException.java:49)
> at java.lang.IllegalArgumentException.  
> (IllegalArgumentException.java:45)
> at 
>
org.apache.jasper.runtime.PageContextImpl.removeAttribute(PageContextImpl.ja
> va:23
> 6)
> at
>
org.apache.struts.taglib.html.FormTag.doEndTag(FormTag.java:591)
> at _logon_jsp_1._jspService(_logon_jsp_1.java:357)
> at
>
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:127)
> at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at 
>
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
> va:39
> 6)
> at
>
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:718)
> at
>
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:872)
> at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at 
>
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
> .java
> :626)
> at 
>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
> eServ
> let.java:160)
> at 
>
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
> t.jav
> a:287)
> at 
>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.servi

RE: Problem upgrading from struts-1.0-b1 to struts-1.0

2001-07-06 Thread Assenza, Chris

Oops, sorry for that extra reply, I didn't see this message. :)

Chris



-Original Message-
From: Jean-Noel Ribette [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 5:01 AM
To: [EMAIL PROTECTED]
Subject: Re: Problem upgrading from struts-1.0-b1 to struts-1.0


The "can't remove attribute from request scope" is due to changes in the
 that makes it imcompatible with
some servlet container (WebSpehere ...).
See this message for a description of the problem:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg10964.html

A fix from Chris Assenza is available at http://www.enfused.com/struts.jar

Jean-Noël


- Original Message -
From: Guus Holshuijsen <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 10:26 AM
Subject: Problem upgrading from struts-1.0-b1 to struts-1.0


After upgrading from struts-1.0-b1 to struts-1.0 I keep getting a servlet
error with the message "can't remove
attributes from request scope". This is especially annoying because it
occurs in the login JSP of my application and
thus it blocks my progress.
I checked the installation notes several times to see if I overlooked
something, but found nothing wrong.
Does anyone have a suggestion?
(In the mean while I'll just add the Struts source to my project and debug
through it.)

Regards
Guus

Guus Holshuijsen, Videtur
Horsten 1, unit 1.18
5612 AX Eindhoven
The Netherlands
T:+31-40-2450214  F:+31-40-2939343  M:+31-6-25077204




RE: [JBoss-user] RE: Struts & Jboss?

2001-07-06 Thread Assenza, Chris

What does your application.xml look like? 

Chris

-Original Message-
From: Gregor Rayman [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 12:39 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [JBoss-user] RE: Struts & Jboss?


"Ravindran Ramaiah" <[EMAIL PROTECTED]> wrote:

> Hi,
> I have tried JBoss+HP-Bluestone UBS 7.2 combination without any
> problems.
> Deployed EJB jar on JBoss and Application.war with HP-Bluestone UBS.
> 
> This combination works fine.
> 
> Thanks,
> Ravi

Yes, I have no problem when I deploy the ejb jar and the war separately.
The problems start only when I pack them togerther in an ear file and
then deploy only that one.

--
gR



RE: [JBoss-user] RE: Struts & Jboss?

2001-07-06 Thread Assenza, Chris

Okay...I'll rephrase that last one I sent. :)  You won't be able to deploy
the EAR the way you want without properly using the Application Deployment
Descriptor (application.xml).  Have you tried doing this? 

Here's a sample one I use for JBoss 2.0 w/ Tomcat 3.2b7, goes in META-INF of
the EAR's contents.


http://java.sun.com/j2ee/dtds/application_1_2.dtd";>


App Name


Warfile.war
/usermanager
  



EJBJar.jar  
   


Chris

-Original Message-
From: Gregor Rayman [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 3:03 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [JBoss-user] RE: Struts & Jboss?


So I've tested some things:

1st I removed the struts.jar and my client.jar from app.jar/WEB-INF/lib and
placed them directly to ear. I've changed the manifest.mf to include those
two jars:

My apps name is usermanager

manifest.mf of usermanager.war:

Class-Path: ./usermanager-client.jar
Class-Path: ./struts.jar

these two files are in the root of usermanager.ear

struts.jar is nowhere else in any war, jar or lib or lib/ext or classpath.

Now the tomcat CAN find ActionServlet and *.do will be handled by
ActionServlet.
Action servlet CAN find all my Action and ActionForm classes.

Lo long so good. Unfortunately, tomcat's JSP compiler (jasper) cannot
compile my JSP files. Jasper has no access to my either struts.jar or to
usermanager-client.jar.

The only solution for this, is to include the files struts.jar and
usermanager-client.jar both in the EARs root AND in war/WEB-APPS/lib.

I really don't like this workaround.

One possible solution would be, to precompile all JSPs and include
alredy compiled servlets in my EAR. This would be a much better
solution anyway.

My question actually changes to this:

Does anybody know, how to compile JSPs to class or java files
in ant? And how to include them to web.xml?

--
gR





RE: struts w/ej

2001-07-10 Thread Assenza, Chris



Paul,
 
I'm 
afraid I'm pressed for time at the moment, but I'd like to share our 
approach.  I can't say with certainty that this was the best approach 
(we've discussed it on the list before in fact) but it is getting the job done 
for us.  (Criticisms welcome :)
We 
have multiple "objects" upon which we perform maintenance.  Each object has 
a "search" screen and a "detail" screen.  Our Action needs to do different 
things when a different button is pressed (basic CRUD functions, few advanced 
things, etc).  Each object, while different, shares a great deal of generic 
code in order to prepare data and pass it along to some EJB (session 
bean).  
 
Christopher Assenza Phone:  412.201.6026 Fax: 412.201.6060 Email:  [EMAIL PROTECTED] ACCESSDATA 
Moving Your Business from Point A to Point 
e.SM 
http://www.accessdc.com/ 

  -Original Message-From: Paul Beer 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, July 09, 2001 4:55 
  PMTo: [EMAIL PROTECTED]Subject: struts 
  w/ej
  i have followed some old threads about this but see 
  no resolution to how to map the struts form bean to EJB value objects; they 
  all seem to allude to a mysterious an non-existent struts 1.1.  is it 
  recommended to do validation from within the form bean and then create a value 
  object w/the data for the EJB or to do the validation in the value 
  object?  Seems like duplicate work to create a form bean and a value 
  object for an ejb, but if you dont , then the html form is dangerously coupled 
  with the functioning of the EJB which I am trying to avoid in my application 
  design.  Can people give some real world examples of this ?  And on 
  a technical note, if you use the struts form bean to instantiate and populate 
  a value object how is it passes to the action?  are people just putting 
  it in the http session ?  sample code would be 
  helpful.
   
  -paul


RE: struts w/ej

2001-07-10 Thread Assenza, Chris

(I hit Send by mistake - sorry for the premature mailing)

Paul, 

I'm afraid I'm pressed for time at the moment, but I'd like to share our
approach. I can't say with certainty that this was the best approach (we've
discussed it on the list before in fact) but it is getting the job done for
us. (Criticisms welcome :) 

We have multiple "objects" upon which we perform maintenance. Each object
has a "search" screen and a "detail" screen. Our Action needs to do
different things when a different button is pressed (basic CRUD functions,
few advanced things, etc). Each object, while different, shares a great deal
of generic code in order to prepare data and pass it along to some EJB
(session bean).   Thus, we have an abstract "Action" class that contains all
our generic code.  Then, in our object-specific action implementations (they
extend the abstract class and then also contain the perform method) we make
calls to the various generic methods defined in the abstract class.  
Depending on the situation, we will pass in a (EJB) home reference to a
method and that method will then make the appropriate method calls to the
session bean.  To get data back and forth, we have a second method on the
object-specific actions (because the data is different for different
objects) wherein we set values on a "data object" that the bean uses for
running queries, etc. 

Basically sample syntax is: data.setSomeId(form.getSomeId());   

We simply call this method when calling the session bean's method that
requires the data, and then pass the data object in.  It's certainly not the
best way to do this -- there are more efficient ways to populate the data
object but we hit certain limitations process-wise and time-wise and this is
where we are.  All short-comins aside, it does get the job done. :)  

BTW -- The mapper framework looks extremely promising and I'm interested to
try it out shortly, just wish time would provide itself. :P

Chris



RE: Report to Recipient(s)

2001-07-16 Thread Assenza, Chris

Triple-"X" was in the body of the original message that everyone replied to
causing a stream of denied content for Mr. Paladin, whose server then sends
the list its denial.  

Mr. Paladin's server is not very polite to be constantly sending these
messages. :-\

Chris



-Original Message-
From: Jeff Trent [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 2:53 PM
To: [EMAIL PROTECTED]
Subject: Re: Report to Recipient(s)


What is this message mean?


- Original Message - 
From: "Paladin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 2:46 PM
Subject: Report to Recipient(s)


> Incident Information:-
> 
> Originator:"Jeff Trent" <[EMAIL PROTECTED]>
> Recipients:<[EMAIL PROTECTED]>
> Subject:  Re: quick question : form
> 
> Message from "Jeff Trent" <[EMAIL PROTECTED]> was quarantined because
> it contained banned content.
> 
> 



RE: Struts on IBM WAS 4.0 - Error removing attributes from request sc ope!

2001-07-25 Thread Assenza, Chris

I had no problems with our test run with WAS 4.0 using the modified
struts.jar I posted - heck the console is built with Struts. :-P

Frankly, I feel like WAS 4.0 is a dream-come true as far as usability and
administration.  Yeah, Java isn't up to spec, but what else is new.  At
least it is easier to maintain. 

Our struts app deployed flawlessly from the EAR file without any extra
manipulation from me outside of using their Application Assembly tool (ie.
no moving WEB-INF, no pulling out DTD's, nadda). :D

Be that as it may, our app didn't work 100%, but I am pretty sure that was
an unrelated issue (IIS wasn't configured properly).

Chris

-Original Message-
From: Pravin George [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 25, 2001 5:13 AM
To: [EMAIL PROTECTED]
Subject: Re: Struts on IBM WAS 4.0 - Error removing attributes from
request sc ope!


you're right Websphere 4.0 is a pain to work with. I did get a struts
application running on 3.5.3 but not on any later version.



Calabrese, Jason" wrote:

> Why can't IBM keep up.  I don't think I'd ever recommended Websphere or
> any other IBM java application.
>
> -Original Message-
> From: Boulatian, Misak [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 25, 2001 8:07 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Struts on IBM WAS 4.0 - Error removing attributes from
> reques t sc ope!
>
> It seems like you have the same problem as I was having with Powertier
> app
> server. The solution was that
> the powertier current release was coming with an older jasper libraries
> (jsp
> engine) but struts is using the newer
> ones. I hope this helps.
> Thanks
> Misak
>
> -Original Message-
> From: Pravin George [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 24, 2001 7:26 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: RE: Struts on IBM WAS 4.0 - Error removing attributes from
> reques t sc ope!
>
> Hi everyone,
>
> I wanted to clarify the status of Struts and Websphere 4
> compatability. As a business partner to IBM, we are on the beta testing
> program for Websphere 4.0 . This particular issue was brought to their
> attention a couple of weeks ago.  Last week we received word that it has
> been fixed in the latest beta build and will not be an issue in the
> final GA release.
>
>  Pravin George,
>  Software Engineer,
>  eBuilt Inc. ,
>  Irvine, CA 92614.
>
>   RE: Struts on IBM WAS 4.0 - Error removing attributes from
> reques t sc ope!
>  Date:
>   Tue, 24 Jul 2001 13:16:48 -0700
> From:
>   "Calabrese, Jason" <[EMAIL PROTECTED]>
>  Reply-To:
>   [EMAIL PROTECTED]
>To:
>   "'[EMAIL PROTECTED]'"
> <[EMAIL PROTECTED]>
>
> I'm running struts on Websphere 3.5.4 and had similar problems.
>
> This is the response I got.
>
> > Check this out..
> >
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg10964.html
>
> > And..
> > Sure thing - I already sent it but the list refused it due to its file
>
> size.
> > As an alternative, I'll put it up on my personal FTP space and anyone
> who
> > wants it can download it from there! :)
>
> > Struts.jar with Form tag modifications:
> http://www.enfused.com/struts.jar
>
> -Original Message-
> From: Mark Wilson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 24, 2001 1:07 PM
> To: '[EMAIL PROTECTED]'
> Subject: Struts on IBM WAS 4.0 - Error removing attributes from request
> sc ope!
>
> Hello, thanks for you're attention.
>
> I am deploying the struts-example app on IBM Websphere App Server 4.0
> and
> receive an IllegalArgumentException - Can't remove attribute from
> request
> scope.
>
> the situation:
>
> I have drilled into the problem and discovered that IBM is using a
> significantly different implementation of the class,
> org.apache.jasper.runtime.PageContextImpl.  Their class alters the logic
>
> of
> removing attributes using the methods removeAttribute(String s, int i)
> and
> removeAttribute(String s).
>
> I have included the code in the next section of the e-mail.  In summary,
>
> using WAS 4.0, attributes are not removed from request scope.
>
> This conflicts most directly with the struts framework class,
> org.apache.struts.taglib.html.FormTag.  FormTag calls
> pageContext.removeAttribute(Constants.BEAN_KEY,
> PageContext.REQUEST_SCOPE)
> and pageContext.removeAttribute(Constants.FORM_KEY,
> PageContext.REQUEST_SCOPE) within the doEndTag() method.
>
> Either of these method calls will generate an IllegalArgumentException
> on
> WAS 4.0.
>
> the code (more or less):
>
> org.apache.jasper.runtime.PageContextImpl (note:  not the same code as
> used
> in tomcat's implementation...)
>
> public void removeAttribute(String s, int i)
> {
> switch (i)
> {
> case PAGE_SCOPE:
> pageScopeAttributes.remove(s);
> break;
>
> case REQUEST_SCOPE:
> throw new IllegalArgumentException("Can't remove Attributes
> from
> request scope");
>
> 

RE: Style sheets with struts

2001-07-30 Thread Assenza, Chris

Stylesheets work as they would normally work in HTML or JSP. :) For the most
precise browser compatibility you can do either Server-side browser
detection, then use Struts to output the appropriate stylesheet reference
with some logic checks (using logic tags, etc. - basically the equivalent of
saying "if this then that" and so on), or you can use Client-side browser
detection and have JavaScript generate the appropriate styles - which has
nothing to do with Struts. :) 

-Chris


-Original Message-
From: Ines Pederiva [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 6:09 AM
To: [EMAIL PROTECTED]
Subject: Style sheets with struts


  Hi.. I?m new in Struts and I?m trying to
include style sheets in my pages.
  How do you all use the css in your proyects?
  Do you work with them as like in jsp or you
use them in other way?
  Bye!
Ines.



RE: Wrong ordering of rendered html elements when using templates under WAS 3.5.x

2001-07-31 Thread Assenza, Chris
Title: Wrong ordering of rendered html elements when using templates under WAS 3.5.x



You 
need to use flush="true" on your template:get tags. :) WebSphere needs it's hand 
held to do the include properly. :-P
 
(ex. 
 )
-Chris
Christopher Assenza Phone:  412.201.6026 Fax: 412.201.6060 Email:  [EMAIL PROTECTED] ACCESSDATA 
Moving Your Business from Point A to Point 
e.SM 
http://www.accessdc.com/ 

  -Original Message-From: Nik Malenovic 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, July 30, 2001 8:00 
  PMTo: [EMAIL PROTECTED]Subject: Wrong 
  ordering of rendered html elements when using templates under WAS 
  3.5.x
  Hello personable people, 

  We've got a live one over here - 
  using templates under WebSphere 3.5.4 (don't ask) with struts 1.0 (plus a fix 
  or two that is required to get struts functioning properly under WAS3.5.x) 
  produces misordered rendered html elements.
  Here's what I mean: 
  Actors: --- Home.jsp Home_content.jsp Home_template.jsp 
  Home.jsp: - [<%@ taglibs here %> ]  
     My 
  Title     
  Home_content.jsp: -- [<%@ taglibs here %> ] 
          foo 
     
   
  Home_template.jsp -- [<%@ taglibs here %> ] 
     
        
     
   
     
       
    
       SOME MORE WILD TEXT 
  HERE         

            
         

  Output of glorious home.jsp hosted 
  by WAS3.5.x (notice out of order rendering!): - 
          foo 
     
   
   
     
      
     My Title        
     
       
    
       SOME MORE WILD TEXT 
  HERE         

                    
   
  See the problem? :-) I'd appreciate 
  anyone with a clue to send me one. 
  Thanks, 
  Nik -- Nik Malenovic 
   


RE: Branch too large, Internal restriction. (?!)

2001-07-31 Thread Assenza, Chris

This is an evil error but it's not really Struts' fault. Basically the error
is the fact that a compiled JSP (servlet really) can't have a single method
greater then 64k - but with all those tags being compiled in directly the
size grows pretty large.  I asked this a while back and Martin Cooper was
kind enough to help - his explanation is below. 

Note that with Struts 1.0 to solve this all you need to do is pull out a few
html:input, etc. fields and include them using jsp:include - you're problem
will be solved. :)

-Chris

 From Martin Coooper 
I am, unfortunately, intimately familiar with this problem.

The problem is that there is a limit on the size of a compiled method in a 
Java class file, and that limit is what we're running up against. Recall 
that a JSP page is compiled into a servlet, and into essentially only one 
method in that servlet. Hence, if your page contains many, many tags, that 
method becomes too big, and up comes the exception that you're seeing.

There are a couple of (partial) solutions.

1) Break your giant page up into multiple smaller pages and bring them 
together at run time using . Note that <%@include> won't work, 
because that's a compile-time include, which will get you straight back to 
the original problem.

2) Look for places to save on tags. For example, the  tag was 
recently extended to allow the specification of the text to display, so 
that you can replace this:



with this:



If you have a lot of cases of this pattern, it can help quite a bit. In 
addition to the  tag, some other Struts tags allow the same 
shortcut to including the text. Also, you might consider replacing 
 sequences with  if you can build an appropriate 
collection up front.

Unfortunately, we can't use solution (1), because our giant page is almost 
entirely one . (Please don't ask... :-} ) Many of the  
tags won't work if they are on a separate page from the  tag 
itself. That means I've spent quite some time on option (2).

We have several of our own tags, too, so that was the next place for me to 
look. I discovered that changing some frequently used tags from extending 
BodyTagSupport to extending TagSupport, and marking them with 
empty in the .tld file, made a significant 
reduction in generated code size. Of course, this is not always feasible, 
but it helped us quite a bit.

One other trick is to create custom tags for frequently used groups of 
related elements. For example, I created a simple DatePickerTag which is a 
Struts-like tag that combines three drop-down boxes for month, day and 
year, with the localized strings obtained from the JVM, and the current 
values pulled from a bean.

That's about all I can think of that I've tried so far. All our pages are 
now within the limit, but one is very close to breaking it. I really want 
to put a "do not touch" notice on that file!

Hope this helps.

--
Martin Cooper


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 31, 2001 9:16 AM
To: [EMAIL PROTECTED]
Subject: Branch too large, Internal restriction. (?!)



Having *a lot* of input fields (50+ hidden and non-) on my JSP appearently
results in the exception below. Has anyone seen this one before? Is this
due to WebSphere's outdated version of Jasper? At first I thought it was a
limitation in the WTE only but WAS 3.5.3 throws the same exception.

regards,
S. Bro




org.apache.jasper.JasperException: C:\Program Files\IBM\VisualAge for
Java\ide\project_resources\IBM WebSphere Test
Environment\temp\JSP1_1\mywebapp\_persinfo_xjsp.java:19: Branch is too
large, Internal restriction.
public class _persinfo_xjsp extends HttpJspBase {
 ^
1 error

   java.lang.Throwable(java.lang.String)
   java.lang.Exception(java.lang.String)
   javax.servlet.ServletException(java.lang.String)
   org.apache.jasper.JasperException(java.lang.String)
   boolean
com.ibm.ivj.jsp.jasper.compiler.JspDebugPageCompiler.javaToClass(java.lang.S
tring,

java.lang.String, java.io.ByteArrayOutputStream, boolean)
   boolean org.apache.jasper.compiler.Compiler.compile()
   boolean
com.ibm.ivj.jsp.jasper.runtime.JspDebugServlet.compile(org.apache.jasper.com
piler.Compiler,

java.lang.Class)
   boolean
com.ibm.ivj.jsp.jasper.runtime.JspDebugServlet.loadJSP(java.lang.String,
java.lang.String, boolean, javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
   void
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(javax
.servlet.http.HttpServletRequest,

javax.servlet.http.HttpServletResponse)
   void
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(javax.servlet
.http.HttpServletRequest,

javax.servlet.http.HttpServletResponse, boolean)
   void
org.apache.jasper.runtime.JspServlet.serviceJspFile(javax.servlet.http.HttpS
ervletReq

RE: some comparision between JSP/struts and velocity

2001-07-31 Thread Assenza, Chris

I tend to agree with Tim here, but only in certain circumstances.  If you
place very specific HTML code in your tag library then that tag library has
become very restricted in its use - basically it can only be used in the
original context for which it was designed, otherwise the HTML will probably
not match up properly.  That makes re-using your taglibs pretty difficult,
at least without re-writing the HTML within each time.  

On the other hand, if you don't care about cross-project reusability, then
embedding HTML into a tag isn't such a bad idea since you only care about it
for the current project and current needs. Personally, I think it's ideal to
generate the minimalist amount of generic HTML as possible in a tag and then
wrap it in HTML on the JSP when you use the tag.  Again, that's only if
you're going for maximum reusability.  Right now, I've got some HTML
embedded in our tags, but it's very generic HTML that can be used again and
again without much actual change to the Java code itself. :)

-Chris


-Original Message-
From: Tim Colson [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 9:20 PM
To: [EMAIL PROTECTED]
Subject: RE: some comparision between JSP/struts and velocity


> Niall Pemberton suggested
> ...if the Struts tags dont do what you want then write your
> own. Then you dont have to use scriptlets, you have a re-useable bit of
> functionality, the web designers are happy and you dont have to use
> Velocity.
While a custom tag is an option; this bit of functionality would have
required embedding  javascript code and html inside the custom tag lib. To
me, putting view specific code like inside a tag library is also a slippery
slope in the quest to keep thing separated.

Cheers,
Timothy



Silly Question - Where is the notEmpty tag?

2001-07-31 Thread Assenza, Chris

It is on the web page's documentation but nowhere to be found in the source
or TLD...I'm assuming it's been deprecated. It may be a good idea to take it
off the page cause I was all excited about it until my JSP screamed at me.
:P

Chris



RE: Silly Question - Where is the notEmpty tag?

2001-08-01 Thread Assenza, Chris

Ah, the opposite of deprecated, new goodies! :D  Thanks!

Chris

-Original Message-
From: Martin Cooper [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 31, 2001 11:45 PM
To: [EMAIL PROTECTED]
Subject: Re: Silly Question - Where is the notEmpty tag?


The  and  tags are part of Struts 1.1, and
hence only available in the nightly builds at this time. If you're using
Struts 1.0, that would explain the problem you are seeing.

For documentation that accurately reflects the build you are using, your
best bet is to use the struts-documentation.war web app included in the
distribution.

--
Martin Cooper


- Original Message -
From: "Assenza, Chris" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 31, 2001 12:22 PM
Subject: Silly Question - Where is the notEmpty tag?


> It is on the web page's documentation but nowhere to be found in the
source
> or TLD...I'm assuming it's been deprecated. It may be a good idea to take
it
> off the page cause I was all excited about it until my JSP screamed at me.
> :P
>
> Chris
>




RE: Taglibs decrease the separation between designer and developer?

2001-08-01 Thread Assenza, Chris

That's a good point, but what about when your scriptlets are controlling the
presentation? Ie. you've got dynamic row changes, or entirely different
tables of output being displayed depending on a flag on the request
(assuming you can't generecize the output) - and the designer needs to
change the HTML output by those scriptlets?  

Frankly, I don't mean to diminish the role of the designer (someone I find
to be incredibly important) but I generally would not let them edit JSP's at
all taglibs or not, unless they had experience with JSP or ASP.  While it
may not be ideal or efficient to do so, I find that it is much better for
the designers to provide me with a mockup and I'll deal with the HTML.  It
gives developers much more control and flexibility - and then all these
issues are moot. Plus, it gives you the added bonus of avoiding the demons
that are WYSIWYG web development tools (hehe, I'm known lovingly as the
"HTML snob" by one of my uncles who happens to be a designer). 

Unfortunately, not every developer knows HTML well so it involves more
responsibility for the developer then may actually be good, possible or
practical, but for me personally, I wouldn't have it any other way. :) 

-Chris


-Original Message-
From: Greg Maletic [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 01, 2001 1:15 PM
To: [EMAIL PROTECTED]
Subject: Taglibs decrease the separation between designer and developer?


Your post brings up a good point concerning what I think is a false
assumption concerning the separation between designer and developer.

Despite the potential good uses that taglibs can be put to, HTML pages with
JSP scriptlets are, I believe, easier to read by web designers than pages
with Struts taglibs.  (The one caveat being the one I mentioned before--that
ONLY view logic--and not business logic--should reside in scriptlets.)  My
reasoning--and experience--is that when I simply used JSPs, I told our
designer to completely ignore the stuff inside the "<% %>"s and code around
them.  Things were fine.

Now that we're using Struts, I have to instruct our designer on the ins and
outs of a completely new set of pseudo-HTML tags that he doesn't understand
at all--and NOT to use the tags he's familiar with ("", "",
etc.)

It was much easier for both him and me before we made this switch.  Struts
taglibs--and other taglibs--introduce, in essence, yet another language that
we all have to learn.


==
Greg Maletic
Chief Technical Officer
Zero G Software, Inc.
514 Bryant Street
San Francisco, CA 94107

tel: +1.415.512.7771 x303
fax: +1.415.723.7244
mailto:[EMAIL PROTECTED] 
http://www.ZeroG.com 

The leading provider of multi-platform software deployment solutions.
==


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
rg]On Behalf Of Tim Colson
Sent: Tuesday, July 31, 2001 7:57 AM
To: [EMAIL PROTECTED]
Subject: HTML in Taglibs (was: some comparision between JSP/struts &
velocity)



Niall wrote:
> Sorry, I couldnt disagree with you more.
> Custom tags are exactly the place to put html - they are part of the view,

Heh heh... I never said definitively that they weren't, just that in the
particular situation we had - it seemed like a bad idea. The bits in
question were definitively Designer territory.

BTW - you are correct when saying this was/is part of the View. However,
part of the separation I'm striving for is between Designer and Developer
roles. And I hope you'll agree with me that a TagLib isn't something a
Designer would likely build. 

> if you look at struts html tags thats what they do.
Yes. I understand. And honestly, it makes me a trifle uneasy. ;-)

Real example - I had a Designer chap get stumped because the html:form
attribute "name" didn't actually map directly to the "name" of the "real
html form". When he tried to connect a javascript function to an element in
the form - he didn't know the name of the form. When he reasoned, "oh, I'll
just name my html:form 'bleckfoo', just like I would if it was standard
HTML...  Error Location: Edit.jsp Internal Servlet Error:
> javax.servlet.ServletException: Must specify type attribute if name is
specified
>   at org.apache.jasper.runtime.PageContextImpl.handlePageException
> (PageContextImpl.java:459)
>   at jsp._0002fjsp_0002fEdit_0002ejspEdit_jsp_2._jspService
> (_0002fjsp_0002fEdit_0002ejspEdit_jsp_2.java:344)

(That was a fun one to explain - lemme tell ya.  ;-)


My point - hiding complexity won't always make things simpler.

To my Designer colleague, the fact that the 


RE: DTD Reference Problem Encountered while exercise the Struts Employeelist Example in VAJ WTE 3.5.3

2001-08-01 Thread Assenza, Chris

Just for the sake of getting it working and at the expense of hard-coding,
extract the DTD's to some location on your drive and make the doctype
declaration look like: 



Chris

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 01, 2001 4:31 PM
To: [EMAIL PROTECTED]
Subject: DTD Reference Problem Encountered while exercise the Struts
Employeelist Example in VAJ WTE 3.5.3


Hi,

 I tried  to exercise the employeelist example in my VAJ 3.5.3
environment. I
encountered a problem of locating a DTD file while starting Servlet Engine
listed below:

 (1) When I used http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
 within the struts-config.xml
 I got error message of
".. External entity not
found:"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";.


 (2) When I tried to use http://localhost:8080/WEB-INF/struts-config_1_0.dtd";> or
 
 within the struts-config.xml
 I got error message of
".. Relative URI "/WEB-INF/struts-config_1_0.dtd"; cannot be resolved
without a document root URI".


 If someone can give me solutions or suggestions on how to fix this
problem, it will be appreciated.

Rongbin Cai
[EMAIL PROTECTED]




RE: some comparision between JSP/struts and velocity

2001-08-01 Thread Assenza, Chris

If I gave the impression that I thougth otherwise, I apologize - but I
agree! :) 

My point was really in response to Niall (I think), in the vein of thought
that, depending on the purpose, you should probably be careful how much
hard-coded HTML you put in the taglib if you intend to reuse the taglib in
many different designs; that's why as an overall practice it may be better
to pull as much HTML out as possible (or necessary) and leave the tag as
atomic as possible!

In regard to Struts' HTML tags, I think they serve their purpose quite well,
if not perfectly. :)

Chris

-Original Message-
From: Martin Cooper [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 01, 2001 5:08 PM
To: [EMAIL PROTECTED]
Subject: Re: some comparision between JSP/struts and velocity


One thing to consider here is the partitioning of functionality across tag
libraries. For example, Struts currently has four taglibs - bean, html,
logic and template. The tags in the html taglib are the only ones that
generate HTML. This was a deliberate design decision, and allows the
remaining taglibs to be reused in non-HTML situations.

On the ToDo list for Struts 1.1 is a WML taglib. Once that exists, people
will be able to create HTML output using the html taglib, or WML output with
the wml taglib, and in either case they can continue to use the tags from
the bean, logic and template taglibs.

I don't think it's a question of whether or not generating HTML from custom
tags is a "bad thing". It's more a case of ensuring that the tags - and more
specifically the tag libraries - are well designed for their intended
purpose.

--
Martin Cooper


- Original Message -
From: "Assenza, Chris" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 31, 2001 6:28 AM
Subject: RE: some comparision between JSP/struts and velocity


> I tend to agree with Tim here, but only in certain circumstances.  If you
> place very specific HTML code in your tag library then that tag library
has
> become very restricted in its use - basically it can only be used in the
> original context for which it was designed, otherwise the HTML will
probably
> not match up properly.  That makes re-using your taglibs pretty difficult,
> at least without re-writing the HTML within each time.
>
> On the other hand, if you don't care about cross-project reusability, then
> embedding HTML into a tag isn't such a bad idea since you only care about
it
> for the current project and current needs. Personally, I think it's ideal
to
> generate the minimalist amount of generic HTML as possible in a tag and
then
> wrap it in HTML on the JSP when you use the tag.  Again, that's only if
> you're going for maximum reusability.  Right now, I've got some HTML
> embedded in our tags, but it's very generic HTML that can be used again
and
> again without much actual change to the Java code itself. :)
>
> -Chris
>
>
> -Original Message-
> From: Tim Colson [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 30, 2001 9:20 PM
> To: [EMAIL PROTECTED]
> Subject: RE: some comparision between JSP/struts and velocity
>
>
> > Niall Pemberton suggested
> > ...if the Struts tags dont do what you want then write your
> > own. Then you dont have to use scriptlets, you have a re-useable bit of
> > functionality, the web designers are happy and you dont have to use
> > Velocity.
> While a custom tag is an option; this bit of functionality would have
> required embedding  javascript code and html inside the custom tag lib. To
> me, putting view specific code like inside a tag library is also a
slippery
> slope in the quest to keep thing separated.
>
> Cheers,
> Timothy
>




RE: struts.jar for Websphere is Final?

2001-08-02 Thread Assenza, Chris



The 
modified JAR file that I put up is based on Struts 1.0 final. 

 
Chris
-Original Message-From: 
Calabrese, Jason [mailto:[EMAIL PROTECTED]]Sent: Thursday, August 
02, 2001 11:20 AMTo: Struts-User (E-mail)Cc: 'Luis 
Olivares'Subject: RE: struts.jar for Websphere is 
Final?

  I'm 
  not sure, the only class that was changed was FormTag.  You may want to 
  make the changes yourself and run the ant script.
  
-Original Message-From: Luis Olivares 
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, July 31, 2001 11:57 
AMTo: [EMAIL PROTECTED]Subject: struts.jar for 
Websphere is Final?
Hi:
 
    I have just joined the 
mailing list. I, like many of you, need to deploy a struts application on 
WebSphere 4.0.
 
    I downloaded your already 
modified struts.jar and it worked.
 
    My question is... was this 
jar modified from the struts final revision or from a beta (beta 3, maybe?) 
?.
 
Thanks!
 
Regards.
Luis 
Olivares


RE: DTD Reference Problem Encountered while exercise the Struts Employeelist Example in VAJ WTE 3.5.3

2001-08-02 Thread Assenza, Chris

That message indicates that your change worked as far as WTE/WAS is
concerned. :) Didn't it get any further this time?

Chris

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 02, 2001 10:04 AM
To: [EMAIL PROTECTED]
Subject: RE: DTD Reference Problem Encountered while exercise the Struts
Employeelist Example in VAJ WTE 3.5.3


Hi,
 I put struts-config_1_0.dtd  into my local c:\ root directory and then
used 
inside my struts-config.xml declaration, then I got following message

 ".. resolveEntity('null', 'file:/c:/struts-config_1_0.dtd') Not
registered, use system identifier..."

 Anyone can tell me what's wrong with my configuration and how to solve
this problem? Any inputs will be appreciated.

Rongbin





[EMAIL PROTECTED] on 08/01/2001 05:08:49 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  RE: DTD Reference Problem Encountered while exercise the Struts E
  mployeelist Example in VAJ WTE 3.5.3


Just for the sake of getting it working and at the expense of hard-coding,
extract the DTD's to some location on your drive and make the doctype
declaration look like:



Chris

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 01, 2001 4:31 PM
To: [EMAIL PROTECTED]
Subject: DTD Reference Problem Encountered while exercise the Struts
Employeelist Example in VAJ WTE 3.5.3


Hi,

 I tried  to exercise the employeelist example in my VAJ 3.5.3
environment. I
encountered a problem of locating a DTD file while starting Servlet Engine
listed below:

 (1) When I used http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
 within the struts-config.xml
 I got error message of
".. External entity not
found:"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";.


 (2) When I tried to use http://localhost:8080/WEB-INF/struts-config_1_0.dtd";> or
 
 within the struts-config.xml
 I got error message of
".. Relative URI "/WEB-INF/struts-config_1_0.dtd"; cannot be resolved
without a document root URI".


 If someone can give me solutions or suggestions on how to fix this
problem, it will be appreciated.

Rongbin Cai
[EMAIL PROTECTED]









RE: Using struts in VAJ3.5.2 and apache test environment 1.0

2001-08-02 Thread Assenza, Chris

WebSphere has an older version of Jasper incompatible with Struts 1.0's form
tag (as written).  Someone came up with a quick fix for the tag and a
modified struts.jar with the fix included can be download @
http://www.enfused.com/struts.jar

-Chris


-Original Message-
From: DUPRAT Alexandre [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 02, 2001 11:12 AM
To: '[EMAIL PROTECTED]'
Subject: Using struts in VAJ3.5.2 and apache test environment 1.0


Hello all,

I try to use struts in Visual age for Java and Apache Test environment.
I have followed doc :
http://www7.software.ibm.com/vad.nsf/data/document2558?OpenDocument&p=1&BCT=
1&Footer=1
with is a good one but i did not manage to run employeelist or any other
strut application.
I tried one that i managed to execute in tomcat but i always got the same
exception i do not understand : 

Error: 500
Location: /employeelist/jsp/employeeSearch.jsp
Internal Servlet Error:
javax.servlet.ServletException: cant remove Attributes from request scope
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
javax.servlet.ServletException(java.lang.Throwable)
void
org.apache.jasper.runtime.PageContextImpl.handlePageException(java.lang.Exce
ption)
void
jsp._0002fjsp_0002femployeeSearch_0002ejspemployeeSearch_jsp_0._jspService(j
avax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
void
org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServlet
Request, javax.servlet.http.HttpServletResponse)
void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
void
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(javax.servlet
.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, boolean)
void
org.apache.jasper.runtime.JspServlet.serviceJspFile(javax.servlet.http.HttpS
ervletRequest, javax.servlet.http.HttpServletResponse, java.lang.String,
java.lang.Throwable, boolean)
void
org.apache.jasper.runtime.JspServlet.service(javax.servlet.http.HttpServletR
equest, javax.servlet.http.HttpServletResponse)
void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
void
org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.R
equest, org.apache.tomcat.core.Response)
void
org.apache.tomcat.core.RequestDispatcherImpl.forward(javax.servlet.ServletRe
quest, javax.servlet.ServletResponse)
void
org.apache.tomcat.servlets.DefaultServlet.doGet(javax.servlet.http.HttpServl
etRequest, javax.servlet.http.HttpServletResponse)
void
javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest
, javax.servlet.http.HttpServletResponse)
void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
void
org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.R
equest, org.apache.tomcat.core.Response)
void
org.apache.tomcat.core.ContextManager.service(org.apache.tomcat.core.Request
, org.apache.tomcat.core.Response)
void
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(org.a
pache.tomcat.service.TcpConnection, java.lang.Object [])
void org.apache.tomcat.service.TcpConnectionThread.run()
void java.lang.Thread.run()

Root cause: 
java.lang.IllegalArgumentException: cant remove Attributes from request
scope
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
java.lang.RuntimeException(java.lang.String)
java.lang.IllegalArgumentException(java.lang.String)
void
org.apache.jasper.runtime.PageContextImpl.removeAttribute(java.lang.String,
int)
int org.apache.struts.taglib.html.FormTag.doEndTag()
void
jsp._0002fjsp_0002femployeeSearch_0002ejspemployeeSearch_jsp_0._jspService(j
avax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
void
org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServlet
Request, javax.servlet.http.HttpServletResponse)
void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
void
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(javax.servlet
.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, boolean)
void
org.apache.jasper.runtime.JspServlet.serviceJspFile(javax.servlet.http.HttpS
ervletRequest, javax.servlet.http.HttpServletResponse, java.lang.String,
java.lang.Throwable, boolean)
void
org.apache.jasper.runtime.JspServlet.service(javax.servlet.http.HttpServletR
equest, javax.servlet.http.HttpServletResponse)
void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
void
org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.to

RE: A Few questions about struts and WebSphere

2001-08-03 Thread Assenza, Chris

1) You need to use flush="true" on your template:get tags in the template. 

2) Did you deploy your WAR correctly? -- Check to make sure you don't have
an extra folder app folder under app in default_host.

3) Haven't used Struts' DataSource functionality, I'm afraid I can't help
you there - it doesn't look like it should be a problem, but I can't make
any guarantees. :)

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: Aapo Laakkonen [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 2:28 PM
To: [EMAIL PROTECTED]
Subject: A Few questions about struts and WebSphere


I tried to move my struts app from Visual Age Tomcat Test
Environment to WebSphere.

It works, but not as expected. I have build my app using strut's
template tags and it seem that WebSphere gets confused about
those. It doesn't include template files in correct order and it
gets very messy. Have anyone solved this? Ok maybe I can use
normal includes (not tried yet) or write a batch that flattens those
pages.

Secondy WebSphere doesn't like redirects. When I have
specified redirect in my action mapping this is what happens:

http://localhost/app/test.do has button or link that executes or
not an action and then redirects to test2.do that is in same path
as test.do, but instead of getting there WebSphere redirects
browser to http://localhost/app/app/test.do. Where does this
extra app folder came from? I can stop using redirects, but I
don't want to because some of my pages like to do redirect
to empty the populated forms for example.

Then I have question about database pooling. I have used
struts's struts-config.xml to define my data sources and my
action classes use this kind of method to retrieve one:

DataSource ds = (DataSource)servlet.getServletContext()
.getAttribute(Action.DATA_SOURCE_KEY);

Now I'd like to start using connection pooling facilities that
WebSphere provides. Can I still use struts-config.xml to
define the datasource that I'd like to retrieve from
WebSphere JNDI, and how? If not then, because I'm very
new to Java and WebSphere, I want to ask,  how do I
replace code sample above to take advantage of WebSphere?

Thanks.

Kind Regards
Aapo Laakkonen

-- Aapo Laakkonen, +358 (50) 33 99 682, ProjectCast Ltd, Helsinki, Finland.



RE: http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd

2001-08-03 Thread Assenza, Chris

Or get it out of the JAR file if you just want to d/l it. :) 

Chris

-Original Message-
From: Anthony Xin Chen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 02, 2001 1:46 PM
To: Ben Gill
Subject: Re: http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd


Hello Ben,

Thursday, August 02, 2001, 10:01:53 AM, you wrote:

BG> In IE5 gives:



BG> The XML page cannot be displayed Cannot view XML input using style
sheet.
BG> Please correct the error and then click the Refresh
BG>  button, or try again later.   Cannot have
a
BG> DTD declaration outside of a DTD. Line 26, Position 12  > ---^   

BG> Any ideas?



BG> NOTICE AND DISCLAIMER:
BG> This email (including attachments) is confidential.  If you have
received
BG> this email in error please notify the sender immediately and delete this
BG> email from your system without copying or disseminating it or placing
any
BG> reliance upon its contents.  We cannot accept liability for any breaches
of
BG> confidence arising through use of email.  Any opinions expressed in this
BG> email (including attachments) are those of the author and do not
necessarily
BG> reflect our opinions.  We will not accept responsibility for any
commitments
BG> made by our employees outside the scope of our business.  We do not
warrant
BG> the accuracy or completeness of such information.

I  had  the  same  problem when I tried to download DTD a few days ago
using IE5.5.

My Solution: code in your favourite language to download it directly.


-- 
Best regards, Anthony




RE: IF statement in struts-config.xml

2001-08-06 Thread Assenza, Chris

Hmmm, I'm not sure I see the value in this (at least actually IN the XML
file) - could you explain in more detail what you intend to do? 

Chris

-Original Message-
From: Yi-Xiong Zhou [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 06, 2001 5:02 PM
To: '[EMAIL PROTECTED]'
Subject: IF statement in struts-config.xml


Hi, 

I think it will be very useful if struts can have IF statement in
struts-config.xml to control the  action. 

I am thinking of building a purely configurable system using struts
framework. A system whose actions can be reassembled and chained to make new
functionalities. IF statements are key to chain actions. 

Has any plan to implement the IF function in struts-config.xml underway? 

Yi-Xiong Zhou



RE: Re. : RE: WEBSPHERE 3.5.4 and STRUTS 1.0: cant remove attributes from r equest scope

2001-08-08 Thread Assenza, Chris

http://www.enfused.com/struts.jar  :)

Chris


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 3:03 AM
To: [EMAIL PROTECTED]
Subject: Re. : RE: WEBSPHERE 3.5.4 and STRUTS 1.0: cant remove
attributes from r equest scope




Thanks Mark.

  Where can I find the struts.jar file with the modification "special WAS"?

  MIKAEL





Mark Wilson <[EMAIL PROTECTED]> le 07/08/2001 17:48:13

Veuillez répondre à [EMAIL PROTECTED]

Pour :"'[EMAIL PROTECTED]'"
<[EMAIL PROTECTED]>
cc :

Objet :   RE: WEBSPHERE 3.5.4 and STRUTS 1.0: cant remove attributes from r
  equest scope


WAS 4.0 so far is no different, you will get the same error.

The problem was fixed, by changing the code in
org.apache.struts.taglib.html.FormTag per this solution posted a while ago:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg10964.html

There is another FormTag class, org.apache.struts.taglib.FormTag.  Make sure
you got the right one, and rebuilt correctly?  This solution has worked
successfully repeatedly.

The problem lies with the IBM implementation of the org.apache.jasper
package. It behaves differently than the tomcat reference implementation, in
that it will always throw an exception when specifically removing attributes
from request scope.

Mark

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 07, 2001 10:18 AM
To: [EMAIL PROTECTED]
Subject: WEBSPHERE 3.5.4 and STRUTS 1.0: cant remove attributes from
request scope


Hello,

I write an application using struts.
I have a first JSP page with a link to a second JSP page which contains a
form.
The link looks like:


I get the first page with the link. But, when I click on it, I get the
following message:

"...cant remove Attributes from request scope..."

I've seen a lot of mails in the struts-user list about the "doEndTag"
method; so I tried to change the code of the "FormTag" class (in
/taglib/html).
It changes nothing.

So, if anyone has a solution...

A few questions:
Where does the problem come from (Struts, Websphere)?
Is there any improvement with Websphere 4.0?

Thanks for your help.
 MIKAEL




CONFIDENTIALITE : Ce message et les éventuelles pièces attachées sont
confidentiels. Si vous n'êtes pas dans la liste des destinataires,
veuillez
informer l'expéditeur immédiatement et ne pas divulguer le contenu à une
tierce personne, ne pas l'utiliser pour quelque raison que ce soit, ne
pas
stocker ou copier l'information qu'il contient sur un quelconque
support.

CONFIDENTIALITY : This  e-mail  and  any attachments are confidential
and
may be privileged. If  you are not a named recipient, please notify the
sender immediately and do not disclose the contents to another person,
use
it for any purpose or store or copy the information in any medium.





RE: New Release

2001-08-09 Thread Assenza, Chris

Just to confirm what Craig said, back-porting them to 1.0 appears to be 100%
problem-free. Once I saw those tags and was informed they were in the
nightly build, I grabbed them (along with TLD stuff, etc.) and dropped them
in our existing struts.jar (1.0); the tags work flawlessly and are quite
useful. :-) 

Chris

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 9:09 PM
To: Struts-User (E-mail)
Subject: Re: New Release




On Wed, 8 Aug 2001, MacKellar, Kimberly wrote:

> When is the new release of struts coming out (I really would like to use
the
> logic:notEmpty tag)?

If you're planning on waiting for a 1.1 release, we haven't really talked
about it yet.  I know there's quite a bit of stuff yet to integrate - in
the mean time, you could either use a 1.1 nightly build, or back-port
 and   What happened to PropertyUtils in the nightly builds?
> 

This class (and the digester stuff) now uses the packages from
jakarta-commons for this.  They have the same functionality but different
package names.  (The classes are in the commons-*.jar files).

> Kimberly MacKellar
> Thomson Financial Publishing
> [EMAIL PROTECTED]
> 

Craig



RE: New Release

2001-08-09 Thread Assenza, Chris

Hehe, that's good because I didn't know what else to tell you. ^_^

Chris


-Original Message-
From: MacKellar, Kimberly [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 12:08 PM
To: '[EMAIL PROTECTED]'
Subject: RE: New Release


Well if I move the jar file to the correct directory, it all seems to
work... Amazing :">

-Original Message-
From: MacKellar, Kimberly 
Sent: Thursday, August 09, 2001 10:39 AM
To: '[EMAIL PROTECTED]'
Subject: RE: New Release


Chris,
This isn't exactly struts related...  How did you add back-port the
tags?  I ran jar uf struts.jar org\apache\struts\taglib\logic\EmptyTag.class
and the same for NotEmpty.class.  I also copied over the struts-logic.tld to
my WEB-INF directory.  When I restart Tomcat and try to access a page that
uses the notEmpty tag I get "Unable to load class
org.apache.struts.taglib.logic.NotEmptyTag".  Do I need to add the class
files to the manifest of my struts.jar or is it something else?

Kim

-Original Message-
From: Assenza, Chris [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 7:55 AM
To: '[EMAIL PROTECTED]'
Subject: RE: New Release


Just to confirm what Craig said, back-porting them to 1.0 appears to be 100%
problem-free. Once I saw those tags and was informed they were in the
nightly build, I grabbed them (along with TLD stuff, etc.) and dropped them
in our existing struts.jar (1.0); the tags work flawlessly and are quite
useful. :-) 

Chris

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 9:09 PM
To: Struts-User (E-mail)
Subject: Re: New Release




On Wed, 8 Aug 2001, MacKellar, Kimberly wrote:

> When is the new release of struts coming out (I really would like to use
the
> logic:notEmpty tag)?

If you're planning on waiting for a 1.1 release, we haven't really talked
about it yet.  I know there's quite a bit of stuff yet to integrate - in
the mean time, you could either use a 1.1 nightly build, or back-port
 and   What happened to PropertyUtils in the nightly builds?
> 

This class (and the digester stuff) now uses the packages from
jakarta-commons for this.  They have the same functionality but different
package names.  (The classes are in the commons-*.jar files).

> Kimberly MacKellar
> Thomson Financial Publishing
> [EMAIL PROTECTED]
> 

Craig



RE: Index within iterate tags

2001-08-14 Thread Assenza, Chris

When you write your iterator tag add the attribute: indexId="somevalue"

Then you can use the bean tags to access "indexId" which returns the current
index of the iterator! :-)

-Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: Nicola Taylor [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 12:00 PM
To: Struts-User (E-mail)
Subject: Index within iterate tags


Hi,

were using the indexed properties tags and it'd be useful to know the
current index in the jsp (to do some javascript stuff).  Is there any
standard way to access the current index in the iterator?

1) write a custom tag to return:
IterateTag iterateTag = (IterateTag) findAncestorWithClass(this,
IterateTag.class);
iterateTag.getIndex();

2) have a counter variable that we increment within the iterate loop.

Cheers


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



RE: onclick handler in the context of a struts iterate tag

2001-08-14 Thread Assenza, Chris

>>I've thought of hidden
>>fields, but I don't now they would help, since
>>I can't set them from an action class.

Hmm, perhaps I'm misunderstanding your point, but why couldn't you set them
from an action class?

Anyway, hidden fields are very useful because then you've exposed that piece
of data to the client and JavaScript can then sink its teeth into it, if
need be. :)

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: Larry Maturo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 5:27 PM
To: [EMAIL PROTECTED]
Subject: RE: onclick handler in the context of a struts iterate tag


Hi Dave,

No, I'm not using the same form for all three
pages. p2 repeats once for each of n items.  I
have back and next buttons, and my action class
for p2 determines if I hit back on the first
item, or next on the last item, and does the
appropriate forwarding.  I've thought of hidden
fields, but I don't now they would help, since
I can't set them from an action class.

Currently my thought is to use a request parameter
from p1, a session attribute on p3, and on p2 check
to see if either is non-null, and use that one.  This
is an ugly solution, and I'm surprised struts doesn't
supply something more elegant for so common a
problem.

-- Larry


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 4:12 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: onclick handler in the context of a struts iterate tag




Larry,

Hi.  You are correct that you cannot access the session using Javascript.

Are you using the same form for all three pages?  If so, you could use a
hidden
field, and set it in p1, and then in the action from p3.  Presumably what
you
display in p2 depends on the value you pass - how/where do you do that
processing?

Cheers,

Dave





"Larry Maturo" <[EMAIL PROTECTED]> on 08/14/2001
04:45:43 PM

Please respond to [EMAIL PROTECTED];
Please
  respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  RE: onclick handler in the context of a struts iterate tag



I'll be glad to supply more info.

I have 3 pages.  Call them p1, p2, and p3.  On p1 I have a link to
p2 that is in table, with each row having the same link, but a
different value to pass to p2.  On p3 I get to p2 via a forward
in my action class, based on what the user does.  The parameter
needed by p2 must somehow be passed to it, and this is where
my problem lies.

In the action class there is no request.setParameter method to call,
therefore, I can't use a request parameter to pass the value to
p2.  My thought was to pass it to p2, from the p3 action class,
via a request.getSession().setAttribute call.

This means that in p1 I must also set the parameter in a session
attribute.  I assumed I could do this using the onclick handler
of the html:link tag, where the parameter is from an iterate
tag.  I have yet figured out how to do this.  I have tried using
JavaScript, but I apparently don't have access to the session in
JavaScript.  I have tried using a scriptlet, but apparently the
onclick property of the html:link tag does not like scriptlets.

Any ideas on how to handle this?

-- Larry Maturo




Not sure I understand you - could you post some more info?

Not quite sure why you can't pass info in the link?  Do you want a hidden
field
instead?

Cheers,

Dave




"Larry Maturo" <[EMAIL PROTECTED]> on 08/14/2001
11:11:45 AM

Please respond to [EMAIL PROTECTED];
Please
  respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  onclick handler in the context of a struts iterate tag



Sorry to have to ask this again, but I got
no response to my original question.  This
time I only asking about the most important
subset of the problem, so hopefully it will
get a response.

I have a table I fill using the iterate tag.
In the table I have a link that is generated
from the iterate tag data.

I need to pass data in the link without using
a parameter, since when I get to the target
page from an Action Class, instead of this
link, I can't set parameters.

As far as I can tell, that means I will have
to utilize the onclick handler to do the
work, and I will need to pass it, as a
parameter, something made available from
the iterate tag.  How does one do this?

-- Larry Maturo

















RE: URGENT: PLEASE HELP

2001-08-15 Thread Assenza, Chris

Hello, I'm HTML in a
template

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: Shelly Dhiman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 15, 2001 1:51 PM
To: [EMAIL PROTECTED]
Subject: URGENT: PLEASE HELP


In 
template:put name='abc' content='' tag 
can we put direct html code fragment 


Shelly



RE: Setting focus on field with error

2001-08-16 Thread Assenza, Chris

I've just been asked to do the same exact thing in our app (what a
coincidence!!) but I haven't determined exactly what do yet.  In our app,
ActionErrors are added by the name of the form field that had the error (ie.
field1 is the ActionErrors property and also the html:text property on the
JSP). 

I'm thinking that we can expose the ActionErrors object to the front-end and
use the messages HashMap or methods inherited from ActionMessages to
identify a property and then use JavaScript to set the focus on that
property.  This can probably be done pretty cleanly with a taglib.  

Again, this is just speculation on my part and I need to do a lot of
research into ActionErrors and Messages because I haven't dug into the API
much for them, having had no need to until now. Let me know what you find
out! :)

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: Troy Hart [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 3:56 PM
To: [EMAIL PROTECTED]
Subject: Re: Setting focus on field with error


I could be wrong but I can't think of anything that would be very
convenient. 
The only way I could imagine doing it (and I'm not sure it would even work) 
would be to invoke a javascript function every time the page loads. You
could 
add a bean with the data needed by the javascript  to the request, from your

action class. NOTE: this would require you to forgo the automatic form 
validation and instead trigger validation from your action class. This is
the 
only way to get the bean I talked about into the request (as a request 
attribute that is).

Troy

On Thursday 16 August 2001 11:03 am, you wrote:
> Is their a nifty way to have the focus automagically go to the field with
> the error, on an input form?  For example, if I have a form with an
> 'amount' field, and the user enters an invalid amount, causing my Action
to
> return an appropriate error, keyed in the ActionErrors container with the
> 'amount' property, is there a slick way to have the focus set to that
field
> on the form?  I know how to have the error message display next to the
> offending field, but having the focus go there also would be nice.
>
> Thanks!
>
> Steve Molitor
> [EMAIL PROTECTED]



RE: Va Java and Struts

2001-08-22 Thread Assenza, Chris

You need a special struts.jar with a slight modification to the form tag,
which you can download from: http://www.enfused.com/struts.jar

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: MARYANNE B. SMITH [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 2:19 PM
To: [EMAIL PROTECTED]
Subject: Va Java and Struts


I was trying to run the sample app from the article
"Making Struts work in the VisualAge for Java 3.5.3 WebSphere Test
Environment" in the Va Java 3.5.3 Test Environment.

I installed the binary distribution file (Struts 1.0b)so I do not
have the source to fix or change. This is the error I get upon
requesting the employee.search.jsp page.

Root Error-1: cant remove Attributes from request scope

java.lang.IllegalArgumentException: cant remove Attributes from
request scope
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
java.lang.RuntimeException(java.lang.String)
java.lang.IllegalArgumentException(java.lang.String)
void
org.apache.jasper.runtime.PageContextImpl.removeAttribute(java.lan
g.String, int)
int org.apache.struts.taglib.html.FormTag.doEndTag()
void
jsp._employeeEdit_xjsp._jspService(javax.servlet.http.HttpServletR
equest, javax.servlet.http.HttpServletResponse)
void
org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.H
ttpServletRequest, javax.servlet.http.HttpServletResponse)
void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletReques
t, javax.servlet.ServletResponse)
void
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(jav
ax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, boolean)
void
org.apache.jasper.runtime.JspServlet.serviceJspFile(javax.servlet.
http.HttpServletRequest



Any suggestions?

Maryanne



RE: Va Java and Struts

2001-08-22 Thread Assenza, Chris

Here it is:
http://www7.software.ibm.com/vad.nsf/data/document2558?OpenDocument&p=1&BCT

:)

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 2:33 PM
To: [EMAIL PROTECTED]
Subject: RE: Va Java and Struts


MaryAnne,

I can't help you as I am new to Struts as well as VAJ and Websphere, but I
would be very grateful if you could send me that article.

Thanks,

Robert

-Original Message-
From: MARYANNE B. SMITH [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 11:19 AM
To: [EMAIL PROTECTED]
Subject: Va Java and Struts


I was trying to run the sample app from the article
"Making Struts work in the VisualAge for Java 3.5.3 WebSphere Test
Environment" in the Va Java 3.5.3 Test Environment.

I installed the binary distribution file (Struts 1.0b)so I do not
have the source to fix or change. This is the error I get upon
requesting the employee.search.jsp page.

Root Error-1: cant remove Attributes from request scope

java.lang.IllegalArgumentException: cant remove Attributes from
request scope
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
java.lang.RuntimeException(java.lang.String)
java.lang.IllegalArgumentException(java.lang.String)
void
org.apache.jasper.runtime.PageContextImpl.removeAttribute(java.lan
g.String, int)
int org.apache.struts.taglib.html.FormTag.doEndTag()
void
jsp._employeeEdit_xjsp._jspService(javax.servlet.http.HttpServletR
equest, javax.servlet.http.HttpServletResponse)
void
org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.H
ttpServletRequest, javax.servlet.http.HttpServletResponse)
void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletReques
t, javax.servlet.ServletResponse)
void
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(jav
ax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, boolean)
void
org.apache.jasper.runtime.JspServlet.serviceJspFile(javax.servlet.
http.HttpServletRequest



Any suggestions?

Maryanne



RE: looking for success stories

2001-08-22 Thread Assenza, Chris

Eric,

I can't really give you a success story yet, our first Struts application
isn't complete and I'd say we did some things wrong and did some things
right along the way - but overall things are going very well and Struts has
been very useful.  

Just hang around here for a bit and you'll get some good pointers.  Others
on the list have posted some excellent design patterns, success stories and
lessons learned as I'm sure they'll share.  :)  Check out
http://husted.com/struts for some good resources.

As for WebSphere, I can vouch for it with both 3.5.3 and 4.0.  There are a
few things to be aware of prior to moving forward.  First and foremost -
both WAS 3.5.x and 4.0 are using versions of Jasper that are slightly behind
the latest spec; unfortunately, Struts makes use of the parts of the spec
wherein WAS is lacking.  A very simple change has been made to the Form
taglib that will allow Struts 1.0 to work in a WAS environment.  It can be
downloaded at: http://www.enfused.com/struts.jar

Second, in 3.5.3 deployment requires some extra steps and some tweaking. A
list of the special steps can be found:
http://jakarta.apache.org/struts/installation-was352-x.html

As for 4.0, deployment is pretty straight forward.  The Application Assembly
tool is the nicest and most usable J2EE deployment tool I've seen to date
and will get the job done just fine.  The fact that 4.0 is J2EE compliant
helps a lot too - finally we can use EAR's and WAR's properly. :)

Hope that helps,

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 4:06 PM
To: [EMAIL PROTECTED]
Subject: looking for success stories


Hello,

We are currently in the early design stages of an extremely high profile
application and I am considering using Struts.  I have used it in the past
for several very small applications with no more than a couple concurrent
users.  But since we only get one

shot at making this application work (or we'll all be out on our arses) I
must make a very convincing case for Struts.

Does anyone have any success stories that they'd like to share?  Or can
anyone point me in the direction of any articles or web pages or whatever
where I may find info?

By the way, we are going to deploy on Websphere (we're currently on 3.5.3
but will hopefully move to 4.0 before we roll it out) so I'd be especially
interested if anyone has successfully deployed on WAS.

Thanks!
-Eric Stievater
[EMAIL PROTECTED]


*** IMPORTANT NOTE *
The opinions expressed in this message and/or any attachments are
those of the author and not necessarily those of Brown Brothers
Harriman & Co., its subsidiaries and affiliates ("BBH").  There is no
guarantee that this message is either private or confidential, and it
may have been altered by unauthorized sources without your or our
knowledge.  Nothing in the message is capable or intended to create
any legally binding obligations on either party and it is not intended
to provide legal advice.  BBH accepts no responsibility for loss or
damage from its use, including damage from virus.




RE: looking for success stories

2001-08-22 Thread Assenza, Chris

Eek, I gave you a bad link for Ted Husted's site, the correct one is:
http://www.husted.com/about/struts/

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: Assenza, Chris [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 4:16 PM
To: '[EMAIL PROTECTED]'
Subject: RE: looking for success stories


Eric,

I can't really give you a success story yet, our first Struts application
isn't complete and I'd say we did some things wrong and did some things
right along the way - but overall things are going very well and Struts has
been very useful.  

Just hang around here for a bit and you'll get some good pointers.  Others
on the list have posted some excellent design patterns, success stories and
lessons learned as I'm sure they'll share.  :)  Check out
http://husted.com/struts for some good resources.

As for WebSphere, I can vouch for it with both 3.5.3 and 4.0.  There are a
few things to be aware of prior to moving forward.  First and foremost -
both WAS 3.5.x and 4.0 are using versions of Jasper that are slightly behind
the latest spec; unfortunately, Struts makes use of the parts of the spec
wherein WAS is lacking.  A very simple change has been made to the Form
taglib that will allow Struts 1.0 to work in a WAS environment.  It can be
downloaded at: http://www.enfused.com/struts.jar

Second, in 3.5.3 deployment requires some extra steps and some tweaking. A
list of the special steps can be found:
http://jakarta.apache.org/struts/installation-was352-x.html

As for 4.0, deployment is pretty straight forward.  The Application Assembly
tool is the nicest and most usable J2EE deployment tool I've seen to date
and will get the job done just fine.  The fact that 4.0 is J2EE compliant
helps a lot too - finally we can use EAR's and WAR's properly. :)

Hope that helps,

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 4:06 PM
To: [EMAIL PROTECTED]
Subject: looking for success stories


Hello,

We are currently in the early design stages of an extremely high profile
application and I am considering using Struts.  I have used it in the past
for several very small applications with no more than a couple concurrent
users.  But since we only get one

shot at making this application work (or we'll all be out on our arses) I
must make a very convincing case for Struts.

Does anyone have any success stories that they'd like to share?  Or can
anyone point me in the direction of any articles or web pages or whatever
where I may find info?

By the way, we are going to deploy on Websphere (we're currently on 3.5.3
but will hopefully move to 4.0 before we roll it out) so I'd be especially
interested if anyone has successfully deployed on WAS.

Thanks!
-Eric Stievater
[EMAIL PROTECTED]


*** IMPORTANT NOTE *
The opinions expressed in this message and/or any attachments are
those of the author and not necessarily those of Brown Brothers
Harriman & Co., its subsidiaries and affiliates ("BBH").  There is no
guarantee that this message is either private or confidential, and it
may have been altered by unauthorized sources without your or our
knowledge.  Nothing in the message is capable or intended to create
any legally binding obligations on either party and it is not intended
to provide legal advice.  BBH accepts no responsibility for loss or
damage from its use, including damage from virus.




RE: Struts with WebSphere 4.0 on Win2000

2001-08-23 Thread Assenza, Chris

Yes, it works quite well. :) 

Chris

Christopher Assenza 
Phone:  412.201.6026 
Fax: 412.201.6060 
Email:  [EMAIL PROTECTED] 
ACCESSDATA 
Moving Your Business from Point A to Point e.SM 
http://www.accessdc.com/ 
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 7:35 PM
To: [EMAIL PROTECTED]
Subject: Struts with WebSphere 4.0 on Win2000


Any chance anyone has done this for WAS 4.0 on 2000? 



RE: Struts with WebSphere 4.0 on Win2000

2001-08-23 Thread Assenza, Chris

Kent,

Yes, we use EJB's - no special libraries for that specific functionality,
although there are issues with deployment and servlet spec compatibility.
Not to repeat what Terence said but I'm going to cut and paste an earlier
response from yesterday. :)

Details on the shortcoming of WAS' JASPER can be found:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg10964.html and
somewhere else in the archive with some explanation from Craig and others,
but I don't recall where. :)


As for WebSphere, I can vouch for it with both 3.5.3 and 4.0.  There are a
few things to be aware of prior to moving forward.  First and foremost -
both WAS 3.5.x and 4.0 are using versions of Jasper that are slightly behind
the latest spec; unfortunately, Struts makes use of the parts of the spec
wherein WAS is lacking.  A very simple change has been made to the Form
taglib that will allow Struts 1.0 to work in a WAS environment.  It can be
downloaded at: http://www.enfused.com/struts.jar

Second, in 3.5.3 deployment requires some extra steps and some tweaking. A
list of the special steps can be found:
http://jakarta.apache.org/struts/installation-was352-x.html

As for 4.0, deployment is pretty straight forward.  The Application Assembly
tool is the nicest and most usable J2EE deployment tool I've seen to date
and will get the job done just fine.  The fact that 4.0 is J2EE compliant
helps a lot too - finally we can use EAR's and WAR's properly. :)

Hope that helps,

Chris


Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: Kent Roylance [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 10:06 AM
To: [EMAIL PROTECTED]
Subject: RE: Struts with WebSphere 4.0 on Win2000


Are you using EJB?  What libraries did you have to import to get it working?
Is there anything special you had to do to get it working?

Thanks,

Kent

-Original Message-
From: Assenza, Chris [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 7:15 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Struts with WebSphere 4.0 on Win2000


Yes, it works quite well. :) 

Chris

Christopher Assenza 
Phone:  412.201.6026 
Fax: 412.201.6060 
Email:  [EMAIL PROTECTED] 
ACCESSDATA 
Moving Your Business from Point A to Point e.SM 
http://www.accessdc.com/ 
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 7:35 PM
To: [EMAIL PROTECTED]
Subject: Struts with WebSphere 4.0 on Win2000


Any chance anyone has done this for WAS 4.0 on 2000? 



RE: Struts with WebSphere 4.0 on Win2000

2001-08-23 Thread Assenza, Chris

Stephen,

We aren't using VAJ (currently) so I can't vouch for the WTE, although it is
supposed to be identical to the single-server free license you can d/l from
the IBM site. 

For 4.0 there ARE no long-winded "extra" steps believe it or not.  It's been
a while since I last played with it but you just need to package a J2EE
compliant EAR or WAR file and use the Application Assembly tool to "Generate
Code for Deployment" (If I recall the menu option correctly).  The DTD thing
is no longer an issue, at least from my experience. It is really quite easy.


I compiled some PRELIMINARY steps for our own application and have included
them here.  They take place after the EAR file has been made "deployable" by
the AA tool. :)  Please don't take them as the absolute only and best way to
get the job done, they stem from early experimenting. :)  Since so many
people seem to be asking I might just go home tonight and try to formalize
the whole process. :)

Brief Preliminary Deployment Instructions for WAS 4.0

·   Deploy Application
o   Install WebSphere 4.0
o   Once completed and system is restarted (if necessary): Start
the WebSphere service   (startServer.bat on NT, probably
startServer.sh on Unix)
o   After the server has started, log onto the web-based
Administration Console  (http://localhost:9090/admin).
o   Next, expand "Nodes" on the left.
o   Click on Enterprise Applications
o   Click on Install
o   Browse to the file Deployed_app.ear that you created with
the AA tool.
o   Select the file follow the steps the console takes you
through:
§   Click next on EJB deployment screen.
§   Click next on the Web Module deployment screen
(change your preference on  pre-compiling if you so
desire).
§   On the next screen, allow WebSphere to redeploy
YourApp-ejb.jar by leaving  the box checked and clicking
next. (ed: Not sure if this step is necessary)
§   Review the settings and click Finish when ready.
·   Once finished, begin JDBC configuration. (for Oracle)
o   Expand Resources in the left navigation area.
o   Click "JDBC Drivers"
o   Click "New"
§   The Server Class Path is the location of
classes12.zip (Oracle's JDBCdrivers) on the
server.
§   Name is: "OracleJdbcDriver"
§   Implementation Classname is:
oracle.jdbc.pool.OracleConnectionPoolDataSource
o   Click Ok to add the driver.
o   Expand the newly created "OracleJdbcDriver" in the
left navigation area.
o   Click on "Data Sources"
o   Click "New"
§   Name is: somePool
§   JNDI Name is: jdbc/somePool
§   Default Userid is: someId 
§   Defaults Password is: somePass 
§   All others left blank/default.
o   Click Ok to add the Data Source.
o   From the Data Source screen, click on somePool.
o   Click on Property Set (on the bottom).
o   Click Resource Properties
o   Click "New"
§   Name is: URL
§   Type is: java.lang.String
§   Value is: jdbc:oracle:thin:user/pass@host:port:sid 
Where:
·   user/pass are the username/password
respectively
·   host is the IP address of the Oracle
DB Server 
·   port is the port on which Oracle is
listening (ex. 1521).
·   sid is the Oracle SID or name for
the database
o   Click Ok until you've reached the Data Source Screen.
·   Complete Deployment
o   Click "Save" on the nav-bar at the top of the screen.
o   Select server-config.xml (or the top option) and click Ok.  
o   Stop and then restart the WebSphere AppServer.
·   Once started, go to http://someIpAddress/appname/file.jsp to test
the deployment.

-Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 10:36 AM
To: [EMAIL PROTECTED]
Subject: RE: Struts with WebSphere 4.0 on Win2000


Chris,

I've managed to get this running in VAJ 4.0(WTE), but for some reason, I'm
missing some step somewhere in getting it to run in WAS 4.0.

Do you (or anyone else watching), by chance have step-by-step intstructions
for getting the example app running in 4.0?  I've heard various piecies,
like needing t

RE: URGENT: PLEASE HELP

2001-08-24 Thread Assenza, Chris

Shelly,

I've cut and paste the template for one of our pages (minus a lot of extra
puts). This does indeed work. 



HTML Text


Make sure you aren't closing the opening put tag with a slash before the
content 
(ie. DO NOT DO: html)
(note the slash before ">htmlhttp://www.accessdc.com/



-Original Message-
From: Shelly Dhiman [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 2:30 PM
To: [EMAIL PROTECTED]
Subject: Re: URGENT: PLEASE HELP


Hi, 

It does not work. It complains about ending the template:put tag

Shelly

"Assenza, Chris" wrote:
> 
> Hello, I'm HTML in a
> template
> 
> Chris
> 
> Christopher Assenza
> Phone:  412.201.6026
> Fax: 412.201.6060
> Email:  [EMAIL PROTECTED]
> ACCESSDATA
> Moving Your Business from Point A to Point e.SM
> http://www.accessdc.com/
> 
> -Original Message-
> From: Shelly Dhiman [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 15, 2001 1:51 PM
> To: [EMAIL PROTECTED]
> Subject: URGENT: PLEASE HELP
> 
> In
> template:put name='abc' content='' tag
> can we put direct html code fragment
> 
> Shelly



RE: URGENT: PLEASE HELP

2001-08-24 Thread Assenza, Chris

Ignore the word wrapping, sorry. :)

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: Assenza, Chris [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 2:34 PM
To: '[EMAIL PROTECTED]'
Subject: RE: URGENT: PLEASE HELP


Shelly,

I've cut and paste the template for one of our pages (minus a lot of extra
puts). This does indeed work. 



HTML Text


Make sure you aren't closing the opening put tag with a slash before the
content 
(ie. DO NOT DO: html)
(note the slash before ">htmlhttp://www.accessdc.com/



-Original Message-
From: Shelly Dhiman [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 2:30 PM
To: [EMAIL PROTECTED]
Subject: Re: URGENT: PLEASE HELP


Hi, 

It does not work. It complains about ending the template:put tag

Shelly

"Assenza, Chris" wrote:
> 
> Hello, I'm HTML in a
> template
> 
> Chris
> 
> Christopher Assenza
> Phone:  412.201.6026
> Fax: 412.201.6060
> Email:  [EMAIL PROTECTED]
> ACCESSDATA
> Moving Your Business from Point A to Point e.SM
> http://www.accessdc.com/
> 
> -Original Message-
> From: Shelly Dhiman [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 15, 2001 1:51 PM
> To: [EMAIL PROTECTED]
> Subject: URGENT: PLEASE HELP
> 
> In
> template:put name='abc' content='' tag
> can we put direct html code fragment
> 
> Shelly



RE: Probleme with

2001-08-27 Thread Assenza, Chris

Just an aside, don't know if it will impact your problem but struts-form.tld
and associated tags are deprecated. If you're using 1.0 they have been
replaced by the classes referenced in struts-html.tld

Chris

Christopher Assenza
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: emmanuel.boudrant [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 27, 2001 10:04 AM
To: [EMAIL PROTECTED]
Subject: Probleme with 


Hello,

Here my struts form :


<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-form.tld"
prefix="form" %>



   

  

  




My struts-config.xml is good but when I execute my
JSP, I've got this execption:

javax.servlet.ServletException: Cannot find message
resources under key org.apache.struts.action.MESSAGE
at
javax.servlet.ServletException.(ServletException.java:161)

Does anybody have a solution ?

Thanks a lot
Emmanuel


___
Do You Yahoo!? -- Un e-mail gratuit @yahoo.fr !
Yahoo! Courrier : http://fr.mail.yahoo.com



RE: Barracuda vs. Struts (request for review)

2001-08-27 Thread Assenza, Chris

I haven't read it all yet (and would like to - Barracuda looks intriguing),
but: 

"Barracuda definitely aims at the Java Developer end of the spectrum (with
the idea that tools integration will ultimately bridge the gap to less
sophisticated Page Author types)."

...

"Unlike Barracuda, Struts is aimed squarely at the Page Author types"

"Less sophisticated" sounds really arrogant, demeaning and is clearly biased
- and that's not even the meat of the presentation. :p  

Don't get me wrong, I'm not offended nor do I think anyone should be, but
that tone so early on changed my perception almost instantaneously.  There
are better ways to say what you are trying to communicate IMO, and little
phrases like that really do count.  

Best,

-Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: Christian Cryder [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 27, 2001 3:31 PM
To: Struts-User
Subject: Barracuda vs. Struts (request for review)


Hi guys,

I've put together a fairly detailed architectural comparison of Struts vs.
Barracuda:
http://barracuda.enhydra.org/cvs_source/Barracuda/docs/barracuda_vs_struts.h
tml

While I've tried to keep the document fair and even-handed, it's quite
possible that I've not given Struts a fair shake (since I don't know Struts
that well after all). At any rate, I wanted to give you Struts experts a
chance to review the document and correct any misunderstandings I might
have. If you think I've really botched something, please let me know and
I'll try to make it better. My goal here is to represent both frameworks as
accurately as possible.

Thanks much,
Christian

Christian Cryder [[EMAIL PROTECTED]]
Barracuda - MVC Component Framework for Webapps
http://barracuda.enhydra.org

"What a great time to be a Geek"



RE: Barracuda vs. Struts (request for review)

2001-08-27 Thread Assenza, Chris

I should clarify that I don't disagree with what you're saying per se, I
just think there is a better way it can be said. :)  

Basically pretty much ignore me until I read the whole thing, lol! :D

Best,

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-----
From: Assenza, Chris [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 27, 2001 3:34 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Barracuda vs. Struts (request for review)


I haven't read it all yet (and would like to - Barracuda looks intriguing),
but: 

"Barracuda definitely aims at the Java Developer end of the spectrum (with
the idea that tools integration will ultimately bridge the gap to less
sophisticated Page Author types)."

...

"Unlike Barracuda, Struts is aimed squarely at the Page Author types"

"Less sophisticated" sounds really arrogant, demeaning and is clearly biased
- and that's not even the meat of the presentation. :p  

Don't get me wrong, I'm not offended nor do I think anyone should be, but
that tone so early on changed my perception almost instantaneously.  There
are better ways to say what you are trying to communicate IMO, and little
phrases like that really do count.  

Best,

-Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: Christian Cryder [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 27, 2001 3:31 PM
To: Struts-User
Subject: Barracuda vs. Struts (request for review)


Hi guys,

I've put together a fairly detailed architectural comparison of Struts vs.
Barracuda:
http://barracuda.enhydra.org/cvs_source/Barracuda/docs/barracuda_vs_struts.h
tml

While I've tried to keep the document fair and even-handed, it's quite
possible that I've not given Struts a fair shake (since I don't know Struts
that well after all). At any rate, I wanted to give you Struts experts a
chance to review the document and correct any misunderstandings I might
have. If you think I've really botched something, please let me know and
I'll try to make it better. My goal here is to represent both frameworks as
accurately as possible.

Thanks much,
Christian

Christian Cryder [[EMAIL PROTECTED]]
Barracuda - MVC Component Framework for Webapps
http://barracuda.enhydra.org

"What a great time to be a Geek"



RE: Barracuda vs. Struts

2001-08-28 Thread Assenza, Chris

>Now, DreamWeaver UltraDev, that's a platform for Page Author types that
>want to use JSP. (It's actually quite impressive -- if you never look at
>the
>code it generates ;-)

Roflol! :P

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 4:20 PM
To: [EMAIL PROTECTED]
Subject: Re: Barracuda vs. Struts


Christian Cryder wrote:
> a. Would it be acceptable to change the description to "Action Mappings
> (struts-config.xml)"? I wanted to convey the idea that the mappings were
> specified declaratively.

Sure. 

> b. Could you explain what you mean by "These are accessed by the
Controller
> and the View via tags."? I'm assuming you are NOT saying that the
Controller
> accesses them via tags. But I'm unclear how the View accesses the
> ActionMapping stuff...doesn't the view just grab data from a) ActionForms
or
> b) beans which are set up by the Action classes?

The Controller servlet uses the Digester to create a ActionMappings
object in the ServletContext. The tags know the name of the
ActionMappings object and access it that way.

Struts is model-neutral, and none of the Struts tags are designed to
access the model. Though, developers could use such tags of their own
(which I know annoys you, Jon Stevens, and several other observers ;-).

I personally believe a distinction between the Model and the model
will be lost on nearly everyone. The Struts tags are designed to expose
JavaBeans, which may from the model or some other state. It's my opinion
that a central feature of Model 2 should be that the model is
displayed by the view ~through~ the controller. The Struts tags do not
interact with the model but only with the controller.

> I'm afraid I don't follow this at all. The point I am attempting to make
in
> #2 is that even if developers don't use scriptlets, the use of tag-libs
(at
> least if you use conditionals or iterative tags) effectively mixes
> "programming logic" in with your markup. While I have heard this justified
> by calling it "presentation logic" (thereby it's ok to mix it in), in my
> mind its not compelling--the tags logic is evaluated and processed on the
> server, the markup on the client. To me this breaks the clean separation
> (and as such its a valid criticm).

Sorry, I thought you meant the 

<%@ taglib uri="/tags/struts-logic" prefix="logic" %>

markup that specifies the library to be included.

> Hmmm...I think we have a different definition of "valid markup". For me,
> valid markup is HTML or XML that can be validated by a DTD. Templates
which
> remain "valid markup" in this sense of the word can be easily manipulated
by
> any standard markup tool (Dreamweaver, FrontPage, etc).

Custom taglibs can be validated via the TLDs. A GUI that reads TLDs can
validate the custom tags (and generate dialogs for them) along with any
other 
markup.

> Actually, Barracuda templates remain valid markup at all times since all
> they use is id or class attributes (validated by the HTML 4.01
strict.dtd).
> For XML, WML, etc. you can specify an attribute name (ie. if 'id' or
'class'
> is not a valid attribute).

I stand corrected then. Quite clever really.

> I would be interested in hearing more about how this actually works. What
> I'm especially interested in is how the Action classes would specify the
> View...in other words, my conception of "Skins" is that the Controller
code
> says "render this view" and has no knowledge of what skin actually gets
> used. In other words, the skins logic ("for this view use this skin")
should
> be decoupled from the application logic ("for this action generate this
> view"). I'd love to hear how you guys handle this.

Cedric's Tiles package uses a XML configuration file that can specify
various template settings, and can be passed along in the request. I'll
be 
doing some more work with these myself this week. 

http://www.lifl.fr/~dumoulin/tiles/

> I'd actually like to take some time and benchmark this...Would you be
> willing to help me develop a set of criteria that might correspond to a
> typical Struts application (ie. how many reflection calls actually get
made
> for a typical page). Maybe we could even put together a very simple app
(ie.
> one screen that pulls data from a statically defined JavaBean) in both
> Barracuda and Struts just to see how they compare. I'd be very interested
in
> trying to quantify just how much of a hit there is 

My Struts-Simple app might work for this. 

http://husted.com/about/struts/resources.htm#new

Meanwhile, I'm still not sure why you slot Struts for "Page Author"
types. Because it uses JSPs? After all, you said yourself that
developers end up writing JSPs, so that can't be it ;-) 

A Model 1 JSP framework might be targeted for "Page Author" types, but
Struts is a Model 2 framework. Ser

RE: Logic Tags

2001-08-29 Thread Assenza, Chris

Could you be more specific so we can help? :) 

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: Mike Bungay [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 10:32 AM
To: '[EMAIL PROTECTED]'
Subject: Logic Tags


I'm having some problems getting the Logic present tag to fire when I pass
it a request parameter.  



RE: Websphere deployment problem

2001-08-30 Thread Assenza, Chris

See: http://jakarta.apache.org/struts/installation-was352-x.html

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 12:49 PM
To: [EMAIL PROTECTED]
Subject: Websphere deployment problem





Hi,

when i deploy struts application in websphere 3.5.2 and try to access any
JSP
file i get the following error.
Can anyone let me know how to resolve it.

TIA
rafee

[01.08.30 16:57:04:735 GMT+05:30] 32e0194d WebGroup  A SRVE0091I:
[Servlet
LOG]: "jsp11: init"
[01.08.30 16:57:04:846 GMT+05:30] 32e0194d ServletInstan A SRVE0130I:
Servlet
available for service: "jsp11"
[01.08.30 16:58:12:142 GMT+05:30] a16c9945 WebGroup  X [Servlet
Error]-[{0}]: {1}: {2}
 "jsp11"
 "org/apache/struts/action/ActionForm"

com.ibm.servlet.engine.webapp.WebAppErrorReport:
org/apache/struts/action/ActionForm
 at
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(WebAppDispa
tcherResponse.java:97)

 at
org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:381)
 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:460)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:580)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:160)
 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:287)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:105)

 at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:35
3)
 at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:729)

 at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:655)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebAppRequestDispatcher.java:338)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
Dispatcher.java:175)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
ispatcher.java:93)

 at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.
java:77)

 at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn
vocation.java:67)

 at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ
estProcessor.java:155)
 at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener
.java:300)

 at
com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQ
EventListenerImp.java:230)

 at
com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventL
istenerImp.java:104)

 at
com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQE
ventSource.java:212)

 at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu
nnable.notifyService(SQWrapperEventSource.java:347)

 at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu
nnable.run(SQWrapperEventSource.java:216)

 at
com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run
(OutOfProcThread.java:248)

 at java.lang.Thread.run(Thread.java:481)

[01.08.30 16:58:12:483 GMT+05:30] a16c9945 ServletInstan X Uncaught
service()
exception thrown by servlet {0}: {1}
 "file"
 javax.servlet.ServletException
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:598)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:160)

 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:287)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:105)

 at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:35
3)
 at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:729)

 at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:655)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebAppRequestDispatcher.java:338)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
Dispatcher.java:175)
 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.include(WebAppRequestD
ispatcher.java:97)

 at com.ibm.servlet.engine.webapp.WebApp.sendError(WebApp.java:578)
 at
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError

RE: Websphere deployment problem

2001-08-30 Thread Assenza, Chris

Can you provide more details? :-)

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 4:33 PM
To: [EMAIL PROTECTED]
Subject: RE: Websphere deployment problem





Hi chris,

i have followed the instructions. I am able to run struts example
application
but a sample
application done by me does not run.

TIA
rafee

Date: Thu, 30 Aug 2001 09:08:27 -0400
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
From: "Assenza, Chris" <[EMAIL PROTECTED]>
Subject: RE: Websphere deployment problem
Message-ID: <958E8CEC2784D41186EF00B0D0780B514D99BB@APOLLO>

See: http://jakarta.apache.org/struts/installation-was352-x.html

Chris

Christopher Assenza
Phone:412.201.6026
Fax: 412.201.6060
Email:[EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 12:49 PM
To: [EMAIL PROTECTED]
Subject: Websphere deployment problem

Hi,

when i deploy struts application in websphere 3.5.2 and try to access any
JSP
file i get the following error.
Can anyone let me know how to resolve it.

TIA
rafee

[01.08.30 16:57:04:735 GMT+05:30] 32e0194d WebGroup  A SRVE0091I:
[Servlet
LOG]: "jsp11: init"
[01.08.30 16:57:04:846 GMT+05:30] 32e0194d ServletInstan A SRVE0130I:
Servlet
available for service: "jsp11"
[01.08.30 16:58:12:142 GMT+05:30] a16c9945 WebGroup  X [Servlet
Error]-[{0}]: {1}: {2}
 "jsp11"
 "org/apache/struts/action/ActionForm"

com.ibm.servlet.engine.webapp.WebAppErrorReport:
org/apache/struts/action/ActionForm
 at
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(WebAppDispa
tcherResponse.java:97)

 at
org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:381)
 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:460)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:580)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:160)
 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:287)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:105)

 at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:35
3)
 at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:729)

 at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:655)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebAppRequestDispatcher.java:338)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
Dispatcher.java:175)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
ispatcher.java:93)

 at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.
java:77)

 at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn
vocation.java:67)

 at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ
estProcessor.java:155)
 at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener
.java:300)

 at
com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQ
EventListenerImp.java:230)

 at
com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventL
istenerImp.java:104)

 at
com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQE
ventSource.java:212)

 at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu
nnable.notifyService(SQWrapperEventSource.java:347)

 at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu
nnable.run(SQWrapperEventSource.java:216)

 at
com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run
(OutOfProcThread.java:248)

 at java.lang.Thread.run(Thread.java:481)

[01.08.30 16:58:12:483 GMT+05:30] a16c9945 ServletInstan X Uncaught
service()
exception thrown by servlet {0}: {1}
 "file"
 javax.servlet.ServletException
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:598)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:160)

 at
com.ibm.servlet.engine.webapp.IdleServletState.service(Stric

RE: How to make reset button clear all fields

2001-08-30 Thread Assenza, Chris

One alternative is to write a JavaScript function that will clear all your
text fields. Bind the function to the onClick event of a generic HTML button
tag and you're set.  Note that this only affects what you see on the screen,
it's never touching the server.  If you were to hit your new "reset"
JavaScript-based button it'd look cleared; however, if you hit refresh your
values would be re-populated. :)  Regardless, this suggestion will simulate
an HTML reset button.

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: Kwang-Shi Shu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 12:33 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: How to make reset button clear all fields


 I noticed the following behavior for "RESET" button in "STRUTS" framework:

The Reset button will clear all fields on the first try. After that,
if
you encountered validation errors, it seems to remember what have been
so far. From that point on, the "reset" button only clears the new
input values. Case in point -- try the "struts-example" login.jsp
and
you know what I am talking about.

  What should I do if I still want to clear all field contents. I tried to
use
another button declared as "" and it is not
working
either.

Shu, Kwang-shi  | Tel 732-460-7848
Village Networks, Inc.  | Fax 732-460-9851
246 Industrial Way West |
Eatontown, NJ 078724| email: [EMAIL PROTECTED]



  1   2   >