Re: Re: Re: [Gmail] - All gone,

2004-09-13 Thread Bharathiraja
please send an GMAIL invitation.

regards,
Bharathiraja.T
  - Original Message - 
  From: [EMAIL PROTECTED] 
  To: Struts Users Mailing List 
  Sent: Tuesday, September 14, 2004 11:37 AM
  Subject: Re: Re: Re: [Gmail] - All gone,



  I have three...any takers? 

  Puneet Agarwal
  Tata Consultancy Services Limited
  Mailto: [EMAIL PROTECTED]
  Website: http://www.tcs.com


--


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

Still: Blank pages after three submits

2004-09-13 Thread Karsten Krieg
Hi List!

No ideas on the topic below? There are two similar bugs in the struts-faces
buglist, both of them unresolved. So I suppose I'm not the only one with
this eraneous behaviour. It is, as far as I can tell, directly linked to
tiles and tags-faces.

Thanks alot for your time.
Karsten Krieg

- Weitergeleitet von Karsten Krieg/intarsys am 14.09.2004 08:35 -
|-+>
| |   "Karsten Krieg"  |
| |   <[EMAIL PROTECTED]|
| |   de>  |
| ||
| |   10.09.2004 14:44 |
| |   Bitte antworten  |
| |   an "Struts Users |
| |   Mailing List"|
|-+>
  
>--|
  |
  |
  |   An:   [EMAIL PROTECTED]  
 |
  |   Kopie:   
  |
  |   Thema:Blank pages after three submits
  |
  
>--|




Hi!

I'm using Tomcat 5, Struts 1.2.3, Struts-Faces (nightly 9/3), Tiles and JSF
1.1.  The whole compendium.

I've a simple login page and an action, which performs the validation of
the login. If the validation fails, the forward 'failure' is invoked (see
snippet of struts-config below). If I do this three times in a row (hitting
submit with no entries made), the returned page is blank. This happens also
after some navigation through my application. Everythings works fine until
a blank page is displayed.
After that I cannot start the application again without restarting tomcat.
I'm doing nothing like  or such, just submit -> action ->
forward.

Any ideas here? Thanks for your time!
Karsten Krieg

Here's my relevant config:
struts-config.xml



  
  





  
  

web.xml
---
  
  
faces
javax.faces.webapp.FacesServlet
1
  
  

action
de.intarsys.efselect.web.IntarsysActionServlet

2


tiles-def.xml
--
  
  
  




  




  

  

  

  
  
  



-
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: BeanUtils Class Cannot Be Found!

2004-09-13 Thread Andrew Hill
The error is run-time or compile-time?
Caroline Jen wrote:
I have the commons-beanutils.jar file in my
AppName\WEB-INF\lib directory.  And I have this
statement:
import org.apache.commons.beanutils.BeanUtils;
in my .java class.
Why do I get the error message that the BeanUtils
class cannot be found?

___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: detecting form data changes?

2004-09-13 Thread Andrew Hill
Generate a digest (ie: MD5) of those properties in the actionForm that 
you are watching, and render this to a hidden field in your JSP. When 
the form is submitted compare this digest to a digest of these fields 
generated after submission and if different you know that something has 
changed.

Woodchuck wrote:
hihi all,
what is the best way to detect changes on a form without using any
client side methods?
i have a very typical requirement to implement something that could
warn the user that they made changes to the form but have not saved yet
these changes yet.  

is the only way to do this by keeping a copy of the last saved form
data in session and then comparing this with the form data?
can anyone share any good strategies for doing this?  i'd like to avoid
any client side code as much as possible, but is this a good case for
using javascript?
any comments/opinions welcome!
please and thanks,
woodchuck

___
Do you Yahoo!?
Shop for Back-to-School deals on Yahoo! Shopping.
http://shopping.yahoo.com/backtoschool
-
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: Re: Re: [Gmail] - All gone,

2004-09-13 Thread Jitender K Chukkavenkata
Hi Hari,
  Thanks for sending me the gmail invitation.

Jitender Kumar C.V.


Re: SPAM-LOW: Re: Re: [Gmail] - All gone,

2004-09-13 Thread Jitender K Chukkavenkata

Return Receipt
   
Your  Re: SPAM-LOW:  Re: Re: [Gmail] - All gone,   
document   
:  
   
was   Jitender K Chukkavenkata/India/IBM   
received   
by:
   
at:   09/14/2004 12:00:28  
   





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



Re: SPAM-LOW: Re: Re: [Gmail] - All gone,

2004-09-13 Thread Bharathiraja
hi Hari,
   I am happy to receive your GMAIL invitation.Please send me an invitation.

regards,
Bharathiraj.T

- Original Message - 
From: "Hari Haran" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "Big Chiz"
<[EMAIL PROTECTED]>
Sent: Tuesday, September 14, 2004 10:18 AM
Subject: SPAM-LOW: Re: Re: [Gmail] - All gone,


> I have 6 more to go , and have decided all will be given to struts users
groups.
> so guys mail me fast.
>
> -Hari
>
>
> On Tue, 14 Sep 2004 10:01:42 +0800, Big Chiz <[EMAIL PROTECTED]> wrote:
> > chk ur mail
> >
> > On 13 Sep 2004 07:47:45 -, vineesh . kumar
> >
> >
> > <[EMAIL PROTECTED]> wrote:
> > >   Dear sir,
> > > can u help me on getting a gmail account?
> > > vinu
> > >
> > > On Mon, 13 Sep 2004 Emmanouil Batsis wrote :
> > >
> > >
> > > >Ruben Cepeda wrote:
> > > >
> > > >>Guys,
> > > >>
> > > >>I just ran out.
> > > >
> > > >
> > > >No you didn't. I already have one so I'm not going to use your
invitation... thanks!
> > > >
> > > >
> > > >Manos
> > > >
> > > >-
> > > >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]
> >
> >
>
>
>
> -- 
> -Hari Haran
>
> -
> 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: SPAM-LOW: [OT] Gmail invites, 2 available.

2004-09-13 Thread Jitender K Chukkavenkata

Return Receipt
   
Your  Re: SPAM-LOW:  [OT] Gmail invites, 2 available.  
document   
:  
   
was   Jitender K Chukkavenkata/India/IBM   
received   
by:
   
at:   09/14/2004 11:58:13  
   





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



crystal report10

2004-09-13 Thread kevin.huang
 how  to  call  the rpt of crystal report10  in action of  struts ?
 couly anyone  give  a sample  code,  thanks very much !!

Regards
kevin

RE: Re: Re: [Gmail] - All gone,

2004-09-13 Thread Sachin Bhutada
hi puneet,
 
Can you send me the invitation of GMAIL ?
 
sachin
xoriant, mumbai

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 14, 2004 11:38 AM
To: Struts Users Mailing List
Subject: Re: Re: Re: [Gmail] - All gone,



I have three...any takers? 

Puneet Agarwal
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com



Re: Re: Re: [Gmail] - All gone,

2004-09-13 Thread puneet . a

I have three...any takers?

Puneet Agarwal
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.comDISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services Limited. It must not be printed, 
read, copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any 
person other than the
addressee. Unauthorized use, disclosure or copying is strictly prohibited and may 
constitute unlawful act and can possibly attract legal action, civil and/or criminal. 
The contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services Limited
on any subject matter.]
Any action taken or omitted to be taken based on this message is entirely at your risk 
and neither the originator of this message nor Tata Consultancy Services Limited takes 
any responsibility or liability towards the same. Opinions, conclusions and any other
information contained in this message that do not relate to the official business of 
Tata Consultancy Services Limited shall be understood as neither given nor endorsed by 
Tata Consultancy Services Limited or any affiliate of Tata Consultancy Services 
Limited. If you have received this message in error,
you should destroy this message and may please notify the sender by e-mail. Thank you.



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

Re: SPAM-LOW: [OT] Gmail invites, 2 available.

2004-09-13 Thread Bharathiraja
Hi Peng,
   I am happy to receive your mail regarding GMAIL invites.Please invite me
.


regards,
Bharathiraja.T
INDIA

- Original Message - 
From: "Peng Tuck Kwok" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 14, 2004 6:04 AM
Subject: SPAM-LOW: [OT] Gmail invites, 2 available.


> Hi list,
> I have 2 invites to give away to ppl on the list, so if anybody needs
> a Gmail account, just drop me a line.
>
> Thanks.
>
> -
> 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: Re: Re: [Gmail] - All gone,

2004-09-13 Thread Hari Haran
I have sent the invitation to  [EMAIL PROTECTED]

ok guys it was gr8 giving away gmail invitations.

Lets get back to work now!






On Tue, 14 Sep 2004 08:56:37 +0200, Karsten Krieg <[EMAIL PROTECTED]> wrote:
> 
> Hi!
> 
> If you've one left, I'd gladly take it!
> 
> Thanks
> Karsten Krieg
> 
> 
> 
> On 14.09.2004 06:48:58 Hari Haran wrote:
> >I have 6 more to go , and have decided all will be given to struts users
> groups.
> >so guys mail me fast.
> >
> >-Hari
> >
> >
> >On Tue, 14 Sep 2004 10:01:42 +0800, Big Chiz <[EMAIL PROTECTED]> wrote:
> >> chk ur mail
> >>
> >> On 13 Sep 2004 07:47:45 -, vineesh . kumar
> >>
> >>
> >> <[EMAIL PROTECTED]> wrote:
> >> >   Dear sir,
> >> > can u help me on getting a gmail account?
> >> > vinu
> >> >
> >> > On Mon, 13 Sep 2004 Emmanouil Batsis wrote :
> >> >
> >> >
> >> > >Ruben Cepeda wrote:
> >> > >
> >> > >>Guys,
> >> > >>
> >> > >>I just ran out.
> >> > >
> >> > >
> >> > >No you didn't. I already have one so I'm not going to use your
> >invitation... thanks!
> >> > >
> >> > >
> >> > >Manos
> >> > >
> >> > >-
> >> > >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]
> 
> 



-- 
-Hari Haran

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



Re: Re: Re: [Gmail] - All gone,

2004-09-13 Thread Karsten Krieg

Hi!

If you've one left, I'd gladly take it!

Thanks
Karsten Krieg

On 14.09.2004 06:48:58 Hari Haran wrote:
>I have 6 more to go , and have decided all will be given to struts users
groups.
>so guys mail me fast.
>
>-Hari
>
>
>On Tue, 14 Sep 2004 10:01:42 +0800, Big Chiz <[EMAIL PROTECTED]> wrote:
>> chk ur mail
>>
>> On 13 Sep 2004 07:47:45 -, vineesh . kumar
>>
>>
>> <[EMAIL PROTECTED]> wrote:
>> >   Dear sir,
>> > can u help me on getting a gmail account?
>> > vinu
>> >
>> > On Mon, 13 Sep 2004 Emmanouil Batsis wrote :
>> >
>> >
>> > >Ruben Cepeda wrote:
>> > >
>> > >>Guys,
>> > >>
>> > >>I just ran out.
>> > >
>> > >
>> > >No you didn't. I already have one so I'm not going to use your
>invitation... thanks!
>> > >
>> > >
>> > >Manos
>> > >
>> > >-
>> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > >For additional commands, e-mail: [EMAIL PROTECTED]
>> > >
>> >
>> >
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>



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



Re: Trying to come up with a Mapping-Dispatch combo Action

2004-09-13 Thread Michael McGrady
Last try.  Sorry about the noise:Rick Generic Action Solution

|
 |
---|--- to updateFooBar.do of some GenericAction class.
 |
--|


Michael Generic Taglib Solution

   
|
 |   A: Solution Facade Interface:
---|  
 |---B: Solution Implementation:
 |  Unconnected to anything [Unknown Code]
 |   C: Generic Request Handler: updateFooBar.x
--|  gives the action updateFooBar
 |  for all of these, in and out of Struts,
|  e.g. with DispatchAction.






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


Need example of using DynaActionForm with ArrayList (1.1)

2004-09-13 Thread Antony Paul
Hi all,
Sorry if it is a repost. 
Using Struts 1.1.
I have an ActionForm in which displays an array of items. I want to use
DynaValidatorForm here which uses ArrayList as property holders. I am able
to pre-populate the form. I have trouble in displaying the values and on
submission nothing is populated. If somebody can give an example it will be
very useful to me.

Struts-config.xml
--

   
   


JSP
---
logic:iterate name="PriceForm" property="productid" id="pid"
indexId="index">
   
'/>


'/>

   
   

I  tried using indexed attribute. Then HTML generated is



See the value is in braces.

If I use  I get

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

What is wrong ?.

rgds
Antony Paul




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



Re: Trying to come up with a Mapping-Dispatch combo Action

2004-09-13 Thread Michael McGrady
Hoping this comes out better:
Rick Generic Action Solution
--|
  |
---|--- to updateFooBar.do of some GenericAction class.
|
--|
Michael Generic Taglib Solution
   
|
 |   A: Solution Facade Interface:
---|  
 |---B: Solution Implementation:
 |  Unconnected to anything [Unknown Code]
|   C: Generic Request Handler: updateFooBar.x
--|  gives the action updateFooBar
|  for all of these, in and out of Struts,
 |  e.g. with DispatchAction.






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


Re: Kind of out of topic, but... AOP in j2ee

2004-09-13 Thread Vic
You should check out Spring Framework. One of their major features is 
AOP so check there on that.

(I like your idea about agents (check managebility.org, click open 
source and find agents) and design paters book by GoF. For example CoR 
patern is major part of Struts "2.0" code in CVS. You can post questions 
about CoR on "Commons" user list  and get some help here.
If you want something "futuristic" consider declerative programing like 
JDNC and Flex and Longhorn's XAML or even Apache Jelly)

.V
Leandro Melo wrote:
Hi,
sorry for the kind of out of topic message, but i'm
looking for some information that developers like the
ones in this list may help me a little.
I'm applying for a master degree (M.sC) and i need to
have a project sumary, something like a "project idea"
for start up.
I've heard a lot about AOP (although i'm not very
familiar with it yet) then i thought i could submit a
project proposal about AOP, but i don't really know
what could be a good idea!
Instead of AOP i could also submit a proposal about
design patterns and agents.
Well, i'm just completely lost. If anyone could give
me an idea...??? May be a stupid one, but would be
probably better than mine.
Thanks,
ltcmelo
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--
Please post on Rich Internet Applications User Interface (RiA/SoA)

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


Re: Re: [Gmail] - All gone,

2004-09-13 Thread Hari Haran
I have 6 more to go , and have decided all will be given to struts users groups.
so guys mail me fast.

-Hari


On Tue, 14 Sep 2004 10:01:42 +0800, Big Chiz <[EMAIL PROTECTED]> wrote:
> chk ur mail
> 
> On 13 Sep 2004 07:47:45 -, vineesh . kumar
> 
> 
> <[EMAIL PROTECTED]> wrote:
> >   Dear sir,
> > can u help me on getting a gmail account?
> > vinu
> >
> > On Mon, 13 Sep 2004 Emmanouil Batsis wrote :
> >
> >
> > >Ruben Cepeda wrote:
> > >
> > >>Guys,
> > >>
> > >>I just ran out.
> > >
> > >
> > >No you didn't. I already have one so I'm not going to use your invitation... 
> > >thanks!
> > >
> > >
> > >Manos
> > >
> > >-
> > >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]
> 
> 



-- 
-Hari Haran

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



Re: Trying to come up with a Mapping-Dispatch combo Action

2004-09-13 Thread Michael McGrady
Rick Reumann wrote:
Some comments below...
Michael McGrady wrote the following on 9/13/2004 5:40 PM:
Yes, that is a slight benefit (which is the same benefit of using the 
regular DispatchAction), however, the slight cost of having to rely on 
the struts-config for deciding what dispatch method is going to be 
called is worth it for the sake of consistency, since I don't have to 
worry about whether it's a link, button, image, or form submit. If I 
didn't want to use the struts-config simply using the standard 
DispatchAction works fine as well. Consistent.

I think what you are saying is that you like to use one action for 
various view tags.  So, you are looking for a struts action that gives 
you one action for links, buttons, imges, and submits.  (You don't 
include, for good reason, the browse button for file uploads.) 

Rick Generic Action Solution
--|
|
--- | -- to updateFooBar.do of some GenericAction class.
| 
--  |

Michael Generic Taglib Solution
--|
|
--- |
|  A:Solution Facade Interface: 

| ---  B:Solution Implementation: 
Unconnected to anything [Unknown Code]
| C:Generic Request Handler: 
updateFooBar.x gives the action updateFooBar for all of these,
| in and out of Struts, 
e.g. with DispatchAction.
---|
|
---|

So, I guess we are doing things a bit differently but in a very 
connected way both coding-wise and "philosophy-wise".  Right?  I still 
am EXTREMELY interested in your questions and your progress.  If I am 
not mistaken, you can use DispatchAction to do what you want with my 
solution.  I am beginning to see the use of your concerns with respect 
to Struts.  In fact, something not unlike DispatchAction can be used to 
do what you with my solution outside of struts entirely.  Isn't that 
correct?  Perhaps the two together could form a real dynamo?  I have 
more in the wings working with the taglibs sandbox image stuff, which is 
excellent, by the way.

Michael McGfady


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


Kind of out of topic, but... AOP in j2ee

2004-09-13 Thread Leandro Melo
Hi,
sorry for the kind of out of topic message, but i'm
looking for some information that developers like the
ones in this list may help me a little.

I'm applying for a master degree (M.sC) and i need to
have a project sumary, something like a "project idea"
for start up.

I've heard a lot about AOP (although i'm not very
familiar with it yet) then i thought i could submit a
project proposal about AOP, but i don't really know
what could be a good idea!

Instead of AOP i could also submit a proposal about
design patterns and agents.

Well, i'm just completely lost. If anyone could give
me an idea...??? May be a stupid one, but would be
probably better than mine.

Thanks,
ltcmelo

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Trying to come up with a Mapping-Dispatch combo Action

2004-09-13 Thread Michael McGrady
Rick Reumann wrote:
Some comments below...
Michael McGrady wrote the following on 9/13/2004 5:40 PM:
Thanks for your comments below. It has helped clarify things. Your 
approach is pretty nice but in the above how would you be able to use 
this same Action for regular links? It seems like you have tied this 
Action to requiring use of hte ImageTagUtil which doesn't make too 
much sense for when you'd want to get to this action class from a 
standard link?

Hi, Rick,
We are getting someplace here, I think.  I don't use this Action at 
all.  I just made this little class up to show what I was talking 
about.  Tying the solution to these things just ruins performance and 
flexibility.  Decoupling, I have always thought, is like Aaron 
Nitzovitch's theory of "over protection" in chess.  If you have too much 
protection on a square, then none of the pieces involved is critical and 
so all are free to operate as offensive weapons.  What I am trying to 
say is that I use a Facade, which means that the Facade is the standard 
interface for all the differing page operations we were discussing.  I 
don't try to use an Action or any other particular solution outside the 
Facade to do this.  The , , 
 , ... , etc. tag is the Facade.  I am trying to 
advocate that the correct solution for a generic approach is a Facade 
represented by a taglib covering all the options that are relevant.  
This Facade is not even wedded to struts.  I do use struts, but that is 
not necessary.  That is but a "component" of the mix behind the Facade.  
That's what I do.  Now, can you expand on what you do with 
MappedLookupAction? 

I suspect we are working on differing attempts at "generic apporaches".  
Mine is related to what is written on the JSP page and yours, I think, 
is related to finding a generic approach with struts actions.  Exactly 
what you are doing is not clear to me. 

By the way, did you see the post by Craig on MappedLookupAction today?
Michael McGrady
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Fw: Iterate not work

2004-09-13 Thread mail
Hi,

try to set the attribute in your page context:
pageContext.setAttribute("qq", serverNames);
This should do you the trick.

Chris


MaFai wrote:

>
> DearAll:
> Alwaysthrowthefollowingexception
> org.apache.jasper.JasperException:Cannotfindbeanaainanyscope
> Here'sthecode
> < %
> //Here'saddsomelogictocaterthenewrequest
> //Searchtherecordbytheservername
> RoleDBrdb=newRoleDB();
> Role[]roles=rdb.getRole(request.getRemoteUser());
> rdb.close();
> ServerDBsdb=newServerDB();
> Recorder[]serverNames=sdb.getRecorderList(roles);
> request.setAttribute("qq",serverNames);
> out.println("totalrecorder:"+serverNames.length);
> sdb.close();
> %>
> < bodyonload="setDefaultIsRaw()">
> < logic:iterateid="aa"name="qq"type="IAD.Bean.Recorder">
> < bean:writename="aa"property="name"/>
> < /logic:iterate>
> Anysuggestion
> Bestregards.
> MaFai
> [EMAIL PROTECTED]
> 2004-09-14
> 34955929
>
>
>
> = = = = = = = = = = = = = = = = = = = =
> Best regards.
> MaFai
> [EMAIL PROTECTED] 
> 2004-09-14
> 34955929
>   
>


Fw: Iterate not work

2004-09-13 Thread MaFai




  
  

  
  
  
  


  

  Dear All:
   
  Always throw the following exception
  org.apache.jasper.JasperException: Cannot find bean aa in any scope
   
   
  Here's the code
  < %
  //Here's add some logic to cater the new request
  //Search the record by the server name
  RoleDB rdb = new RoleDB();
  Role[] roles= rdb.getRole(request.getRemoteUser());
  rdb.close();
  ServerDB sdb = new ServerDB();
  Recorder[] serverNames = sdb.getRecorderList(roles);
  request.setAttribute("qq",serverNames);
  out.println("total recorder:" + serverNames.length);
  sdb.close();
  %> 
   
  < body > 
   
    < 
  logic:iterate id="aa" name="qq" type="IAD.Bean.Recorder"> 
  
     < 
  bean:write name="aa" property="name"/> 
    < /logic:iterate> 
   
   
  Any suggestion
   
  Best regards.
   
  MaFai
  [EMAIL PROTECTED]
  2004-09-14
  34955929
   
   
   
   = = = = = 
  = = = = = = = = = = = = = = = 
  
    
  Best regards. 
   
  
  
      
  MaFai    
  [EMAIL PROTECTED]
      
  2004-09-14
      
  34955929
   
 
  
  



BeanUtils Class Cannot Be Found!

2004-09-13 Thread Caroline Jen
I have the commons-beanutils.jar file in my
AppName\WEB-INF\lib directory.  And I have this
statement:

import org.apache.commons.beanutils.BeanUtils;

in my .java class.

Why do I get the error message that the BeanUtils
class cannot be found?



___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

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



Re: Advantages of J2EE w. Struts vs .NET ASP.NET

2004-09-13 Thread Vic
THANKS again, great thread.
.V
Frank Zammetti wrote:
With that comment I was really thinking of EJBs.  I'm of the opinion 
that EJBs in many cases are not worth the trouble (maybe even most 
cases).  That's always a hotly-debated opinion, people argue strongly 
for and against EJBs all the time.

However, when you start talking about a truly distributed, large and 
complex application, I think Java has the edge with EJBs.  From what 
I've seen, .Net doesn't have a true analogy to the EJB concept.  
Remoting is a very good solution, but it's a different kind of approach 
from what I know of it (which I have to admit isn't a ton).

I think a year or two ago peoples' thinking in general started to change 
to what you mention, that these days, "dsitributed application" usually 
does mean Web Services.  I'm a big believer in that path myself, 
although I think Web Services in general are getting very bloated and 
convoluted with all the different "standards" out there.  That aside 
though, the basic underlying concepts I think is dead on.  If you 
believe that as well, then .Net really is a worthy contender because it 
makes Web Services so amazingly simple, I feel far simpler than Java 
does in most cases, or anything else.  That's what I mentioned that even 
with the recent strides Java has made to make Web Services easier, I 
still think .Net is ahead here, and has been from the start.  Just my 
opinion, as is all of this.

You made me nervous with your P.S. though :)  I actually prefer the 
XML-RPC approach to WS, I'd hate to see everyone moving away from it as 
a rule.

As for pluses and minuses... The minuses with all things .Net, as 
another poster said, is simply all MS.  Mono is coming along nicely, but 
I don't see how they'd ever not be playing catch-up.  So, you really are 
stuck in an all-MS world.  If your already in an MS shop, you would 
consider that a plus of course...

Not to get into a religious debate (but that's about the only place it 
CAN go!)... I have to disagree with the comment someone made that only 
Unices are real OS's (industrial-strength I think was the phrase?)... It 
has been my experience in the past when I did mostly MS development, 
that a properly-configured Windows box can be just as reliable, 
high-performing and secure as any Unix variant is (from Win2K upwards 
only... NT wasn't bad, but starting with Win2K I think is when Windows 
became worth something).  I will say that you have to go through more 
effort to get to that point of stability, but I've had a couple of 
Windows servers handling rather high loads for well over a year with 
zero down-time, and I'm no super admin either.  I'm not trying to say 
Windows is better than any Unix, heck, I won't even say it's quite as 
good, but the delta between the two, in my experience, is not nearly as 
great as is commonly argued.

Forget that wild tangent though :) ... Pluses and minuses... Creating a 
Web Service provider in .Net is as easy as throwing a specialized ASP 
page in IIS... This is akin to creating a Web Services from a JSP.  Very 
powerful mechanism (sure, you could do it with JSP's right now, but it 
wouldn't be as quick and easy).  There's other ways to do it, but that 
is a very nice capability.  The code for creating a consumer I find to 
be a bit less volumous and easier to follow than the equivalent in Java 
(not by much any more, but still).  There are some interoperability 
problems with .Net WS's, but believe it or not, from what I've read it 
really comes down to MS following specs a little TOO well!  If you try 
to do Java-.Net services, you sometimes run into some problems because 
.Net is a little too compliant.  Odd to say of any MS product, but seems 
to be the case.

Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
www.omnytex.com


From: Vic <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: Advantages of J2EE w. Struts vs .NET ASP.NET
Date: Mon, 13 Sep 2004 18:56:15 -0500
Thanks so much Frank
Can you exapand on this just a bit on what you said:
">J2EE might have the edge in terms of developing distributed
> applications, although I will say that my opinion is that even today
> with all the strides that have been made over the past year, .Net is
> still a superior platform for Web Services (interoperability issues
> aside, which aren't small concerns in some cases) "
Becuase to me Web Services is how you do Distributed computing, so 
another comment on "Distributed Web Servicese" plusses and minuses for 
our education. Like what does .NET have as a WS server? IIS?

.V
ps: AFAIK WS, including Sun, is moving away from XML-RPC to Doc/Lit, 
which makes complex objects harder, but is more standard.

Frank Zammetti wrote:
As someone who is 98% a J2EE developer but has done two reasonably 
complex .Net web projects... Forget comparing the two for a moment 
and just look at .Net by itself... There's not too m

Re: Re: [Gmail] - All gone,

2004-09-13 Thread Big Chiz
chk ur mail


On 13 Sep 2004 07:47:45 -, vineesh . kumar
<[EMAIL PROTECTED]> wrote:
>   Dear sir,
> can u help me on getting a gmail account?
> vinu
> 
> On Mon, 13 Sep 2004 Emmanouil Batsis wrote :
> 
> 
> >Ruben Cepeda wrote:
> >
> >>Guys,
> >>
> >>I just ran out.
> >
> >
> >No you didn't. I already have one so I'm not going to use your invitation... thanks!
> >
> >
> >Manos
> >
> >-
> >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: Advantages of J2EE w. Struts vs .NET ASP.NET

2004-09-13 Thread Frank Zammetti
With that comment I was really thinking of EJBs.  I'm of the opinion that 
EJBs in many cases are not worth the trouble (maybe even most cases).  
That's always a hotly-debated opinion, people argue strongly for and against 
EJBs all the time.

However, when you start talking about a truly distributed, large and complex 
application, I think Java has the edge with EJBs.  From what I've seen, .Net 
doesn't have a true analogy to the EJB concept.  Remoting is a very good 
solution, but it's a different kind of approach from what I know of it 
(which I have to admit isn't a ton).

I think a year or two ago peoples' thinking in general started to change to 
what you mention, that these days, "dsitributed application" usually does 
mean Web Services.  I'm a big believer in that path myself, although I think 
Web Services in general are getting very bloated and convoluted with all the 
different "standards" out there.  That aside though, the basic underlying 
concepts I think is dead on.  If you believe that as well, then .Net really 
is a worthy contender because it makes Web Services so amazingly simple, I 
feel far simpler than Java does in most cases, or anything else.  That's 
what I mentioned that even with the recent strides Java has made to make Web 
Services easier, I still think .Net is ahead here, and has been from the 
start.  Just my opinion, as is all of this.

You made me nervous with your P.S. though :)  I actually prefer the XML-RPC 
approach to WS, I'd hate to see everyone moving away from it as a rule.

As for pluses and minuses... The minuses with all things .Net, as another 
poster said, is simply all MS.  Mono is coming along nicely, but I don't see 
how they'd ever not be playing catch-up.  So, you really are stuck in an 
all-MS world.  If your already in an MS shop, you would consider that a plus 
of course...

Not to get into a religious debate (but that's about the only place it CAN 
go!)... I have to disagree with the comment someone made that only Unices 
are real OS's (industrial-strength I think was the phrase?)... It has been 
my experience in the past when I did mostly MS development, that a 
properly-configured Windows box can be just as reliable, high-performing and 
secure as any Unix variant is (from Win2K upwards only... NT wasn't bad, but 
starting with Win2K I think is when Windows became worth something).  I will 
say that you have to go through more effort to get to that point of 
stability, but I've had a couple of Windows servers handling rather high 
loads for well over a year with zero down-time, and I'm no super admin 
either.  I'm not trying to say Windows is better than any Unix, heck, I 
won't even say it's quite as good, but the delta between the two, in my 
experience, is not nearly as great as is commonly argued.

Forget that wild tangent though :) ... Pluses and minuses... Creating a Web 
Service provider in .Net is as easy as throwing a specialized ASP page in 
IIS... This is akin to creating a Web Services from a JSP.  Very powerful 
mechanism (sure, you could do it with JSP's right now, but it wouldn't be as 
quick and easy).  There's other ways to do it, but that is a very nice 
capability.  The code for creating a consumer I find to be a bit less 
volumous and easier to follow than the equivalent in Java (not by much any 
more, but still).  There are some interoperability problems with .Net WS's, 
but believe it or not, from what I've read it really comes down to MS 
following specs a little TOO well!  If you try to do Java-.Net services, you 
sometimes run into some problems because .Net is a little too compliant.  
Odd to say of any MS product, but seems to be the case.

Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
www.omnytex.com


From: Vic <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: Advantages of J2EE w. Struts vs .NET ASP.NET
Date: Mon, 13 Sep 2004 18:56:15 -0500
Thanks so much Frank
Can you exapand on this just a bit on what you said:
">J2EE might have the edge in terms of developing distributed
> applications, although I will say that my opinion is that even today
> with all the strides that have been made over the past year, .Net is
> still a superior platform for Web Services (interoperability issues
> aside, which aren't small concerns in some cases) "
Becuase to me Web Services is how you do Distributed computing, so another 
comment on "Distributed Web Servicese" plusses and minuses for our 
education. Like what does .NET have as a WS server? IIS?

.V
ps: AFAIK WS, including Sun, is moving away from XML-RPC to Doc/Lit, which 
makes complex objects harder, but is more standard.

Frank Zammetti wrote:
As someone who is 98% a J2EE developer but has done two reasonably complex 
.Net web projects... Forget comparing the two for a moment and just look 
at .Net by itself... There's not too much bad to say about it on it's own. 
 Microsoft has fran

Re: [OT] Gmail invites, 2 available.

2004-09-13 Thread Benny Ng
Hi all, 

I have 6 invites to give away to peoples on the list as well. 

Send your first and last name to me.

Cheers, 

Benny Ng


On Tue, 14 Sep 2004 08:34:25 +0800, Peng Tuck Kwok <[EMAIL PROTECTED]> wrote:
> Hi list,
> I have 2 invites to give away to ppl on the list, so if anybody needs
> a Gmail account, just drop me a line.
> 
> Thanks.
> 
> -
> 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] Gmail invites, 2 available.

2004-09-13 Thread Peng Tuck Kwok
Hi list, 
   The 2 invites have already been given away to ppl on the list. 
  

On Tue, 14 Sep 2004 08:34:25 +0800, Peng Tuck Kwok <[EMAIL PROTECTED]> wrote:
> Hi list,
> I have 2 invites to give away to ppl on the list, so if anybody needs
> a Gmail account, just drop me a line.
> 
> Thanks.
>

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



[OT] Gmail invites, 2 available.

2004-09-13 Thread Peng Tuck Kwok
Hi list, 
I have 2 invites to give away to ppl on the list, so if anybody needs
a Gmail account, just drop me a line.

Thanks.

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



Re: Advantages of J2EE w. Struts vs .NET ASP.NET

2004-09-13 Thread Bill Siggelkow
Frank, I appreciate the honest opinions ... unfortunately, even-handed 
honest opinions tend to be rare when it comes to this discussion.

- Bill Siggelkow
Frank Zammetti wrote:
As someone who is 98% a J2EE developer but has done two reasonably 
complex .Net web projects... Forget comparing the two for a moment and 
just look at .Net by itself... There's not too much bad to say about it 
on it's own.  Microsoft has frankly put out something that is 
technically a fine piece of work.  SO FAR it has proven to be relatively 
stable and even secure, no worse than Java was at first anyway, and 
better in some ways.

As far as ease of use, I personally haven't used Visual Studio.Net much, 
I prefer being "closer to the metal", so to speak (in this case, that 
means doing mostly command line work and using UltraEdit, just as I do 
my Java development).  I think you do get the "trained monkey symdrome" 
to a degree when VS.Net is in the mix, but that's not automatically true.

Design patterns can and are realized in .Net just like in J2EE.
In short... If J2EE didn't exist, .Net would be an excellent solution.  
Yes, there is obviously vendor lock-in, and yes you have to be worried 
about security and what might be found down the road (so far so good 
though).  Performance is excellent, stability is excellent, and so on.

Now, in terms of comparisons...
J2EE allows you more flexibility certainly in terms of vendor support.  
J2EE has I think more of a community around it and more projects that 
can solve a multitide of problems.  I think it is a bit easier and more 
natural to design in a cleaner and logical manner with J2EE than with 
.Net.  I think .Net wins in tool maturity because I've yet to see 
anything that matches VS.Net overall (this is a highly debateable point 
to be sure).  J2EE has had more time to get the kinks worked out and 
it's currently a very mature platform (although .Net out of the gate was 
considerably further along than Java was at the start, J2EE is still 
ahead).

.Net gives you some flexibility in terms of language support, although I 
think this is a bit overrated because even in the .Net shots I'm aware 
of they have generally standardized on one language or another (usually 
C#).  True, there are some other language implemented in the JVM, but 
generally speaking it's a Java-only world.

J2EE might have the edge in terms of developing distributed 
applications, although I will say that my opinion is that even today 
with all the strides that have been made over the past year, .Net is 
still a superior platform for Web Services (interoperability issues 
aside, which aren't small concerns in some cases).

Overall, anyone that says J2EE is FAR superior to .Net, or anyone that 
says the opposite, is *probably* a zealot one way or the other and not 
really worth listening to.  Anyone with an objective opinion who doesn't 
let their hatred of Redmond get in the way will generally say that the 
two are at least comperable in most ways.  Hate MS all you want, but 
they really have done a great engineering job with .Net... Whether it's 
better than J2EE is vertainly up for debate (my opinion: I still give 
the Jave world the nod, but not by a huge margin).

Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
www.omnytex.com


From: Vic <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: Advantages of J2EE w. Struts vs .NET ASP.NET
Date: Mon, 13 Sep 2004 11:10:30 -0500
And of course... there's a little thing could profit.
Keep your hands of my stash. W/ any O/S, I get better quality and keep 
more of my penies, important for profesional developers.

But specificaly, I have not used VB or C# Express, so it's  hard for 
me to compare detials.  It be great to hear from somone who deplpyed 
both in production.

.V
Jim Barrows wrote:

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Anders Jacobsen
Sent: Sunday, September 12, 2004 3:01 PM
To: [EMAIL PROTECTED]
Subject: Advantages of J2EE w. Struts vs .NET ASP.NET
Hi
I think this place would be a good place to good some colored ;) 
comments on and Web applications implemented with J2EE w./ Struts 
and the same implemented with ASP.NET.

Microsoft people tends to have just one point-of-view so I hope I 
could find some people who preferable had experience with both 
frameworks.

I know it´s hard to find a winnner, but some con/pros from real 
developers would be of great value. The main functionality of the 
web application is edit/upate/delete operations and the like.

Well... let's start off with the fact that MS is NOT secure.  If 
security is an issue, then MS's record to date is very worrisome.  
Yes, they've cleaned up their act a bit... however their problems are 
very deep in the fundamental way they do things.  You can find some 
good discussions elsewhere.

Engineering would be next.  In general the J2EE world's core tends to 
be be

Re: Advantages of J2EE w. Struts vs .NET ASP.NET

2004-09-13 Thread kjc
I'll pitch in with a response to Frank's opinions. BTW, this was a well 
thought out Mr. Spock like summary by Frank.
IMHO, I can sum up the ease of .NET development with one sentence.
ALL MS. It's much easier to make things easier when you have only ONE 
target environment. So,
the tools, the languages, the IDE's,the OS are all very tightly coupled. 
Can I put .NET on a REAL enterprise  OS, like Solaris, AIX
or Linux. NOPE.

Frank Zammetti wrote:
As someone who is 98% a J2EE developer but has done two reasonably 
complex .Net web projects... Forget comparing the two for a moment and 
just look at .Net by itself... There's not too much bad to say about 
it on it's own.  Microsoft has frankly put out something that is 
technically a fine piece of work.  SO FAR it has proven to be 
relatively stable and even secure, no worse than Java was at first 
anyway, and better in some ways.

As far as ease of use, I personally haven't used Visual Studio.Net 
much, I prefer being "closer to the metal", so to speak (in this case, 
that means doing mostly command line work and using UltraEdit, just as 
I do my Java development).  I think you do get the "trained monkey 
symdrome" to a degree when VS.Net is in the mix, but that's not 
automatically true.

Design patterns can and are realized in .Net just like in J2EE.
In short... If J2EE didn't exist, .Net would be an excellent 
solution.  Yes, there is obviously vendor lock-in, and yes you have to 
be worried about security and what might be found down the road (so 
far so good though).  Performance is excellent, stability is 
excellent, and so on.

Now, in terms of comparisons...
J2EE allows you more flexibility certainly in terms of vendor 
support.  J2EE has I think more of a community around it and more 
projects that can solve a multitide of problems.  I think it is a bit 
easier and more natural to design in a cleaner and logical manner with 
J2EE than with .Net.  I think .Net wins in tool maturity because I've 
yet to see anything that matches VS.Net overall (this is a highly 
debateable point to be sure).  J2EE has had more time to get the kinks 
worked out and it's currently a very mature platform (although .Net 
out of the gate was considerably further along than Java was at the 
start, J2EE is still ahead).

.Net gives you some flexibility in terms of language support, although 
I think this is a bit overrated because even in the .Net shots I'm 
aware of they have generally standardized on one language or another 
(usually C#).  True, there are some other language implemented in the 
JVM, but generally speaking it's a Java-only world.

J2EE might have the edge in terms of developing distributed 
applications, although I will say that my opinion is that even today 
with all the strides that have been made over the past year, .Net is 
still a superior platform for Web Services (interoperability issues 
aside, which aren't small concerns in some cases).

Overall, anyone that says J2EE is FAR superior to .Net, or anyone that 
says the opposite, is *probably* a zealot one way or the other and not 
really worth listening to.  Anyone with an objective opinion who 
doesn't let their hatred of Redmond get in the way will generally say 
that the two are at least comperable in most ways.  Hate MS all you 
want, but they really have done a great engineering job with .Net... 
Whether it's better than J2EE is vertainly up for debate (my opinion: 
I still give the Jave world the nod, but not by a huge margin).

Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
www.omnytex.com


From: Vic <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: Advantages of J2EE w. Struts vs .NET ASP.NET
Date: Mon, 13 Sep 2004 11:10:30 -0500
And of course... there's a little thing could profit.
Keep your hands of my stash. W/ any O/S, I get better quality and 
keep more of my penies, important for profesional developers.

But specificaly, I have not used VB or C# Express, so it's  hard for 
me to compare detials.  It be great to hear from somone who deplpyed 
both in production.

.V
Jim Barrows wrote:

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Anders Jacobsen
Sent: Sunday, September 12, 2004 3:01 PM
To: [EMAIL PROTECTED]
Subject: Advantages of J2EE w. Struts vs .NET ASP.NET
Hi
I think this place would be a good place to good some colored ;) 
comments on and Web applications implemented with J2EE w./ Struts 
and the same implemented with ASP.NET.

Microsoft people tends to have just one point-of-view so I hope I 
could find some people who preferable had experience with both 
frameworks.

I know it´s hard to find a winnner, but some con/pros from real 
developers would be of great value. The main functionality of the 
web application is edit/upate/delete operations and the like.

Well... let's start off with the fact that MS is NOT secure.  If 
security is an issue, then MS's recor

Re: tag

2004-09-13 Thread Rick Reumann
andy wix wrote the following on 9/13/2004 12:49 PM:
I have an interface containing all my field size definitions and wish to 
use this info for setting the size of  tags, so that I don't 
have this hardcoded.
I get an error saying that this tag won't accept expressions if I do it 
the 'old fashioned' way with a scriptlet expression (i.e., 
size="<%=Field.MY_SIZE%>")  
for the heck of it try <% out.print(Field.MY_SIZE); %>  I think way 
back I remember having some odd behavior when using <%= inside of an 
html tag. I could be way off though.

and it just gets ignored if I use a jsp
expression (i.e., size="Field.MY_SIZE").
What's the normal approach?
Thanks,
Andy
_
Use MSN Messenger to send music and pics to your friends 
http://www.msn.co.uk/messenger

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

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


Re: Advantages of J2EE w. Struts vs .NET ASP.NET

2004-09-13 Thread Vic
Thanks so much Frank
Can you exapand on this just a bit on what you said:
">J2EE might have the edge in terms of developing distributed
> applications, although I will say that my opinion is that even today
> with all the strides that have been made over the past year, .Net is
> still a superior platform for Web Services (interoperability issues
> aside, which aren't small concerns in some cases) "
Becuase to me Web Services is how you do Distributed computing, so 
another comment on "Distributed Web Servicese" plusses and minuses for 
our education. Like what does .NET have as a WS server? IIS?

.V
ps: AFAIK WS, including Sun, is moving away from XML-RPC to Doc/Lit, 
which makes complex objects harder, but is more standard.

Frank Zammetti wrote:
As someone who is 98% a J2EE developer but has done two reasonably 
complex .Net web projects... Forget comparing the two for a moment and 
just look at .Net by itself... There's not too much bad to say about it 
on it's own.  Microsoft has frankly put out something that is 
technically a fine piece of work.  SO FAR it has proven to be relatively 
stable and even secure, no worse than Java was at first anyway, and 
better in some ways.

As far as ease of use, I personally haven't used Visual Studio.Net much, 
I prefer being "closer to the metal", so to speak (in this case, that 
means doing mostly command line work and using UltraEdit, just as I do 
my Java development).  I think you do get the "trained monkey symdrome" 
to a degree when VS.Net is in the mix, but that's not automatically true.

Design patterns can and are realized in .Net just like in J2EE.
In short... If J2EE didn't exist, .Net would be an excellent solution.  
Yes, there is obviously vendor lock-in, and yes you have to be worried 
about security and what might be found down the road (so far so good 
though).  Performance is excellent, stability is excellent, and so on.

Now, in terms of comparisons...
J2EE allows you more flexibility certainly in terms of vendor support.  
J2EE has I think more of a community around it and more projects that 
can solve a multitide of problems.  I think it is a bit easier and more 
natural to design in a cleaner and logical manner with J2EE than with 
.Net.  I think .Net wins in tool maturity because I've yet to see 
anything that matches VS.Net overall (this is a highly debateable point 
to be sure).  J2EE has had more time to get the kinks worked out and 
it's currently a very mature platform (although .Net out of the gate was 
considerably further along than Java was at the start, J2EE is still 
ahead).

.Net gives you some flexibility in terms of language support, although I 
think this is a bit overrated because even in the .Net shots I'm aware 
of they have generally standardized on one language or another (usually 
C#).  True, there are some other language implemented in the JVM, but 
generally speaking it's a Java-only world.

J2EE might have the edge in terms of developing distributed 
applications, although I will say that my opinion is that even today 
with all the strides that have been made over the past year, .Net is 
still a superior platform for Web Services (interoperability issues 
aside, which aren't small concerns in some cases).

Overall, anyone that says J2EE is FAR superior to .Net, or anyone that 
says the opposite, is *probably* a zealot one way or the other and not 
really worth listening to.  Anyone with an objective opinion who doesn't 
let their hatred of Redmond get in the way will generally say that the 
two are at least comperable in most ways.  Hate MS all you want, but 
they really have done a great engineering job with .Net... Whether it's 
better than J2EE is vertainly up for debate (my opinion: I still give 
the Jave world the nod, but not by a huge margin).

Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
www.omnytex.com


From: Vic <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: Advantages of J2EE w. Struts vs .NET ASP.NET
Date: Mon, 13 Sep 2004 11:10:30 -0500
And of course... there's a little thing could profit.
Keep your hands of my stash. W/ any O/S, I get better quality and keep 
more of my penies, important for profesional developers.

But specificaly, I have not used VB or C# Express, so it's  hard for 
me to compare detials.  It be great to hear from somone who deplpyed 
both in production.

.V
Jim Barrows wrote:

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Anders Jacobsen
Sent: Sunday, September 12, 2004 3:01 PM
To: [EMAIL PROTECTED]
Subject: Advantages of J2EE w. Struts vs .NET ASP.NET
Hi
I think this place would be a good place to good some colored ;) 
comments on and Web applications implemented with J2EE w./ Struts 
and the same implemented with ASP.NET.

Microsoft people tends to have just one point-of-view so I hope I 
could find some people who preferable had experience with both 
fra

Re: Trying to come up with a Mapping-Dispatch combo Action

2004-09-13 Thread Michael McGrady
Durham David Contr 805 CSPTS/SCE wrote:
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Why don't you think this will work, Dave?  Why would the serverside
script care that there was client side script?  This looks okay to me.
   

Well, if you look at this line:
   newAction = '';
It looks like JavaScript is being used to generate an .  

I read this as trying to use  to generate JavaScript.  If 
you are right that the opposite is the case, I see your point.  But, I 
am reasonably sure that Rick did not make that mistake.  I assumed he 
did not.

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


RE: detecting form data changes?

2004-09-13 Thread Frank Zammetti
I don't think there's any *easy* answer, but let me offer up some 
possibilities...

(1) Start the process on the server to do the work.  Immediately return a 
page that has a Javascript refresh (or a meta refresh) that calls another 
job on the server to check the status and return the same waiting page.  
Make the "refresh" interval a couple of seconds.  This won't abort the work 
process, but at least you could do things like calculate a percentage 
complete.  Sometimes just giving the user the impression of work being done 
is enough to grant them a few more seconds of patience.

(2) You might consider running your app in a separate window.  The first 
page you hit when someone goes to the site is let's say index.htm.  This 
page can be nothing more but Javascript to immediately open a new window, 
and you can do so without the command bar or menus, thereby removing the 
possibility of the user clicking Stop.  They can still generally do that 
with keyboard shortcuts, but it'll eliminate probably most users from doing 
it.

(3) If your site runs in frames already, or if you can change it to frames, 
you could have a hidden frame (just set it's size to 0).  Have the hidden 
frame constantly checking the status of the main frame's document via 
Javascript.  Before submitting the form to do the database query, set a flag 
in that hidden frame that tells it you are going to do the query.  Then, 
when the main page returns the results, clear the flag in the hidden frame.  
All the while, have the hidden frame checking the status of the main frame, 
and when it sees that it's done loading, check if it was a complete query 
result (by checking the flag that the main frame sets upon return) or an 
aborted query (which I *THINK* will happen when you hit stop, but that 
return flag wasn't set).  When this condition arises, call a process on the 
server to terminate the query operation.

The common thread here of course is you will almost certainly need some sort 
of client-side scripting, or an applet as someone else suggested.  As I 
recall, the newest HTTP spec actually DOES allow for bi-directional 
communications between servers and clients, and that would open up some 
other possibilities (sort of like event handlers on one side or the other).  
I don't think this helps you now of course, just an interesting side note.

Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
www.omnytex.com


From: Woodchuck <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: struts <[EMAIL PROTECTED]>
Subject: detecting form data changes?
Date: Mon, 13 Sep 2004 10:05:40 -0700 (PDT)
hihi all,
what is the best way to detect changes on a form without using any
client side methods?
i have a very typical requirement to implement something that could
warn the user that they made changes to the form but have not saved yet
these changes yet.
is the only way to do this by keeping a copy of the last saved form
data in session and then comparing this with the form data?
can anyone share any good strategies for doing this?  i'd like to avoid
any client side code as much as possible, but is this a good case for
using javascript?
any comments/opinions welcome!
please and thanks,
woodchuck

___
Do you Yahoo!?
Shop for Back-to-School deals on Yahoo! Shopping.
http://shopping.yahoo.com/backtoschool
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Check out Election 2004 for up-to-date election news, plus voter tools and 
more! http://special.msn.com/msn/election2004.armx

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


Re: Trying to come up with a Mapping-Dispatch combo Action

2004-09-13 Thread Rick Reumann
Durham David Contr 805 CSPTS/SCE wrote the following on 9/13/2004 6:42 PM:
What about cookies?  I'm not trying to be a jerk (that's a difficult
task for me, btw), but I'd like to point out that this logic exists
within the Struts framework, and replicating it in JavaScript would be,
well, replicating it...
I'm keen to this dispatch idea.
Right, that's why I used the html:rewrite tag (knew there was a 
reason:). Remember, there are not that many cases where I even need this 
javascript function to rewrite the html action. It's only in the cases 
where you have several different buttons that can submit the one form.

I'm going with this solution at the moment to be consistent but I still 
might opt at a later time for a slightly modified MappingDispatchAction 
class that will look for a certain ending to the parameter name (maybe 
_dispatch) and if it sees that, will defer to acting as a regular 
DispatchAction. This would give me the best of both worlds if I wanted 
to avoid the javscript form action rewrite.

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


Re: Advantages of J2EE w. Struts vs .NET ASP.NET

2004-09-13 Thread Frank Zammetti
As someone who is 98% a J2EE developer but has done two reasonably complex 
.Net web projects... Forget comparing the two for a moment and just look at 
.Net by itself... There's not too much bad to say about it on it's own.  
Microsoft has frankly put out something that is technically a fine piece of 
work.  SO FAR it has proven to be relatively stable and even secure, no 
worse than Java was at first anyway, and better in some ways.

As far as ease of use, I personally haven't used Visual Studio.Net much, I 
prefer being "closer to the metal", so to speak (in this case, that means 
doing mostly command line work and using UltraEdit, just as I do my Java 
development).  I think you do get the "trained monkey symdrome" to a degree 
when VS.Net is in the mix, but that's not automatically true.

Design patterns can and are realized in .Net just like in J2EE.
In short... If J2EE didn't exist, .Net would be an excellent solution.  Yes, 
there is obviously vendor lock-in, and yes you have to be worried about 
security and what might be found down the road (so far so good though).  
Performance is excellent, stability is excellent, and so on.

Now, in terms of comparisons...
J2EE allows you more flexibility certainly in terms of vendor support.  J2EE 
has I think more of a community around it and more projects that can solve a 
multitide of problems.  I think it is a bit easier and more natural to 
design in a cleaner and logical manner with J2EE than with .Net.  I think 
.Net wins in tool maturity because I've yet to see anything that matches 
VS.Net overall (this is a highly debateable point to be sure).  J2EE has had 
more time to get the kinks worked out and it's currently a very mature 
platform (although .Net out of the gate was considerably further along than 
Java was at the start, J2EE is still ahead).

.Net gives you some flexibility in terms of language support, although I 
think this is a bit overrated because even in the .Net shots I'm aware of 
they have generally standardized on one language or another (usually C#).  
True, there are some other language implemented in the JVM, but generally 
speaking it's a Java-only world.

J2EE might have the edge in terms of developing distributed applications, 
although I will say that my opinion is that even today with all the strides 
that have been made over the past year, .Net is still a superior platform 
for Web Services (interoperability issues aside, which aren't small concerns 
in some cases).

Overall, anyone that says J2EE is FAR superior to .Net, or anyone that says 
the opposite, is *probably* a zealot one way or the other and not really 
worth listening to.  Anyone with an objective opinion who doesn't let their 
hatred of Redmond get in the way will generally say that the two are at 
least comperable in most ways.  Hate MS all you want, but they really have 
done a great engineering job with .Net... Whether it's better than J2EE is 
vertainly up for debate (my opinion: I still give the Jave world the nod, 
but not by a huge margin).

Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
www.omnytex.com


From: Vic <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: Advantages of J2EE w. Struts vs .NET ASP.NET
Date: Mon, 13 Sep 2004 11:10:30 -0500
And of course... there's a little thing could profit.
Keep your hands of my stash. W/ any O/S, I get better quality and keep more 
of my penies, important for profesional developers.

But specificaly, I have not used VB or C# Express, so it's  hard for me to 
compare detials.  It be great to hear from somone who deplpyed both in 
production.

.V
Jim Barrows wrote:

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Anders Jacobsen
Sent: Sunday, September 12, 2004 3:01 PM
To: [EMAIL PROTECTED]
Subject: Advantages of J2EE w. Struts vs .NET ASP.NET
Hi
I think this place would be a good place to good some colored ;) comments 
on and Web applications implemented with J2EE w./ Struts and the same 
implemented with ASP.NET.

Microsoft people tends to have just one point-of-view so I hope I could 
find some people who preferable had experience with both frameworks.

I know it´s hard to find a winnner, but some con/pros from real 
developers would be of great value. The main functionality of the web 
application is edit/upate/delete operations and the like.

Well... let's start off with the fact that MS is NOT secure.  If security 
is an issue, then MS's record to date is very worrisome.  Yes, they've 
cleaned up their act a bit... however their problems are very deep in the 
fundamental way they do things.  You can find some good discussions 
elsewhere.

Engineering would be next.  In general the J2EE world's core tends to be 
better engineered.  EJB being something of an exception, depending on who 
you talk to.  I've seen more discussions of best practices and patterns on 
J2EE lists then I have on .Net l

RE: Trying to come up with a Mapping-Dispatch combo Action

2004-09-13 Thread Durham David Contr 805 CSPTS/SCE
> It works fine and it's not a 'true' mix of server-side scripting. I
> could avoid the use of the  

Considering that you passed the "action" to be re-written to a
JavaScript function, yeah it's a true mix. :)


> but didn't want to hardcode
> the context name. I could do away with that tag and just have...
> 
> newAction = '/myContext/'+action+'.do';
> 
> but I don't like that as much. Actuallly come to think of it I'll
> probably change the above to the following. Much better actually..
> 
> newAction = '${pageContext.request.contextPath}/'+action+'.do';


What about cookies?  I'm not trying to be a jerk (that's a difficult
task for me, btw), but I'd like to point out that this logic exists
within the Struts framework, and replicating it in JavaScript would be,
well, replicating it...

I'm keen to this dispatch idea.


- Dave

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



RE: How to implement Custom webapp classloader? [OT]

2004-09-13 Thread Durham David Contr 805 CSPTS/SCE
> And, a lawyer might... and only after the damage was done.  IP 
> is best protected by continually improving ones product, not 
> with lawyers.

You should put "damage" in quotes.  Furthermore, I would quote the P in
I"P."  When did ideas become property?  ... if we're talking about brain
cells.  Soon, DRM will be embedded in your mind (for some of us, it
already is).

It's definitely a Monday.


- Dave

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



Re: Trying to come up with a Mapping-Dispatch combo Action

2004-09-13 Thread Rick Reumann
Durham David Contr 805 CSPTS/SCE wrote the following on 9/13/2004 3:13 PM:
function swapAction( formName, action) {
formAction = document.getElementById( formName ).action;
newAction = '';

I don't think this will work, and I find it ironic that you literally
mixed client-side and server-side scripting.
It works fine and it's not a 'true' mix of server-side scripting. I 
could avoid the use of the  but didn't want to hardcode 
the context name. I could do away with that tag and just have...

newAction = '/myContext/'+action+'.do';
but I don't like that as much. Actuallly come to think of it I'll 
probably change the above to the following. Much better actually..

newAction = '${pageContext.request.contextPath}/'+action+'.do';
--
Rick
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Trying to come up with a Mapping-Dispatch combo Action

2004-09-13 Thread Durham David Contr 805 CSPTS/SCE
> From: Michael McGrady [mailto:[EMAIL PROTECTED]
> 
> Why don't you think this will work, Dave?  Why would the serverside
> script care that there was client side script?  This looks okay to me.

Well, if you look at this line:

newAction = '';

It looks like JavaScript is being used to generate an .  

This brings up the problem of trying to rewrite the action on the client
side.  In the past, I've opted to add ";jsessionid=", but what you're
talking about with dispatches is another option.


- Dave

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



Re: Trying to come up with a Mapping-Dispatch combo Action

2004-09-13 Thread Rick Reumann
Some comments below...
Michael McGrady wrote the following on 9/13/2004 5:40 PM:
The following class works fine:
   public abstract class CrackWillowLookupDispatchAction
   extends DispatchAction {
 public ActionForward execute(
   ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response)
   throws Exception {
   String methodName = ImageTagUtil.getName(request);
   return dispatchMethod(mapping, form, request, response, methodName);
 }
   }
Thanks for your comments below. It has helped clarify things. Your 
approach is pretty nice but in the above how would you be able to use 
this same Action for regular links? It seems like you have tied this 
Action to requiring use of hte ImageTagUtil which doesn't make too much 
sense for when you'd want to get to this action class from a standard 
link? (This was also my problem with the LookupDispatchAction that I 
didn't like... MappingDispatchAction solves all of this).

The other issues about this action have nothing to do with what I have 
been talking about, I think.

   
   
   
   

This requires nothing in struts-config.xml.
Yes, that is a slight benefit (which is the same benefit of using the 
regular DispatchAction), however, the slight cost of having to rely on 
the struts-config for deciding what dispatch method is going to be 
called is worth it for the sake of consistency, since I don't have to 
worry about whether it's a link, button, image, or form submit. If I 
didn't want to use the struts-config simply using the standard 
DispatchAction works fine as well. Consistent.


   What my image is has nothing to do with what the name value is.  The
   name value is the command and is completely decoupled from the
   image.  
Yes, I see that now. That's good. Thanks for that clarification.
   The following simple code, in my solution, can replace a hugely
   complex series of relations and code in LookupActionMapping which
   drive you crazy and make any connection with ActionMapping's
   parameter attribute unnecessary as well.
Agreed. And definitely if I was going to go with a dispatch approach 
that relied on img/button names yours is a much more elequent solution. 
(I still like an onClick to a MappingDipsatchAction though:)

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


Re: Trying to come up with a Mapping-Dispatch combo Action

2004-09-13 Thread Michael McGrady
Durham David Contr 805 CSPTS/SCE wrote:
function swapAction( formName, action) {
formAction = document.getElementById( formName ).action;
newAction = '';
   

I don't think this will work, and I find it ironic that you literally
mixed client-side and server-side scripting.
Still, I see what you're going for, and I myself have written similar
code.  It can be tricky and it is always ugly.
- Dave
Why don't you think this will work, Dave?  Why would the serverside 
script care that there was client side script?  This looks okay to me.

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


Re: Trying to come up with a Mapping-Dispatch combo Action

2004-09-13 Thread Michael McGrady
I am enjoying the discussion as well. 

I can see that your schedule and my attempting to say too much are 
confusing things.  Let me also clarify a couple things so we are clear 
what we each are saying.  Then I will address the bigger issues.

The following class works fine:
   public abstract class CrackWillowLookupDispatchAction
   extends DispatchAction {
 public ActionForward execute(
   ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response)
   throws Exception {
   String methodName = ImageTagUtil.getName(request);
   return dispatchMethod(mapping, form, request, response, methodName);
 }
   }
The other issues about this action have nothing to do with what I have 
been talking about, I think.

   
   
   
   

This requires nothing in struts-config.xml.
I.  Clarifications
   A.  Code Inside ActionForm Topic
   The code I use for determining which  button has
   been pressed is this utility class and this utility class alone. 

public class ImageTagUtil {
 public static String getName(HttpServletRequest request) {
   String command = null;
   String buttonValue = null;
   Enumeration enum = request.getParameterNames();
   while(enum.hasMoreElements()) {
 buttonValue = (String)enum.nextElement();
 if(buttonValue.endsWith(".x")) {
   command = buttonValue.substring(0,buttonValue.indexOf('.'));
 }
   }
   return command;
 }
}
   The code in the form (inner class buttons) is an improvement on
   other solutions where there are button classes used.  I don't like
   those solutions, including mine, which I think is better than the
   usual.  The usual solution ends up really heavy with loads of
   buttons populating the situation,whereas this solution (which I
   don't like, remember) uses one inner button and one only.  But, I
   don't use this at all.  I removed it from the wiki as too complicating.
   B.  Different Commands for Different Images
   What my image is has nothing to do with what the name value is.  The
   name value is the command and is completely decoupled from the
   image.  Neither has anything to do with the other.  You can change
   the image to anything you want and you can change the command to
   anything you want.  This is clearly true with the html too.  
   type='image' src='whatever.gif' name='whatever'> clearly decouples
   what the gif is and what the name attribute value is.  I extend this
   by providing a tag which will produce an image with says whatever
   it's name is: 'WHATEVER.gif' will be a gif with "WHATEVER",
   'Whatever.jpg' will be a jpeg with "Whatever".  So, we can have
   "OK.gif" with name='viewFoo' and "OK.gif" with name='updateFoo'. 
   That is not a problem.  If they later decide that they want
   "Yahoo.gif" or "GO.jpg" instead of "OK.gif", all you have to do is
   change it and nothing else changes at all. 

II.  Issues
   A.   LookupActionMapping  

   My solution does not say a thing about using or not using the idea
   of executing a method by something like LookupActionMapping.  Rather
   it is wholly about how to mine the values from the HTML.
   The following simple code, in my solution, can replace a hugely
   complex series of relations and code in LookupActionMapping which
   drive you crazy and make any connection with ActionMapping's
   parameter attribute unnecessary as well.
   execute(execute(ActionMapping mapping, ActionForm
   form,HttpServletRequest request, HttpServletResponse response) {
  return dispatchMethod(mapping, form, request, response,
   ImageTagUtil.getName(request));
   }
   So, the LookupActionMapping requires you IN ORDER TO ACHIEVE THE
   SAME THING to give the parameter attribute a value in the action
   mapping of struts-config.xml whereas my solution is completely
   decoupled from that.  The LookupDispatchAction requires you to
   implement keyMethodMap relating methods to both the JSP and the
   action mapping of struts-config.xml.  The fact that
   LookupDispatchAction uses reflection is important, of course, but is
   completely irrelevant to the principal ideas that
   LookupDispatchAction is based on.  Other ways of mining the value of
   the method to be used can equally subclass DispatchAction.
Michael McGrady


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


RE: Page refresh

2004-09-13 Thread meena r
David,

I am not able to figure out the following:

Let us say I have a page A.jsp in which I have a
hidden iframe called B.jsp. Now this page A.jsp has
the select onchange call which in turn sets some
values in the form present in the hidden iframe B.jsp
and submits the form in the iframe B.jsp.

Now on submit , is the action forward supposed to
forward to A.jsp which has a javascript in it? I tried
doing this but I am not able to populate the fields.

Please let me know.

Thanks


--- [EMAIL PROTECTED] wrote:

> Here you go...
> - Forwarded by David Hay/Lex/Lexmark on
> 09/07/2004 05:33 PM -
> |-+>
> | |   David Hay|
> | ||
> | |   09/02/2004 01:55 |
> | |   PM   |
> | ||
> |-+>
>  
>
>|
>   | 
> 
>  |
>   |   To:  "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
>|
>   |   cc:   
> 
>  |
>   |   Subject: Re: dynamically change the
> dropdown list from a database...(Document link:
> David Hay)   |
>  
>
>|
> 
> 
> 
> Don't have any code handy, but it's quite
> straightforward:
> 
> - create a hidden frame
> - on the select's onchange() do a submit on a form
> in the hidden frame to
> an action that gets the information from the
> database, passing in the
> relevant parameter
> - have the action forward to a jsp which is just a
> javascript call to
> update the other select box - probably easiest just
> to delete the select
> box options, iterate through the through the
> collection returned and for
> each one create a javascript call on the other frame
> that adds an option
> for it
> 
> let me know if you have any qu's.
> 
> cheers,
> 
> David
> 
> 
> 
> |-+>
> | |   Erik Weber   |
> | |   <[EMAIL PROTECTED]|
> | |   ring.com>|
> | ||
> | |   09/02/2004 01:14 |
> | |   PM   |
> | |   Please respond to|
> | |   "Struts Users|
> | |   Mailing List"|
> | ||
> |-+>
>  
>
>|
>   | 
> 
>  |
>   |   To:   Struts Users Mailing List
> <[EMAIL PROTECTED]>
> |
>   |   cc:   
> 
>  |
>   |   Subject:  Re: dynamically change the
> dropdown list from a database...
>|
>  
>
>|
> 
> 
> 
> 
> Do you have an example of this?
> 
> Thanks,
> Erik
> 
> 
> [EMAIL PROTECTED] wrote:
> 
> >Or you could get fancy and use a hidden frame which
> pulls the information
> >from the database (via an Action of course!) in 1)
> - thus avoiding the
> >annoying reload.
> >
> >
> >
> >|-+>
> >| |   Yves Sy  |
> >| |   <[EMAIL PROTECTED]|
> >| |   m>   |
> >| ||
> >| |   09/02/2004 12:32 |
> >| |   PM   |
> >| |   Please respond to|
> >| |   "Struts Users|
> >| |   Mailing List"|
> >| ||
> >|-+>
> >
>
>|
> 
> >  |
> |
> >  |   To:   Struts Users Mailing List
> <[EMAIL PROTECTED]>
> |
> >  |   cc:
> |
> >  |   Subject:  Re: dynamically change the
> dropdown list from a
> database... 
>   |
> >
>
>|
> 
> >
> >
> >
> >
> >There are 2 ways

RE: How to implement Custom webapp classloader? [OT]

2004-09-13 Thread Jim Barrows


> -Original Message-
> From: Greg Ludington [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 13, 2004 12:08 PM
> To: Struts Users Mailing List
> Subject: Re: How to implement Custom webapp classloader? [OT]
> Importance: High
> 
> 
> > > nothing is going to stop the user from accessing the JAR file
> > > directly and decompiling it if they want to :-).
> > 
> > A lawyer might ...
> 
> What compression do you use to stuff a laywer into a JAR?  :)

It's not really compression... it's more like blender on puree.

And, a lawyer might... and only after the damage was done.  IP is best protected by 
continually improving ones product, not with lawyers.

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



Re: How to implement Custom webapp classloader? [OT]

2004-09-13 Thread Jason King

What compression do you use to stuff a laywer into a JAR?  :)
 

I've always thought the Dahmer method was best, but there's some things 
even HE wouldn't eat!

Greg
(Forgive the Friday-style comment on a Monday...)
-
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: Trying to come up with a Mapping-Dispatch combo Action

2004-09-13 Thread Durham David Contr 805 CSPTS/SCE
> function swapAction( formName, action) {
>  formAction = document.getElementById( formName ).action;
>  newAction = '';

I don't think this will work, and I find it ironic that you literally
mixed client-side and server-side scripting.

Still, I see what you're going for, and I myself have written similar
code.  It can be tricky and it is always ugly.


- Dave

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



Re: How to implement Custom webapp classloader? [OT]

2004-09-13 Thread Greg Ludington
> > nothing is going to stop the user from accessing the JAR file
> > directly and decompiling it if they want to :-).
> 
> A lawyer might ...

What compression do you use to stuff a laywer into a JAR?  :)

Greg
(Forgive the Friday-style comment on a Monday...)

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



Re: tag

2004-09-13 Thread Bill Siggelkow
That's odd because according the doco on html:text and the TLD you can 
use a RTEXPR on the 'size' attribute.

andy wix wrote:
Hi,
I have an interface containing all my field size definitions and wish to 
use this info for setting the size of  tags, so that I don't 
have this hardcoded.
I get an error saying that this tag won't accept expressions if I do it 
the 'old fashioned' way with a scriptlet expression (i.e., 
size="<%=Field.MY_SIZE%>")  and it just gets ignored if I use a jsp 
expression (i.e., size="Field.MY_SIZE").
What's the normal approach?

Thanks,
Andy
_
Use MSN Messenger to send music and pics to your friends 
http://www.msn.co.uk/messenger

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


RE: How to implement Custom webapp classloader? [OT]

2004-09-13 Thread Durham David Contr 805 CSPTS/SCE
> From: Craig McClanahan [mailto:[EMAIL PROTECTED]
> 
> nothing is going to stop the user from accessing the JAR file 
> directly and decompiling it if they want to :-).

A lawyer might ...


- Dave



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



Re: Trying to come up with a Mapping-Dispatch combo Action

2004-09-13 Thread Rick Reumann
(not commenting below, just up top on this)
In reference to your first comment:
> I think that what appears to be a model emphasis for the
> solution in your [rick's] approach is bound to fail.  Further, making 
> the
> solution view based frees the model to be built for performance, which
> is why I use the solution I sent to you with respect to images, i.e.
> the image tag for submits.

Maybe you are misunderstanding what I'm doing. My approach has nothing 
to do with the model at all. All I have is a very simple 
MappingDispatchAction with typical dispatch methods.

All my links, forms, or image 'onClicks' simply equate to a standard 
mapping (ie /updateFooBar.do... /viewFooBars.do, etc). So a developer 
can ALWAYS easily tell what is being called (of course to see the actual 
method being called he/she will need to look in the struts-config but 
it's consistent across all types of front end calls.

I saw two things in the initial e-mail that had me concerned. One was 
where the tag had this code:

if(buttonValue.endsWith(".x")) {
   command = buttonValue.substring(0,buttonValue.indexOf('.'));
 }
   }
   return command;
The second was all the code you added inside of your ActionForm 
subclass... even to the extent that it needs to contain an inner class. 
I just find this to be way overcomplicated for something that I think 
should be pretty simple.

In reference to my first concern... How would you have two different 
commands executed for a button with the same name? In my case here at 
work, we had to develop this one app where we needed to use an "Ok" 
button. If I was on an edit page I needed to still have an "Ok" button 
and when on an insert page I still had to use the same "Ok" button. 
Looks like in your above, this would end up calling on the one type of 
method. (It also looked like you would run into the same problem with 
the CrackWillowButton class).

I guess what I am missing is what your approach gains me verses using 
just a 'tiny' amount of javascript. (I'm not one to believe that a web 
application in today's world should be required to work without ANY 
javascript).

I'll sum up my approach with examples and would love to hear the 
problems with it. Keep in mind the advantage (I think) to this is that 
you simple code your standard MappingDispatchAction and that you can 
'easily' see what is being called. In ALL the example below you easily 
see the action being called (no need to figure what underlying 
implementation is taking care of figuring out what dispatch method to 
call, you easily can just look at your mapping and find out.)

Enjoying this discussion. Hopefully below it makes it more clear what 
I'm doing:

UserAction of type MappingDispatchAction with some typical dispatch methods
   ie updateUser, insertUser, deleteUser, getUser, getUsers
(mappings in struts-config could look identical to the above which of 
course map to "UserAction")

Different ways you could get access to the methods:
1) From a link. (I like JSTL even though a bit more verbose than html:link):
[ Get Users ]
2) From a typical form with one submit button


3) For images or buttons



//on button or img onClick, or I usually make this a js function:
window.location='${url}'
4) When you need different submit buttons for one form
//create a javascript function. I keep this in my header.jsp
//Thanks Bill (I think it was Bill S. who posted this:)
function swapAction( formName, action) {
formAction = document.getElementById( formName ).action;
newAction = '';
document.getElementById( formName ).action = newAction;
}
//then on different submit buttons

   

Michael McGrady wrote the following on 9/13/2004 11:09 AM:
SEE WITHIN:
Michael McGrady
Rick Reumann wrote:
I hope you have a bit of time to discuss this in detail, Rick, because 
the amount of activity in this area is huge.  I think this is one of 
those areas, along with looking for persistence not identical to the 
normal scopes, where there is continued dissatisfaction.

First I'd like to point out that I like to keep an application as 
consistent as possible. That means that I like my links, my form 
submits, my buttons to all act similarly - this makes it very easy for 
a new developer to the project to figure out what is going on.

I do too.  My generic solution is based on what appears on the "coded" 
page.  I wanted to decouple that from everything else.  I, therefore, 
use a variation of the FACADE PATTERN with these, emphasizing a generic 
solution from the VIEW perspective rather than from the MODEL 
perspective.  I think that what appears to be a model emphasis for the 
solution in your approach is bound to fail.  Further, making the 
solution view based frees the model to be built for performance, which 
is why I use the solution I sent to you with respect to images, i.e. the 
image tag for submits.

There simply is not a model based generic solution, in my opinion, which 
sometimes if right and sometimes is wrong.  (I al

Re: the real world is always dirtier

2004-09-13 Thread Dan Allen
As always, Jim and Craig, you have been a tremendous help in pointing
me in the correct direction.  Your responses definitely do not go
unread.  I have studied, and will continue to review, your comments so
that I can be sure to inject best practices and good engineering into
this system.  Many of my questions as of late have been about rather
"dirty" situations and I am doing my best to clean up the poorly
implemented Java code here.

It actually frustrates me to hear conversations around here about how
.NET is so much easier.  It is no wonder they think that, because much
of the Java is so poorly written even Perl looks better on a bad day. 
My hope is to change that because I believe that by understanding how
to correct such problems, a great deal is learned about programming.

Thanks again!

Dan

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



Re: the real world is always dirtier

2004-09-13 Thread James Mitchell
Frames



--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx

- Original Message -
From: "Woodchuck" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "Craig McClanahan"
<[EMAIL PROTECTED]>
Sent: Monday, September 13, 2004 1:41 PM
Subject: Re: the real world is always dirtier


> hihi!
>
> but theoretically, isn't it impossible to have more than one request at
> any single point in time?
>
> i'm trying to picture simultaneous requests for the same session, but i
> can't see it... :p
>
> when you say simultaneous requests for the same session do you mean:
>   - the user has logged into the website, and then:
> - press the form submit button inhumanely fast
>OR
> - spawn another browser from original browser and then click on
> each browser's submit as fast as possible
>
> is the root of the problem because the user can make requests faster
> than the clustered servers can sync to the latest copies of the session
> in question?  (assuming true load balancing strategy employed -- ie.
> session does not stick to any server instance)
>
> woodchuck
>
>
> --- Craig McClanahan <[EMAIL PROTECTED]> wrote:
>
> > On Mon, 13 Sep 2004 12:08:06 -0400, Brantley Hobbs
> > <[EMAIL PROTECTED]> wrote:
> > >
> > > Some platforms don't allow sessions to be available to each machine
> > in a
> > > cluster, most notably the web "platform" (I use the term loosely)
> > found
> > > to be in widespread use by a certain large unnamed software company
> > in
> > > the northwestern U.S.  In that case, using sessions can be an
> > issue.
> >
> > It's not just our friends up north.
> >
> > The J2EE specs require that, if simultaneous requests for the same
> > session are being procesed, they *must* be processed on the same
> > server instance.  This is required in order to maintain the session
> > semantics (such as a session attribute set in one of the simultaneous
> > requests being instantly visible to the other requests for that
> > session).
> >
> > This doesn't mean you can never move a session from one server
> > intsance to another; it only means that you can only do so in between
> > requests.
> >
> > Craig
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
>
> ___
> Do you Yahoo!?
> Shop for Back-to-School deals on Yahoo! Shopping.
> http://shopping.yahoo.com/backtoschool
>
> -
> 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: the real world is always dirtier

2004-09-13 Thread Woodchuck
hihi!

but theoretically, isn't it impossible to have more than one request at
any single point in time?

i'm trying to picture simultaneous requests for the same session, but i
can't see it... :p

when you say simultaneous requests for the same session do you mean:
  - the user has logged into the website, and then:
- press the form submit button inhumanely fast
   OR
- spawn another browser from original browser and then click on
each browser's submit as fast as possible

is the root of the problem because the user can make requests faster
than the clustered servers can sync to the latest copies of the session
in question?  (assuming true load balancing strategy employed -- ie.
session does not stick to any server instance)

woodchuck


--- Craig McClanahan <[EMAIL PROTECTED]> wrote:

> On Mon, 13 Sep 2004 12:08:06 -0400, Brantley Hobbs
> <[EMAIL PROTECTED]> wrote:
> > 
> > Some platforms don't allow sessions to be available to each machine
> in a
> > cluster, most notably the web "platform" (I use the term loosely)
> found
> > to be in widespread use by a certain large unnamed software company
> in
> > the northwestern U.S.  In that case, using sessions can be an
> issue.
> 
> It's not just our friends up north.
> 
> The J2EE specs require that, if simultaneous requests for the same
> session are being procesed, they *must* be processed on the same
> server instance.  This is required in order to maintain the session
> semantics (such as a session attribute set in one of the simultaneous
> requests being instantly visible to the other requests for that
> session).
> 
> This doesn't mean you can never move a session from one server
> intsance to another; it only means that you can only do so in between
> requests.
> 
> Craig
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 




___
Do you Yahoo!?
Shop for Back-to-School deals on Yahoo! Shopping.
http://shopping.yahoo.com/backtoschool

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



Re: the real world is always dirtier

2004-09-13 Thread Michael McGrady




WITHIN:
Michael McGrady
My thought would be to initialize a state object and put it in either
the http session or a session bean and then each page can work with
this state object as a general filter when executing business logic. 
This way, each form and link will be just the core data needed for
that particular request, without all this general information.  The
state object would either be initialized on an entry action or at the
start of every action, depending on what is feasible at the time.

Now, I haven't done this so far, because my manager (use the term
loosely) told me that using http sessions will cause server affinity
in a cluster.  

You have made, I understand, the choice not to save "working" data 
client-side.  Doing so solves all the problems of server affinity, 
obviously.  But, you/we are talking about saving the "working" data 
server-side. 

Server affinity is normally thought of as the situation where you save 
data in /memory /on a /webserver/.  This is because you can hardly 
cluster webservers if the data is kept in ram on a webserver.  Right? 

You could do a lot with that model, i.e. saving data in ram on a 
machine, including all sorts of data shareing, but clustering the 
webservers or machines holding the data is not one of them. 

So, if you don't want to have the problem of server affinity and you 
reject client-side solutions, you need to find a different persistence 
idea than webserver ram.  So, you have to decide what persistence 
mechanism other than webserver ram you want.

If http sessions are out, I suppose I could lean
towards session beans.  First I would like to challenge his point on
sessions, and if that doesn't pan out, discuss if stashing this in
sessionbeans is the right way to go.
 

Since you want to first challenge his point on sessions, I will stop 
here.  Insofar as http sessions are a ram solution on the webserver, 
your "manager" is definitely right.  I could see a hybrid solution where 
you use multi-threading to work off ram and then to provide some other 
persistence in a background thread.

Hope this is helpful.
Michael McGrady

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


detecting form data changes?

2004-09-13 Thread Woodchuck
hihi all,

what is the best way to detect changes on a form without using any
client side methods?

i have a very typical requirement to implement something that could
warn the user that they made changes to the form but have not saved yet
these changes yet.  

is the only way to do this by keeping a copy of the last saved form
data in session and then comparing this with the form data?

can anyone share any good strategies for doing this?  i'd like to avoid
any client side code as much as possible, but is this a good case for
using javascript?

any comments/opinions welcome!

please and thanks,
woodchuck



___
Do you Yahoo!?
Shop for Back-to-School deals on Yahoo! Shopping.
http://shopping.yahoo.com/backtoschool

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



RE: FileUploadException: Stream ended unexpectedly

2004-09-13 Thread Björn Ingimundarson
Yes that is pretty much what I wan't to do, but I seem to be unable to 
reach this FileUploadException and make sure it is only handled the way I 
want it to be handled...



--
Björn Ingimundarson






> -Original Message-
> From: Björn Ingimundarson [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 13, 2004 9:34 AM
> To: [EMAIL PROTECTED]
> Subject: FileUploadException: Stream ended unexpectedly
> 
> 
> I´m getting this exception in my logs when a user tries to 
> upload a large 
> file and cancels by pressing the stop or back button.
> 
> I'm catching this exception in Global Exceptions and just 
> returning the 
> user to the upload form, which works fine except I´m still gettin the 
> exception stack trace in my logs. Now I am trying to clean up 
> errors in my 
> system and this is one of the exceptions I would like to get 
> rid of from 
> my log files... how do I come about doing this?
> 
> Here's the stack trace:
> 16:05:49,456 ERROR 
> [org.apache.struts.upload.CommonsMultipartRequestHandler.handl
> eRequest(CommonsMultipartRequestHandler.java:241)] 
> Failed to parse multipart request
> 
> org.apache.commons.fileupload.FileUploadException: Processing of 
> multipart/form-data request failed. Stream ended unexpectedly

This is simply saying that the stream ended, which is the case.  I would 
log it as either warn, or info.  It's  a direct, and correct response by 
the system to something the user has done.  It's also an indicator of 
potential problems. 
If the uploads were mission critical I might log as info, or even log to 
another file and have some daily process go through it and see if there's 
an abnormally large number of these erorrs.  I wouldn't think it serious 
enough, even for mission critical to eye ball the log every day.  YMMV.



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


ForwardSourceID:NT0001A01E 


tag

2004-09-13 Thread andy wix
Hi,
I have an interface containing all my field size definitions and wish to use 
this info for setting the size of  tags, so that I don't have 
this hardcoded.
I get an error saying that this tag won't accept expressions if I do it the 
'old fashioned' way with a scriptlet expression (i.e., 
size="<%=Field.MY_SIZE%>")  and it just gets ignored if I use a jsp 
expression (i.e., size="Field.MY_SIZE").
What's the normal approach?

Thanks,
Andy
_
Use MSN Messenger to send music and pics to your friends 
http://www.msn.co.uk/messenger

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


Re: the real world is always dirtier

2004-09-13 Thread Craig McClanahan
On Mon, 13 Sep 2004 12:08:06 -0400, Brantley Hobbs <[EMAIL PROTECTED]> wrote:
> 
> Some platforms don't allow sessions to be available to each machine in a
> cluster, most notably the web "platform" (I use the term loosely) found
> to be in widespread use by a certain large unnamed software company in
> the northwestern U.S.  In that case, using sessions can be an issue.

It's not just our friends up north.

The J2EE specs require that, if simultaneous requests for the same
session are being procesed, they *must* be processed on the same
server instance.  This is required in order to maintain the session
semantics (such as a session attribute set in one of the simultaneous
requests being instantly visible to the other requests for that
session).

This doesn't mean you can never move a session from one server
intsance to another; it only means that you can only do so in between
requests.

Craig

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



Re: How to implement Custom webapp classloader? [OT]

2004-09-13 Thread G Q
Hi Craig,

Thanks for taking the time to reply.

Yes, the plan is to distribute the WAR file to the customer. I did try
obfuscating it with "RetroGuard" but then I decompiled it with "JAD"
and noticed that the method names and such changed but for the most
part it still seemed readable.

Yes, you are correct, they could always decompile my custom class
loader and find out where the jar file is coming from.

I guess, I just have to obfuscate and hope they won't decompile it. No
other way?

Can you elaborate on this:
"but I believe that in most cases there are much more important things
to be worried about than fear that someone is going to steal all your
ideas by decompiling the classes."

thanks.

On Mon, 13 Sep 2004 09:33:14 -0700, Craig McClanahan <[EMAIL PROTECTED]> wrote:
> Are you distributing the WAR file to your customer, or does your
> customer just run the app on your server?
> 
> In the former case, the only way to do this would be to modify the
> customer's servlet container; something they would be very unlikely to
> let you do.  In the latter case, the user can't download the classes
> anyway (everything in /WEB-INF is protected from being accessed by the
> client), so you don't need to worry about it.
> 
> Personally, the absolute most I would ever do if I were worried about
> decompiling is to run a code obfuscator -- but I believe that in most
> cases there are much more important things to be worried about than
> fear that someone is going to steal all your ideas by decompiling the
> classes.
> 
> Craig
> 
> PS:  Of course, even if you could convince your customer to let you
> modify their container in this way, and even if the customer was
> willing to run the app only on a server connected to the Internet so
> they could download the "real" JAR file, nothing is going to stop the
> user from accessing the JAR file directly and decompiling it if they
> want to :-).
> 
> 
> 
> 
> On Mon, 13 Sep 2004 08:31:52 -0700, G Q <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > This might be OT but I would appreciate any help.
> >
> > The scenario I have is as follows:
> > The application jar file is located on a remote server. When tomcat
> > starts up, I would like to make a URL connection to the remote server
> > and download the latest jar file and use that instead of actually
> > placing the jar file in the WEB-INF/lib/ directory or distribute it via the war.
> >
> > This way, I believe I would be preventing the class files being
> > decompiled and also if there are any updates to the jar, there will be
> > a central location for updates.
> >
> > Question:
> > 1. How do other people implement this?
> > 2. Can I extend the webappclassloader and implement this functionality?
> >
> > Would appreciate any url or article or help on this topic.
> >
> > thanks.
> > 
> > -
> > 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: the real world is always dirtier

2004-09-13 Thread Craig McClanahan
See intermixed.


On Mon, 13 Sep 2004 11:34:17 -0400, Dan Allen <[EMAIL PROTECTED]> wrote:
> This nice thing about examples is that they are so clean and pretty.
> The real world just hands you a shovel and says "Start moving this
> horse crap."
> 
> I have an application in which there are a handful of parameters that
> are required on each page, regardless of its content, to represent the
> general state of things (maybe needed now, maybe down the road a bit).
>  Such parameters include user id, preference filter, section of site,
> and so on.  The way things are currently done to handle is baggage is
> to just pass it around wherever a form or link is used as a "extra
> params" or "hidden fields."
> 
> Now, I consider myself a "Pragmatic Programmer" and I am smart enough
> to recognize that this smells really, really bad.  It violates several
> principles, including DRY and non-orthogonal.  I also believe I have a
> solution, but I want to discuss it here.
> 
> My thought would be to initialize a state object and put it in either
> the http session or a session bean and then each page can work with
> this state object as a general filter when executing business logic.
> This way, each form and link will be just the core data needed for
> that particular request, without all this general information.  The
> state object would either be initialized on an entry action or at the
> start of every action, depending on what is feasible at the time.
> 
> Now, I haven't done this so far, because my manager (use the term
> loosely) told me that using http sessions will cause server affinity
> in a cluster.  If http sessions are out, I suppose I could lean
> towards session beans.  First I would like to challenge his point on
> sessions, and if that doesn't pan out, discuss if stashing this in
> sessionbeans is the right way to go.

Whether using sessions causes server affinity or not is going to be an
architectural property of the particular app server you are using, and
may or may not be something that can be configured.  However, I could
certainly see why an app server would want to implement things that
way -- the specs *do* require that, if simultaneous requests for the
same session happen, they must all be handled on the same server.  In
other words, sessions can only be migrated "in between" requests. 
You'll get better performance if sessions are (at least temporarily)
sticky to a particular server instance.

Whether server affinity is a problem or not depends, again, on the
implementation of your particular app server.  If it's something
simpleminded like Tomcat's "load balancer", where a session stays on
its original server "forever", you could run into scenarios where the
load is artificially unbalanced between servers, simply because a lot
of the current users happened to create their session on one of the
servers, while others remain idle.  It shouldn't be as big a deal in
an app server environment that actually balances load by moving
sessions around, or if your sessions tend to be relatively short so
that imbalances tend to go away quickly.

By the way, even if you stash data in session beans, you'll need to
provide some mechanism for the subsequent request to identify and
retrieve which session bean is relevant.  You can continue to use
hidden fields for that (but you only need one), or you might think
about using a cookie so that the browser does the work of forwarding
the correct identifier back for you.

> 
> Dan
>

Craig

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



RE: FileUploadException: Stream ended unexpectedly

2004-09-13 Thread Jim Barrows


> -Original Message-
> From: Björn Ingimundarson [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 13, 2004 9:34 AM
> To: [EMAIL PROTECTED]
> Subject: FileUploadException: Stream ended unexpectedly
> 
> 
> I´m getting this exception in my logs when a user tries to 
> upload a large 
> file and cancels by pressing the stop or back button.
> 
> I'm catching this exception in Global Exceptions and just 
> returning the 
> user to the upload form, which works fine except I´m still gettin the 
> exception stack trace in my logs. Now I am trying to clean up 
> errors in my 
> system and this is one of the exceptions I would like to get 
> rid of from 
> my log files... how do I come about doing this?
> 
> Here's the stack trace:
> 16:05:49,456 ERROR 
> [org.apache.struts.upload.CommonsMultipartRequestHandler.handl
> eRequest(CommonsMultipartRequestHandler.java:241)] 
> Failed to parse multipart request
> 
> org.apache.commons.fileupload.FileUploadException: Processing of 
> multipart/form-data request failed. Stream ended unexpectedly

This is simply saying that the stream ended, which is the case.  I would log it as 
either warn, or info.  It's  a direct, and correct response by the system to something 
the user has done.  It's also an indicator of potential problems.  
If the uploads were mission critical I might log as info, or even log to another file 
and have some daily process go through it and see if there's an abnormally large 
number of these erorrs.  I wouldn't think it serious enough, even for mission critical 
to eye ball the log every day.  YMMV.



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



Re: How to implement Custom webapp classloader? [OT]

2004-09-13 Thread Craig McClanahan
Are you distributing the WAR file to your customer, or does your
customer just run the app on your server?

In the former case, the only way to do this would be to modify the
customer's servlet container; something they would be very unlikely to
let you do.  In the latter case, the user can't download the classes
anyway (everything in /WEB-INF is protected from being accessed by the
client), so you don't need to worry about it.

Personally, the absolute most I would ever do if I were worried about
decompiling is to run a code obfuscator -- but I believe that in most
cases there are much more important things to be worried about than
fear that someone is going to steal all your ideas by decompiling the
classes.

Craig

PS:  Of course, even if you could convince your customer to let you
modify their container in this way, and even if the customer was
willing to run the app only on a server connected to the Internet so
they could download the "real" JAR file, nothing is going to stop the
user from accessing the JAR file directly and decompiling it if they
want to :-).


On Mon, 13 Sep 2004 08:31:52 -0700, G Q <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> This might be OT but I would appreciate any help.
> 
> The scenario I have is as follows:
> The application jar file is located on a remote server. When tomcat
> starts up, I would like to make a URL connection to the remote server
> and download the latest jar file and use that instead of actually
> placing the jar file in the WEB-INF/lib/ directory or distribute it via the war.
> 
> This way, I believe I would be preventing the class files being
> decompiled and also if there are any updates to the jar, there will be
> a central location for updates.
> 
> Question:
> 1. How do other people implement this?
> 2. Can I extend the webappclassloader and implement this functionality?
> 
> Would appreciate any url or article or help on this topic.
> 
> thanks.
> 
> -
> 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]



FileUploadException: Stream ended unexpectedly

2004-09-13 Thread Björn Ingimundarson
I´m getting this exception in my logs when a user tries to upload a large 
file and cancels by pressing the stop or back button.

I'm catching this exception in Global Exceptions and just returning the 
user to the upload form, which works fine except I´m still gettin the 
exception stack trace in my logs. Now I am trying to clean up errors in my 
system and this is one of the exceptions I would like to get rid of from 
my log files... how do I come about doing this?

Here's the stack trace:
16:05:49,456 ERROR 
[org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(CommonsMultipartRequestHandler.java:241)]
 
Failed to parse multipart request

org.apache.commons.fileupload.FileUploadException: Processing of 
multipart/form-data request failed. Stream ended unexpectedly

at 
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:429)

at 
org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(CommonsMultipartRequestHandler.java:233)

at 
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1209)

at 
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)

at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)

at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)

at 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)

at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)

at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)

at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)

at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)

at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)

at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)

at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)

at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)

at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)

at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)

at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)

at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)

at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)

at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)

at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)

at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)

at 
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261)

at 
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360)

at 
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604)

at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:562)

at 
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679)

at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)

at java.lang.Thread.run(Thread.java:536)

After this nasty stack trace it goes t

Re: Advantages of J2EE w. Struts vs .NET ASP.NET

2004-09-13 Thread Vic
And of course... there's a little thing could profit.
Keep your hands of my stash. W/ any O/S, I get better quality and keep 
more of my penies, important for profesional developers.

But specificaly, I have not used VB or C# Express, so it's  hard for me 
to compare detials.  It be great to hear from somone who deplpyed both 
in production.

.V
Jim Barrows wrote:

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Anders Jacobsen
Sent: Sunday, September 12, 2004 3:01 PM
To: [EMAIL PROTECTED]
Subject: Advantages of J2EE w. Struts vs .NET ASP.NET
Hi
I think this place would be a good place to good some colored 
;) comments on 
and Web applications implemented with J2EE w./ Struts and the same 
implemented with ASP.NET.

Microsoft people tends to have just one point-of-view so I 
hope I could find 
some people who preferable had experience with both frameworks.

I know it´s hard to find a winnner, but some con/pros from 
real developers 
would be of great value. The main functionality of the web 
application is 
edit/upate/delete operations and the like.

Well... let's start off with the fact that MS is NOT secure.  If security is an issue, 
then MS's record to date is very worrisome.  Yes, they've cleaned up their act a 
bit... however their problems are very deep in the fundamental way they do things.  
You can find some good discussions elsewhere.
Engineering would be next.  In general the J2EE world's core tends to be better 
engineered.  EJB being something of an exception, depending on who you talk to.  I've 
seen more discussions of best practices and patterns on J2EE lists then I have on .Net 
lists.  This may be more because I haven't chosen high quality lists.   This may also 
be due to the higher incidence of trained monkey's in the MS world then software 
engineered.
Trained monkey's would be next.  MS seems to attract developers who don't have any true 
understanding of how things work.  I'm not sure why.  It might be because they've made it so 
point and click that no one really understands what's going on, and even if they did they might 
not be able to do anything about it.  I've seen far more "How do I show 1,000 items in a 
drop down list box?" type questions on MS lists then I have on Java lists.  THe few I have 
seen, have all come from MS developers.  MS has focused on providing cheap easy solutions, which 
is fine for the single computer model the has dominated so much of MS's history.  There are very 
few cheap and easy solutions when developing enterprise wide software.
Last, and to a large degree, the most important is choice.  I don't have to use Sun's 
VM.  I don't have to use implementation of the JSP/Servlet spec.  I don't have to use 
IBM's implementation either.  I'm not tied to a database (ODBC is _NOT_ what I would 
call good database independance) vendor.  I'm not tied to an OS Vendor, which means 
I'm not tied to a hardware platform.  You can't run .Net on Sun, or AS400's or any 
hardware other then Intel.  All of this means one thing... I can customize any Java 
based solution to fit any need.

Thanks in regards
Anders 


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


--
Please post on Rich Internet Applications User Interface (RiA/SoA)

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


RE: the real world is always dirtier

2004-09-13 Thread Brantley Hobbs
>You're manager may be an idiot on this... depending on platform,
settings >etc.  Most importantly, everything you put in the session must
be >serializable in order for the servers to pass around the session
data.

>I would also be interested in knowing why, in your case, server
affinity >would be such a bad idea?  If server affinity is a bad idea,
why not >upgrade your server to something that can handle session
attibutes better >in a clustered environment?  


Some platforms don't allow sessions to be available to each machine in a
cluster, most notably the web "platform" (I use the term loosely) found
to be in widespread use by a certain large unnamed software company in
the northwestern U.S.  In that case, using sessions can be an issue.
You can have "sticky" connections on your load balancer, but this can
cause some pretty asymmetrical loads if your site has a large number of
users behind a NAT, for example.

Of course, this isn't an issue for Tomcat sessions (and probably every
other J2EE container out there).

My $0.02

Brantley Hobbs


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



Re: MappingDispatchAction

2004-09-13 Thread Craig McClanahan
The current JavaDocs for this class:

http://struts.apache.org/api/org/apache/struts/actions/MappingDispatchAction.html

will tell you that this is indeed a Struts 1.2 feature:

Since:
Struts 1.2

Craig



On Mon, 13 Sep 2004 08:36:43 -0400, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> 
> 
> I just read about this this w/e and it suits my needs perfectly.  However,
> I can't find it in 1.1 struts.jar.  Is it a 1.2 feature?
> 
> -
> 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: the real world is always dirtier

2004-09-13 Thread Jim Barrows


> -Original Message-
> From: Dan Allen [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 13, 2004 8:34 AM
> To: Struts Users Mailing List
> Subject: the real world is always dirtier
> 
> 
> This nice thing about examples is that they are so clean and pretty. 
> The real world just hands you a shovel and says "Start moving this
> horse crap."
> 
> I have an application in which there are a handful of parameters that
> are required on each page, regardless of its content, to represent the
> general state of things (maybe needed now, maybe down the road a bit).
>  Such parameters include user id, preference filter, section of site,
> and so on.  The way things are currently done to handle is baggage is
> to just pass it around wherever a form or link is used as a "extra
> params" or "hidden fields."

yucky.

> 
> Now, I consider myself a "Pragmatic Programmer" and I am smart enough
> to recognize that this smells really, really bad.  It violates several
> principles, including DRY and non-orthogonal.  I also believe I have a
> solution, but I want to discuss it here.
> 
> My thought would be to initialize a state object and put it in either
> the http session or a session bean and then each page can work with
> this state object as a general filter when executing business logic. 
> This way, each form and link will be just the core data needed for
> that particular request, without all this general information.  The
> state object would either be initialized on an entry action or at the
> start of every action, depending on what is feasible at the time.

That's what session attributes are for.

> 
> Now, I haven't done this so far, because my manager (use the term
> loosely) told me that using http sessions will cause server affinity
> in a cluster.  If http sessions are out, I suppose I could lean
> towards session beans.  First I would like to challenge his point on
> sessions, and if that doesn't pan out, discuss if stashing this in
> sessionbeans is the right way to go.

You're manager may be an idiot on this... depending on platform, settings etc.  Most 
importantly, everything you put in the session must be serializable in order for the 
servers to pass around the session data.

I would also be interested in knowing why, in your case, server affinity would be such 
a bad idea?  If server affinity is a bad idea, why not upgrade your server to 
something that can handle session attibutes better in a clustered environment?  

I've said this before, and I'll say it again, you can demonstably prove that you do 
not save money through bad engineering to avoid buying more servers.


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



RE: Advantages of J2EE w. Struts vs .NET ASP.NET

2004-09-13 Thread Jim Barrows


> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Anders Jacobsen
> Sent: Sunday, September 12, 2004 3:01 PM
> To: [EMAIL PROTECTED]
> Subject: Advantages of J2EE w. Struts vs .NET ASP.NET
> 
> 
> Hi
> 
> I think this place would be a good place to good some colored 
> ;) comments on 
> and Web applications implemented with J2EE w./ Struts and the same 
> implemented with ASP.NET.
> 
> Microsoft people tends to have just one point-of-view so I 
> hope I could find 
> some people who preferable had experience with both frameworks.
> 
> I know it´s hard to find a winnner, but some con/pros from 
> real developers 
> would be of great value. The main functionality of the web 
> application is 
> edit/upate/delete operations and the like.

Well... let's start off with the fact that MS is NOT secure.  If security is an issue, 
then MS's record to date is very worrisome.  Yes, they've cleaned up their act a 
bit... however their problems are very deep in the fundamental way they do things.  
You can find some good discussions elsewhere.

Engineering would be next.  In general the J2EE world's core tends to be better 
engineered.  EJB being something of an exception, depending on who you talk to.  I've 
seen more discussions of best practices and patterns on J2EE lists then I have on .Net 
lists.  This may be more because I haven't chosen high quality lists.   This may also 
be due to the higher incidence of trained monkey's in the MS world then software 
engineered.

Trained monkey's would be next.  MS seems to attract developers who don't have any 
true understanding of how things work.  I'm not sure why.  It might be because they've 
made it so point and click that no one really understands what's going on, and even if 
they did they might not be able to do anything about it.  I've seen far more "How do I 
show 1,000 items in a drop down list box?" type questions on MS lists then I have on 
Java lists.  THe few I have seen, have all come from MS developers.  MS has focused on 
providing cheap easy solutions, which is fine for the single computer model the has 
dominated so much of MS's history.  There are very few cheap and easy solutions when 
developing enterprise wide software.

Last, and to a large degree, the most important is choice.  I don't have to use Sun's 
VM.  I don't have to use implementation of the JSP/Servlet spec.  I don't have to use 
IBM's implementation either.  I'm not tied to a database (ODBC is _NOT_ what I would 
call good database independance) vendor.  I'm not tied to an OS Vendor, which means 
I'm not tied to a hardware platform.  You can't run .Net on Sun, or AS400's or any 
hardware other then Intel.  All of this means one thing... I can customize any Java 
based solution to fit any need.

> 
> Thanks in regards
> Anders 
> 
> 
> 
> 
> -
> 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]



the real world is always dirtier

2004-09-13 Thread Dan Allen
This nice thing about examples is that they are so clean and pretty. 
The real world just hands you a shovel and says "Start moving this
horse crap."

I have an application in which there are a handful of parameters that
are required on each page, regardless of its content, to represent the
general state of things (maybe needed now, maybe down the road a bit).
 Such parameters include user id, preference filter, section of site,
and so on.  The way things are currently done to handle is baggage is
to just pass it around wherever a form or link is used as a "extra
params" or "hidden fields."

Now, I consider myself a "Pragmatic Programmer" and I am smart enough
to recognize that this smells really, really bad.  It violates several
principles, including DRY and non-orthogonal.  I also believe I have a
solution, but I want to discuss it here.

My thought would be to initialize a state object and put it in either
the http session or a session bean and then each page can work with
this state object as a general filter when executing business logic. 
This way, each form and link will be just the core data needed for
that particular request, without all this general information.  The
state object would either be initialized on an entry action or at the
start of every action, depending on what is feasible at the time.

Now, I haven't done this so far, because my manager (use the term
loosely) told me that using http sessions will cause server affinity
in a cluster.  If http sessions are out, I suppose I could lean
towards session beans.  First I would like to challenge his point on
sessions, and if that doesn't pan out, discuss if stashing this in
sessionbeans is the right way to go.

Dan

-- 
Open Source Advocacy
http://www.mojavelinux.com

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



How to implement Custom webapp classloader? [OT]

2004-09-13 Thread G Q
Hi,

This might be OT but I would appreciate any help.

The scenario I have is as follows:
The application jar file is located on a remote server. When tomcat
starts up, I would like to make a URL connection to the remote server
and download the latest jar file and use that instead of actually
placing the jar file in the WEB-INF/lib/ directory or distribute it via the war.

This way, I believe I would be preventing the class files being
decompiled and also if there are any updates to the jar, there will be
a central location for updates.

Question:
1. How do other people implement this?
2. Can I extend the webappclassloader and implement this functionality?

Would appreciate any url or article or help on this topic.

thanks.

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



Re: Creating a Struts Plugin,

2004-09-13 Thread Niall Pemberton
All you have to do is create a class which implements
org.apache.struts.action.PlugIn interface - it has two methods (init and
destroy)


http://struts.apache.org/userGuide/building_controller.html#plugin_classes

then configure struts to use it in the struts-config.xml:

  http://struts.apache.org/userGuide/configuration.html#plugin_config

Use  to configure any of you custom PlugIn's properties.

Niall


- Original Message - 
From: "Ruben Cepeda" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 13, 2004 3:20 PM
Subject: Creating a Struts Plugin,


> Hello everyone,
>
> I am interested in writing a Plugin to load my set up my database
connection
> pool.  Just like the ArtimusServlet does in the Artimus project.  In all
> honesty exackly like the ArtimusServlet, but am unsure as to what a is
> necessary to create a Struts Plugin.  For example, is it require that it
> have an "init" method or to extend a class.
>
> Thank you to any one that can help in advance.
>
> *
> Ruben Cepeda
> [EMAIL PROTECTED]
> *
>
> _
> Express yourself instantly with MSN Messenger! Download today - it's FREE!
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
>
> -
> 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: Validation for Two Levels of Indexed Properties

2004-09-13 Thread Matt Bathje
OK, I unfortunatley won't be very much help then. If I had to guess I 
would say that this is not supported, but maybe somebody else will chime in.

Sorry for the lack of help.
Matt
Terry Roe wrote:
Matt,
I have several nested levels of properties on one page.  First level is 
"plan" which has some general information and also contains a collection 
of "phase" properties called phaseList.  Each "phase" has some 
information associated with it, as well as containing a collection of 
"procedure" properties, called procedureList.  Validation works great at 
the plan and plan.phaseList[] levels.  When I try to go to the next 
level, plan.phaseList[].procedureList[] of nesting using indexed 
properties (i.e., procedureList) validation does not work.  I either 
don't know how to properly reference this second level of indexed 
properties, or it is not supported at present.  I gave examples in the 
code snippets of how I have attempted to reference the second level.

I'd like to know if it's supposed to work, and if so, how to properly 
reference the second level of indexed properties.  Or if this isn't 
currently supported, I'd like to know if there are plans to support it 
or not.

Thanks,
TR
Matt Bathje wrote:
Terry - maybe I'm a dope...but can you define what you mean by 
multiple level? I at first though you meant the validations such as 
(required,intRange) but looking at it, I think I may be wrong and it 
means something else.

A better definition of what phaseList and procedureList are, and how 
they relate to each other should help clear it up I think.

Matt
Terry Roe wrote:
Can Struts validate more than one level of indexed properties?  First 
level works great.  Love it.  I've tried the following (phaseList and 
procedureList are two indexed properties) to get more than one level 
to work without success:









Is multi-level, indexed property validation supported?  If so, can 
someone relate the syntax to use?  If not, can someone confirm than 
only one level of indexed property validation is supported?

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


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


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

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


Re: Validation for Two Levels of Indexed Properties

2004-09-13 Thread Terry Roe
Matt,
I have several nested levels of properties on one page.  First level is 
"plan" which has some general information and also contains a collection 
of "phase" properties called phaseList.  Each "phase" has some 
information associated with it, as well as containing a collection of 
"procedure" properties, called procedureList.  Validation works great at 
the plan and plan.phaseList[] levels.  When I try to go to the next 
level, plan.phaseList[].procedureList[] of nesting using indexed 
properties (i.e., procedureList) validation does not work.  I either 
don't know how to properly reference this second level of indexed 
properties, or it is not supported at present.  I gave examples in the 
code snippets of how I have attempted to reference the second level.

I'd like to know if it's supposed to work, and if so, how to properly 
reference the second level of indexed properties.  Or if this isn't 
currently supported, I'd like to know if there are plans to support it 
or not.

Thanks,
TR
Matt Bathje wrote:
Terry - maybe I'm a dope...but can you define what you mean by multiple 
level? I at first though you meant the validations such as 
(required,intRange) but looking at it, I think I may be wrong and it 
means something else.

A better definition of what phaseList and procedureList are, and how 
they relate to each other should help clear it up I think.

Matt
Terry Roe wrote:
Can Struts validate more than one level of indexed properties?  First 
level works great.  Love it.  I've tried the following (phaseList and 
procedureList are two indexed properties) to get more than one level 
to work without success:









Is multi-level, indexed property validation supported?  If so, can 
someone relate the syntax to use?  If not, can someone confirm than 
only one level of indexed property validation is supported?

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

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


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


Re: Trying to come up with a Mapping-Dispatch combo Action

2004-09-13 Thread Michael McGrady
SEE WITHIN:
Michael McGrady
Rick Reumann wrote:
I hope you have a bit of time to discuss this in detail, Rick, because 
the amount of activity in this area is huge.  I think this is one of 
those areas, along with looking for persistence not identical to the 
normal scopes, where there is continued dissatisfaction.

First I'd like to point out that I like to keep an application as 
consistent as possible. That means that I like my links, my form 
submits, my buttons to all act similarly - this makes it very easy for 
a new developer to the project to figure out what is going on.
I do too.  My generic solution is based on what appears on the "coded" 
page.  I wanted to decouple that from everything else.  I, therefore, 
use a variation of the FACADE PATTERN with these, emphasizing a generic 
solution from the VIEW perspective rather than from the MODEL 
perspective.  I think that what appears to be a model emphasis for the 
solution in your approach is bound to fail.  Further, making the 
solution view based frees the model to be built for performance, which 
is why I use the solution I sent to you with respect to images, i.e. the 
image tag for submits.

There simply is not a model based generic solution, in my opinion, which 
sometimes if right and sometimes is wrong.  (I also include , by the way, in addition to your list.)  I think you have 
to use something like the Facade Pattern because the actual logic 
underlying these view related behaviors is so different.  If you try to 
disseminate a generic solution in the model, you are bound to run into 
the types of problems you have discussed.  So, essentially, I have 
developed a taglib that looks like this:

GENERIC PAGE BASED SOLUTION
   
The key here is the "image".  If you wanted to browse with an input type 
of file, this would be "file".  This produces a GIF button saying "Crack 
Willow Chat" in Edwardian Script ITC embolded with a size of 30 and a 
coded identification of the command as "chatSend" and whatever colors 
happen to be represented in this space by the values of bgClrCode 
(background color) and txtClrCode (text color).  If you want a jpeg, put 
in ".jpg", etc.  If you don't want a button, just drop ".gif" entirely. 

The behavior of the button is changed by changing "image", e.g. 
"submit", "link", "file".  The view value of the button itself is 
changed by changing the value of "button".  This is fully localized.  If 
you don't want a   And the property you want to send is changed with a 
change in "property".  The colors are dynamic here with bgClrCode and 
txtClrCode.  If you wanted to hard code them, you would with bgClr and 
txtClr.  The value of property can be dynamic or not.  This depends on 
the model coders.  The map bean, which is instrumented, allows me to 
connect the dynamic colors with other colors on a page, which are held 
in the same bean.  Any other model solution for that problem can easily 
be plugged into this solution.

Here is the rub or the main point.  The solution I sent to you is 
decoupled from this page code, emphasizing the use of the Facade 
Pattern.  Accordingly, I send parts of my solution out each time a 
question comes up in the area, but never the whole solution, which is 
too involved for simple posts.  (Images, for example, are created 
dynamically and cached.)

This solution presently lets me just put in my buttons and have no 
concern at all for what happens in the background.  Some parts of the 
solution, e.g. for , will generate JavaScript and 
others won't.  I use a mock image over the "live" image of the file 
browse button in order to get dynamic, image buttons for the browse 
button that are consistent with the security protocols for .  Further, the background code for this is decoupled from 
the model because the model simply has to deal with results rather than 
with mining the results.  I place the class* */ImageTagUtil /cited in my 
last to you between the form and the Action.  Thus, Actions don't care 
if it is an image, a submit, or whatever.

You get the idea.  What do you think?
Michael McGrady
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Struts London Networking BOF #3 / 13 Sept 2004 / Venue [THE G RIF IN]

2004-09-13 Thread Pilgrim, Peter
> -Original Message-
> From: Pilgrim, Peter [mailto:[EMAIL PROTECTED]

This is the FINAL CALL! 

> Hi
> 
> I am pleased to announce that the Third Birds of Feather Struts London
> Networking is
> taking place in the West End, London at "The Griffin" pub. 
> Event is starting
> at
> around 19:15
> 
> (1) "The Griffin", just off The Strand, short walk down from
> Charing Road or walk up the hill from Embankment.
> http://ultimatepubguide.com/pubs/info.phtml?pub_id=34
>  
> The nearest underground tubes are:
> 
>   Charing Road, just around corner
>   Northern Line, Bakerloo Line
> 
>   Leicester Square, you need to walk south 10 minutes
>   Picadilly Line, Bakerloo
> 
>   Embankment, you need to walk up the hill from the 
> station 3 minutes 
>   District, Northern, and Bakerloo lines
> 
> British Rail
>   Charing Cross Station.
> 
> 
> See you there!
> 
> FYI: We now have a dedicated website http://www.strutslondon.com/ at a
> preliminary stage.
 
This is not all Struts User, but include Java/J2EE. Anyone is, indeed,
welcome.

====

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



Creating a Struts Plugin,

2004-09-13 Thread Ruben Cepeda
Hello everyone,
I am interested in writing a Plugin to load my set up my database connection 
pool.  Just like the ArtimusServlet does in the Artimus project.  In all 
honesty exackly like the ArtimusServlet, but am unsure as to what a is 
necessary to create a Struts Plugin.  For example, is it require that it 
have an "init" method or to extend a class.

Thank you to any one that can help in advance.
*
Ruben Cepeda
[EMAIL PROTECTED]
*
_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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


Re: Validation for Two Levels of Indexed Properties

2004-09-13 Thread Matt Bathje
Terry - maybe I'm a dope...but can you define what you mean by multiple 
level? I at first though you meant the validations such as 
(required,intRange) but looking at it, I think I may be wrong and it 
means something else.

A better definition of what phaseList and procedureList are, and how 
they relate to each other should help clear it up I think.

Matt
Terry Roe wrote:
Can Struts validate more than one level of indexed properties?  First 
level works great.  Love it.  I've tried the following (phaseList and 
procedureList are two indexed properties) to get more than one level to 
work without success:









Is multi-level, indexed property validation supported?  If so, can 
someone relate the syntax to use?  If not, can someone confirm than only 
one level of indexed property validation is supported?

TR
-
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: creating tld(help)

2004-09-13 Thread Matt Bathje
vineesh . kumar wrote:
  
Can someone suggest a good example of creating a jsp custom tag and using it?.

Actually i want to access a vector object at the request scope and tried to write a 
tld and the class.
my tld has the attribute name 


and at in the tld handling class i tried like this
   Vector vect=(Vector)pageContext.getRequest().getAttribute(name);
but the resultant vector is null
 i hav the setName method like
 public void setName(String name)
{
this.name=name;
}
the variable name has global scope
   wat may b the problem. Or please suggest any example matching this context
  Thanks
   vinu

I can't help with your specific example but if you want to learn about 
writing custom tag libraries, I suggest that you download the struts 
source code and look at how they do it. After looking through a couple 
of the tags (mostly in the html tld) I was able to write a bunch of 
custom tags very quickly.

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


Re: Validator not validating

2004-09-13 Thread Magnus
Sorry, I forgot to include a code snippet from my Action ( /admin/news )
My edit method is:
public ActionForward edit (
ActionMapping  mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponseresponse )
throws Exception
{
ActionErrorserrors = form.validate ( mapping, request );
ActionForward   forward = null;

if ( errors == null || errors.isEmpty () ){
SnuskServiceservice = getService ();
request.setAttribute ( "current", service.getNewsItem ( 1 ) );
forward = mapping.findForward ( "Edit" );
}else{
forward = list ( mapping, form, request, response );
}

return forward;
}
My intention is that if someone is tampering with the URL, they should 
just go back to the news list and have an error displayed. This was the 
simplest thing I could think of to start with :)

regards,
/Magnus Sjöstrand
Luis Urueña Frías wrote:
Hello:
To perform a validation over an action, it's required to enable the
validation attribute, is'n it?
validate=true like follows

  [ some forwards ]

Regards
Luis Urueña Frías Oficina 101
Edificio Galileo, módulo Rojo
Parque Tecnológico de Boecillo
Valladolid - España

-
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: Validator not validating

2004-09-13 Thread Luis Urueña Frías
Hello:

To perform a validation over an action, it's required to enable the
validation attribute, is'n it?

validate=true like follows


  [ some forwards ]


Regards

Luis Urueña Frías Oficina 101
Edificio Galileo, módulo Rojo
Parque Tecnológico de Boecillo
Valladolid - España



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



Validator not validating

2004-09-13 Thread Magnus
Hi,
I'm trying to use the Struts validator to validate some input parameters.
The problem is that no matter what I do the parameters are always valid, 
I've tried removing newsId from the url, and it's still valid. If it 
makes any difference ( which I hope it doesn't ), I want to validate 
parameters passed via an url, such as:

/admin/news?method=edit&newsId=1
I've looked at all examples/tutorials I can find but I can't for the 
life of me see what's wrong.

My validation.xml looks like:








min
10


max
20





My ActionMapping looks like:

 [ some forwards ]

My ActionForm:



regards,
/Magnus Sjöstrand
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Trying to come up with a Mapping-Dispatch combo Action

2004-09-13 Thread Rick Reumann
Hi Michael. I'm replying to his quickly before I run into work so I 
might not have looked these approaches over enough but here are my first 
impressions.

First I'd like to point out that I like to keep an application as 
consistent as possible. That means that I like my links, my form 
submits, my buttons to all act similarly - this makes it very easy for a 
new developer to the project to figure out what is going on.

Concerning the first approach, it appears the type of command called has 
to match the button name. I don't like this approach at all. Sometimes 
you later need to change the button names or even a worse scenario, you 
sometimes need to have the same button name used on different forms go 
to the same Action class but call a different dispatch method (for 
example with the "ok" or "proceed" button).

The second approach runs into some of the same of problems as the 
LookupDispathAction.. maintenance problems. In that approach you have to 
maintain what action method gets called by editing an ActionForm class. 
This becomes sort of unintuitive. It works but to me it just does 
provide for a consistent approach.

What I like about the simple use of MappingDispatchAction, and using 
some extremely simple javascript for button situations, is that the 
approach is easy to follow. For a developer to figure what action 
dispatch method is going to be called he/she simply always can tell by 
the MappingDispatch mapping. This works for links, form submits and for 
button submits. (I'm thinking the later approach you mentioned would 
work with links and form submits but would then require you always pass 
in a request parameter that matches a button name similar to what you 
need to do when using a LookupDispatchAction).

Another feature I like of just always using a MappingDispatchAction is 
that maintenance seems easier. The only things you maintain are an 
action mapping in your struts config (which you always have to have 
anyway) and a dispatch method name (which you always need also). There 
is no need to worry about maintaining any button names and what they 
correspond to. You end up not caring about how they get to your Action 
dispatch method and you let the pure view(JSP) worry about calling the 
proper action mapping. Just my preference I guess for consistency's sake.

Michael McGrady wrote the following on 9/13/2004 2:48 AM:
*The following is from 
http://wiki.apache.org/struts/StrutsCatalogMultipleImageTagsSimplified 
.  If you don't like this solution, I would be interested in your 
thinking, Rick.  If you are interested, I have a comprehensive solution 
to everything to do with buttons and images.  I am going to add to it, 
but it is pretty well developed.
*

   *This is an efficient way to end forever that pesky and recurrent
   problem of how to use multiple image buttons in your forms. (N.B.:
   This solution also works for non-image (submit) buttons by using
   values like  in the
   submit button. Or, just use  for a different solution for 
   versus )*
   *Assume that you have code not unlike:*


   *or, in Struts' image tag:*


   *Now, how do we know which image has been clicked? The answer has
   been complicated and costly in the past. Here is a simple way to
   achieve everything at a low cost and with great flexibility and
   freedom.*
   String button = null;
   Enumeration enum = request.getParameterNames();
   String parameterName = null;
   while(enum.hasMoreElements()) {
 parameterName = (String)enum.nextElement();
 if(parameterName.endsWith(".x")) {
   button = parameterName.substring(0,parameterName.indexOf('.'));
 }
   }
   *There you go. /If you clicked the image with name='submit', then
   the variable button will have the value "submit"./ I suggest that
   you toss out the LookupDispatchActions, the ButtonCommands, etc.
   This is a done deal. You can clearly seek other ways to ensure a bit
   more safety. For example, the code works equally as well with
   "submit.button" as it does with "submit". Elegant, no, eh? I use a
   class that encapsulates this functionality as follows:** *
*public class ImageTagUtil {
 public static String getName(HttpServletRequest request) {
   String command = null;
   String buttonValue = null;
   Enumeration enum = request.getParameterNames();
   while(enum.hasMoreElements()) {
 buttonValue = (String)enum.nextElement();
 if(buttonValue.endsWith(".x")) {
   command = buttonValue.substring(0,buttonValue.indexOf('.'));
 }
   }
   return command;
 }
}
*
   *Surprisingly, some people still prefer the way I used to do this. I
   think they just like the plain fanciness of it all. For those
   people, here is code that is less extensible, more coupled, heavier,
   etc. This code is comparatively not as good, in my opinion. There is
   a further use of button objects which requires that you create a
   separate button object for each image button you use on an html
   page. That solution is very heavy an

RE: MappingDispatchAction - thanks

2004-09-13 Thread bmf5
   
 Sachin Bhutada
 <[EMAIL PROTECTED] 
 oriant.com>To 
   "'Struts Users Mailing List'"   
 09/13/2004 08:17  <[EMAIL PROTECTED]>
 AM cc 
   
   Subject 
 Please respond to RE: MappingDispatchAction   
   "Struts Users   
   Mailing List"   
 <[EMAIL PROTECTED] 
  he.org>  
   
   














hi bmf5,
 yeah its struts1.2.2 feature. You can get the beta version of
it n
then add it in ur code instead of putting struts 1.2.2 jar file.

sachin
xoriant mumbai

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, September 13, 2004 6:07 PM
To: [EMAIL PROTECTED]
Subject: MappingDispatchAction







I just read about this this w/e and it suits my needs perfectly.  However,
I can't find it in 1.1 struts.jar.  Is it a 1.2 feature?


-
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: PlugIn/ ActionServlet init() method called 2 times in Linux

2004-09-13 Thread Joe Germuska
Can anyone pl suggest ways to initialize a struts webapp other than
plugIn and extended ActionServlet.
If you are using Servlet 2.3 or newer, you could use a ServletContextListener
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContextListener.html
Although from what you describe, I would thing that the real problem 
is that Tomcat is initializing the servlet twice, which means that 
even the ServletContextListeners might get initialized twice.

I would double-check your assumption that the difference is 
platform-specific; perhaps it's more a difference in how the two 
different Tomcat installations are configured?  If that's not the 
case, then the only other difference between Tomcat on Windows and 
Tomcat on Linux is the manner in which Tomcat is actually started up.

Hope this helps,
Joe
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"In fact, when I die, if I don't hear 'A Love Supreme,' I'll turn 
back; I'll know I'm in the wrong place."
   - Carlos Santana

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


RE: MappingDispatchAction

2004-09-13 Thread Sachin Bhutada
hi bmf5,
yeah its struts1.2.2 feature. You can get the beta version of it n
then add it in ur code instead of putting struts 1.2.2 jar file.

sachin
xoriant mumbai

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, September 13, 2004 6:07 PM
To: [EMAIL PROTECTED]
Subject: MappingDispatchAction







I just read about this this w/e and it suits my needs perfectly.  However,
I can't find it in 1.1 struts.jar.  Is it a 1.2 feature?


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


MappingDispatchAction

2004-09-13 Thread bmf5





I just read about this this w/e and it suits my needs perfectly.  However,
I can't find it in 1.1 struts.jar.  Is it a 1.2 feature?


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



RE: Single sign-on

2004-09-13 Thread Pilgrim, Peter
> -Original Message-
> From: Seaman, Sloan [mailto:[EMAIL PROTECTED]
> Sent: 09 September 2004 13:36
> To: 'Struts Users Mailing List'
> Subject: RE: Single sign-on
> 
> 
> We use JNDI to hit our MS Active Directory server.
> Works rather well :)
> --

[[Catching up with email]]

You also might want to allow the web app client to logon to a external
web server. In other words write a special Struts Action does make
use of HTTP over Java Socket and interact with the web server
( aka Commons HttpClient ).

I tried to suggest this idea a few years ago to a client of mine,
but they went with a JavaScript malarky to interface instead to
a popular reporting engine. HttpClient would have been the 
clean and pure Java way. Bah!

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



Re: Struts 1.1 and

2004-09-13 Thread James Mitchell
The action attribute was implemented just after 1.1 was released.  Sorry, I
know I wish it was part of 1.1 myself.  It would have saved me many hacks in
a few projects.

You should forget about 1.2.2, there were issues found that caused us to
downgrade that release to a beta (or was it alpha).anyway, 1.2.4 was
recently put out as the latest test build.  If you can try that version and
report back, that will help us determine it's quality.

Thanks for your help.



--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx

- Original Message -
From: "Benjamin Letrou" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, September 13, 2004 3:46 AM
Subject: Struts 1.1 and 


> Hi,
>
> I have several problems with Struts !
>
> 1) I'm using struts 1.1. when I try to migrate to 1.2.2, nothing work
> anymore ! Is there something specific to do when migrating a 1.1 projet
> to 1.2 ?
>
> 2) My first issue comes from the 2nd problem !
> I want to use the  tag to give an url to an
> opening popup. Or this is not implemented in Struts 1.1.
> How can I simulate the  tag in struts 1.1 ??
>
> I want something like that :
>
> window.open('',' key="mywindow.title"/>','...');
>
> Bj
>
> -
> 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]



Implementing Back, Next, and Cancel buttons in a wizard

2004-09-13 Thread Langdon Stevenson
Hi 

I have gotten down to the business end of implementing my wizard.  I wish to use 
"image" buttons based on the input tag, rather than Submit and Cancel version.

I have looked at, and experimented with the Struts  custom tag.  It allows 
me to use images of my choice for the buttons to make them blend with the user 
interface, however the inability in the  tag to provide a "name" attribute 
means that I cannot (as far as I can tell) make use of the normal cancel processing 
mechanism.

I can think of a number of ways to get around this issue and have implemented one, 
however I am sure that others must have looked at this issue.  

So I am wondering if there is any "standard" way of dealing with implementing this 
kind of interface?  Specifically using image based buttons.

Thanks in advance for any suggestions or references.

Regards,
Langdon

Re: Frame problem using Struts

2004-09-13 Thread Sebastian Ho
Sorry but I don't understand where is the 'dynamic targetting'. From the
example, don't we need to hard code the setDynamicTarget(XX) in the JSP?
But I won't know the taget to set at that time..

Sebastian Ho


On Mon, 2004-09-13 at 16:33, Bj wrote:
> Here is an example of dynamic targeting :-)
> By default, the target will be '_self' but depending on the clicked 
> button, you can change the target to '_top','_parent',..., a frame name 
> or any opended window.
> Your Action will forward your path (succes, failure,...) to the 
> corresponding target window.
> 
> 
> 
> function setDynamicTarget(target) {
>   document.forms[0].target = target;
> }
> function SubmitForm(object) {
>   object.form.submit();
> }
> 
> 
> ...
> 
> 
> ...
>  onclick="setDynamicTarget('_top');SubmitForm(this)"> key="mymodule.mybuttonlabel"/>
> ...
> 
> 
> 
> Bj
> 
> Sebastian Ho a Ãcrit :
> > When you say depending on the clicked button, are u assuming that there
> > are >1 button. I only have one button in the frame. The behaviour is
> > coded in actino class. If this is not what u meant, some pointers or
> > example will be appreciated.
> > 
> > thanks
> > 
> > sebastian
> > 
> > 
> > On Mon, 2004-09-13 at 15:26, Benjamin Letrou wrote:
> > 
> >>Hi,
> >>why don't you set your target dynamicaly with a javascript ?
> >>you set your form action to XX.do and change the target depending on the 
> >>clicked button.
> >>
> >>Bj
> >>
> >>Sebastian Ho a Ãcrit :
> >>
> >>>Hi
> >>>
> >>>My index.jsp has a top frame and bottom frame.
> >>>
> >>>I have a html:button in the bottom frame. When the button is clicked,
> >>>Action will either forward to the same page or a different page. The
> >>>same page target will be _self which is how struts behaves. 
> >>>
> >>>For the other path that displays a different page, I need it to be _top
> >>>because it replaces the top frame as well. 
> >>>
> >>>I got stuck after my javascript attempt fails. I added
> >>>onClick-location.parent="XX.do" to my button. The action class (XX.do)
> >>>is called correctly, but no matter which actionForward my action
> >>>returns, the javascript overwrite that and forwards to XX.do!
> >>>
> >>>Any idea how to solve this?
> >>>
> >>>Thanks
> >>>
> >>>Sebastian Ho
> >>>
> >>>
> >>>-
> >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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



RE: PlugIn/ ActionServlet init() method called 2 times in Linux - resolved

2004-09-13 Thread Uma Yarakaraju

Hi Sachin & others,

I have resolved the problem. The problem was not in any code but due to
a different configuration we had in the tomcat/conf/server.xml for some
other feature.

Becoz of this the applications were being initialized two times each.
Now I am using the same old InitPlugIn code and it works fine on Linux
also.

Sorry for trouble and thanks a lot for your help.

Regards,
Uma.

-Original Message-
From: Uma Yarakaraju [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 13, 2004 1:48 PM
To: 'Struts Users Mailing List'
Subject: RE: PlugIn/ ActionServlet init() method called 2 times in Linux




Hi Sachin,

Thanks a lot for your reply. 

But creating another servlet for initialization doesn't work still.
Tomcat is initializing that servlet also twice on Linux and only once on
windows.

Below is my class that extends HttpServlet:

import javax.servlet.http.*;
import javax.servlet.*;

public class MyInitServlet extends HttpServlet{
private static int const_count = 0;
private static int dest_count = 0;
private static int initServ_count = 0;
private static int init_count = 0;

public MyInitServlet() {
System.out.println(
"UMA: MyInitServlet-> constructor called,
constr_count =" 
+
const_count++);
}

public  void init(ServletConfig config) throws ServletException
{   
System.out.println("UMA: MyInitServlet ->init(..)
called, initServ_count =" 
+
initServ_count++);  
}

public void init() throws ServletException {

System.out.println("UMA: MyInitServlet ->init called,
init_count =" 
+ init_count++);

}

 public void destroy() {
System.out.println("Uma: MyInitServlet -> destroy
called, dest_count =" 
+ dest_count++);

}
}

Here is web.xml skeleton:
 
  InitServlet
  InitServlet
  MyInitServlet
  1
  

And here are the tomcat logs on Linux:

Starting service Tomcat-Standalone
Apache Tomcat/4.1.18
WebappClassLoader:
validateJarFile(/usr/local/tomcat/webapps/struts-blank/WEB-IN
F/lib/servlet.jar) - jar not loaded. See Servlet Spec 2.3,
section 9.7.2. Offend
ing class: javax/servlet/Servlet.class
UMA: MyInitServlet-> constructor called, constr_count =0
UMA: MyInitServlet ->init(..) called, initServ_count =0
WebappClassLoader:
validateJarFile(/usr/local/tomcat/webapps/struts-blank/WEB-IN
F/lib/servlet.jar) - jar not loaded. See Servlet Spec 2.3,
section 9.7.2. Offend
ing class: javax/servlet/Servlet.class
UMA: MyInitServlet-> constructor called, constr_count =0
UMA: MyInitServlet ->init(..) called, initServ_count =0
Sep 13, 2004 1:38:11 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Sep 13, 2004 1:38:11 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/38
config=/usr/local/tomcat/conf/jk2.properties

Did anyone get this before? Any ideas on why this is happening? Now I
will try option 2 in your mail below.

Thanks again,
Uma.


-Original Message-
From: Sachin Bhutada [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 13, 2004 11:55 AM
To: 'Struts Users Mailing List'
Subject: RE: PlugIn/ ActionServlet init() method called 2 times in Linux



hi Uma,
If the same application is working fine with tomcat + windows
and
not working with tomcat+ linux, try out follwoing,it may solve ur
problem
for time being.
1)Use one more servlet and integrate with struts instead
of
using plug-in or extending
ActionServlet.This but be nothing but workaround to the given probs.
Ideally
u shud go for plug-in. 
2)In the plugin class,apply some checks if the db
connections are already created dont create it again. 

sachin 
xorant, mumbai


-Original Message-
From: Uma Yarakaraju [mailto:[EMAIL PROTECTED]
Sent: Monday, September 13, 2004 11:58 AM
To: [EMAIL PROTECTED]
Subject: PlugIn/ ActionServlet init() method called 2 times in Linux 



Hi,
 
Can anyone pl help on my below mail? Some more things I noticed are:
 
I downloaded the latest struts-1.2.2 zip. To the struts-blank.war I
added a simple plugin class (that prints system.out.println in the
constructor, init, and destroy methods) called MyPlugIn.java. I deployed
the struts-blank in tomcat-4.1.18 on WIN 2k. Works fine where the print
statements are printed once. 
 
Whereas in tomcat-4.1.18 on Linux they are printed 2 times each.
 
I tried using an extended ActionServlet class for initialization. Even
in this constructor, init() and destroy() methods are called 2 ti

Re: Frame problem using Struts

2004-09-13 Thread Bj
Here is an example of dynamic targeting :-)
By default, the target will be '_self' but depending on the clicked 
button, you can change the target to '_top','_parent',..., a frame name 
or any opended window.
Your Action will forward your path (succes, failure,...) to the 
corresponding target window.


function setDynamicTarget(target) {
document.forms[0].target = target;
}
function SubmitForm(object) {
object.form.submit();
}

...

...

...


Bj
Sebastian Ho a Ãcrit :
When you say depending on the clicked button, are u assuming that there
are >1 button. I only have one button in the frame. The behaviour is
coded in actino class. If this is not what u meant, some pointers or
example will be appreciated.
thanks
sebastian
On Mon, 2004-09-13 at 15:26, Benjamin Letrou wrote:
Hi,
why don't you set your target dynamicaly with a javascript ?
you set your form action to XX.do and change the target depending on the 
clicked button.

Bj
Sebastian Ho a Ãcrit :
Hi
My index.jsp has a top frame and bottom frame.
I have a html:button in the bottom frame. When the button is clicked,
Action will either forward to the same page or a different page. The
same page target will be _self which is how struts behaves. 

For the other path that displays a different page, I need it to be _top
because it replaces the top frame as well. 

I got stuck after my javascript attempt fails. I added
onClick-location.parent="XX.do" to my button. The action class (XX.do)
is called correctly, but no matter which actionForward my action
returns, the javascript overwrite that and forwards to XX.do!
Any idea how to solve this?
Thanks
Sebastian Ho
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


RE: PlugIn/ ActionServlet init() method called 2 times in Linux

2004-09-13 Thread Uma Yarakaraju

Hi Sachin,

Thanks a lot for your reply. 

But creating another servlet for initialization doesn't work still.
Tomcat is initializing that servlet also twice on Linux and only once on
windows.

Below is my class that extends HttpServlet:

import javax.servlet.http.*;
import javax.servlet.*;

public class MyInitServlet extends HttpServlet{
private static int const_count = 0;
private static int dest_count = 0;
private static int initServ_count = 0;
private static int init_count = 0;

public MyInitServlet() {
System.out.println(
"UMA: MyInitServlet-> constructor called,
constr_count =" 
+
const_count++);
}

public  void init(ServletConfig config) throws ServletException
{   
System.out.println("UMA: MyInitServlet ->init(..)
called, initServ_count =" 
+
initServ_count++);  
}

public void init() throws ServletException {

System.out.println("UMA: MyInitServlet ->init called,
init_count =" 
+ init_count++);

}

 public void destroy() {
System.out.println("Uma: MyInitServlet -> destroy
called, dest_count =" 
+ dest_count++);

}
}

Here is web.xml skeleton:
 
  InitServlet
  InitServlet
  MyInitServlet
  1
  

And here are the tomcat logs on Linux:

Starting service Tomcat-Standalone
Apache Tomcat/4.1.18
WebappClassLoader:
validateJarFile(/usr/local/tomcat/webapps/struts-blank/WEB-IN
F/lib/servlet.jar) - jar not loaded. See Servlet Spec 2.3,
section 9.7.2. Offend
ing class: javax/servlet/Servlet.class
UMA: MyInitServlet-> constructor called, constr_count =0
UMA: MyInitServlet ->init(..) called, initServ_count =0
WebappClassLoader:
validateJarFile(/usr/local/tomcat/webapps/struts-blank/WEB-IN
F/lib/servlet.jar) - jar not loaded. See Servlet Spec 2.3,
section 9.7.2. Offend
ing class: javax/servlet/Servlet.class
UMA: MyInitServlet-> constructor called, constr_count =0
UMA: MyInitServlet ->init(..) called, initServ_count =0
Sep 13, 2004 1:38:11 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Sep 13, 2004 1:38:11 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/38
config=/usr/local/tomcat/conf/jk2.properties

Did anyone get this before? Any ideas on why this is happening? Now I
will try option 2 in your mail below.

Thanks again,
Uma.


-Original Message-
From: Sachin Bhutada [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 13, 2004 11:55 AM
To: 'Struts Users Mailing List'
Subject: RE: PlugIn/ ActionServlet init() method called 2 times in Linux



hi Uma,
If the same application is working fine with tomcat + windows
and
not working with tomcat+ linux, try out follwoing,it may solve ur
problem
for time being.
1)Use one more servlet and integrate with struts instead
of
using plug-in or extending
ActionServlet.This but be nothing but workaround to the given probs.
Ideally
u shud go for plug-in. 
2)In the plugin class,apply some checks if the db
connections are already created dont create it again. 

sachin 
xorant, mumbai


-Original Message-
From: Uma Yarakaraju [mailto:[EMAIL PROTECTED]
Sent: Monday, September 13, 2004 11:58 AM
To: [EMAIL PROTECTED]
Subject: PlugIn/ ActionServlet init() method called 2 times in Linux 



Hi,
 
Can anyone pl help on my below mail? Some more things I noticed are:
 
I downloaded the latest struts-1.2.2 zip. To the struts-blank.war I
added a simple plugin class (that prints system.out.println in the
constructor, init, and destroy methods) called MyPlugIn.java. I deployed
the struts-blank in tomcat-4.1.18 on WIN 2k. Works fine where the print
statements are printed once. 
 
Whereas in tomcat-4.1.18 on Linux they are printed 2 times each.
 
I tried using an extended ActionServlet class for initialization. Even
in this constructor, init() and destroy() methods are called 2 times on
Linux and once on windows.
 
I did really appreciate any help as our application has to go live and
this could affect the performance of our application (as the DB
connections are created multiple times).
 
Can anyone pl suggest ways to initialize a struts webapp other than
plugIn and extended ActionServlet.
 
Thanks & Regards,
Uma.
-Original Message-
From: Uma Yarakaraju [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 09, 2004 7:04 PM
To: [EMAIL PROTECTED]
Subject: PlugIn's init(...) method is called multiple times in Linux 



Hi, 

I have 3 struts based applications running in Tomcat 4.1.18

Custom jsp tags

2004-09-13 Thread vineesh . kumar
  
I want to create a cudtom jsp tag which accesses a Vector object in the request scope 
and displays it in a specified format.
  So i wrote a tld with a single attribute name

and my setName method looks like 

private String name;
public void setName(String name)
{
this.name=name;
}

and i tried to access the object in my doStartTag like
Vector v=(Vector)pageContext.getRequest().getAttribute(name);
but the resultant vector is null
but i am getting the name string correctly

my java code is 


package com.c2rmnet.struts.taglib;

import java.io.IOException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;
import java.util.List;
/**
 * @author [EMAIL PROTECTED]
 *
 * To change the template for this generated type comment go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
public class TableFormat extends TagSupport {

//JspWriter writer=pageContext.getOut();
private String name;
public TableFormat()
{

}

public int doStartTag() throws JspException
{
int i=0;

java.lang.Object 
table=(java.lang.Object)pageContext.getRequest().getAttribute("test");
String cls;//=(pageContext.getClass()).toString();
/**while(i<=table.size())
{*/
try{cls=String.valueOf(table);}catch (Exception 
e){cls=e.toString();}
 
try {
pageContext.getOut().write(""+cls+"");
} catch (IOException ioe) {
throw new 
JspException(ioe.getMessage());
}
catch(Exception e){
try{
pageContext.getOut().write("Some 
Exception"+e.toString());
}catch(Exception t){}
}
//  i++;
//}
return EVAL_BODY_INCLUDE;
}
public void setName(String name)
{
this.name=name;
}
}



wat is the problem


 also suggest some examples which suits this context
vinu








Re: Frame problem using Struts

2004-09-13 Thread Sebastian Ho
When you say depending on the clicked button, are u assuming that there
are >1 button. I only have one button in the frame. The behaviour is
coded in actino class. If this is not what u meant, some pointers or
example will be appreciated.

thanks

sebastian


On Mon, 2004-09-13 at 15:26, Benjamin Letrou wrote:
> Hi,
> why don't you set your target dynamicaly with a javascript ?
> you set your form action to XX.do and change the target depending on the 
> clicked button.
> 
> Bj
> 
> Sebastian Ho a Ãcrit :
> > Hi
> > 
> > My index.jsp has a top frame and bottom frame.
> > 
> > I have a html:button in the bottom frame. When the button is clicked,
> > Action will either forward to the same page or a different page. The
> > same page target will be _self which is how struts behaves. 
> > 
> > For the other path that displays a different page, I need it to be _top
> > because it replaces the top frame as well. 
> > 
> > I got stuck after my javascript attempt fails. I added
> > onClick-location.parent="XX.do" to my button. The action class (XX.do)
> > is called correctly, but no matter which actionForward my action
> > returns, the javascript overwrite that and forwards to XX.do!
> > 
> > Any idea how to solve this?
> > 
> > Thanks
> > 
> > Sebastian Ho
> > 
> > 
> > -
> > 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: Re: [Gmail] - All gone,

2004-09-13 Thread vineesh . kumar
  Dear sir,
can u help me on getting a gmail account?
vinu







On Mon, 13 Sep 2004 Emmanouil Batsis wrote :
>Ruben Cepeda wrote:
>
>>Guys,
>>
>>I just ran out.
>
>
>No you didn't. I already have one so I'm not going to use your invitation... thanks!
>
>
>Manos
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


  1   2   >