Deprecation of various Methods etc.

2002-05-14 Thread Steve Vanspall

Hi there,

can anyone tell me what org.apache.struts.util.GenericDataSource has been
replaced with in version 1.1 beta 1 of struts



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




Re: issue

2002-05-14 Thread Pamela Li

got it!
thax a lot!
- Original Message - 
From: "Ajay Chitre" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 1:22 PM
Subject: Re:  issue


Struts Validator is a "Validation Framework for Struts".  It will be part
of Struts 1.1.  If you want to use it with 1.0, you can download it from;

http://home.earthlink.net/~dwinterfeldt/


Here's what the "Readme" file says;

Struts Validator
==

Overview
-
The Validation Framework was made to work with Struts. It can perform basic
validations to check if a field is required, matches a regular expression,
email, credit card, and server side type checking and date validation. Different
validation rules can be defined for different locales. The framework has
basic support for user defined constants which can be used in some field
attributes. The validation routines are modifiable in the validation.xml
file so custom validation routines can be created and added to the framework.





>-- Original Message --
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>From: "Pamela Li" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>,
> <[EMAIL PROTECTED]>
>Subject: Re:  issue
>Date: Wed, 15 May 2002 10:34:57 +0800
>
>
>what is the struts clientside validator  ?
>create some new struts extension tag in jsp?
>as i know,if there is a validate() method in a formbean,
>the struts will call it beform init the formbean,this kind of 
>validation is a serverside validator?
>
>
>
>- Original Message - 
>From: "Ajay Chitre" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Sent: Wednesday, May 15, 2002 10:12 AM
>Subject: Re:  issue
>
>
>You can use Struts validator for both - client side as well as server side
>validations.
>
>Now the question is - can server side afford so many validations?  Well,
>in my opinion, we don't have a choice.  You have to perform server side
>validations because a user may choose to turn off client side scripting.
>
>>-- Original Message --
>>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>From: "Pamela Li" <[EMAIL PROTECTED]>
>>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>Subject: Re:  issue
>>Date: Wed, 15 May 2002 08:56:53 +0800
>>
>>
>>hi,
>>for struts validator,it is still a serverside validator,right?
>>so can a server afford so many validation from every page?
>>
>>
>>- Original Message - 
>>From: "Struts Newsgroup" <@[EMAIL PROTECTED]>
>>To: <[EMAIL PROTECTED]>
>>Sent: Wednesday, May 15, 2002 12:40 AM
>>Subject: Re:  issue
>>
>>
>>> Subject: Re:  issue
>>> From: Vic C <[EMAIL PROTECTED]>
>>>  ===
>>> JavaScript validation? Struts validator is great! Re-consider for future.
>>> 
>>> Galbreath, Mark wrote:
>>> > Nah...want to avoid all client scripting except JavaScript validation.
>>> > 
>>> > -Original Message-
>>> > From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]]
>>> > Sent: Tuesday, May 14, 2002 12:22 PM
>>> > To: [EMAIL PROTECTED]
>>> > Subject: Re:  issue
>>> > 
>>> > 
>>> > how about scriptlet? if getProperty==0 call Javascript function.
>>> > 
>>> > Javascript funcion
>>> > form.element.value="";
>>> > 
>>> > 
>>> > 
>>> >>From: "Galbreath, Mark" <[EMAIL PROTECTED]>
>>> >>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>> >>To: "Struts (E-mail)" <[EMAIL PROTECTED]>
>>> >>Subject:  issue
>>> >>Date: Tue, 14 May 2002 12:12:51 -0400
>>> >>
>>> >>Is there a way to suppress the default value for  when
the
>>> >>property of the bean is an int?  I don't want a "0" showing in the
>textbox
>>> >>when the property has not been set - it's screwing up validation.
>>> >>
>>> >>Thanks,
>>> >>Mark
>>> > 
>>> > 
>>> > 
>>> > 
>>> > 
>>> > _
>>> > Chat with friends online, try MSN Messenger: http://messenger.msn.com
>>> > 
>>> > 
>>> > --
>>> > To unsubscribe, e-mail:
>>> > 
>>> > For additional commands, e-mail:
>>> > 
>>> > 
>>> > --
>>> > To unsubscribe, e-mail:   
>>> > For additional commands, e-mail: 
>>> > 
>>> 
>>> 
>>> --
>>> To unsubscribe, e-mail:   
>>> For additional commands, e-mail: 
>>> 
>>> 
>
>Ajay Chitre
>
>Diligent Team, Inc.
>(Where Diligent People Work as a Team)
>
>http://www.DiligentTeam.com
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>

Ajay Chitre

Diligent Team, Inc.
(Where Diligent People Work as a Team)

http://www.DiligentTeam.com


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





Re: issue

2002-05-14 Thread Ajay Chitre

Struts Validator is a "Validation Framework for Struts".  It will be part
of Struts 1.1.  If you want to use it with 1.0, you can download it from;

http://home.earthlink.net/~dwinterfeldt/


Here's what the "Readme" file says;

Struts Validator
==

Overview
-
The Validation Framework was made to work with Struts. It can perform basic
validations to check if a field is required, matches a regular expression,
email, credit card, and server side type checking and date validation. Different
validation rules can be defined for different locales. The framework has
basic support for user defined constants which can be used in some field
attributes. The validation routines are modifiable in the validation.xml
file so custom validation routines can be created and added to the framework.





>-- Original Message --
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>From: "Pamela Li" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>,
>   <[EMAIL PROTECTED]>
>Subject: Re:  issue
>Date: Wed, 15 May 2002 10:34:57 +0800
>
>
>what is the struts clientside validator  ?
>create some new struts extension tag in jsp?
>as i know,if there is a validate() method in a formbean,
>the struts will call it beform init the formbean,this kind of
>validation is a serverside validator?
>
>
>
>- Original Message -
>From: "Ajay Chitre" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Sent: Wednesday, May 15, 2002 10:12 AM
>Subject: Re:  issue
>
>
>You can use Struts validator for both - client side as well as server side
>validations.
>
>Now the question is - can server side afford so many validations?  Well,
>in my opinion, we don't have a choice.  You have to perform server side
>validations because a user may choose to turn off client side scripting.
>
>>-- Original Message --
>>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>From: "Pamela Li" <[EMAIL PROTECTED]>
>>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>Subject: Re:  issue
>>Date: Wed, 15 May 2002 08:56:53 +0800
>>
>>
>>hi,
>>for struts validator,it is still a serverside validator,right?
>>so can a server afford so many validation from every page?
>>
>>
>>- Original Message -
>>From: "Struts Newsgroup" <@[EMAIL PROTECTED]>
>>To: <[EMAIL PROTECTED]>
>>Sent: Wednesday, May 15, 2002 12:40 AM
>>Subject: Re:  issue
>>
>>
>>> Subject: Re:  issue
>>> From: Vic C <[EMAIL PROTECTED]>
>>>  ===
>>> JavaScript validation? Struts validator is great! Re-consider for future.
>>>
>>> Galbreath, Mark wrote:
>>> > Nah...want to avoid all client scripting except JavaScript validation.
>>> >
>>> > -Original Message-
>>> > From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]]
>>> > Sent: Tuesday, May 14, 2002 12:22 PM
>>> > To: [EMAIL PROTECTED]
>>> > Subject: Re:  issue
>>> >
>>> >
>>> > how about scriptlet? if getProperty==0 call Javascript function.
>>> >
>>> > Javascript funcion
>>> > form.element.value="";
>>> >
>>> >
>>> >
>>> >>From: "Galbreath, Mark" <[EMAIL PROTECTED]>
>>> >>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>> >>To: "Struts (E-mail)" <[EMAIL PROTECTED]>
>>> >>Subject:  issue
>>> >>Date: Tue, 14 May 2002 12:12:51 -0400
>>> >>
>>> >>Is there a way to suppress the default value for  when
the
>>> >>property of the bean is an int?  I don't want a "0" showing in the
>textbox
>>> >>when the property has not been set - it's screwing up validation.
>>> >>
>>> >>Thanks,
>>> >>Mark
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > _
>>> > Chat with friends online, try MSN Messenger: http://messenger.msn.com
>>> >
>>> >
>>> > --
>>> > To unsubscribe, e-mail:
>>> > 
>>> > For additional commands, e-mail:
>>> > 
>>> >
>>> > --
>>> > To unsubscribe, e-mail:   
>>> > For additional commands, e-mail: 
>>> >
>>>
>>>
>>> --
>>> To unsubscribe, e-mail:   
>>> For additional commands, e-mail: 
>>>
>>>
>
>Ajay Chitre
>
>Diligent Team, Inc.
>(Where Diligent People Work as a Team)
>
>http://www.DiligentTeam.com
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>

Ajay Chitre

Diligent Team, Inc.
(Where Diligent People Work as a Team)

http://www.DiligentTeam.com


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




Re: Newbi : while transforming data from Action Class to Bean

2002-05-14 Thread arul

why did you instantiated the Action Form Bean... since itz already
been passed to you as a parameter to your perform method. Just
typecast the "ActionForm form "to your Form Bean, and then set the values.

If you instantiate there is no way you could get the results.

Cheers
Arul

- Original Message -
From: Sudhir <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 8:49 AM
Subject: Newbi : while transforming data from Action Class to Bean


> Hi,
>
> I have created an Action Class to get the data from database. Also
instantiated the Action Form bean in the Action class but i am
> not getting any data to JSP page.
>
> I am not getting any error.
>
> Can anybody tell me why the data is not displayed in JSP.
>
> Thanks and Best Regards,
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



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




RE: Newbi : while transforming data from Action Class to Bean

2002-05-14 Thread James Mitchell

You are kidding right?

JM 

> -Original Message-
> From: Sudhir [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 11:19 PM
> To: Struts Users Mailing List
> Subject: Newbi : while transforming data from Action Class to Bean
> 
> 
> Hi,
> 
> I have created an Action Class to get the data from database. 
> Also instantiated the Action Form bean in the Action class but i am
> not getting any data to JSP page.
> 
> I am not getting any error.
> 
> Can anybody tell me why the data is not displayed in JSP.
> 
> Thanks and Best Regards,
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

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




Newbi : while transforming data from Action Class to Bean

2002-05-14 Thread Sudhir

Hi,

I have created an Action Class to get the data from database. Also instantiated the 
Action Form bean in the Action class but i am
not getting any data to JSP page.

I am not getting any error.

Can anybody tell me why the data is not displayed in JSP.

Thanks and Best Regards,


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




Re: issue

2002-05-14 Thread @Basebeans.com

Subject: Re:  issue
From: Vic C <[EMAIL PROTECTED]>
 ===
Validator is client side, it automaticaly creates browser side
JavaScript, based on XML fileds you want to validate.
See examples.
Vic

Pamela Li wrote:
> hi,
> for struts validator,it is still a serverside validator,right?
> so can a server afford so many validation from every page?
> 
> 
> - Original Message - 
> From: "Struts Newsgroup" <@[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, May 15, 2002 12:40 AM
> Subject: Re:  issue
> 
> 
> 
>>Subject: Re:  issue
>>From: Vic C <[EMAIL PROTECTED]>
>> ===
>>JavaScript validation? Struts validator is great! Re-consider for future.
>>
>>Galbreath, Mark wrote:
>>
>>>Nah...want to avoid all client scripting except JavaScript validation.
>>>
>>>-Original Message-
>>>From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]]
>>>Sent: Tuesday, May 14, 2002 12:22 PM
>>>To: [EMAIL PROTECTED]
>>>Subject: Re:  issue
>>>
>>>
>>>how about scriptlet? if getProperty==0 call Javascript function.
>>>
>>>Javascript funcion
>>>form.element.value="";
>>>
>>>
>>>
>>>
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts (E-mail)" <[EMAIL PROTECTED]>
Subject:  issue
Date: Tue, 14 May 2002 12:12:51 -0400

Is there a way to suppress the default value for  when the
property of the bean is an int?  I don't want a "0" showing in the textbox
when the property has not been set - it's screwing up validation.

Thanks,
Mark
>>>
>>>
>>>
>>>
>>>
>>>_
>>>Chat with friends online, try MSN Messenger: http://messenger.msn.com
>>>
>>>
>>>--
>>>To unsubscribe, e-mail:
>>>
>>>For additional commands, e-mail:
>>>
>>>
>>>--
>>>To unsubscribe, e-mail:   
>>>For additional commands, e-mail: 
>>>
>>
>>--
>>To unsubscribe, e-mail:   
>>For additional commands, e-mail: 
>>
>>


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




problems migrating struts tags - weblogic 5.1 - 6.1 (has no property)

2002-05-14 Thread Michelle Popovits

Hi,

I am currently migrating a struts application from weblogic 5.1 sp11 to
weblogic 6.1 sp2.

The problem is that the taglibs now complain that they do not have certain
properties which I had specified.

The html:image jsp tag complains that it has no 'height' property and the
html:text tag complains that it has no testexpr property (just to name a
couple).  Even though these tags do not explicitly support these properties,
previously they had always passed them through to the resulting html where
they would be interpreted correctly in the browser.

Any idea why this is happening and what can be done to fix it.

Thanks,
Michelle


I am using Struts 1.0 release, I have also tried the latest mileston beta
release with the same results.

Example Error Output:
/jsps/account/AccountInfo.jspf(173): for tag 'text' handler type
'org.apache.struts.taglib.html.TextTag' has no property 'testexpr'
probably occurred due to an error in /jsps/account/AccountInfo.jspf line
173:
 


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




Re: issue

2002-05-14 Thread Pamela Li

what is the struts clientside validator  ?
create some new struts extension tag in jsp?
as i know,if there is a validate() method in a formbean,
the struts will call it beform init the formbean,this kind of 
validation is a serverside validator?



- Original Message - 
From: "Ajay Chitre" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 10:12 AM
Subject: Re:  issue


You can use Struts validator for both - client side as well as server side
validations.

Now the question is - can server side afford so many validations?  Well,
in my opinion, we don't have a choice.  You have to perform server side
validations because a user may choose to turn off client side scripting.

>-- Original Message --
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>From: "Pamela Li" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: Re:  issue
>Date: Wed, 15 May 2002 08:56:53 +0800
>
>
>hi,
>for struts validator,it is still a serverside validator,right?
>so can a server afford so many validation from every page?
>
>
>- Original Message - 
>From: "Struts Newsgroup" <@[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, May 15, 2002 12:40 AM
>Subject: Re:  issue
>
>
>> Subject: Re:  issue
>> From: Vic C <[EMAIL PROTECTED]>
>>  ===
>> JavaScript validation? Struts validator is great! Re-consider for future.
>> 
>> Galbreath, Mark wrote:
>> > Nah...want to avoid all client scripting except JavaScript validation.
>> > 
>> > -Original Message-
>> > From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]]
>> > Sent: Tuesday, May 14, 2002 12:22 PM
>> > To: [EMAIL PROTECTED]
>> > Subject: Re:  issue
>> > 
>> > 
>> > how about scriptlet? if getProperty==0 call Javascript function.
>> > 
>> > Javascript funcion
>> > form.element.value="";
>> > 
>> > 
>> > 
>> >>From: "Galbreath, Mark" <[EMAIL PROTECTED]>
>> >>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>> >>To: "Struts (E-mail)" <[EMAIL PROTECTED]>
>> >>Subject:  issue
>> >>Date: Tue, 14 May 2002 12:12:51 -0400
>> >>
>> >>Is there a way to suppress the default value for  when the
>> >>property of the bean is an int?  I don't want a "0" showing in the
textbox
>> >>when the property has not been set - it's screwing up validation.
>> >>
>> >>Thanks,
>> >>Mark
>> > 
>> > 
>> > 
>> > 
>> > 
>> > _
>> > Chat with friends online, try MSN Messenger: http://messenger.msn.com
>> > 
>> > 
>> > --
>> > To unsubscribe, e-mail:
>> > 
>> > For additional commands, e-mail:
>> > 
>> > 
>> > --
>> > To unsubscribe, e-mail:   
>> > For additional commands, e-mail: 
>> > 
>> 
>> 
>> --
>> To unsubscribe, e-mail:   
>> For additional commands, e-mail: 
>> 
>> 

Ajay Chitre

Diligent Team, Inc.
(Where Diligent People Work as a Team)

http://www.DiligentTeam.com


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





Re: Ted Husted's Site

2002-05-14 Thread Pae Choi

You meant the DDoS? If so, you have an architecture problem.


Pae



- Original Message -
From: "Ted Husted" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, May 14, 2002 1:58 PM
Subject: Re: Ted Husted's Site


> My provider is suffering from DoS issues.
>
> The Struts Web site should have all the same resources, but perhaps I
> should copy the link page over as well.
>
> -- Ted Husted, Husted dot Com, Fairport NY US
> -- Developing Java Web Applications with Struts
> -- Tel: +1 585 737-3463
> -- Web: http://husted.com/about/services
>
>
> Eddie Bush wrote:
> >
> > Is it gone?
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




Re: issue

2002-05-14 Thread Ajay Chitre

You can use Struts validator for both - client side as well as server side
validations.

Now the question is - can server side afford so many validations?  Well,
in my opinion, we don't have a choice.  You have to perform server side
validations because a user may choose to turn off client side scripting.

>-- Original Message --
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>From: "Pamela Li" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: Re:  issue
>Date: Wed, 15 May 2002 08:56:53 +0800
>
>
>hi,
>for struts validator,it is still a serverside validator,right?
>so can a server afford so many validation from every page?
>
>
>- Original Message -
>From: "Struts Newsgroup" <@[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, May 15, 2002 12:40 AM
>Subject: Re:  issue
>
>
>> Subject: Re:  issue
>> From: Vic C <[EMAIL PROTECTED]>
>>  ===
>> JavaScript validation? Struts validator is great! Re-consider for future.
>>
>> Galbreath, Mark wrote:
>> > Nah...want to avoid all client scripting except JavaScript validation.
>> >
>> > -Original Message-
>> > From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]]
>> > Sent: Tuesday, May 14, 2002 12:22 PM
>> > To: [EMAIL PROTECTED]
>> > Subject: Re:  issue
>> >
>> >
>> > how about scriptlet? if getProperty==0 call Javascript function.
>> >
>> > Javascript funcion
>> > form.element.value="";
>> >
>> >
>> >
>> >>From: "Galbreath, Mark" <[EMAIL PROTECTED]>
>> >>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>> >>To: "Struts (E-mail)" <[EMAIL PROTECTED]>
>> >>Subject:  issue
>> >>Date: Tue, 14 May 2002 12:12:51 -0400
>> >>
>> >>Is there a way to suppress the default value for  when the
>> >>property of the bean is an int?  I don't want a "0" showing in the
textbox
>> >>when the property has not been set - it's screwing up validation.
>> >>
>> >>Thanks,
>> >>Mark
>> >
>> >
>> >
>> >
>> >
>> > _
>> > Chat with friends online, try MSN Messenger: http://messenger.msn.com
>> >
>> >
>> > --
>> > To unsubscribe, e-mail:
>> > 
>> > For additional commands, e-mail:
>> > 
>> >
>> > --
>> > To unsubscribe, e-mail:   
>> > For additional commands, e-mail: 
>> >
>>
>>
>> --
>> To unsubscribe, e-mail:   
>> For additional commands, e-mail: 
>>
>>

Ajay Chitre

Diligent Team, Inc.
(Where Diligent People Work as a Team)

http://www.DiligentTeam.com


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




Re: issue

2002-05-14 Thread Pamela Li

hi,
for struts validator,it is still a serverside validator,right?
so can a server afford so many validation from every page?


- Original Message - 
From: "Struts Newsgroup" <@[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 12:40 AM
Subject: Re:  issue


> Subject: Re:  issue
> From: Vic C <[EMAIL PROTECTED]>
>  ===
> JavaScript validation? Struts validator is great! Re-consider for future.
> 
> Galbreath, Mark wrote:
> > Nah...want to avoid all client scripting except JavaScript validation.
> > 
> > -Original Message-
> > From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 14, 2002 12:22 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re:  issue
> > 
> > 
> > how about scriptlet? if getProperty==0 call Javascript function.
> > 
> > Javascript funcion
> > form.element.value="";
> > 
> > 
> > 
> >>From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> >>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >>To: "Struts (E-mail)" <[EMAIL PROTECTED]>
> >>Subject:  issue
> >>Date: Tue, 14 May 2002 12:12:51 -0400
> >>
> >>Is there a way to suppress the default value for  when the
> >>property of the bean is an int?  I don't want a "0" showing in the textbox
> >>when the property has not been set - it's screwing up validation.
> >>
> >>Thanks,
> >>Mark
> > 
> > 
> > 
> > 
> > 
> > _
> > Chat with friends online, try MSN Messenger: http://messenger.msn.com
> > 
> > 
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > For additional commands, e-mail: 
> > 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 



re: re: DAO open source?

2002-05-14 Thread Casey Forbes

Hi Adolfo,

I wrote something which has been working well
for me - it makes extensive use of the Jakarta
Digester utility and some classes similar to
BeanUtils and PropertyUtils

Works something like this:

   Can pass "simple" objects like Integer, String, Float
   (the kinds that you can use in JDBC setObject calls) or beans.

   Can get beans, simple objects, or arrays of each back as results.


Java like this:

public class UselessAction extends SubclassedAction {

 // SubclassedAction extends Action and build a DaoFactory on
 // startup, passing it in to the perform method of my application
 // actions

 performAction(ActionMapping mapping, blah blah, ActionForm form,
 DaoFactory df) {

 Customer[] customers;
 DataAccessor dao = df.getDataAccessor("invoice");

 // just a wrapper around a hashmap that takes care of primitive
 // wrapping and java.util.Date -> java.sql.Date, etc
 ParameterSet params = new ParameterSet();
 params.addParameter("userId", 0)
 dao.execute("retrieveCustomers", params);
 customers = (Customer)dao.getResults(new Customer[0]);

 Invoice invoice = new Invoice();
 PropertyUtils.copyProperties(invoice, form);
 ParameterSet invoiceParams = new ParameterSet();
 params.addParameter("userId", 0)
 invoiceParams.addParameter("invoice", invoice);
 dao.execute("saveInvoice", params);
 }
}


The DaoFactory is built on startup by Digester
The XML looks like this:


   
 
   
   
 
 
   
   
 
   invoice
   primary
   
 retrieveCustomers

  {call sbrGetCustomers(?)}
  
 
  
  
 

  
   
   
   
  
   
   

   
   
   
 saveInvoice

  {? = call sbrPutInvoice(?,?,?,?,?,?,?,...
  
 
 


   
 
 
   
 
 
 
 

   
 
   




It works great for me - I hope that this gives you some ideas,

Casey




 > Subject: DAO open source? From: "Adolfo Miguelez"
 > <[EMAIL PROTECTED]> Date: Tue, 14 May 2002 18:09:59 + To:
 > [EMAIL PROTECTED]
 >
 > Hi All,
 >
 > probably a little out of Struts scope but, not a problem for many of
 > you, since it plugs in struts. I need to code an DAO class that, via
 > JDBC, accesses a database. Database is Oracle 8i. We intend to manage
 >  any kind of database data.

 > My employer suggested my that class could have a principal method
 > execute(...) signed like that:
 >
 > public static HashMap execute(String query, String datasource, String
 > DBuser, String DBpassword, ArrayList parameters);
 >
 > The class accesses PL/SQL stored procedures by means of
 > CallableStatements, which actually hold the business logic.
 >
 > * Returned hashmap contains return values indexed by return parameter
 > name, including arrayList converted form resulsets and
 > * ArrayList parameters holds next info about each parameter:
 > - IN/OUT/INOUT
 > - type
 > - value

 > in order that method can be able to work out the actual
 > CallableStatement.

 > That is the scenario. However, I am not sure about this design, and I
 > have some questions so, I would appreciate opinions.
 >
 > - Firstly, passing parameter types I think is quite messy for the
 > programmer. Furthermore, method can inspect in runtime database column
 > types and cast, or match itself, input parameter types for database
 > types. I would free this (pointless?) load to programmer that use this
 > class.
 >
 > - Maynbe using dynabeans rather than hashmaps in the return from the
 > method,
 >
 > - is good idea to make execute() static?
 >
 > - Does any of you know a open source DAO, or example to look at?
 >
 > Regards,
 >
 > Adolfo.



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




RE: Websphere 4.02 Struts Deployment

2002-05-14 Thread Tero P Paananen

> I'm having problems with struts forwards:
> 
> 
> 
> (forwards to /do/summary/display)
> 
> it actually redirects it to : /app/app/do/summary/display
> 
> I think Websphere is being too helpful here with the redirects!!  Any
> pointers?

There's a patch to this bug.

I'll dig it up for you tomorrow morning, if you'd
kindly remind me by Email.

-TPP - it's past my bed time

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




Websphere 4.02 Struts Deployment

2002-05-14 Thread Danny Mui

Hello people :)

Anybody play with deploying a struts app on Websphere 4ish?  After a day's
worth of battle with the beast, I give up for the night.

*Downloaded new Xalan/Xerces binaries and placed in WEB-INF/lib to get
allow the digester to parse the struts-config.xml file correctly.

*Changed the web.xml version back to 2.2 so that the Application Installer
would stop null pointering .

*Learned how to regen the plugin file so that no more manual aliases need
be entered.

Thought my trek was complete but apparently not.  I've installed the app in
a different context : /app

I'm having problems with struts forwards:



(forwards to /do/summary/display)

it actually redirects it to : /app/app/do/summary/display

I think Websphere is being too helpful here with the redirects!!  Any
pointers?  Things I'm planning to attempt:

1. Upgrade to 4.0.3...gah, server admining...
2. Patch RequestProcessor to detect double contexts...*sigh* hack..i hate
that...

As usual, everything works on my machine (Tomcat 4.0) :)

Any help appreciated!

danny



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




RE: problems migrating struts tags - weblogic 5.1 - 6.1 (has no property)

2002-05-14 Thread Bart Schrever

all possible attributes for the custum tags should be declared in the
corresponding
.tld file

if they aren't defined in there, the file will not compile ...
the taglib file is included this way:

<%@ taglib uri="/WEB-INF/lib/struts-html.tld" prefix="strutshtml" %>
it shows all possible attributes for the tags with prefix: 

hope this can help you...



-Oorspronkelijk bericht-
Van: Michelle Popovits [mailto:[EMAIL PROTECTED]]
Verzonden: dinsdag 14 mei 2002 23:04
Aan: '[EMAIL PROTECTED]'
Onderwerp: problems migrating struts tags - weblogic 5.1 - 6.1 (has no
property)


I tried sending this message 2 hours ago, but it didn't show up...so I'm
trying again (pls. forgive me if my first message shows up in the meantime).

Hi,

I am currently migrating a struts application from weblogic 5.1 sp11 to
weblogic 6.1 sp2.

The problem is that the taglibs now complain that they do not have certain
properties which I had specified.

The html:image jsp tag complains that it has no 'height' property and the
html:text tag complains that it has no testexpr property (just to name a
couple).  Even though these tags do not explicitly support these properties,
previously they had always passed them through to the resulting html where
they would be interpreted correctly in the browser.

Any idea why this is happening and what can be done to fix it.

Thanks,
Michelle


I am using Struts 1.0 release, I have also tried the latest mileston beta
release with the same results.

Example Error Output:
/jsps/account/AccountInfo.jspf(173): for tag 'text' handler type
'org.apache.struts.taglib.html.TextTag' has no property 'testexpr'
probably occurred due to an error in /jsps/account/AccountInfo.jspf line
173:




--
To unsubscribe, e-mail:

For additional commands, e-mail:





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




RE: dynamic bean message

2002-05-14 Thread Bart Schrever

try  single quotes on the tag attribute:


-Oorspronkelijk bericht-
Van: Boon Chew [mailto:[EMAIL PROTECTED]]
Verzonden: dinsdag 14 mei 2002 23:38
Aan: [EMAIL PROTECTED]
Onderwerp: dynamic bean message



I searched on the archive and didn't find an question similar to this...

What I am trying to achieve is when the action servlet is done its job it
would forward to a
generic JSP page that will show the appropriate message to the user.

For example, at the end of the action servlet,

// save the message resource key
request.setAttribute("status", "status.success");
return (mapping.findForward("message"));

And in message.jsp, I tried doing this in hope of display different message
depending on what is being set in the status attribute.

" />

The above line won't work.  It seems like doing a JSP expression within a
tag is not allowed...is there another way or a better way to achieve this?

- boon


--
To unsubscribe, e-mail:

For additional commands, e-mail:





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




RE: dynamic bean message

2002-05-14 Thread Galbreath, Mark

Which says?

-Original Message-
From: Boon Chew [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 6:01 PM

This won't work.  You will still get the same compile error message.

- boon

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




problems migrating struts tags - weblogic 5.1 - 6.1 (has no property)

2002-05-14 Thread Michelle Popovits

I tried sending this message 2 hours ago, but it didn't show up...so I'm
trying again (pls. forgive me if my first message shows up in the meantime).

Hi,

I am currently migrating a struts application from weblogic 5.1 sp11 to
weblogic 6.1 sp2.

The problem is that the taglibs now complain that they do not have certain
properties which I had specified.

The html:image jsp tag complains that it has no 'height' property and the
html:text tag complains that it has no testexpr property (just to name a
couple).  Even though these tags do not explicitly support these properties,
previously they had always passed them through to the resulting html where
they would be interpreted correctly in the browser.

Any idea why this is happening and what can be done to fix it.

Thanks,
Michelle


I am using Struts 1.0 release, I have also tried the latest mileston beta
release with the same results.

Example Error Output:
/jsps/account/AccountInfo.jspf(173): for tag 'text' handler type
'org.apache.struts.taglib.html.TextTag' has no property 'testexpr'
probably occurred due to an error in /jsps/account/AccountInfo.jspf line
173:
 



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




Tiles -(1 controller for three tiles) struts-tiles

2002-05-14 Thread Rajesh Kalluri

Hi all i am using tiles as a templating mechanism in my application and like
the
controller mechanism a lot.

This is my defintion which will add 3 tiles (add,rank,publish) in a column
layout.








All three tiles in this definition use the same data coming from the
controller and disply them in different formats.

i do this in addLinkTile.jsp.



But my individual files cannot find this data in the component context
unless i define three seperate defintions and use a column layout to display
them is there a way to jsut declare the controller once and use in all the
tiles that are added to a definition. If i use seperate defintions
controller is called thrice and in real world situations will cause lot of
over head on the server.

Any help in this matter from cedric or anyone else will be greatly
appreciated.

Also is there a way i can change my "preview" tile based on some input from
the client in the controller if so can anyone post a snippet please.

Right now in my controller i display different data based on the user input
in colloboration with a plain action.

Regards
Rajesh Kalluri


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





RE: dynamic bean message

2002-05-14 Thread Boon Chew


This won't work.  You will still get the same compile error message.

- boon


-Original Message-
From: emmanuel.boudrant [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 2:42 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: dynamic bean message



Hi,
 request.getAttribute("status") return an Object and message tag need a
String, perhaps you need to cast to String like that:
"/>

  Boon Chew <[EMAIL PROTECTED]> a écrit :
I searched on the archive and didn't find an question similar to this...

What I am trying to achieve is when the action servlet is done its job it
would forward to a
generic JSP page that will show the appropriate message to the user.

For example, at the end of the action servlet,

// save the message resource key
request.setAttribute("status", "status.success");
return (mapping.findForward("message"));

And in message.jsp, I tried doing this in hope of display different message
depending on what is being set in the status attribute.

" />

The above line won't work. It seems like doing a JSP expression within a
tag is not allowed...is there another way or a better way to achieve this?

- boon


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



-
Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en français !


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




Abstracted Tiles definition references?

2002-05-14 Thread Byrne, Steven

I'm trying to figure out the "right" way to integrate Tiles and Struts.
The Tiles documentation says that if if you use the Tiles servlet
instead of the standard Struts one, you can forward to a tiles
definition defined in the tilesDefinitions.xml file by name.

What I had to do was:
1) set up a global forward mapping the definition name to a local
action name
2) set up a simple action mapping that forward to the actual
definition in the tilesDefinitions.xml file

This seems somewhat more involved than it needs to be.  Clearly there
needs to be support for finding forwards based
on the tiles definition name.  But if I'm forwarding directly to a top
level tiles definition, it seems a bit extreme to have to go through
adding definitions in *two* places in the struts-config.xml file just to
support it.

Am I missing something?  Have I forgotten to somehow configure the
execution environment for the html: tags so that they are using the
right classes to understand how to interpret tiles deifnition references
correctly?

Steve






RE: dynamic bean message

2002-05-14 Thread Boon Chew


I am not trying to trap an error message.  What I want to do is instead of
having multiple pages showing the status message to the users, I would have
one generic page, and have the action servlet send the message resouce key
and hopefully bean:message can dynamically pull a message out of the
resource file.

So instead of doing  I would like the key to be
dynamic so you see different message depending on what's sent back by the
action servlet, hopefully via something like this:

" />

but so far I haven't found a way that will compile and achieve that.

- boon

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 2:40 PM
To: 'Struts Users Mailing List'
Subject: RE: dynamic bean message


What error messages are you trapping?  Try escaping the quotation market in
the expression.

Mark

-Original Message-
From: Boon Chew [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 5:38 PM
To: [EMAIL PROTECTED]
Subject: dynamic bean message



I searched on the archive and didn't find an question similar to this...

What I am trying to achieve is when the action servlet is done its job it
would forward to a
generic JSP page that will show the appropriate message to the user.

For example, at the end of the action servlet,

// save the message resource key
request.setAttribute("status", "status.success");
return (mapping.findForward("message"));

And in message.jsp, I tried doing this in hope of display different message
depending on what is being set in the status attribute.

" />

The above line won't work.  It seems like doing a JSP expression within a
tag is not allowed...is there another way or a better way to achieve this?

- boon


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: dynamic bean message

2002-05-14 Thread emmanuel.boudrant


Hi,
 request.getAttribute("status") return an Object and message tag need a String, 
perhaps you need to cast to String like that:
"/>
 
  Boon Chew <[EMAIL PROTECTED]> a écrit : 
I searched on the archive and didn't find an question similar to this...

What I am trying to achieve is when the action servlet is done its job it
would forward to a
generic JSP page that will show the appropriate message to the user.

For example, at the end of the action servlet,

// save the message resource key
request.setAttribute("status", "status.success");
return (mapping.findForward("message"));

And in message.jsp, I tried doing this in hope of display different message
depending on what is being set in the status attribute.

" />

The above line won't work. It seems like doing a JSP expression within a
tag is not allowed...is there another way or a better way to achieve this?

- boon


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



-
Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en français !



RE: dynamic bean message

2002-05-14 Thread Galbreath, Mark

What error messages are you trapping?  Try escaping the quotation market in
the expression.

Mark

-Original Message-
From: Boon Chew [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 5:38 PM
To: [EMAIL PROTECTED]
Subject: dynamic bean message



I searched on the archive and didn't find an question similar to this...

What I am trying to achieve is when the action servlet is done its job it
would forward to a
generic JSP page that will show the appropriate message to the user.

For example, at the end of the action servlet,

// save the message resource key
request.setAttribute("status", "status.success");
return (mapping.findForward("message"));

And in message.jsp, I tried doing this in hope of display different message
depending on what is being set in the status attribute.

" />

The above line won't work.  It seems like doing a JSP expression within a
tag is not allowed...is there another way or a better way to achieve this?

- boon


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Cannot find message resources under key org.apache.struts.action.MESSAGE

2002-05-14 Thread Deepa Matta


Hi

I am using weblogic 5.1 sp 9 and struts 1.02. I installed struts and was able to 
succesfully run the example struts-example.war by deploying the war file. I had to 
copy the ApplicationResources.properties to org/apache/struts/webapp/example under a 
directory in the classpath inorder to run the example.
However now I need to intergrate struts with our current web app which is not deployed 
as a war file.
I copied struts.jar to a directory in the classpath and copied the action.xml, 
struts-config.xml and all the .tld's to the WEB-INF directory. I am trying to load the 
same login.jsp page that was in the example war file except that it is the same 
directory as the other jsp files of the application.
When I try to load login.jsp file, I get 

Tue May 14 13:15:26 MDT 2002:  Root cause of 
ServletException
javax.servlet.jsp.JspException: Cannot find message resources under key 
org.apache.struts.action.MESSAGE
at org.apache.struts.util.RequestUtils.message(RequestUtils.java:570)
at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:244)
at com.ereinsure.jsp._test._jspService(_test.java:99)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:120)
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:138)
at 
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:915)
at 
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:879)
at 
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:365)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)

Tue May 14 13:15:26 MDT 2002:  file: init

I went through the archives and 
Some of the suggestions in it include

1. Adding 
  
  
  
In the struts-config.xml
I added this but that didn't work either.

2. Not having struts.jar in the classpath but only in WEB-INF/lib directory. But then 
I get ClassNotFoundException for HtmlTag.


>From what I have read in the archives, this problem is caused by struts not being 
>able to find the ApplicationResources.properties file. I have this file in the 
>WEB-INF directory. The application is able to find all the .tld files that are in the 
>same directory. The web.xml has the following entry 

  
action
org.apache.struts.action.ActionServlet

  application
  ApplicationResources


  config
  /WEB-INF/struts-config.xml


  debug
  2


  detail
  2


  validate
  true

2
  


Is the problem related to the ApplicationResources.properties file? What can be wrong 
with my configuration? And if not what should I do to make it work. I am new to struts 
and would really appreciate any help on this. 

Thanks,

Deepa.

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




dynamic bean message

2002-05-14 Thread Boon Chew


I searched on the archive and didn't find an question similar to this...

What I am trying to achieve is when the action servlet is done its job it
would forward to a
generic JSP page that will show the appropriate message to the user.

For example, at the end of the action servlet,

// save the message resource key
request.setAttribute("status", "status.success");
return (mapping.findForward("message"));

And in message.jsp, I tried doing this in hope of display different message
depending on what is being set in the status attribute.

" />

The above line won't work.  It seems like doing a JSP expression within a
tag is not allowed...is there another way or a better way to achieve this?

- boon


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




RE: How-to dynamically name properties?

2002-05-14 Thread Micael Padraig Og mac Grene

Actually, Michael, if you can write the images, there is all sorts of 
server side functionality for Flash with Java.  I do it extensively.

Micael

At 04:41 PM 5/14/02 -0400, you wrote:
>Just a joke, dude; I suck.
>
>-Original Message-
>From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, May 14, 2002 4:35 PM
>
>Mark,
>
>Are you joking about Flash or does it really support some type of
>server-side programming?
>
>--Michael Marrotte
>
>-Original Message-
>From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, May 14, 2002 4:23 PM
>To: 'Struts Users Mailing List'
>Subject: RE: How-to dynamically name properties?
>
>
>There's no problem with the JavaScript - I'm wrapping bean getters in both
>String() and parseFloat() without a problem.  I don't think the
>will compile without the property="[string]" with the quotes. I don't have 
>the time to mess with it, so I thought I'd just share an idea. Or he could 
>just use Flash Mark -Original Message- From: James Mitchell 
>[mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 4:23 PM Does 
>this compile? JM > -Original Message- > From: Galbreath, Mark 
>[mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 14, 2002 4:14 PM > To: 
>'Struts Users Mailing List' > Subject: RE: How-to dynamically name 
>properties? > > > I've found using as part of dynamic functions > 
>problematic, but > have been able to do with JavaScript by wrapping the 
>bean getter with a > JavaScript "type." For example, you may find some way 
>to do > something like: > > > > > > But I think Struts will choke when it 
>doesn't see a double quote after the > assignment operator in the select 
>tag. > > Mark > > -Original Message- > From: Michael Marrotte 
>[mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 14, 2002 3:59 PM > To: 
>[EMAIL PROTECTED] > Subject: How-to dynamically name 
>properties? > > > Can someone help me figure a way to do something like 
>this? > > filter="true"/>"> > > What I wanted to do is dynamically name 
>the property, > x_[some-dynamic-value]. > > Any idea on how I should 
>really approach this? > > Thanks, > > --Michael Marrotte > > > -- > To 
>unsubscribe, e-mail: > > For additional commands, e-mail: > > > -- > To 
>unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, 
>e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For 
>additional commands, e-mail: -- To unsubscribe, e-mail: For additional 
>commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail:



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




Re: i18n Submit button with property-value problem

2002-05-14 Thread Ted Husted

See 

http://jguru.com/faq/view.jsp?EID=543699

for a couple of solutions. 

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services



Enrique Rodriguez wrote:
> 
> Hi all,
> 
> I've a jsp page in my project with two submit button.Each of then put a
> diferent value to request paremeter, hear is the example:
> 
>   
> 
> 
> 
>   
>   
>  
> 
> 
>   
> 
> So, dependes of the language i've a diferente value for property Action in
> the request.
> 
> Any ideas how to solve this problem??
> 
> Thank you very much.
> 
> Regards, Enrique.
> 
> _
> Enrique Rodriguez Lasterra
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

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




iws 4.1

2002-05-14 Thread Mike Rose - Sun Microsystems

I'm not on alias so please respond to my email address.

I have an application using struts working on iws 6 but now
need to get it working on iws 4.1.  Since you can't deploy war files
I have done the following:

  o  added classpath for struts, parsers, WEB-INF/classes,
 WEB-INF/lib etc.. to jvm12.conf
 
  o  created link in /docs for WEB-INF pointing to myapp/WEB-INF
  
  o  updated rules.properties @.*[.]do=action
  
  o  updated servlet.properties:
 servlet.action.code=myapp.Controller
 servlet.action.classpath=/server/docs/myapp
 
 The servlet is failing (NullPointerExc) trying to initialize application 
 attributes: getServletContext().setAttribute(name,getInitParameter(name))
 
 Where should setting of init parameters be done (for iws 6 they
 are being set in web.xml as context params).  I tried putting them
 in servlet.properties as initArgs but get same error. Maybe its
 a problem with config.getServletContext(). 
 
 Appreciate any tips on getting this struts app working on iws 4.1
 
 thanks
 Mike  


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




Re: Ted Husted's Site

2002-05-14 Thread Ted Husted

My provider is suffering from DoS issues. 

The Struts Web site should have all the same resources, but perhaps I
should copy the link page over as well.

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


Eddie Bush wrote:
> 
> Is it gone?

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


From [EMAIL PROTECTED] Tue May 14 13:41:38 2002
Envelope-to: archive@jab.org
Received: from web.mysql.com ([192.58.197.162] ident=qmailr)
by zamboni.jab.org with smtp (Exim 3.12 #1 (Debian))
id 177j74-0003td-00
for ; Tue, 14 May 2002 13:41:38 -0700
Received: (qmail 28856 invoked by uid 7797); 14 May 2002 20:44:07 -
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm (http://www.ezmlm.org)
List-ID: 
Precedence: bulk
List-Help: 
List-Unsubscribe: 
List-Post: 
List-Subscribe: 
Delivered-To: mailing list [EMAIL PROTECTED]
Received: (qmail 28836 invoked from network); 14 May 2002 20:44:05 -
From: Nick Stuart <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Date: Tue, 14 May 2002 16:51:58 -0400 (EDT)
Subject: Re: query for search on mysql database
To: <[EMAIL PROTECTED]>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Cc: <[EMAIL PROTECTED]>
X-Mailer: SquirrelMail (version 1.2.1)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

I think that was what roger is saying. If you simply change the OR's to
AND's your searchwill
work as you want it to. For example some one looks for a person by the
last name of Smith.so all
the other fields will be blank and your statement would look like:
SELECT id,
first, last,
email, phone, message, time
FROM visitors
WHERE id='$id' AND ((first
LIKE '%') AND
(last LIKE 'Smith%') AND
(email LIKE '%') AND (phone LIKE '%') AND (message
LIKE '%')
 AND
(time LIKE '%')) ORDER BY id DESC;

This will return anything that has a
last name of smith.
The only thing I question now is the ID value. Will you let people use
partial ids or must they know the entire string/number.
Also if you want to use only the
entire ID you could simply
have a statement like:
SELECT id, first, last, email, phone,
message, time
FROM
visitors
WHERE id='$id'
as I'm guessing your id is the primary
key.



> I want an OR
test.  If someone searches on last name and enters nothing
> in
the other fields, I want to
find the record(s).  Similarly, if they
> enter a first name and
no other data, I want to find
the record(s).
>
> The part I realize I am missing is to first
test to see which fields
>
have been filled in.  Need some pointers on how to start
that.
>
> Thanks!
>
> Mike
> -
Original Message -
> From: "Roger Baklund"
<[EMAIL PROTECTED]>
> To:
<[EMAIL PROTECTED]>
> Cc: "MikeParton"
<[EMAIL PROTECTED]>
> Sent:
Tuesday, May 14, 2002 3:49 PM
> Subject: RE:
query for search on mysql database
>
>
>> *
MikeParton
>> > I have a similar query in a
PHP script.  I want to allow users to
>> > use
fields
>> > in a page to search for the
records.  BUT, I want them to be able to
> enter
>> >
the first few characters.  I would
think my query, below, would do
>> > it
> (the
>> >
entire search works when the WHERE
statement has first='$first' OR
>> > last='$last'
OR). BUT, when I search using any
field (or
>> > simply click my
>> > submit button) it
returns ALL records in the
database.  Where is my
>> > SQL flawed?
>> >
>> > SELECT id,
first, last, email, phone,
message, time
>> > FROM visitors
>> > WHERE id='$id' OR (first
LIKE '$first%') OR (last
LIKE '$last%') OR
> (email
>> > LIKE '$email%') OR (phone LIKE
'$phone%') OR (message
LIKE
>> > '$message%')
> OR
>> > (time LIKE '$time%') ORDER BY id
DESC;
>>
>> If any
of your $-variables are empty, the criteria will be ... LIKE
>> '%',
>
and
>> this will
match all rows, and return all rows, because you use OR.
>> Change
>
it
>> to AND, and it
should work as expected.
>>
>> If OR is what you want, you should only
check the fields
where the
>> user actually have entered something... but you should
probably use
>>
AND... If a user enters a first name and a single letter in the last
>>
field, he would
probably expect to get persons with the entered first
>> name and a last name
starting
with the provided letter, not all
>> persons with that first name
> and
>> all
persons
with a last name starting with the single letter. :)
>>
>> --
>>
Roger
>>
>>
>

>
> -
> Before posting, please check:
>
http://www.mysql.com/manual.php   (the
manual)
>   http://lists.mysql.com/   (the list
archive)
>
> To request this thread, e-
mail <[EMAIL PROTECTED]>
To
> unsubscribe, e-mail
>  Trouble
> unsubscribing?
Try:
http://lists.mysql.com/php/unsubscribe.php




-

Re: Reg the Action Errors and Action class

2002-05-14 Thread Ted Husted

Yes, the best practice would be to use ActionErrors from within your
Action, just as the ActionForm does.

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


"Mannem, Taati" wrote:
> 
> Guys!
> I know its friday but can not stop myself from asking a question or a doubt!
> 
> Errors as you know can be many types but broadly classified as Front End
> Validation Errors and BackEnD validation errors..
> Now the front end validation(the form validation) is being handled by the
> form validate and I am handling the errors which the backend is sending me
> by instantiating the Actionerrors in the action class and forwarding it to
> the appropriate page.Is my approach correct and if yes what are the things
> that I should take care off?
> If my approach is wrong where am I goofing up?
> 
> TIA
> Regards,
> Taati
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

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




Re: stuck with 1.0.2

2002-05-14 Thread Ted Husted

You should be able to use collections and arrays just fine with 1.0.2. 

The form would have multiple delete,name, and profile elements. 

The ActionForm will then have arrays or collections for each. 

The specification does not guarantee that these will be submitted back
in the correct order, but in practice that's what happens. 

You might want to use a YES/NO Radio Button for Delete though. This way
the control will always "succeed" and submit something that can be
caught on the other side. 

For more see, http://jguru.com/forums/view.jsp?EID=749162

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


Michael Dingler wrote:
> 
> Hi there,
> 
> I'm currently rewriting some protoype parts of an web
> application with struts. Unfortunately I've got to use
> 1.0.2, so I miss some neat opportunities...
> 
> Once again it's a dynamic forms problem, at least I think
> so...
> One page where I have the problem is the user administration
> part. Basically, you should be able to add new users,
> change the permissions of existing ones or delete them.
> 
> So my pure JSP prototype with lots of ugly scriptlets
> looked something like this:
> 
> --
>  New User:   Profile [Adminstrator]  |Submit|
> 
> Existing Users:
> Delete? Name:   Profile:
>   [ ]   User1   [User]
>   [ ]   User2   [Administrator]
>   [ ]   User3   [Owner]
> 
> [Submit]
> ---
> 
> The "[ ]" part below "Delete?" is supposed to be a checkbox,
> That "Profile" Stuff is a .
> The number of users is variable, of course.
> 
> So, what's the best practice for this kind of issue?
> As far as I could gather from RTFM & RTFML, I could
> model the lines as a Collection and just 
> over them. That is, if I'd be using 1.1...
> 
> I've got it working, but this involves scriptlets and
> poking around in the request, just as my initial code
> did. Sigh...
> 
> ...Michael...
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

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




RE: How-to dynamically name properties?

2002-05-14 Thread Steve Scheepmaker

Interesting, but you are still defining get_xx and set_xx methods for the
form elements - they would just be defined in the struts-config.xml, right?

What if one would like to dynamically generate the form - i.e. you don't
know what form fields would be present at any given time and subsequently
generate the get_xx and set_xx methods on the fly?

Any thoughts?

S.

> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 1:22 PM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: RE: How-to dynamically name properties?
>
>
> Check out the Struts 1.1b source code and example.war
>
> Basically, you set up the definition of a form bean in your
> struts-config.xml
> and then use wherever you like.  (you don't actually have to write/compile
> an ActionForm)
>
> The coolest thing is that you also don't have to change any non-nested (I
> think/hope [:{o ) references in your jsp.
>
>
> JM
>
> > -Original Message-
> > From: Steve Scheepmaker [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 14, 2002 4:08 PM
> > To: Struts Users Mailing List
> > Subject: RE: How-to dynamically name properties?
> >
> >
> > What exactly is all this DynaActionForm stuff? I've seen
> references to it
> > but have not been able to find any information on it...
> >
> > Steve.
> >
> > > -Original Message-
> > > From: James Mitchell [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, May 14, 2002 1:10 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: How-to dynamically name properties?
> > >
> > >
> > > Out of curiosity.
> > >
> > > Why do you need this done?
> > >
> > > You want to be able to tell Struts which get???() and set???() to
> > > call based
> > > on a value in a bean?
> > >
> > > Wouldn't the DynaActionFrom suit your needs?
> > >
> > > JM
> > >
> > > > -Original Message-
> > > > From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, May 14, 2002 3:59 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: How-to dynamically name properties?
> > > >
> > > >
> > > > Can someone help me figure a way to do something like this?
> > > >
> > > >  > > > filter="true"/>">
> > > >
> > > > What I wanted to do is dynamically name the  property,
> > > > x_[some-dynamic-value].
> > > >
> > > > Any idea on how I should really approach this?
> > > >
> > > > Thanks,
> > > >
> > > > --Michael Marrotte
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > > 
> > > > For additional commands, e-mail:
> > > > 
> > > >
> > > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>


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




RE: Leaving "Subapp Motel"? (actions check in, but they don't checkout)

2002-05-14 Thread Byrne, Steven

Thanks for the info -- this is what I was looking for.  I tried the
contextRelative option, but it seemed that it did something surprising,
like referred to the message resources from the "from" subapp instead of
those associated with the "to" app, so I figured I wasn't using it
correctly. 

SwitchAction sounds like what I was looking for.  Thank Craig!!!

Steve
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 6:11 PM
To: Struts Users Mailing List
Subject: Re: Leaving "Subapp Motel"? (actions check in, but they don't
checkout)




On Fri, 10 May 2002, Byrne, Steven wrote:

> Date: Fri, 10 May 2002 21:29:17 -0400
> From: "Byrne, Steven" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Leaving "Subapp Motel"? (actions check in, but they don't
check out)
>
> Ok -- I'll bite -- I've finally discovered what sub-applications are
all
> about [hint -- the documentation needs improving in this area].  It's
> pretty easy to see how to transition into a subapplication from the
> default subapplication, but I'm not sure what syntax to use in a
forward
> to reference a non-context and non-application-relative URI.
>
> Of course, I could always use an absolute URL, but that would mean
that
> I would have to either hard code that into my struts-config.xml file
> (bad), or programmatically determine it (bad).
>

There isn't really anything new in 1.1 that helps with references to
things external to the current webapp.  You're still stuck with absolute
URLs for that.

What is supported for you is that references starting with a slash are
assumed to be relative to the current subapp, instead of the context
path,
in all scenarios.  This is what makes it possible to use the same
struts-config.xml file for either the "root" subapp or a different one.

> I think there must be something I'm missing in my understanding of
this
> useful technology for supporting modular, decoupled web application
> development.  Can someone explain how I get out of the roach (subapp)
> motel?
>

One thing that is definitely not clear in the docs (yet) is how to get
from one subapp to another in the same web application.  There are a
couple of different techniques supported, for use in various
circumstances:

* In a  declaration, you can add the new contextRelative="true"
  attribute, to indicate that a path starting with "/" should be
  interpreted as context-relative, instead of subapp-relative.  You
  will be switched to the new subapp when the controller does its
  forwarding.

* In an Action, you can call RequestUtils.selectApplication() yourself,
  and specify the subapp prefix of the sub-application you want to
  switch to.  From that moment on, all intra-subapp references will be
  resolved against the new subapp instead of the old one.

* A new standard action (org.apache.struts.actions.SwitchAction) lets
  you forward control to a particular subapp-relative URI within a
  particular subapp selected by the subap prefix.  This is useful in
  menu pages.

> Steve
>
>

Craig



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




Re: Using struts with WLS6.2?

2002-05-14 Thread Sobkowski, Andrej

We are running Struts with Weblogic 6.1sp2 with no particular problems.
AFAIK, there shouldn't be major problems setting up the environment... 

The only issue we have (still) is with file upload. All the rest works
smoothly..

"asd asd" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> The only install docs I could find online at
> jakarta.apache.org were for WLS 5.1. I'm assuming it
> will work with weblogic 6.2  Has anyone successfully
> done it yet though? Thanks
> 
> __
> Do You Yahoo!?
> LAUNCH - Your Yahoo! Music Experience
> http://launch.yahoo.com
> 
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

> 



Re: Using onclick within iterate tag

2002-05-14 Thread Will Jaynes

I also do something similar. If a textbox changed I want to set a 
related hidden field to true. I wrote a javascript function that simply 
knows how my html field names are going to be structured. It then can 
parse out the name in order to get the index.

JavaScript:

/* Take a field and the name of another field and set the
other field to true. Assume indexed tags and mapped properties.
*/
 function setStringProperty(fld, strName)
 {
 fname = fld.name;
 first = fname.substring(0, fname.indexOf("("));
 changeName = first + "(" + strName + ")";
 document.forms[fld.form.name].elements[changeName].value = "1";
 }

JSP:


  
   Delete
   
  



The above jsp snippet produces html that looks like:








Wilson, Les J SI-FSIA wrote:

> Hi Doug,
> 
> We do something similar, but with a check box and an input field, but the
> process should be the same.
> 
> 
> Javascript function that enables the input field based on the checkbox
> accessed by form and index
> 
> function isBudgetRequired(form, index) {
>   checkBox = eval(form.elements["costElement[" + index + "].selected"]);
>   budgetInput = eval(form.elements["costElement[" + index +
> "].budgetInputDisplay"]); 
>   if (checkBox.checked) {
> budgetInput.disabled = false;
>   }  
>   else {
> budgetInput.disabled = true;
>   } 
> }
> 
> JSP code snippet
> indexId="idx"
> name="ouActivityDetailForm"
> property="list">
>  
>
>   "].selected" %>" 
>   onclick="<%=
> "isBudgetRequired(this.form, " + idx + ")" %>" />
>
>
> name="ouActivityDetailForm" 
>  property="<%= "costElement[" + idx +
> "].selected" %>" /> 
>   property="<%= "costElement[" + idx +
> "].budgetInputDisplay" %>"
>size="6"
>disabled="<%=
> !((Boolean)checked).booleanValue() %>" />
>
>
>
> 
> 
> Les Wilson
> 
> Shell Finance Services
> Shell International Limited, Shell Centre, London SE1 7NA, United Kingdom
> 
> Tel: +44 20 7934 6463 Other Tel: +44 7974 948877
> Email: [EMAIL PROTECTED]
> Internet: http://www.shell.com
> 
> 



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




RE: How-to dynamically name properties?

2002-05-14 Thread Galbreath, Mark

Just a joke, dude; I suck.

-Original Message-
From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 4:35 PM

Mark,

Are you joking about Flash or does it really support some type of
server-side programming?

--Michael Marrotte

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 4:23 PM
To: 'Struts Users Mailing List'
Subject: RE: How-to dynamically name properties?


There's no problem with the JavaScript - I'm wrapping bean getters in both
String() and parseFloat() without a problem.  I don't think the
 will compile without the property="[string]" with the quotes.
I don't have the time to mess with it, so I thought I'd just share an idea.

Or he could just use Flash

Mark

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 4:23 PM

Does this compile?

JM

> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 4:14 PM
> To: 'Struts Users Mailing List'
> Subject: RE: How-to dynamically name properties?
>
>
> I've found using  as part of dynamic functions
> problematic, but
> have been able to do with JavaScript by wrapping the bean getter with a
> JavaScript "type."  For example, you may find some way to do
> something like:
>
> 
>   function getProperty() {
> var newProp ="x_" + String(  filter="true"/>);
> return newProp;
>   }
> 
>
> 
>
> But I think Struts will choke when it doesn't see a double quote after the
> assignment operator in the select tag.
>
> Mark
>
> -Original Message-
> From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 3:59 PM
> To: [EMAIL PROTECTED]
> Subject: How-to dynamically name properties?
>
>
> Can someone help me figure a way to do something like this?
>
>  filter="true"/>">
>
> What I wanted to do is dynamically name the  property,
> x_[some-dynamic-value].
>
> Any idea on how I should really approach this?
>
> Thanks,
>
> --Michael Marrotte
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: How-to dynamically name properties?

2002-05-14 Thread Michael Marrotte

Mark,

Are you joking about Flash or does it really support some type of
server-side programming?

--Michael Marrotte

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 4:23 PM
To: 'Struts Users Mailing List'
Subject: RE: How-to dynamically name properties?


There's no problem with the JavaScript - I'm wrapping bean getters in both
String() and parseFloat() without a problem.  I don't think the
 will compile without the property="[string]" with the quotes.
I don't have the time to mess with it, so I thought I'd just share an idea.

Or he could just use Flash

Mark

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 4:23 PM

Does this compile?

JM

> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 4:14 PM
> To: 'Struts Users Mailing List'
> Subject: RE: How-to dynamically name properties?
>
>
> I've found using  as part of dynamic functions
> problematic, but
> have been able to do with JavaScript by wrapping the bean getter with a
> JavaScript "type."  For example, you may find some way to do
> something like:
>
> 
>   function getProperty() {
> var newProp ="x_" + String(  filter="true"/>);
> return newProp;
>   }
> 
>
> 
>
> But I think Struts will choke when it doesn't see a double quote after the
> assignment operator in the select tag.
>
> Mark
>
> -Original Message-
> From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 3:59 PM
> To: [EMAIL PROTECTED]
> Subject: How-to dynamically name properties?
>
>
> Can someone help me figure a way to do something like this?
>
>  filter="true"/>">
>
> What I wanted to do is dynamically name the  property,
> x_[some-dynamic-value].
>
> Any idea on how I should really approach this?
>
> Thanks,
>
> --Michael Marrotte
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: How-to dynamically name properties?

2002-05-14 Thread Christopher Book

The example.war shows how to read the login info from the action class, but
it would be much better if the example used dynamic forms in a way that
populated the form in advance through the action.  That is the part that I
can't get working.

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 4:22 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: How-to dynamically name properties?


Check out the Struts 1.1b source code and example.war

Basically, you set up the definition of a form bean in your
struts-config.xml
and then use wherever you like.  (you don't actually have to write/compile
an ActionForm)

The coolest thing is that you also don't have to change any non-nested (I
think/hope [:{o ) references in your jsp.


JM

> -Original Message-
> From: Steve Scheepmaker [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 4:08 PM
> To: Struts Users Mailing List
> Subject: RE: How-to dynamically name properties?
>
>
> What exactly is all this DynaActionForm stuff? I've seen references to it
> but have not been able to find any information on it...
>
> Steve.
>
> > -Original Message-
> > From: James Mitchell [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 14, 2002 1:10 PM
> > To: Struts Users Mailing List
> > Subject: RE: How-to dynamically name properties?
> >
> >
> > Out of curiosity.
> >
> > Why do you need this done?
> >
> > You want to be able to tell Struts which get???() and set???() to
> > call based
> > on a value in a bean?
> >
> > Wouldn't the DynaActionFrom suit your needs?
> >
> > JM
> >
> > > -Original Message-
> > > From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, May 14, 2002 3:59 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: How-to dynamically name properties?
> > >
> > >
> > > Can someone help me figure a way to do something like this?
> > >
> > >  > > filter="true"/>">
> > >
> > > What I wanted to do is dynamically name the  property,
> > > x_[some-dynamic-value].
> > >
> > > Any idea on how I should really approach this?
> > >
> > > Thanks,
> > >
> > > --Michael Marrotte
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> > >
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: How-to dynamically name properties?

2002-05-14 Thread Michael Marrotte

>>Why do you need this done?

To dynamic form.

>>You want to be able to tell Struts which get???() and set???() to call
based
>>on a value in a bean?

Actually, I was bypassing the form bean and processing the request
parameters, manually.  What I am doing works with plain HTML inputs.  But, I
get into trouble with HTML 's -- it seems like HTML 
parameters don't get picked up in Sruts 's???  So, I went to
Struts , i.e. my syntax problem.

>>Wouldn't the DynaActionFrom suit your needs?

I think so...  I'm about 2-months new to Struts and I just didn't know the
class existed...  Thanks for the tip!  I will give it a shot.

>>JM

--Michael Marrotte

> -Original Message-
> From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 3:59 PM
> To: [EMAIL PROTECTED]
> Subject: How-to dynamically name properties?
>
>
> Can someone help me figure a way to do something like this?
>
>  filter="true"/>">
>
> What I wanted to do is dynamically name the  property,
> x_[some-dynamic-value].
>
> Any idea on how I should really approach this?
>
> Thanks,
>
> --Michael Marrotte
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: How-to dynamically name properties?

2002-05-14 Thread Galbreath, Mark

There's no problem with the JavaScript - I'm wrapping bean getters in both
String() and parseFloat() without a problem.  I don't think the
 will compile without the property="[string]" with the quotes.
I don't have the time to mess with it, so I thought I'd just share an idea.

Or he could just use Flash

Mark

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 4:23 PM

Does this compile?

JM

> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 4:14 PM
> To: 'Struts Users Mailing List'
> Subject: RE: How-to dynamically name properties?
>
>
> I've found using  as part of dynamic functions
> problematic, but
> have been able to do with JavaScript by wrapping the bean getter with a
> JavaScript "type."  For example, you may find some way to do
> something like:
>
> 
>   function getProperty() {
> var newProp ="x_" + String(  filter="true"/>);
> return newProp;
>   }
> 
>
> 
>
> But I think Struts will choke when it doesn't see a double quote after the
> assignment operator in the select tag.
>
> Mark
>
> -Original Message-
> From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 3:59 PM
> To: [EMAIL PROTECTED]
> Subject: How-to dynamically name properties?
>
>
> Can someone help me figure a way to do something like this?
>
>  filter="true"/>">
>
> What I wanted to do is dynamically name the  property,
> x_[some-dynamic-value].
>
> Any idea on how I should really approach this?
>
> Thanks,
>
> --Michael Marrotte
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: How-to dynamically name properties?

2002-05-14 Thread James Mitchell

Never mind.I see what you're doing...hahah...my mistake.

JM

> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 4:23 PM
> To: Struts Users Mailing List
> Subject: RE: How-to dynamically name properties?
>
>
> Does this compile?
>
> JM
>
> > -Original Message-
> > From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 14, 2002 4:14 PM
> > To: 'Struts Users Mailing List'
> > Subject: RE: How-to dynamically name properties?
> >
> >
> > I've found using  as part of dynamic functions
> > problematic, but
> > have been able to do with JavaScript by wrapping the bean getter with a
> > JavaScript "type."  For example, you may find some way to do
> > something like:
> >
> > 
> >   function getProperty() {
> > var newProp ="x_" + String(  > filter="true"/>);
> > return newProp;
> >   }
> > 
> >
> > 
> >
> > But I think Struts will choke when it doesn't see a double
> quote after the
> > assignment operator in the select tag.
> >
> > Mark
> >
> > -Original Message-
> > From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 14, 2002 3:59 PM
> > To: [EMAIL PROTECTED]
> > Subject: How-to dynamically name properties?
> >
> >
> > Can someone help me figure a way to do something like this?
> >
> >  > filter="true"/>">
> >
> > What I wanted to do is dynamically name the  property,
> > x_[some-dynamic-value].
> >
> > Any idea on how I should really approach this?
> >
> > Thanks,
> >
> > --Michael Marrotte
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> > --
> > To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: How-to dynamically name properties?

2002-05-14 Thread James Mitchell

Does this compile?

JM

> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 4:14 PM
> To: 'Struts Users Mailing List'
> Subject: RE: How-to dynamically name properties?
>
>
> I've found using  as part of dynamic functions
> problematic, but
> have been able to do with JavaScript by wrapping the bean getter with a
> JavaScript "type."  For example, you may find some way to do
> something like:
>
> 
>   function getProperty() {
> var newProp ="x_" + String(  filter="true"/>);
> return newProp;
>   }
> 
>
> 
>
> But I think Struts will choke when it doesn't see a double quote after the
> assignment operator in the select tag.
>
> Mark
>
> -Original Message-
> From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 3:59 PM
> To: [EMAIL PROTECTED]
> Subject: How-to dynamically name properties?
>
>
> Can someone help me figure a way to do something like this?
>
>  filter="true"/>">
>
> What I wanted to do is dynamically name the  property,
> x_[some-dynamic-value].
>
> Any idea on how I should really approach this?
>
> Thanks,
>
> --Michael Marrotte
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: How-to dynamically name properties?

2002-05-14 Thread James Mitchell

Check out the Struts 1.1b source code and example.war

Basically, you set up the definition of a form bean in your
struts-config.xml
and then use wherever you like.  (you don't actually have to write/compile
an ActionForm)

The coolest thing is that you also don't have to change any non-nested (I
think/hope [:{o ) references in your jsp.


JM

> -Original Message-
> From: Steve Scheepmaker [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 4:08 PM
> To: Struts Users Mailing List
> Subject: RE: How-to dynamically name properties?
>
>
> What exactly is all this DynaActionForm stuff? I've seen references to it
> but have not been able to find any information on it...
>
> Steve.
>
> > -Original Message-
> > From: James Mitchell [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 14, 2002 1:10 PM
> > To: Struts Users Mailing List
> > Subject: RE: How-to dynamically name properties?
> >
> >
> > Out of curiosity.
> >
> > Why do you need this done?
> >
> > You want to be able to tell Struts which get???() and set???() to
> > call based
> > on a value in a bean?
> >
> > Wouldn't the DynaActionFrom suit your needs?
> >
> > JM
> >
> > > -Original Message-
> > > From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, May 14, 2002 3:59 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: How-to dynamically name properties?
> > >
> > >
> > > Can someone help me figure a way to do something like this?
> > >
> > >  > > filter="true"/>">
> > >
> > > What I wanted to do is dynamically name the  property,
> > > x_[some-dynamic-value].
> > >
> > > Any idea on how I should really approach this?
> > >
> > > Thanks,
> > >
> > > --Michael Marrotte
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> > >
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




Re: VAJ 4 & Struts & Error 503

2002-05-14 Thread Raffy_Lata


you're welcome




Struts Newsgroup (@Basebeans.com) 

To:   [EMAIL PROTECTED]
cc:
Subject:  Re: VAJ 4 & Struts & Error 503


Subject: Re: VAJ 4 & Struts & Error 503
From: Marco <[EMAIL PROTECTED]>
 ===
Thanks Raffa this really helped a lot. I have your sample running. I still
get an error message when I don't fill in both fields but I think I can fix
that on my own, shouldn't be too much of a problem.

Hopefully I can also try out 'larger' samples to show more of struts.

Thanks again!
Marco

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






**
Please Note:
The information in this E-mail message, and any files transmitted
with it, is confidential and may be legally privileged.  It is
intended only for the use of the individual(s) named above.  If you
are the intended recipient, be aware that your use of any confidential
or personal information may be restricted by state and federal
privacy laws.  If you, the reader of this message, are not the
intended recipient, you are hereby notified that you should not
further disseminate, distribute, or forward this E-mail message.
If you have received this E-mail in error, please notify the sender
and delete the material from any computer.  Thank you.
**



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




RE: How-to dynamically name properties?

2002-05-14 Thread Galbreath, Mark

I've found using  as part of dynamic functions problematic, but
have been able to do with JavaScript by wrapping the bean getter with a
JavaScript "type."  For example, you may find some way to do something like:


  function getProperty() {
var newProp ="x_" + String( );
return newProp;
  }




But I think Struts will choke when it doesn't see a double quote after the
assignment operator in the select tag.

Mark

-Original Message-
From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 3:59 PM
To: [EMAIL PROTECTED]
Subject: How-to dynamically name properties?


Can someone help me figure a way to do something like this?

">

What I wanted to do is dynamically name the  property,
x_[some-dynamic-value].

Any idea on how I should really approach this?

Thanks,

--Michael Marrotte


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: How-to dynamically name properties?

2002-05-14 Thread Steve Scheepmaker

What exactly is all this DynaActionForm stuff? I've seen references to it
but have not been able to find any information on it...

Steve.

> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 1:10 PM
> To: Struts Users Mailing List
> Subject: RE: How-to dynamically name properties?
>
>
> Out of curiosity.
>
> Why do you need this done?
>
> You want to be able to tell Struts which get???() and set???() to
> call based
> on a value in a bean?
>
> Wouldn't the DynaActionFrom suit your needs?
>
> JM
>
> > -Original Message-
> > From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 14, 2002 3:59 PM
> > To: [EMAIL PROTECTED]
> > Subject: How-to dynamically name properties?
> >
> >
> > Can someone help me figure a way to do something like this?
> >
> >  > filter="true"/>">
> >
> > What I wanted to do is dynamically name the  property,
> > x_[some-dynamic-value].
> >
> > Any idea on how I should really approach this?
> >
> > Thanks,
> >
> > --Michael Marrotte
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>


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




Re: VAJ 4 & Struts & Error 503

2002-05-14 Thread @Basebeans.com

Subject: Re: VAJ 4 & Struts & Error 503
From: Marco <[EMAIL PROTECTED]>
 ===
Thanks Raffa this really helped a lot. I have your sample running. I still 
get an error message when I don't fill in both fields but I think I can fix 
that on my own, shouldn't be too much of a problem.

Hopefully I can also try out 'larger' samples to show more of struts.

Thanks again!
Marco

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




Re: File Upload - MultipartRequest, Weblogic 6.1 and Servlet 2.3

2002-05-14 Thread @Basebeans.com

Subject: Re: File Upload - MultipartRequest, Weblogic 6.1 and Servlet 2.3
From: "Andrej Sobkowski" <[EMAIL PROTECTED]>
 ===
Got it! Here is the solution:

http://www.mail-archive.com/struts-dev@jakarta.apache.org/msg06077.html

[Copy&Paste]
when you use struts in combination with a Weblogic servlet container and
you would like to use multipart forms for a file upload, you get a
500 error :o( .

But it's easy to fix !

In package "org.apache.struts.action" class "RequestProcessor" method
"doForward(...)" add the follwing code as the first lines:

if (request instanceof MultipartRequestWrapper) {
request = ((MultipartRequestWrapper) request).getRequest();
}


Reason: Bea checks the request like this:

if(servletrequest instanceof HttpServletRequestWrapper) {

} else {
throw new ServletException("Original request not available");
}
[End Copy&Paste]


"Andrej" <[EMAIL PROTECTED]> wrote in message
news:abr1mk$ego$[EMAIL PROTECTED]...
> Hello All,
>
> I'm having big problems uploading files in the following environment:
Struts
> 1.1b1, Weblogic 6.1 sp2 on Solaris 8. I keep getting a warning followed by
> an exception (both are shown below).
>
> I believe the problem to be related with the MultipartRequestWrapper and
the
> fact that I'm using the Servlet spec 2.3. I've checked the code and there
> are a few 2.3 methods that return null or do nothing (getParameterMap,
> getRequestURL, ...). I've tried adding an implementation but without
> success.
>
> Something doesn't work well when forwarding back to the client. The
request
> wrapped inside the MultipartRequestWrapper is either lost or partially
lost.
>
> Anybody has any suggestions? I saw similar issues but no solutions in the
> mailing lists.
>
> Thanks!
>
> Andrej
>
> * Warning:
>  methods called after reading from the ServletInputStream, not merging post
> parameters>
>
> * Exception
> 
>  <> <> <101018>
> <[WebAppServletContext(6990692,ecct,/ecct)] Servlet failed with
> ServletException>
> javax.servlet.ServletException: Original request not available
> at
>
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
> l.java:115)
> at
>
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:97
> 5)
> at
>
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
> sor.java:408)
> at
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> :265)
> at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> :200)
> at
>
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
> ntext.java:2495)
> at
>
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
> :2204)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
>
>
>



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




RE: How-to dynamically name properties?

2002-05-14 Thread James Mitchell

Out of curiosity.

Why do you need this done?

You want to be able to tell Struts which get???() and set???() to call based
on a value in a bean?

Wouldn't the DynaActionFrom suit your needs?

JM

> -Original Message-
> From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 3:59 PM
> To: [EMAIL PROTECTED]
> Subject: How-to dynamically name properties?
>
>
> Can someone help me figure a way to do something like this?
>
>  filter="true"/>">
>
> What I wanted to do is dynamically name the  property,
> x_[some-dynamic-value].
>
> Any idea on how I should really approach this?
>
> Thanks,
>
> --Michael Marrotte
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>


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




How-to dynamically name properties?

2002-05-14 Thread Michael Marrotte

Can someone help me figure a way to do something like this?

">

What I wanted to do is dynamically name the  property,
x_[some-dynamic-value].

Any idea on how I should really approach this?

Thanks,

--Michael Marrotte


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




Re: File Upload - MultipartRequest, Weblogic 6.1 and Servlet 2.3

2002-05-14 Thread @Basebeans.com

Subject: Re: File Upload - MultipartRequest, Weblogic 6.1 and Servlet 2.3
From: "Andrej Sobkowski" <[EMAIL PROTECTED]>
 ===
Mark,

thanks for the info. There's also:

http://www.onjava.com/pub/a/onjava/2001/04/05/upload.html

The problem is that there is code in Struts to handle the multipart requests
(check org.apache.struts.upload package). Everything works fine until I
return an ActionForward... then Weblogic throws that ServletException. Is
Struts' code buggy? It usually isn't... :)))

Did anybody manage to get file upload to work with Struts 1.1 and Weblogic?

Thanks.

Andrej

"Galbreath, Mark" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Check this out:
>
> http://www.fawcette.com/javapro/2002_01/magazine/features/acalsavara/
>
> Mark
>
> -Original Message-
> From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 9:10 AM
>
> Subject: File Upload - MultipartRequest, Weblogic 6.1 and Servlet 2.3
> From: "Andrej" <[EMAIL PROTECTED]>
>  ===
> Hello All,
>
> I'm having big problems uploading files in the following environment:
Struts
> 1.1b1, Weblogic 6.1 sp2 on Solaris 8. I keep getting a warning followed by
> an exception (both are shown below).
>
> I believe the problem to be related with the MultipartRequestWrapper and
the
> fact that I'm using the Servlet spec 2.3. I've checked the code and there
> are a few 2.3 methods that return null or do nothing (getParameterMap,
> getRequestURL, ...). I've tried adding an implementation but without
> success.
>
> Something doesn't work well when forwarding back to the client. The
request
> wrapped inside the MultipartRequestWrapper is either lost or partially
lost.
>
> Anybody has any suggestions? I saw similar issues but no solutions in the
> mailing lists.
>
> Thanks!
>
> Andrej
>
> * Warning:
>  methods called after reading from the ServletInputStream, not merging post
> parameters>
>
> * Exception
> 
>  <> <> <101018>
> <[WebAppServletContext(6990692,ecct,/ecct)] Servlet failed with
> ServletException>
> javax.servlet.ServletException: Original request not available
> at
>
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
> l.java:115)
> at
>
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:97
> 5)
> at
>
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
> sor.java:408)
> at
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> :265)
> at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> :200)
> at
>
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
> ntext.java:2495)
> at
>
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
> :2204)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
>
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>



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




RE: issue

2002-05-14 Thread Galbreath, Mark

Thanks, Craig.

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 3:43 PM
To: Struts Users Mailing List
Subject: Re:  issue




On Tue, 14 May 2002, Galbreath, Mark wrote:

> Date: Tue, 14 May 2002 12:12:51 -0400
> From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: "Struts (E-mail)" <[EMAIL PROTECTED]>
> Subject:  issue
>
> Is there a way to suppress the default value for  when the
> property of the bean is an int?  I don't want a "0" showing in the textbox
> when the property has not been set - it's screwing up validation.
>

The canonical answer is "don't do that".

The design intent of Struts is that you use a String property in your form
bean for values that ultimately need to be integers (or, basically, any
other data type where a conversion is required, and the conversion might
fail due to incorrect input).  The primary purpose for this is so that a
user who types in "1a3" can receive an intelligent error message back
again, *and* see the "1a3" bad input in the text field so that they can
fix it.  This is a fundamental user expectation that well designed webapps
should support.

A side effect of making this form bean property into a String is that you
can initialize it to "" or null, and avoid the "0" being displayed.

> Thanks,
> Mark
>

Craig



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: issue

2002-05-14 Thread Craig R. McClanahan



On Tue, 14 May 2002, Galbreath, Mark wrote:

> Date: Tue, 14 May 2002 12:12:51 -0400
> From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: "Struts (E-mail)" <[EMAIL PROTECTED]>
> Subject:  issue
>
> Is there a way to suppress the default value for  when the
> property of the bean is an int?  I don't want a "0" showing in the textbox
> when the property has not been set - it's screwing up validation.
>

The canonical answer is "don't do that".

The design intent of Struts is that you use a String property in your form
bean for values that ultimately need to be integers (or, basically, any
other data type where a conversion is required, and the conversion might
fail due to incorrect input).  The primary purpose for this is so that a
user who types in "1a3" can receive an intelligent error message back
again, *and* see the "1a3" bad input in the text field so that they can
fix it.  This is a fundamental user expectation that well designed webapps
should support.

A side effect of making this form bean property into a String is that you
can initialize it to "" or null, and avoid the "0" being displayed.

> Thanks,
> Mark
>

Craig



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




RE: Logic:Iterate:sort, what do you think?

2002-05-14 Thread SUPRIYA MISRA

and where would you get your certification in sword fighting


>From: [EMAIL PROTECTED]
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: RE: Logic:Iterate:sort, what do you think?
>Date: Tue, 14 May 2002 14:14:31 -0500
>
>But how in the world would you call that from Struts???
>
>-Original Message-
>From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, May 14, 2002 2:13 PM
>To: 'Struts Users Mailing List'
>Subject: RE: Logic:Iterate:sort, what do you think?
>
>
>I'd sort it in Flash.
>
>Mark
>
>-Original Message-
>From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, May 14, 2002 3:05 PM
>
>Andrej;
>
>I've seen this lightly debated, before - that is, whether or not sorting
>should be in the Model or the View.  I haven't been completely persuaded 
>one
>way or the other.  I suppose there's good reason for both arguments.
>
>Does anyone have a strong argument for either "view"?
>
>--Michael Marrotte
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>




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


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




RE: suspected bug configuring ActionServlet for BasicDataSource

2002-05-14 Thread James Mitchell

It's being thrown from ActionServlet.initApplicationDataSources()

The log statement is coming from a resource file.
@see apache\struts\action\ActionResources.properties
line 10
dataSource.init=Initializing application data source {0}

I'm still speculating as to which line of code is the culprit from struts
servlet initialization.

Either a mis-configuration or a bug in either dbcp or beanutils.


JM

> -Original Message-
> From: Mark Johnson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 5:54 AM
> To: [EMAIL PROTECTED]
> Subject: suspected bug configuring ActionServlet for BasicDataSource
>
>
> I get a NullPointerException when attempting to configure ActionServlet
> as follows (struts nightly build 20020508, struts-config_1_1.dtd):
>   
>
>className="org.apache.struts.config.DataSourceConfig"
>   key="MyBasicDataSource"
>   type="org.apache.commons.dbcp.BasicDataSource">
>
>   
>value="org.postgresql.Driver"/>
>   
>   
>   
>   
>
> 
>
>   
>
> I believe the above should work. Why? Because a little test application
> (Pgtest) with analogous code, ie:
> BasicDataSource ds =  new BasicDataSource();
> ds.setDefaultAutoCommit(false);
>   (and so forth)
> produces a valid ResultSet, when run like this:
> $ java -cp
> /opt/j2sdk1.4.0/lib:commons-collections.jar:commons-dbcp.jar:commo
> ns-pool.jar:pgjdbc2.jar:. Pgtest
>
> Running my webapp with log4j set to DEBUG, the above struts-config.xml
> fragment appears to pass through Digester just fine... but then:
>
> ...snip...
> 2886 [main] DEBUG org.apache.commons.digester.Digester.sax  -
> endDocument()
> 2902 [main] DEBUG org.apache.struts.action.ActionServlet  -
> Initializing applica
> tion path '' message resources from 'com.myblank.ApplicationResources'
> 2904 [main] DEBUG org.apache.struts.action.ActionServlet  -
> Initializing applica
> tion path '' data sources
> 2910 [main] DEBUG org.apache.struts.action.ActionServlet  -
> Initializing applica
> tion path '' data source 'MyBasicDataSource'
> 2931 [main] DEBUG org.apache.commons.beanutils.BeanUtils  -
> BeanUtils.populate(o
> rg.apache.commons.dbcp.BasicDataSource@ea48be,
> {url=jdbc:postgresql:mystraw, use
> r=postgres, password=, driverClassName=org.postgresql.Driver,
> maxActive=4, defau
> ltAutoCommit=false})
> 2932 [main] DEBUG org.apache.commons.beanutils.BeanUtils  -
> setProperty(org.ap
> ache.commons.dbcp.BasicDataSource@ea48be, url, jdbc:postgresql:mystraw)
> 2955 [main] DEBUG org.apache.commons.beanutils.ConvertUtils  -
> Convert string 'j
> dbc:postgresql:mystraw' to class 'java.lang.String'
> 2955 [main] DEBUG org.apache.commons.beanutils.ConvertUtils  -
> Using converter
>  org.apache.commons.beanutils.converters.StringConverter@d95da8
> 2955 [main] DEBUG org.apache.commons.beanutils.BeanUtils  -
> setProperty(org.ap
> ache.commons.dbcp.BasicDataSource@ea48be, user, postgres)
> 2961 [main] DEBUG org.apache.commons.beanutils.BeanUtils  -
> setProperty(org.ap
> ache.commons.dbcp.BasicDataSource@ea48be, password, )
> 2962 [main] DEBUG org.apache.commons.beanutils.ConvertUtils  -
> Convert string ''
>  to class 'java.lang.String'
> 2962 [main] DEBUG org.apache.commons.beanutils.ConvertUtils  -
> Using converter
>  org.apache.commons.beanutils.converters.StringConverter@d95da8
> 2962 [main] DEBUG org.apache.commons.beanutils.BeanUtils  -
> setProperty(org.ap
> ache.commons.dbcp.BasicDataSource@ea48be, driverClassName,
> org.postgresql.Driver
> )
> 2962 [main] DEBUG org.apache.commons.beanutils.ConvertUtils  -
> Convert string 'o
> rg.postgresql.Driver' to class 'java.lang.String'
> 2962 [main] DEBUG org.apache.commons.beanutils.ConvertUtils  -
> Using converter
>  org.apache.commons.beanutils.converters.StringConverter@d95da8
> 2962 [main] DEBUG org.apache.commons.beanutils.BeanUtils  -
> setProperty(org.ap
> ache.commons.dbcp.BasicDataSource@ea48be, maxActive, 4)
> 2962 [main] DEBUG org.apache.commons.beanutils.ConvertUtils  -
> Convert string '4
> ' to class 'int'
> 2962 [main] DEBUG org.apache.commons.beanutils.ConvertUtils  -
> Using converter
>  org.apache.commons.beanutils.converters.IntegerConverter@65c7f6
> 2963 [main] DEBUG org.apache.commons.beanutils.BeanUtils  -
> setProperty(org.ap
> ache.commons.dbcp.BasicDataSource@ea48be, defaultAutoCommit, false)
> 2963 [main] DEBUG org.apache.commons.beanutils.ConvertUtils  -
> Convert string 'f
> alse' to class 'boolean'
> 2963 [main] DEBUG org.apache.commons.beanutils.ConvertUtils  -
> Using converter
>  org.apache.commons.beanutils.converters.BooleanConverter@2aea3e
> 3044 [main] ERROR org.apache.struts.action.ActionServlet  -
> Initializing applica
> tion data source MyBasicDataSource
> java.lang.NullPointerException
> at java.util.Hashtable.put(Hashtable.java:386)
> at
> org.apache.commons.dbcp.BasicDataSource.createDataSource(Unknown Sour
> ce)
> at
> org.apache.commons.dbcp.BasicDataSource.setLogWriter(Unknown Sourc

RE: Logic:Iterate:sort, what do you think?

2002-05-14 Thread Voytek . Jarnot

But how in the world would you call that from Struts???

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 2:13 PM
To: 'Struts Users Mailing List'
Subject: RE: Logic:Iterate:sort, what do you think?


I'd sort it in Flash.

Mark

-Original Message-
From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 3:05 PM

Andrej;

I've seen this lightly debated, before - that is, whether or not sorting
should be in the Model or the View.  I haven't been completely persuaded one
way or the other.  I suppose there's good reason for both arguments.

Does anyone have a strong argument for either "view"?

--Michael Marrotte

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Logic:Iterate:sort, what do you think?

2002-05-14 Thread Galbreath, Mark

I'd sort it in Flash.

Mark

-Original Message-
From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 3:05 PM

Andrej;

I've seen this lightly debated, before - that is, whether or not sorting
should be in the Model or the View.  I haven't been completely persuaded one
way or the other.  I suppose there's good reason for both arguments.

Does anyone have a strong argument for either "view"?

--Michael Marrotte

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




RE: Logic:Iterate:sort, what do you think?

2002-05-14 Thread Michael Marrotte

Andrej;

I've seen this lightly debated, before - that is, whether or not sorting
should be in the Model or the View.  I haven't been completely persuaded one
way or the other.  I suppose there's good reason for both arguments.  Does
sorting create a different "view" of the same data or does sorting "change"
the data?  There's probably times when looking at it one-way over the other
is more practical.

[EMAIL PROTECTED] sent me a link (http://edhill.its.uiowa.edu/display/) to a
 tag library that implements sorting which seems very practical,
e.g. it allows users to sort rows by clicking on column headers.

Does anyone have a strong argument for either "view"?

--Michael Marrotte

-Original Message-
From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 2:40 PM
To: [EMAIL PROTECTED]
Subject: Re: Logic:Iterate:sort, what do you think?

Subject: Re: Logic:Iterate:sort, what do you think?
From: "Andrej" <[EMAIL PROTECTED]>
 ===
Michael,

this may be a useless note, but if you want to sort a Collection, you can
use the Comparable interface then the Collection.sort() method. IMHO,
sorting is a "process" and should theoretically not be handled by the JSP
(ie the "view").

In other words, the Collection that you send to the view should already be
sorted.

But I know it doesn't answer your question.. :)

Andrej

"Michael Marrotte" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> I'm looking for sorting support for the Struts Logic Iterate tag. Struts
> Layout by Improve claims to support something like this for their
Collection
> library.  However, I found their latest release (docs and examples) in
> disarray.  Also, in the archives I see a message (RE: sorting in
> logic:iterate) from Tim Sawyer where he claims to have implemented sorting
> classes to solve this problem -- but, I don't see any code.
>
> Ideally, I would like to see something like what Sawyer claims or markup
> something like the following:
>
>  sortorder="ascending">
> Next element is 
> Next element is 
> Next element is 
> 
>
> Here, "myhashtable" would be sorted in ascending order based on comparable
> "value1", "value2", "value3" of each "element".
>
> If there's nothing within Struts that solves this problem then I would
like
> to work on extending the "iterate" tag to handle this.  Please let me know
> what you think.
>
> Thanks,
>
> --Michael T. Marrotte
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: issue

2002-05-14 Thread SUPRIYA MISRA

Nope. It is a struts problem .


>From: "James Mitchell" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: RE:  issue
>Date: Tue, 14 May 2002 13:53:44 -0400
>
>LOL
>
>JM
>
> > -Original Message-
> > From: Shane Bouslough [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 14, 2002 1:49 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re:  issue
> >
> >
> > >From: Galbreath, Mark
> > >
> > >Is there a way to suppress the default value for 
> > >when the property of the bean is an int?
> >
> > Yes.
> >
> > -Shane
> >
> > _
> > Chat with friends online, try MSN Messenger: http://messenger.msn.com
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>




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


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




Re: Logic:Iterate:sort, what do you think?

2002-05-14 Thread @Basebeans.com

Subject: Re: Logic:Iterate:sort, what do you think?
From: "Andrej" <[EMAIL PROTECTED]>
 ===
Michael,

this may be a useless note, but if you want to sort a Collection, you can
use the Comparable interface then the Collection.sort() method. IMHO,
sorting is a "process" and should theoretically not be handled by the JSP
(ie the "view").

In other words, the Collection that you send to the view should already be
sorted.

But I know it doesn't answer your question.. :)

Andrej

"Michael Marrotte" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> I'm looking for sorting support for the Struts Logic Iterate tag. Struts
> Layout by Improve claims to support something like this for their
Collection
> library.  However, I found their latest release (docs and examples) in
> disarray.  Also, in the archives I see a message (RE: sorting in
> logic:iterate) from Tim Sawyer where he claims to have implemented sorting
> classes to solve this problem -- but, I don't see any code.
>
> Ideally, I would like to see something like what Sawyer claims or markup
> something like the following:
>
>  sortorder="ascending">
> Next element is 
> Next element is 
> Next element is 
> 
>
> Here, "myhashtable" would be sorted in ascending order based on comparable
> "value1", "value2", "value3" of each "element".
>
> If there's nothing within Struts that solves this problem then I would
like
> to work on extending the "iterate" tag to handle this.  Please let me know
> what you think.
>
> Thanks,
>
> --Michael T. Marrotte
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>



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




suspected bug configuring ActionServlet for BasicDataSource

2002-05-14 Thread Mark Johnson

I get a NullPointerException when attempting to configure ActionServlet
as follows (struts nightly build 20020508, struts-config_1_1.dtd):
  



  
   
   
   
   
  



  

I believe the above should work. Why? Because a little test application 
(Pgtest) with analogous code, ie:
BasicDataSource ds =  new BasicDataSource();  
ds.setDefaultAutoCommit(false);
(and so forth)
produces a valid ResultSet, when run like this:
$ java -cp 
/opt/j2sdk1.4.0/lib:commons-collections.jar:commons-dbcp.jar:commons-pool.jar:pgjdbc2.jar:.
 Pgtest

Running my webapp with log4j set to DEBUG, the above struts-config.xml 
fragment appears to pass through Digester just fine... but then:

...snip...
2886 [main] DEBUG org.apache.commons.digester.Digester.sax  - endDocument()
2902 [main] DEBUG org.apache.struts.action.ActionServlet  - Initializing applica
tion path '' message resources from 'com.myblank.ApplicationResources'
2904 [main] DEBUG org.apache.struts.action.ActionServlet  - Initializing applica
tion path '' data sources
2910 [main] DEBUG org.apache.struts.action.ActionServlet  - Initializing applica
tion path '' data source 'MyBasicDataSource'
2931 [main] DEBUG org.apache.commons.beanutils.BeanUtils  - BeanUtils.populate(o
rg.apache.commons.dbcp.BasicDataSource@ea48be, {url=jdbc:postgresql:mystraw, use
r=postgres, password=, driverClassName=org.postgresql.Driver, maxActive=4, defau
ltAutoCommit=false})
2932 [main] DEBUG org.apache.commons.beanutils.BeanUtils  -   setProperty(org.ap
ache.commons.dbcp.BasicDataSource@ea48be, url, jdbc:postgresql:mystraw)
2955 [main] DEBUG org.apache.commons.beanutils.ConvertUtils  - Convert string 'j
dbc:postgresql:mystraw' to class 'java.lang.String'
2955 [main] DEBUG org.apache.commons.beanutils.ConvertUtils  -   Using converter
 org.apache.commons.beanutils.converters.StringConverter@d95da8
2955 [main] DEBUG org.apache.commons.beanutils.BeanUtils  -   setProperty(org.ap
ache.commons.dbcp.BasicDataSource@ea48be, user, postgres)
2961 [main] DEBUG org.apache.commons.beanutils.BeanUtils  -   setProperty(org.ap
ache.commons.dbcp.BasicDataSource@ea48be, password, )
2962 [main] DEBUG org.apache.commons.beanutils.ConvertUtils  - Convert string ''
 to class 'java.lang.String'
2962 [main] DEBUG org.apache.commons.beanutils.ConvertUtils  -   Using converter
 org.apache.commons.beanutils.converters.StringConverter@d95da8
2962 [main] DEBUG org.apache.commons.beanutils.BeanUtils  -   setProperty(org.ap
ache.commons.dbcp.BasicDataSource@ea48be, driverClassName, org.postgresql.Driver
)
2962 [main] DEBUG org.apache.commons.beanutils.ConvertUtils  - Convert string 'o
rg.postgresql.Driver' to class 'java.lang.String'
2962 [main] DEBUG org.apache.commons.beanutils.ConvertUtils  -   Using converter
 org.apache.commons.beanutils.converters.StringConverter@d95da8
2962 [main] DEBUG org.apache.commons.beanutils.BeanUtils  -   setProperty(org.ap
ache.commons.dbcp.BasicDataSource@ea48be, maxActive, 4)
2962 [main] DEBUG org.apache.commons.beanutils.ConvertUtils  - Convert string '4
' to class 'int'
2962 [main] DEBUG org.apache.commons.beanutils.ConvertUtils  -   Using converter
 org.apache.commons.beanutils.converters.IntegerConverter@65c7f6
2963 [main] DEBUG org.apache.commons.beanutils.BeanUtils  -   setProperty(org.ap
ache.commons.dbcp.BasicDataSource@ea48be, defaultAutoCommit, false)
2963 [main] DEBUG org.apache.commons.beanutils.ConvertUtils  - Convert string 'f
alse' to class 'boolean'
2963 [main] DEBUG org.apache.commons.beanutils.ConvertUtils  -   Using converter
 org.apache.commons.beanutils.converters.BooleanConverter@2aea3e
3044 [main] ERROR org.apache.struts.action.ActionServlet  - Initializing applica
tion data source MyBasicDataSource
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:386)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(Unknown Sour
ce)
at org.apache.commons.dbcp.BasicDataSource.setLogWriter(Unknown Source)
at org.apache.struts.action.ActionServlet.initApplicationDataSources(Act
ionServlet.java:884)
...snip...

I have been unable to locate the log4j statement that produces the above
ERROR message.

If you've read this far, your comments will be most welcome.

TIA,
-- 

Mark Johnson
[EMAIL PROTECTED]

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




RE: issue

2002-05-14 Thread Galbreath, Mark

touche.

-Original Message-
From: Shane Bouslough [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 1:49 PM

>From: Galbreath, Mark
>
>Is there a way to suppress the default value for 
>when the property of the bean is an int?

Yes.

-Shane

_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




DAO open source?

2002-05-14 Thread Adolfo Miguelez

Hi All,

probably a little out of Struts scope but, not a problem for many of you, 
since it plugs in struts. I need to code an DAO class that, via JDBC, 
accesses a database. Database is Oracle 8i. We intend to manage any kind of 
database data.

My employer suggested my that class could have a principal method 
execute(...) signed like that:

public static HashMap execute(String query, String datasource, String 
DBuser, String DBpassword, ArrayList parameters);

The class accesses PL/SQL stored procedures by means of CallableStatements, 
which actually hold the business logic.

* Returned hashmap contains return values indexed by return parameter name, 
including arrayList converted form resulsets and
* ArrayList parameters holds next info about each parameter:
- IN/OUT/INOUT
- type
- value

in order that method can be able to work out the actual CallableStatement.

That is the scenario. However, I am not sure about this design, and I have 
some questions so, I would appreciate opinions.

- Firstly, passing parameter types I think is quite messy for the 
programmer. Furthermore, method can inspect in runtime database column types 
and cast, or match itself, input parameter types for database types. I would 
free this (pointless?) load to programmer that use this class.

- Maynbe using dynabeans rather than hashmaps in the return from the method,

- is good idea to make execute() static?

- Does any of you know a open source DAO, or example to look at?

Regards,

Adolfo.


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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




Re: Struts throws ServletException when parsing in Borland EnterpriseServer 5.0 - works great in Tomcat

2002-05-14 Thread Kevin . Bedell





looks like the root issue is:

 Parsing error processing resource path /WEB-INF/struts-config.xml

Which parser are is BES configured to use?

Maybe that this is set to validate and the Tomcat is set to not validate.

Given that you're validating againts "struts-config_1_0.dtd" (again, from
the stack trace), do you have any Struts 1.1-specific entries in the
struts-config.xml?

If tomcat were set to NOT VALIDATE UPON PARSING and BES was set to
VALIDATE, then an error like this would only show up in BES.

Silly question - are you sure that the struts-config.xml is in the wat
file?








"Karim D. Saloojee" <[EMAIL PROTECTED]> on 05/14/2002 12:53:29 PM

Please respond to "Struts Users Mailing List"
  <[EMAIL PROTECTED]>

To:   "Struts-User" <[EMAIL PROTECTED]>
cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:  Struts throws ServletException when parsing in Borland Enterprise
  Server 5.0 - works great in Tomcat


Hi

This is the exception that is written out when I migrate my app from Tomcat
4 to BES 5.

The struts-config.xml file is ok cause I  test my app in standalone Tomcat
and it works. Only the controller servlet will not come up in BES, which
btw
also uses Tomcat.

TIA,
Karim

[Mon May 13 16:36:35 CAT 2002] stdout:  resolveEntity('-//Apache Software
Foundation//DTD Struts Configuration 1.0//EN',
'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
[Mon May 13 16:36:35 CAT 2002] stdout:   Resolving to alternate DTD
'besjar:C|\BorlandEnterpriseServer\var\servers\ChrisN\partitions\standard\tm

p\tmpbes_61182struts.jar#org/apache/struts/resources/struts-config_1_0.dtd'
[Mon May 13 16:36:35 CAT 2002] stdout:  StandardContext[/struts1]: Servlet
/struts1 threw load() exception: javax.servlet.ServletException: Parsing
error processing resource path /WEB-INF/struts-config.xml
[Mon May 13 16:36:35 CAT 2002] stdout:  javax.servlet.ServletException:
Parsing error processing resource path /WEB-INF/struts-config.xml
[Mon May 13 16:36:35 CAT 2002] stdout:at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1337)
[Mon May 13 16:36:35 CAT 2002] stdout:at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
[Mon May 13 16:36:35 CAT 2002] stdout:at
org.apache.struts.tiles.ActionComponentServlet.init(ActionComponentServlet.j

ava:52)
[Mon May 13 16:36:35 CAT 2002] stdout:at
javax.servlet.GenericServlet.init(GenericServlet.java:258)
[Mon May 13 16:36:35 CAT 2002] stdout:at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:911)
[Mon May 13 16:36:35 CAT 2002] stdout:at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:

3336)
[Mon May 13 16:36:35 CAT 2002] stdout:at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3495)
[Mon May 13 16:36:35 CAT 2002] stdout:at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
[Mon May 13 16:36:35 CAT 2002] stdout:at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:466)
[Mon May 13 16:36:35 CAT 2002] stdout:at
org.apache.catalina.core.StandardHost.install(StandardHost.java:678)
[Mon May 13 16:36:35 CAT 2002] stdout:at
org.apache.catalina.startup.Catalina.deploy(Catalina.java:333)
[Mon May 13 16:36:35 CAT 2002] stdout:at
org.apache.catalina.startup.Catalina.load(Catalina.java:237)
[Mon May 13 16:36:35 CAT 2002] stdout:at
org.apache.catalina.startup.Catalina.load(Catalina.java:265)
[Mon May 13 16:36:35 CAT 2002] stdout:at
com.borland.enterprise.server.services.tomcat4.TomcatService.load(TomcatServ

ice.java:344)
[Mon May 13 16:36:35 CAT 2002] stdout:at
com.sun.server.ServiceManager.loadModule(ServiceManager.java:1895)
[Mon May 13 16:36:35 CAT 2002] stdout:at
com.borland.enterprise.server.PartitionModules.loadModule(PartitionModules.j

ava:170)
[Mon May 13 16:36:35 CAT 2002] stdout:at
com.sun.server.ServiceManager.loadThisModule(ServiceManager.java:1821)
[Mon May 13 16:36:35 CAT 2002] stdout:at
com.borland.enterprise.management.agent.PartitionAgentImpl.loadEar(Partition

AgentImpl.java:113)
[Mon May 13 16:36:35 CAT 2002] stdout:at
com.borland.enterprise.idl.Server.PartitionAgentPOATie.loadEar(PartitionAgen

tPOATie.java:121)
[Mon May 13 16:36:35 CAT 2002] stdout:at
com.borland.enterprise.idl.Server.PartitionAgentPOA.
_invoke(PartitionAgentPO
A.java:167)
[Mon May 13 16:36:35 CAT 2002] stdout:at
com.borland.enterprise.idl.Server.PartitionAgentPOA.
_invoke(PartitionAgentPO
A.java:72)
[Mon May 13 16:36:35 CAT 2002] stdout:at
com.inprise.vbroker.poa.POAImpl.invoke(POAImpl.java:2616)
[Mon May 13 16:36:35 CAT 2002] stdout:at
com.inprise.vbroker.poa.ActivationRecord.invoke(ActivationRecord.java:108)
[Mon May 13 16:36:35 CAT 2002] stdout:at
com.inprise.vbroker.poa.ServerInterceptorManager$ARWrapper.invoke(ServerInte

rceptorManager.java:111)
[Mon 

Application State == View or Business Logic

2002-05-14 Thread Graham Lounder

Hi all,

I'm starting to rethink my current code structure.  One of the question I came up with 
is where the application state is supposed to be.  Currently I have a bean which holds 
my state in the session.  If I moved this application to a new client, the state bean 
could end up in the database.  So my question is what is appllication state 
considered, model, view or controller?

My guess would be model, and that you just save it in the session instead of the 
database because it is faster for web applications.  

Any ideas?

Graham



RE: issue

2002-05-14 Thread James Mitchell

LOL

JM 

> -Original Message-
> From: Shane Bouslough [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 1:49 PM
> To: [EMAIL PROTECTED]
> Subject: Re:  issue
> 
> 
> >From: Galbreath, Mark
> >
> >Is there a way to suppress the default value for 
> >when the property of the bean is an int?
> 
> Yes.
> 
> -Shane
> 
> _
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

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




Re: issue

2002-05-14 Thread Shane Bouslough

>From: Galbreath, Mark
>
>Is there a way to suppress the default value for 
>when the property of the bean is an int?

Yes.

-Shane

_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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




RE: Help : Dropdown List

2002-05-14 Thread James Mitchell

sorry I did not clarify.

I was not advocating to do this in the jsp.
This should be done within the action.

I guess I take this for granted.hmmm.

JM

> -Original Message-
> From: Damien VIEL [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 1:39 PM
> To: Struts Users Mailing List
> Subject: Re: Help : Dropdown List
>
>
> Ok,
> no problem with this example.
> But I've read that it's not a good choice to create the ArrayList
> in the JSP
> but create it
> in another class and put this Arraylist in the request object. So
> you set a
> bean in the JSP.
>
> <%jsp:UseBean.../%>
> 
>   
> labelProperty="label"/>
>   
> 
>
> My problem is that I do not know where and when I must add the
> ArrayList to
> the request object ?
>
> Dams
>
>
> - Original Message -
> From: "James Mitchell" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, May 14, 2002 7:20 PM
> Subject: RE: Help : Dropdown List
>
>
> > Well, if you look at the subscription.jsp.
> >
> >
> > The example loads these in the jsp, but this could easily have
> been a call
> > to your data manager/service or could even been pre-cached as an
> application
> > scope list.
> >
> >
> >
> > <%-- In real life, these would be loaded from a database --%>
> > <%
> >   java.util.ArrayList list = new java.util.ArrayList();
> >   list.add(new org.apache.struts.util.LabelValueBean("IMAP Protocol",
> > "imap"));
> >   list.add(new org.apache.struts.util.LabelValueBean("POP3 Protocol",
> > "pop3"));
> >   pageContext.setAttribute("serverTypes", list);
> > %>
> >
> >
> >
> > 
> >   
> >  >labelProperty="label"/>
> >   
> > 
> >
> >
> > JM
> >
> > > -Original Message-
> > > From: Damien VIEL [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, May 14, 2002 1:11 PM
> > > To: Struts Users Mailing List
> > > Subject: Re: Help : Dropdown List
> > >
> > >
> > > Sorry no,
> > > but I'm going to :)
> > > Dams
> > > - Original Message -
> > > From: "James Mitchell" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Tuesday, May 14, 2002 6:59 PM
> > > Subject: RE: Help : Dropdown List
> > >
> > >
> > > > Did you get the struts-example running???
> > > >
> > > >
> > > > JM
> > > >
> > > > > -Original Message-
> > > > > From: Damien VIEL [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Tuesday, May 14, 2002 12:54 PM
> > > > > To: Struts Users Mailing List
> > > > > Subject: Help : Dropdown List
> > > > >
> > > > >
> > > > > Hi :)
> > > > >
> > > > > Could anyone pls tell me how to populate a dropdown list using
> struts
> > > > >  tag libraries. I've heard that I need to put a Collection
> (Arraylist)
> > > in
> > > > > the request.
> > > > > This Collection is build from a Database.
> > > > > For Example I have 3 files :
> > > > > - UserForm.java
> > > > > - UserAction.java
> > > > > - SelectUser.jsp
> > > > >
> > > > > I want to select a user from the dropdown list that appears in my
> > > > > SelectUser.jsp file, in order to edit the user information
> > > for exemple.
> > > > >
> > > > > Thanks all
> > > > > Dams
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > To unsubscribe, e-mail:
> > > > > 
> > > > > For additional commands, e-mail:
> > > > > 
> > > > >
> > > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > 
> > > > For additional commands, e-mail:
> > > 
> > > >
> > > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> >
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Help : Dropdown List

2002-05-14 Thread James Mitchell

Within your Action class.

JM

> -Original Message-
> From: Damien VIEL [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 1:39 PM
> To: Struts Users Mailing List
> Subject: Re: Help : Dropdown List
>
>
> Ok,
> no problem with this example.
> But I've read that it's not a good choice to create the ArrayList
> in the JSP
> but create it
> in another class and put this Arraylist in the request object. So
> you set a
> bean in the JSP.
>
> <%jsp:UseBean.../%>
> 
>   
> labelProperty="label"/>
>   
> 
>
> My problem is that I do not know where and when I must add the
> ArrayList to
> the request object ?
>
> Dams
>
>
> - Original Message -
> From: "James Mitchell" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, May 14, 2002 7:20 PM
> Subject: RE: Help : Dropdown List
>
>
> > Well, if you look at the subscription.jsp.
> >
> >
> > The example loads these in the jsp, but this could easily have
> been a call
> > to your data manager/service or could even been pre-cached as an
> application
> > scope list.
> >
> >
> >
> > <%-- In real life, these would be loaded from a database --%>
> > <%
> >   java.util.ArrayList list = new java.util.ArrayList();
> >   list.add(new org.apache.struts.util.LabelValueBean("IMAP Protocol",
> > "imap"));
> >   list.add(new org.apache.struts.util.LabelValueBean("POP3 Protocol",
> > "pop3"));
> >   pageContext.setAttribute("serverTypes", list);
> > %>
> >
> >
> >
> > 
> >   
> >  >labelProperty="label"/>
> >   
> > 
> >
> >
> > JM
> >
> > > -Original Message-
> > > From: Damien VIEL [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, May 14, 2002 1:11 PM
> > > To: Struts Users Mailing List
> > > Subject: Re: Help : Dropdown List
> > >
> > >
> > > Sorry no,
> > > but I'm going to :)
> > > Dams
> > > - Original Message -
> > > From: "James Mitchell" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Tuesday, May 14, 2002 6:59 PM
> > > Subject: RE: Help : Dropdown List
> > >
> > >
> > > > Did you get the struts-example running???
> > > >
> > > >
> > > > JM
> > > >
> > > > > -Original Message-
> > > > > From: Damien VIEL [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Tuesday, May 14, 2002 12:54 PM
> > > > > To: Struts Users Mailing List
> > > > > Subject: Help : Dropdown List
> > > > >
> > > > >
> > > > > Hi :)
> > > > >
> > > > > Could anyone pls tell me how to populate a dropdown list using
> struts
> > > > >  tag libraries. I've heard that I need to put a Collection
> (Arraylist)
> > > in
> > > > > the request.
> > > > > This Collection is build from a Database.
> > > > > For Example I have 3 files :
> > > > > - UserForm.java
> > > > > - UserAction.java
> > > > > - SelectUser.jsp
> > > > >
> > > > > I want to select a user from the dropdown list that appears in my
> > > > > SelectUser.jsp file, in order to edit the user information
> > > for exemple.
> > > > >
> > > > > Thanks all
> > > > > Dams
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > To unsubscribe, e-mail:
> > > > > 
> > > > > For additional commands, e-mail:
> > > > > 
> > > > >
> > > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > 
> > > > For additional commands, e-mail:
> > > 
> > > >
> > > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> >
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




Re: Help : Dropdown List

2002-05-14 Thread Damien VIEL

Ok,
no problem with this example.
But I've read that it's not a good choice to create the ArrayList in the JSP
but create it
in another class and put this Arraylist in the request object. So you set a
bean in the JSP.

<%jsp:UseBean.../%>

  

  


My problem is that I do not know where and when I must add the ArrayList to
the request object ?

Dams


- Original Message -
From: "James Mitchell" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, May 14, 2002 7:20 PM
Subject: RE: Help : Dropdown List


> Well, if you look at the subscription.jsp.
>
>
> The example loads these in the jsp, but this could easily have been a call
> to your data manager/service or could even been pre-cached as an
application
> scope list.
>
>
>
> <%-- In real life, these would be loaded from a database --%>
> <%
>   java.util.ArrayList list = new java.util.ArrayList();
>   list.add(new org.apache.struts.util.LabelValueBean("IMAP Protocol",
> "imap"));
>   list.add(new org.apache.struts.util.LabelValueBean("POP3 Protocol",
> "pop3"));
>   pageContext.setAttribute("serverTypes", list);
> %>
>
>
>
> 
>   
> labelProperty="label"/>
>   
> 
>
>
> JM
>
> > -Original Message-
> > From: Damien VIEL [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 14, 2002 1:11 PM
> > To: Struts Users Mailing List
> > Subject: Re: Help : Dropdown List
> >
> >
> > Sorry no,
> > but I'm going to :)
> > Dams
> > - Original Message -
> > From: "James Mitchell" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, May 14, 2002 6:59 PM
> > Subject: RE: Help : Dropdown List
> >
> >
> > > Did you get the struts-example running???
> > >
> > >
> > > JM
> > >
> > > > -Original Message-
> > > > From: Damien VIEL [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, May 14, 2002 12:54 PM
> > > > To: Struts Users Mailing List
> > > > Subject: Help : Dropdown List
> > > >
> > > >
> > > > Hi :)
> > > >
> > > > Could anyone pls tell me how to populate a dropdown list using
struts
> > > >  tag libraries. I've heard that I need to put a Collection
(Arraylist)
> > in
> > > > the request.
> > > > This Collection is build from a Database.
> > > > For Example I have 3 files :
> > > > - UserForm.java
> > > > - UserAction.java
> > > > - SelectUser.jsp
> > > >
> > > > I want to select a user from the dropdown list that appears in my
> > > > SelectUser.jsp file, in order to edit the user information
> > for exemple.
> > > >
> > > > Thanks all
> > > > Dams
> > > >
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > > 
> > > > For additional commands, e-mail:
> > > > 
> > > >
> > > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > 
> > > For additional commands, e-mail:
> > 
> > >
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


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




Re: option groups

2002-05-14 Thread Brian Holzer

Hey Mike,
   I think that you should look into the nested tags.  I implemented a similar case 
with the following in my JSP but I found all I needed in the tutorials at 
http://www.keyboardmonkey.com/struts/index.html 

  

  
   

   
   

   
   

   
   

   
  
  

Brian 


>>> Mike Dewhirst <[EMAIL PROTECTED]> 05/14/02 10:40am >>>
Could somebody tell me, is the following possible to implement using sta?

I want to use the Struts model correctly to implement a page that has this
layout:



















...



what would then be in the ActionForm?

Say if I have a HashMap in the ActionForm that contained the Names and
Values pairs, would Struts populate the HashMap with the values from the
form?

Is there a standard mechanism for writing out the radios from a HashMap?
I've been racking my brain over this for a few days now, and can't see a
"tidy" solution based purely onsdtandard Struts custom tags and classes.

Any advice/ideas about how to do this would be very greatfully
appreciatted!!

Thanks,

Mike


This message was written in plain text mode. 
Everything below the dotted line was not 
written by the author of this email. 
-- 


=**

If you are not the intended recipient, employee or agent responsible for delivering 
the message to the intended recipient, you are hereby notified that any dissemination 
or copying of this communication and its attachments is strictly prohibited.

If you have received this communication and its attachments in error, please return 
the original message and attachments to the sender using the reply facility on e-mail.

Internet communications are not secure and therefore the UCLES Group does not accept 
legal responsibility for the contents of this message.  Any views or opinions 
presented are solely those of the author and do not necessarily represent those of the 
UCLES Group unless otherwise specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does not guarantee that 
this email is virus free.

**=



***

If you are not the intended recipient, employee or agent responsible for delivering 
the message to the intended recipient, you are hereby notified that any dissemination 
or copying of this communication and its attachments is strictly prohibited.

If you have received this communication and its attachments in error, please return 
the original message and attachments to the sender using the reply facility on e-mail.
Internet communications are not secure and therefore the UCLES Group does not accept 
legal responsibility for the contents of this message.  Any views or opinions 
presented are solely those of the author and do not necessarily represent those of the 
UCLES Group unless otherwise specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does not guarantee that 
this email is virus free.

***


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




RE: Help : Dropdown List

2002-05-14 Thread James Mitchell

Well, if you look at the subscription.jsp.


The example loads these in the jsp, but this could easily have been a call
to your data manager/service or could even been pre-cached as an application
scope list.



<%-- In real life, these would be loaded from a database --%>
<%
  java.util.ArrayList list = new java.util.ArrayList();
  list.add(new org.apache.struts.util.LabelValueBean("IMAP Protocol",
"imap"));
  list.add(new org.apache.struts.util.LabelValueBean("POP3 Protocol",
"pop3"));
  pageContext.setAttribute("serverTypes", list);
%>




  

  



JM

> -Original Message-
> From: Damien VIEL [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 1:11 PM
> To: Struts Users Mailing List
> Subject: Re: Help : Dropdown List
>
>
> Sorry no,
> but I'm going to :)
> Dams
> - Original Message -
> From: "James Mitchell" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, May 14, 2002 6:59 PM
> Subject: RE: Help : Dropdown List
>
>
> > Did you get the struts-example running???
> >
> >
> > JM
> >
> > > -Original Message-
> > > From: Damien VIEL [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, May 14, 2002 12:54 PM
> > > To: Struts Users Mailing List
> > > Subject: Help : Dropdown List
> > >
> > >
> > > Hi :)
> > >
> > > Could anyone pls tell me how to populate a dropdown list using struts
> > >  tag libraries. I've heard that I need to put a Collection (Arraylist)
> in
> > > the request.
> > > This Collection is build from a Database.
> > > For Example I have 3 files :
> > > - UserForm.java
> > > - UserAction.java
> > > - SelectUser.jsp
> > >
> > > I want to select a user from the dropdown list that appears in my
> > > SelectUser.jsp file, in order to edit the user information
> for exemple.
> > >
> > > Thanks all
> > > Dams
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> > >
> > >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> >
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: issue

2002-05-14 Thread Galbreath, Mark

Thanks, Les...I'll give it a shot.

-Original Message-
From: Wilson, Les J SI-FSIA [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 1:03 PM
To: 'Struts Users Mailing List'
Subject: RE:  issue


We do this by wrapping the int value in a getWhateverDisplay method that
returns a string - we test if the int value is 0 then return an empty string
- the form field then refers to the whateverDisplay attribute.  The set
method (setWhateverDisplay) then converts the entered value back to the int.

Les.

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: 14 May 2002 17:55
To: 'Struts Users Mailing List'
Subject: RE:  issue


Right, the problem is Java initializes numeric primitives to "0" so "0" is
being passed when what I need is a blank textbox (like an empty String) so I
can validate that the user has actually input a value - even if it's "0."  I
haven't tried it, but wrapping the int with Integer would pass the same
value, no?

Basically, what I'm wondering is why  does not have a "format"
attribute like ?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 12:30 PM

Shouldn't this be taken care of in the bean? Why "fix" it in the jsp?

That is, the bean should provide valid display values.

If it shows 0, "when the property has not been set" then can the bean have
the appropriate values initialized?

This approach simplifies the jsp's and makes it less painful for the
jsp/struts tag users.

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: Help : Dropdown List

2002-05-14 Thread Damien VIEL

Sorry no,
but I'm going to :)
Dams
- Original Message -
From: "James Mitchell" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, May 14, 2002 6:59 PM
Subject: RE: Help : Dropdown List


> Did you get the struts-example running???
>
>
> JM
>
> > -Original Message-
> > From: Damien VIEL [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 14, 2002 12:54 PM
> > To: Struts Users Mailing List
> > Subject: Help : Dropdown List
> >
> >
> > Hi :)
> >
> > Could anyone pls tell me how to populate a dropdown list using struts
> >  tag libraries. I've heard that I need to put a Collection (Arraylist)
in
> > the request.
> > This Collection is build from a Database.
> > For Example I have 3 files :
> > - UserForm.java
> > - UserAction.java
> > - SelectUser.jsp
> >
> > I want to select a user from the dropdown list that appears in my
> > SelectUser.jsp file, in order to edit the user information for exemple.
> >
> > Thanks all
> > Dams
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


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




RE: option groups

2002-05-14 Thread James Mitchell

If I understand you correctly.

>From looking at this html.

You have a form with methods:

getA()  (and setters also)
getB()

that return some kind of bean with methods:

getAc()

which also returns a bean with methods:

getOwn()
getAll()


Using the iterate on a Collection will allow you to populate your choices.
Where you get them is up to you (db, hard-coded, resource file)

And struts will happily "select" and "update" your form for you.

Your sample html gives me (us) NO clue to help you.


JM




> -Original Message-
> From: Mike Dewhirst [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 12:41 PM
> To: 'Struts Users Mailing List'
> Subject: option groups
>
>
> Could somebody tell me, is the following possible to implement using sta?
>
> I want to use the Struts model correctly to implement a page that has this
> layout:
>
> 
>
> 
> 
> 
>
> 
> 
> 
>
> 
> 
> 
>
> 
> 
> 
>
> ...
>
> 
>
> what would then be in the ActionForm?
>
> Say if I have a HashMap in the ActionForm that contained the Names and
> Values pairs, would Struts populate the HashMap with the values from the
> form?
>
> Is there a standard mechanism for writing out the radios from a HashMap?
> I've been racking my brain over this for a few days now, and can't see a
> "tidy" solution based purely onsdtandard Struts custom tags and classes.
>
> Any advice/ideas about how to do this would be very greatfully
> appreciatted!!
>
> Thanks,
>
> Mike
>
>
> This message was written in plain text mode.
> Everything below the dotted line was not
> written by the author of this email.
> --
>
>
> =**
>
> If you are not the intended recipient, employee or agent
> responsible for delivering the message to the intended recipient,
> you are hereby notified that any dissemination or copying of this
> communication and its attachments is strictly prohibited.
>
> If you have received this communication and its attachments in
> error, please return the original message and attachments to the
> sender using the reply facility on e-mail.
>
> Internet communications are not secure and therefore the UCLES
> Group does not accept legal responsibility for the contents of
> this message.  Any views or opinions presented are solely those
> of the author and do not necessarily represent those of the UCLES
> Group unless otherwise specifically stated.
>
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses although this
> does not guarantee that this email is virus free.
>
> **=
>
>
>
> ***
>
> If you are not the intended recipient, employee or agent
> responsible for delivering the message to the intended recipient,
> you are hereby notified that any dissemination or copying of this
> communication and its attachments is strictly prohibited.
>
> If you have received this communication and its attachments in
> error, please return the original message and attachments to the
> sender using the reply facility on e-mail.
> Internet communications are not secure and therefore the UCLES
> Group does not accept legal responsibility for the contents of
> this message.  Any views or opinions presented are solely those
> of the author and do not necessarily represent those of the UCLES
> Group unless otherwise specifically stated.
>
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses although this
> does not guarantee that this email is virus free.
>
> ***
>
>


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




RE: Multiple sites using one struts application.

2002-05-14 Thread James Mitchell

There have been several examples of a default/generic file structure and
build.xml file posted within the last few weeks.

If you need additional help, just let us know.

JM

> -Original Message-
> From: Mike Karl [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 12:57 PM
> To: Struts Users Mailing List
> Subject: Re: Multiple sites using one struts application.
>
>
> Good to know, I have never actually used Ant.
>
> On Tue, 2002-05-14 at 10:34, [EMAIL PROTECTED] wrote:
> >
> >
> >
> > > I also need to integrate this with some parts from an
> existing PHP site
> > > which I'm sure is going to add some complexity to the site.
> And I don't
> > > want to have to erase and rebuild 50 sites everytime I need to fix a
> > > little problem. Which with my client happens several times a day.
> >
> > Using Ant you could just rebuild and deploy only one site at a time (or
> > parts of a site).
> >
> > As they say - TIMTOWTDI!
> >
> > FWIW -
> > Kevn
> >
> >
> >
> >
> >
> >
> >
> > Mike Karl <[EMAIL PROTECTED]> on 05/14/2002 12:37:30 PM
> >
> > Please respond to "Struts Users Mailing List"
> >   <[EMAIL PROTECTED]>
> >
> > To:   Struts Users Mailing List <[EMAIL PROTECTED]>
> > cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
> > Subject:  Re: Multiple sites using one struts application.
> >
> >
> > I wanted to do something where a just created the properties for each
> > club based on the URL and pass resources and a directory to the jsp
> > pages.  I think in my case it would be best on the server to have just
> > one set of pages running even if there is a bit more overhead processing
> > the pages.  This would save on ram usage, which I could then use for
> > caching of pages to increase the speed of the site.
> >
> > Also this way I can seperate the content/configuration (which I would
> > store in a directory stucture for all the clubs) from the logic which
> > would be a struts application.
> >
> > This was the type of thing that I was doing before except that
> > previously I was passing a clubID in the URL. This is no longer an
> > option because every club needs to be accessabe from just a standard URL
> > without a query string.
> >
> > I also need to integrate this with some parts from an existing PHP site
> > which I'm sure is going to add some complexity to the site. And I don't
> > want to have to erase and rebuild 50 sites everytime I need to fix a
> > little problem. Which with my client happens several times a day.
> >
> > Thanks for the help.
> > mike
> >
> >
> >
> > On Tue, 2002-05-14 at 06:38, [EMAIL PROTECTED] wrote:
> > >
> > >
> > >
> > > You're not reading this wrong. I'm advocating creating 50
> webapps (and 50
> > > war files) if you have 50 sites.
> > >
> > > But I've always felt that disk space and server memory are
> cheap compared
> > > to developer time. CPU requirements would likely be the same
> with either
> > > approach.
> > >
> > > Don't run from ghosts - that is, don't spend a lot of effort
> programming
> > > around hardware limitations that don't exist or that can be
> eliminated by
> > a
> > > few hundred dollars in parts. Developer time is the critical
> resource -
> > not
> > > hardware.
> > >
> > > I believe that this approach (driving the site customization at
> > build-time
> > > versus run-time) will give you a simpler codebase that's likely to be
> > > eaiser (i.e. faster) to develop.
> > >
> > > However, if you want to drive the customization at run-time,
> you could do
> > > so with a similar approach:
> > >
> > >  - Still drive every thing that is site-specific from properties.
> > >  - Create a cache of Properties objects (or ResourceBundles)
> in a Hashmap
> > > that gets loaded at start-up (and potentially allow for dynamic reload
> > > without restarting the server). These Properties objects would contain
> > all
> > > site-specific values.
> > >  -  To build the View (i.e. jsp) for each request retrieve
> the Properties
> > > object containing the propery values for that site based on
> some lookup
> > > driven by the url/uri requested.
> > >  - You could create a  tag that attached the
> > Properties
> > > object to the Request with some known attribute name - this type of
> > > behavior occurs throughout Struts so you could find examples
> somewhere in
> > > the code.
> > >  - Then the html output is customized by the Properties.
> > >
> > > Gosh - now that I look at this, it doesn't look that hard either
> > >
> > > What do you think?
> > >
> > >
> > >
> > >
> > >
> > > Mike Karl <[EMAIL PROTECTED]> on 05/13/2002 07:07:07 PM
> > >
> > > Please respond to "Struts Users Mailing List"
> > >   <[EMAIL PROTECTED]>
> > >
> > > To:   Struts Users Mailing List <[EMAIL PROTECTED]>
> > > cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
> > > Subject:  Re: Multiple sites using one struts application.
> > >
> > >
> > > Would this then build me an application for each site?  So it
> would copy
> > > the files over for each site.  I don't know that

RE: issue

2002-05-14 Thread Wilson, Les J SI-FSIA

We do this by wrapping the int value in a getWhateverDisplay method that
returns a string - we test if the int value is 0 then return an empty string
- the form field then refers to the whateverDisplay attribute.  The set
method (setWhateverDisplay) then converts the entered value back to the int.

Les.

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: 14 May 2002 17:55
To: 'Struts Users Mailing List'
Subject: RE:  issue


Right, the problem is Java initializes numeric primitives to "0" so "0" is
being passed when what I need is a blank textbox (like an empty String) so I
can validate that the user has actually input a value - even if it's "0."  I
haven't tried it, but wrapping the int with Integer would pass the same
value, no?

Basically, what I'm wondering is why  does not have a "format"
attribute like ?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 12:30 PM

Shouldn't this be taken care of in the bean? Why "fix" it in the jsp?

That is, the bean should provide valid display values.

If it shows 0, "when the property has not been set" then can the bean have
the appropriate values initialized?

This approach simplifies the jsp's and makes it less painful for the
jsp/struts tag users.

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: issue

2002-05-14 Thread James Mitchell

I guess the Integer is out of the question???

JM 

> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 12:57 PM
> To: 'Struts Users Mailing List'
> Subject: RE:  issue
> 
> 
> I do Struts validation on the server side  as well.
> 
> -Original Message-
> From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 12:40 PM
> 
> JavaScript validation? Struts validator is great! Re-consider for future.
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

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




Re: Multiple sites using one struts application.

2002-05-14 Thread Mike Karl

Good to know, I have never actually used Ant.

On Tue, 2002-05-14 at 10:34, [EMAIL PROTECTED] wrote:
> 
> 
> 
> > I also need to integrate this with some parts from an existing PHP site
> > which I'm sure is going to add some complexity to the site. And I don't
> > want to have to erase and rebuild 50 sites everytime I need to fix a
> > little problem. Which with my client happens several times a day.
> 
> Using Ant you could just rebuild and deploy only one site at a time (or
> parts of a site).
> 
> As they say - TIMTOWTDI!
> 
> FWIW -
> Kevn
> 
> 
> 
> 
> 
> 
> 
> Mike Karl <[EMAIL PROTECTED]> on 05/14/2002 12:37:30 PM
> 
> Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
> 
> To:   Struts Users Mailing List <[EMAIL PROTECTED]>
> cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
> Subject:  Re: Multiple sites using one struts application.
> 
> 
> I wanted to do something where a just created the properties for each
> club based on the URL and pass resources and a directory to the jsp
> pages.  I think in my case it would be best on the server to have just
> one set of pages running even if there is a bit more overhead processing
> the pages.  This would save on ram usage, which I could then use for
> caching of pages to increase the speed of the site.
> 
> Also this way I can seperate the content/configuration (which I would
> store in a directory stucture for all the clubs) from the logic which
> would be a struts application.
> 
> This was the type of thing that I was doing before except that
> previously I was passing a clubID in the URL. This is no longer an
> option because every club needs to be accessabe from just a standard URL
> without a query string.
> 
> I also need to integrate this with some parts from an existing PHP site
> which I'm sure is going to add some complexity to the site. And I don't
> want to have to erase and rebuild 50 sites everytime I need to fix a
> little problem. Which with my client happens several times a day.
> 
> Thanks for the help.
> mike
> 
> 
> 
> On Tue, 2002-05-14 at 06:38, [EMAIL PROTECTED] wrote:
> >
> >
> >
> > You're not reading this wrong. I'm advocating creating 50 webapps (and 50
> > war files) if you have 50 sites.
> >
> > But I've always felt that disk space and server memory are cheap compared
> > to developer time. CPU requirements would likely be the same with either
> > approach.
> >
> > Don't run from ghosts - that is, don't spend a lot of effort programming
> > around hardware limitations that don't exist or that can be eliminated by
> a
> > few hundred dollars in parts. Developer time is the critical resource -
> not
> > hardware.
> >
> > I believe that this approach (driving the site customization at
> build-time
> > versus run-time) will give you a simpler codebase that's likely to be
> > eaiser (i.e. faster) to develop.
> >
> > However, if you want to drive the customization at run-time, you could do
> > so with a similar approach:
> >
> >  - Still drive every thing that is site-specific from properties.
> >  - Create a cache of Properties objects (or ResourceBundles) in a Hashmap
> > that gets loaded at start-up (and potentially allow for dynamic reload
> > without restarting the server). These Properties objects would contain
> all
> > site-specific values.
> >  -  To build the View (i.e. jsp) for each request retrieve the Properties
> > object containing the propery values for that site based on some lookup
> > driven by the url/uri requested.
> >  - You could create a  tag that attached the
> Properties
> > object to the Request with some known attribute name - this type of
> > behavior occurs throughout Struts so you could find examples somewhere in
> > the code.
> >  - Then the html output is customized by the Properties.
> >
> > Gosh - now that I look at this, it doesn't look that hard either
> >
> > What do you think?
> >
> >
> >
> >
> >
> > Mike Karl <[EMAIL PROTECTED]> on 05/13/2002 07:07:07 PM
> >
> > Please respond to "Struts Users Mailing List"
> >   <[EMAIL PROTECTED]>
> >
> > To:   Struts Users Mailing List <[EMAIL PROTECTED]>
> > cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
> > Subject:  Re: Multiple sites using one struts application.
> >
> >
> > Would this then build me an application for each site?  So it would copy
> > the files over for each site.  I don't know that this is viable because
> > I have 50 or so sites that would be running on one server.  What I would
> > like is just one set of files running at a time and not 50 so that I
> > could save on server resources.  Or am I reading this wrong.
> >
> > thanks
> > mike
> >
> >
> > On Mon, 2002-05-13 at 15:31, [EMAIL PROTECTED] wrote:
> > >
> > >
> > >
> > >
> > > I believe this is a build/deploy question as much as a Struts question.
> > But
> > > here goes:
> > >
> > > 1. Drive virtually everything from your application.properties file.
> All
> > > these properties are available to your Action classes. For example,
> > define
> > >

RE: issue

2002-05-14 Thread Galbreath, Mark

I do Struts validation on the server side  as well.

-Original Message-
From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 12:40 PM

JavaScript validation? Struts validator is great! Re-consider for future.

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




RE: Help : Dropdown List

2002-05-14 Thread James Mitchell

Did you get the struts-example running???


JM 

> -Original Message-
> From: Damien VIEL [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 12:54 PM
> To: Struts Users Mailing List
> Subject: Help : Dropdown List
> 
> 
> Hi :)
> 
> Could anyone pls tell me how to populate a dropdown list using struts
>  tag libraries. I've heard that I need to put a Collection (Arraylist) in
> the request.
> This Collection is build from a Database.
> For Example I have 3 files :
> - UserForm.java
> - UserAction.java
> - SelectUser.jsp
> 
> I want to select a user from the dropdown list that appears in my
> SelectUser.jsp file, in order to edit the user information for exemple.
> 
> Thanks all
> Dams
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

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




RE: issue

2002-05-14 Thread Galbreath, Mark

Right, the problem is Java initializes numeric primitives to "0" so "0" is
being passed when what I need is a blank textbox (like an empty String) so I
can validate that the user has actually input a value - even if it's "0."  I
haven't tried it, but wrapping the int with Integer would pass the same
value, no?

Basically, what I'm wondering is why  does not have a "format"
attribute like ?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 12:30 PM

Shouldn't this be taken care of in the bean? Why "fix" it in the jsp?

That is, the bean should provide valid display values.

If it shows 0, "when the property has not been set" then can the bean have
the appropriate values initialized?

This approach simplifies the jsp's and makes it less painful for the
jsp/struts tag users.

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




Help : Dropdown List

2002-05-14 Thread Damien VIEL

Hi :)

Could anyone pls tell me how to populate a dropdown list using struts
 tag libraries. I've heard that I need to put a Collection (Arraylist) in
the request.
This Collection is build from a Database.
For Example I have 3 files :
- UserForm.java
- UserAction.java
- SelectUser.jsp

I want to select a user from the dropdown list that appears in my
SelectUser.jsp file, in order to edit the user information for exemple.

Thanks all
Dams



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




Re: VAJ 4 & Struts & Error 503

2002-05-14 Thread Raffy_Lata


I forgot to include this.


  You will need to make some revisions to the Struts source code or you
   will get the following error Cannot remove Attribute from request scope
   in  your browser. I think this problem only occurs in WebSphere.

  In VAJ, go to the org.apache.struts.taglib.html package and open the
   FormTag class.

  Replace the following lines in the doEndTag() method in the FormTag
   class:

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

  with the following:

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

-- Forwarded by Raffy Lata/FFIC on 05/14/2002 09:51 AM
---
(Embedded image moved to file: pic20472.pcx)
Raffy Lata
(Embedded image moved to file: pic23622.pcx)
05/14/2002 09:23 AM
(Embedded image moved to file: pic18538.pcx)

To:   "Struts Users Mailing List" <[EMAIL PROTECTED]>
cc:
Subject:  Re: VAJ 4 & Struts & Error 503  (Document link: Raffy Lata)

I didn't use the struts examples to test out my setup. Instead I just
provided my own little application, but it works. Just make sure the
package names are consistent as I made changes to the sample codes below
before I sending this out.

Installation and configuration

1.   In VAJ, you will need to have the following projects present in your
workspace


   Servlet API Classes
   Java Class Libraries
   IBM WebSphere Test Environment
   IBM Enterprise Extension Libraries
   IBM XML Parser for Java

   If any of the above is missing,

·select File/Quick Start from the menu
·select Features/Add Features from the popup window and select the
project you need to import to your workspace

2.   Download/install the following:

Note:  If  you  have  projects in VAJ with the same name as the ones listed
below, be sure to version them first. Then when importing the new packages,
make  sure  you  select  option  create  new/scratch  editions of versioned
projects/packages

Xerces from http://xml.apache.org/dist/xerces-j/
·the link is Xerces-J-bin.1.4.4.zip
·extract Xerces.jar and import it in VAJava in the project XERCES

Xalan  from http://xml.apache.org/xalan-j/index.html

·the link is xalan-j_2_3_1-bin.zip
·extract Xalan.jar and xml-apis.jar and import them in VAJava  in the
project XALAN


Struts   1.1b  binary  from
http://jakarta.apache.org/builds/jakarta-struts/release/v1.1-b1/
·link is jakarta-struts-1.1-b1.zip


Struts commons (binary)
The latest commons libraries are in
http://jakarta.apache.org/builds/jakarta-commons/release/

Download  all commons zip files and import these files to a COMMONS project
in VAJava

 OR

Open  the  binary  distribution of STRUTS and extract all commons jar files
and import them in the COMMONS project in VAJava.

Struts   1.1b  source  from
http://jakarta.apache.org/builds/jakarta-struts/release/v1.1-b1/src/

·link is jakarta-struts-1.1-b1-src.zip
·import the entire file to a STRUTS project in VAJava



1.   Open jakarta-struts-1.1-b1.zip and extract the following files to e:
\apps\program files\ibm\VisualAge for Java\ide\project resources\IBM
WebSphere Test Environment\hosts\default_host\sample\WEB-INF\

·struts-*.tld
·*.dtd
·*.xml

 Note  : the DTDs in this folder are for reference only. Struts uses an
 internal copy of the dtd's to validate the xml files.

Installing the sample application

1.   In the directory e:\apps\program files\ibm\VisualAge for
Java\ide\project resources\IBM WebSphere Test
Environment\hosts\default_host\sample\WEB-INF\, open the struts-config.xml
file and replace the contents with  the following code


http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>

   
 
   
   
 
 
 
   
   


2. Open the web.xml file and replace the contents with the following code


http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";>



Note  :  This  file is basically an empty file but we still need to provide
this because the ActionServlet still looks for it somehow. If it can't find
the file, it throws a MalformedURLException exception.

3.   In  VAJ,  create  a  project  named STRUTS EXAMPLE. Create a text file
outside  of  VAJ and name it ApplicationResources.properties then paste the
codes  below.  Save  the  file  then import it in the project that you just
created (make sure you check the Resource box).

error.missing.userid=Please enter a user id
error.missing.password=Please enter a
password

prompt.login.user=User Id :
prompt.login.password=Password :

prompt.welcome.msg=Welcome 

4.   Open the sample.webapp file located in e

Struts throws ServletException when parsing in Borland Enterprise Server 5.0 - works great in Tomcat

2002-05-14 Thread Karim D. Saloojee

Hi

This is the exception that is written out when I migrate my app from Tomcat
4 to BES 5.

The struts-config.xml file is ok cause I  test my app in standalone Tomcat
and it works. Only the controller servlet will not come up in BES, which btw
also uses Tomcat.

TIA,
Karim

[Mon May 13 16:36:35 CAT 2002] stdout:  resolveEntity('-//Apache Software
Foundation//DTD Struts Configuration 1.0//EN',
'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
[Mon May 13 16:36:35 CAT 2002] stdout:   Resolving to alternate DTD
'besjar:C|\BorlandEnterpriseServer\var\servers\ChrisN\partitions\standard\tm
p\tmpbes_61182struts.jar#org/apache/struts/resources/struts-config_1_0.dtd'
[Mon May 13 16:36:35 CAT 2002] stdout:  StandardContext[/struts1]: Servlet
/struts1 threw load() exception: javax.servlet.ServletException: Parsing
error processing resource path /WEB-INF/struts-config.xml
[Mon May 13 16:36:35 CAT 2002] stdout:  javax.servlet.ServletException:
Parsing error processing resource path /WEB-INF/struts-config.xml
[Mon May 13 16:36:35 CAT 2002] stdout:  at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1337)
[Mon May 13 16:36:35 CAT 2002] stdout:  at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
[Mon May 13 16:36:35 CAT 2002] stdout:  at
org.apache.struts.tiles.ActionComponentServlet.init(ActionComponentServlet.j
ava:52)
[Mon May 13 16:36:35 CAT 2002] stdout:  at
javax.servlet.GenericServlet.init(GenericServlet.java:258)
[Mon May 13 16:36:35 CAT 2002] stdout:  at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:911)
[Mon May 13 16:36:35 CAT 2002] stdout:  at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3336)
[Mon May 13 16:36:35 CAT 2002] stdout:  at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3495)
[Mon May 13 16:36:35 CAT 2002] stdout:  at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
[Mon May 13 16:36:35 CAT 2002] stdout:  at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:466)
[Mon May 13 16:36:35 CAT 2002] stdout:  at
org.apache.catalina.core.StandardHost.install(StandardHost.java:678)
[Mon May 13 16:36:35 CAT 2002] stdout:  at
org.apache.catalina.startup.Catalina.deploy(Catalina.java:333)
[Mon May 13 16:36:35 CAT 2002] stdout:  at
org.apache.catalina.startup.Catalina.load(Catalina.java:237)
[Mon May 13 16:36:35 CAT 2002] stdout:  at
org.apache.catalina.startup.Catalina.load(Catalina.java:265)
[Mon May 13 16:36:35 CAT 2002] stdout:  at
com.borland.enterprise.server.services.tomcat4.TomcatService.load(TomcatServ
ice.java:344)
[Mon May 13 16:36:35 CAT 2002] stdout:  at
com.sun.server.ServiceManager.loadModule(ServiceManager.java:1895)
[Mon May 13 16:36:35 CAT 2002] stdout:  at
com.borland.enterprise.server.PartitionModules.loadModule(PartitionModules.j
ava:170)
[Mon May 13 16:36:35 CAT 2002] stdout:  at
com.sun.server.ServiceManager.loadThisModule(ServiceManager.java:1821)
[Mon May 13 16:36:35 CAT 2002] stdout:  at
com.borland.enterprise.management.agent.PartitionAgentImpl.loadEar(Partition
AgentImpl.java:113)
[Mon May 13 16:36:35 CAT 2002] stdout:  at
com.borland.enterprise.idl.Server.PartitionAgentPOATie.loadEar(PartitionAgen
tPOATie.java:121)
[Mon May 13 16:36:35 CAT 2002] stdout:  at
com.borland.enterprise.idl.Server.PartitionAgentPOA._invoke(PartitionAgentPO
A.java:167)
[Mon May 13 16:36:35 CAT 2002] stdout:  at
com.borland.enterprise.idl.Server.PartitionAgentPOA._invoke(PartitionAgentPO
A.java:72)
[Mon May 13 16:36:35 CAT 2002] stdout:  at
com.inprise.vbroker.poa.POAImpl.invoke(POAImpl.java:2616)
[Mon May 13 16:36:35 CAT 2002] stdout:  at
com.inprise.vbroker.poa.ActivationRecord.invoke(ActivationRecord.java:108)
[Mon May 13 16:36:35 CAT 2002] stdout:  at
com.inprise.vbroker.poa.ServerInterceptorManager$ARWrapper.invoke(ServerInte
rceptorManager.java:111)
[Mon May 13 16:36:35 CAT 2002] stdout:  at
com.inprise.vbroker.GIOP.GiopProtocolAdapter.doRequest(GiopProtocolAdapter.j
ava:621)
[Mon May 13 16:36:35 CAT 2002] stdout:  at
com.inprise.vbroker.IIOP.ServerProtocolAdapter.doRequest(ServerProtocolAdapt
er.java:68)
[Mon May 13 16:36:35 CAT 2002] stdout:  at
com.inprise.vbroker.GIOP.GiopProtocolAdapter.dispatchMessage(GiopProtocolAda
pter.java:847)
[Mon May 13 16:36:35 CAT 2002] stdout:  at
com.inprise.vbroker.orb.TPDispatcherImpl$TPDispatcher.run(TPDispatcherImpl.j
ava:99)
[Mon May 13 16:36:35 CAT 2002] stdout:  at
com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:76)


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




Re: Multiple sites using one struts application.

2002-05-14 Thread Kevin . Bedell




> I also need to integrate this with some parts from an existing PHP site
> which I'm sure is going to add some complexity to the site. And I don't
> want to have to erase and rebuild 50 sites everytime I need to fix a
> little problem. Which with my client happens several times a day.

Using Ant you could just rebuild and deploy only one site at a time (or
parts of a site).

As they say - TIMTOWTDI!

FWIW -
Kevn







Mike Karl <[EMAIL PROTECTED]> on 05/14/2002 12:37:30 PM

Please respond to "Struts Users Mailing List"
  <[EMAIL PROTECTED]>

To:   Struts Users Mailing List <[EMAIL PROTECTED]>
cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:  Re: Multiple sites using one struts application.


I wanted to do something where a just created the properties for each
club based on the URL and pass resources and a directory to the jsp
pages.  I think in my case it would be best on the server to have just
one set of pages running even if there is a bit more overhead processing
the pages.  This would save on ram usage, which I could then use for
caching of pages to increase the speed of the site.

Also this way I can seperate the content/configuration (which I would
store in a directory stucture for all the clubs) from the logic which
would be a struts application.

This was the type of thing that I was doing before except that
previously I was passing a clubID in the URL. This is no longer an
option because every club needs to be accessabe from just a standard URL
without a query string.

I also need to integrate this with some parts from an existing PHP site
which I'm sure is going to add some complexity to the site. And I don't
want to have to erase and rebuild 50 sites everytime I need to fix a
little problem. Which with my client happens several times a day.

Thanks for the help.
mike



On Tue, 2002-05-14 at 06:38, [EMAIL PROTECTED] wrote:
>
>
>
> You're not reading this wrong. I'm advocating creating 50 webapps (and 50
> war files) if you have 50 sites.
>
> But I've always felt that disk space and server memory are cheap compared
> to developer time. CPU requirements would likely be the same with either
> approach.
>
> Don't run from ghosts - that is, don't spend a lot of effort programming
> around hardware limitations that don't exist or that can be eliminated by
a
> few hundred dollars in parts. Developer time is the critical resource -
not
> hardware.
>
> I believe that this approach (driving the site customization at
build-time
> versus run-time) will give you a simpler codebase that's likely to be
> eaiser (i.e. faster) to develop.
>
> However, if you want to drive the customization at run-time, you could do
> so with a similar approach:
>
>  - Still drive every thing that is site-specific from properties.
>  - Create a cache of Properties objects (or ResourceBundles) in a Hashmap
> that gets loaded at start-up (and potentially allow for dynamic reload
> without restarting the server). These Properties objects would contain
all
> site-specific values.
>  -  To build the View (i.e. jsp) for each request retrieve the Properties
> object containing the propery values for that site based on some lookup
> driven by the url/uri requested.
>  - You could create a  tag that attached the
Properties
> object to the Request with some known attribute name - this type of
> behavior occurs throughout Struts so you could find examples somewhere in
> the code.
>  - Then the html output is customized by the Properties.
>
> Gosh - now that I look at this, it doesn't look that hard either
>
> What do you think?
>
>
>
>
>
> Mike Karl <[EMAIL PROTECTED]> on 05/13/2002 07:07:07 PM
>
> Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
>
> To:   Struts Users Mailing List <[EMAIL PROTECTED]>
> cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
> Subject:  Re: Multiple sites using one struts application.
>
>
> Would this then build me an application for each site?  So it would copy
> the files over for each site.  I don't know that this is viable because
> I have 50 or so sites that would be running on one server.  What I would
> like is just one set of files running at a time and not 50 so that I
> could save on server resources.  Or am I reading this wrong.
>
> thanks
> mike
>
>
> On Mon, 2002-05-13 at 15:31, [EMAIL PROTECTED] wrote:
> >
> >
> >
> >
> > I believe this is a build/deploy question as much as a Struts question.
> But
> > here goes:
> >
> > 1. Drive virtually everything from your application.properties file.
All
> > these properties are available to your Action classes. For example,
> define
> > the path to your images directory there, the club name, the jdbc url,
> etc.)
> >
> > 2. Create each site as it's own web app - but keep everything in a
SINGLE
> > SOURCE CONTROL REPOSITORY version. You will create specific sites ONLY
AT
> > BUILD TIME. Again - only one version exists in source control. Call
this
> > The Template.
> >
> >  This is critical. No site-specific cod

Re: issue

2002-05-14 Thread Kevin . Bedell




Shouldn't this be taken care of in the bean? Why "fix" it in the jsp?

That is, the bean should provide valid display values.

If it shows 0, "when the property has not been set" then can the bean have
the appropriate values initialized?

This approach simplifies the jsp's and makes it less painful for the
jsp/struts tag users.





"Galbreath, Mark" <[EMAIL PROTECTED]> on 05/14/2002 12:12:51 PM

Please respond to "Struts Users Mailing List"
  <[EMAIL PROTECTED]>

To:   "Struts (E-mail)" <[EMAIL PROTECTED]>
cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:   issue


Is there a way to suppress the default value for  when the
property of the bean is an int?  I don't want a "0" showing in the textbox
when the property has not been set - it's screwing up validation.

Thanks,
Mark







---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---


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




Action forward - external site

2002-05-14 Thread Villegas, Courtney

Is it possible to have an action forward to an external site?  In other
words, can I set my success path to a http reference?  See example below.



  http://www.trimet.org"/>


Courtney

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




option groups

2002-05-14 Thread Mike Dewhirst

Could somebody tell me, is the following possible to implement using sta?

I want to use the Struts model correctly to implement a page that has this
layout:



















...



what would then be in the ActionForm?

Say if I have a HashMap in the ActionForm that contained the Names and
Values pairs, would Struts populate the HashMap with the values from the
form?

Is there a standard mechanism for writing out the radios from a HashMap?
I've been racking my brain over this for a few days now, and can't see a
"tidy" solution based purely onsdtandard Struts custom tags and classes.

Any advice/ideas about how to do this would be very greatfully
appreciatted!!

Thanks,

Mike


This message was written in plain text mode. 
Everything below the dotted line was not 
written by the author of this email. 
-- 


=**

If you are not the intended recipient, employee or agent responsible for delivering 
the message to the intended recipient, you are hereby notified that any dissemination 
or copying of this communication and its attachments is strictly prohibited.

If you have received this communication and its attachments in error, please return 
the original message and attachments to the sender using the reply facility on e-mail.

Internet communications are not secure and therefore the UCLES Group does not accept 
legal responsibility for the contents of this message.  Any views or opinions 
presented are solely those of the author and do not necessarily represent those of the 
UCLES Group unless otherwise specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does not guarantee that 
this email is virus free.

**=



***

If you are not the intended recipient, employee or agent responsible for delivering 
the message to the intended recipient, you are hereby notified that any dissemination 
or copying of this communication and its attachments is strictly prohibited.

If you have received this communication and its attachments in error, please return 
the original message and attachments to the sender using the reply facility on e-mail.
Internet communications are not secure and therefore the UCLES Group does not accept 
legal responsibility for the contents of this message.  Any views or opinions 
presented are solely those of the author and do not necessarily represent those of the 
UCLES Group unless otherwise specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does not guarantee that 
this email is virus free.

***




Re: issue

2002-05-14 Thread @Basebeans.com

Subject: Re:  issue
From: Vic C <[EMAIL PROTECTED]>
 ===
JavaScript validation? Struts validator is great! Re-consider for future.

Galbreath, Mark wrote:
> Nah...want to avoid all client scripting except JavaScript validation.
> 
> -Original Message-
> From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 12:22 PM
> To: [EMAIL PROTECTED]
> Subject: Re:  issue
> 
> 
> how about scriptlet? if getProperty==0 call Javascript function.
> 
> Javascript funcion
> form.element.value="";
> 
> 
> 
>>From: "Galbreath, Mark" <[EMAIL PROTECTED]>
>>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>To: "Struts (E-mail)" <[EMAIL PROTECTED]>
>>Subject:  issue
>>Date: Tue, 14 May 2002 12:12:51 -0400
>>
>>Is there a way to suppress the default value for  when the
>>property of the bean is an int?  I don't want a "0" showing in the textbox
>>when the property has not been set - it's screwing up validation.
>>
>>Thanks,
>>Mark
> 
> 
> 
> 
> 
> _
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


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




Re: Multiple sites using one struts application.

2002-05-14 Thread Mike Karl

I wanted to do something where a just created the properties for each
club based on the URL and pass resources and a directory to the jsp
pages.  I think in my case it would be best on the server to have just
one set of pages running even if there is a bit more overhead processing
the pages.  This would save on ram usage, which I could then use for
caching of pages to increase the speed of the site.

Also this way I can seperate the content/configuration (which I would
store in a directory stucture for all the clubs) from the logic which
would be a struts application. 

This was the type of thing that I was doing before except that
previously I was passing a clubID in the URL. This is no longer an
option because every club needs to be accessabe from just a standard URL
without a query string.

I also need to integrate this with some parts from an existing PHP site
which I'm sure is going to add some complexity to the site. And I don't
want to have to erase and rebuild 50 sites everytime I need to fix a
little problem. Which with my client happens several times a day.

Thanks for the help.
mike



On Tue, 2002-05-14 at 06:38, [EMAIL PROTECTED] wrote:
> 
> 
> 
> You're not reading this wrong. I'm advocating creating 50 webapps (and 50
> war files) if you have 50 sites.
> 
> But I've always felt that disk space and server memory are cheap compared
> to developer time. CPU requirements would likely be the same with either
> approach.
> 
> Don't run from ghosts - that is, don't spend a lot of effort programming
> around hardware limitations that don't exist or that can be eliminated by a
> few hundred dollars in parts. Developer time is the critical resource - not
> hardware.
> 
> I believe that this approach (driving the site customization at build-time
> versus run-time) will give you a simpler codebase that's likely to be
> eaiser (i.e. faster) to develop.
> 
> However, if you want to drive the customization at run-time, you could do
> so with a similar approach:
> 
>  - Still drive every thing that is site-specific from properties.
>  - Create a cache of Properties objects (or ResourceBundles) in a Hashmap
> that gets loaded at start-up (and potentially allow for dynamic reload
> without restarting the server). These Properties objects would contain all
> site-specific values.
>  -  To build the View (i.e. jsp) for each request retrieve the Properties
> object containing the propery values for that site based on some lookup
> driven by the url/uri requested.
>  - You could create a  tag that attached the Properties
> object to the Request with some known attribute name - this type of
> behavior occurs throughout Struts so you could find examples somewhere in
> the code.
>  - Then the html output is customized by the Properties.
> 
> Gosh - now that I look at this, it doesn't look that hard either
> 
> What do you think?
> 
> 
> 
> 
> 
> Mike Karl <[EMAIL PROTECTED]> on 05/13/2002 07:07:07 PM
> 
> Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
> 
> To:   Struts Users Mailing List <[EMAIL PROTECTED]>
> cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
> Subject:  Re: Multiple sites using one struts application.
> 
> 
> Would this then build me an application for each site?  So it would copy
> the files over for each site.  I don't know that this is viable because
> I have 50 or so sites that would be running on one server.  What I would
> like is just one set of files running at a time and not 50 so that I
> could save on server resources.  Or am I reading this wrong.
> 
> thanks
> mike
> 
> 
> On Mon, 2002-05-13 at 15:31, [EMAIL PROTECTED] wrote:
> >
> >
> >
> >
> > I believe this is a build/deploy question as much as a Struts question.
> But
> > here goes:
> >
> > 1. Drive virtually everything from your application.properties file. All
> > these properties are available to your Action classes. For example,
> define
> > the path to your images directory there, the club name, the jdbc url,
> etc.)
> >
> > 2. Create each site as it's own web app - but keep everything in a SINGLE
> > SOURCE CONTROL REPOSITORY version. You will create specific sites ONLY AT
> > BUILD TIME. Again - only one version exists in source control. Call this
> > The Template.
> >
> >  This is critical. No site-specific code or properties get checked in
> > with The Template. Everything is driven from the application.properties
> > file.
> >
> > 3. Define the values in this application.properties file using "tokens",
> > not actual values. For example:
> >
> >  in The Template application.properties for Struts:
> >
> >  club.name=CLUB_NAME
> >  path.to.images=IMAGE_PATH
> >  site.jdbc.url=JDBC_URL
> >
> >  - etc. -
> >
> > 4. Then, for each actual site, create a seperate "properties" file
> > containing the specific values for that site. For example:
> >
> >  in "club1.properties"
> >
> >  club.name=Fred's Club
> >  path.to.images=/fredimages/images
> >  site.jdbc.url="

RE: issue

2002-05-14 Thread James Mitchell

Can you get by with a wrapper?

JM

> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 12:24 PM
> To: 'Struts Users Mailing List'
> Subject: RE:  issue
>
>
> Nah...want to avoid all client scripting except JavaScript validation.
>
> -Original Message-
> From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 12:22 PM
> To: [EMAIL PROTECTED]
> Subject: Re:  issue
>
>
> how about scriptlet? if getProperty==0 call Javascript function.
>
> Javascript funcion
> form.element.value="";
>
>
> >From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts (E-mail)" <[EMAIL PROTECTED]>
> >Subject:  issue
> >Date: Tue, 14 May 2002 12:12:51 -0400
> >
> >Is there a way to suppress the default value for  when the
> >property of the bean is an int?  I don't want a "0" showing in
> the textbox
> >when the property has not been set - it's screwing up validation.
> >
> >Thanks,
> >Mark
>
>
>
>
> _
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: issue

2002-05-14 Thread Galbreath, Mark

Nah...want to avoid all client scripting except JavaScript validation.

-Original Message-
From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 12:22 PM
To: [EMAIL PROTECTED]
Subject: Re:  issue


how about scriptlet? if getProperty==0 call Javascript function.

Javascript funcion
form.element.value="";


>From: "Galbreath, Mark" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts (E-mail)" <[EMAIL PROTECTED]>
>Subject:  issue
>Date: Tue, 14 May 2002 12:12:51 -0400
>
>Is there a way to suppress the default value for  when the
>property of the bean is an int?  I don't want a "0" showing in the textbox
>when the property has not been set - it's screwing up validation.
>
>Thanks,
>Mark




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: issue

2002-05-14 Thread SUPRIYA MISRA

how about scriptlet? if getProperty==0 call Javascript function.

Javascript funcion
form.element.value="";


>From: "Galbreath, Mark" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts (E-mail)" <[EMAIL PROTECTED]>
>Subject:  issue
>Date: Tue, 14 May 2002 12:12:51 -0400
>
>Is there a way to suppress the default value for  when the
>property of the bean is an int?  I don't want a "0" showing in the textbox
>when the property has not been set - it's screwing up validation.
>
>Thanks,
>Mark




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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




Re: VAJ 4 & Struts & Error 503

2002-05-14 Thread Raffy_Lata


I didn't use the struts examples to test out my setup. Instead I just
provided my own little application, but it works. Just make sure the
package names are consistent as I made changes to the sample codes below
before I sending this out.

Installation and configuration

1.   In VAJ, you will need to have the following projects present in your
workspace


   Servlet API Classes
   Java Class Libraries
   IBM WebSphere Test Environment
   IBM Enterprise Extension Libraries
   IBM XML Parser for Java

   If any of the above is missing,

·select File/Quick Start from the menu
·select Features/Add Features from the popup window and select the
project you need to import to your workspace

2.   Download/install the following:

Note:  If  you  have  projects in VAJ with the same name as the ones listed
below, be sure to version them first. Then when importing the new packages,
make  sure  you  select  option  create  new/scratch  editions of versioned
projects/packages

Xerces from http://xml.apache.org/dist/xerces-j/
·the link is Xerces-J-bin.1.4.4.zip
·extract Xerces.jar and import it in VAJava in the project XERCES

Xalan  from http://xml.apache.org/xalan-j/index.html

·the link is xalan-j_2_3_1-bin.zip
·extract Xalan.jar and xml-apis.jar and import them in VAJava  in the
project XALAN


Struts   1.1b  binary  from
http://jakarta.apache.org/builds/jakarta-struts/release/v1.1-b1/
·link is jakarta-struts-1.1-b1.zip


Struts commons (binary)
The latest commons libraries are in
http://jakarta.apache.org/builds/jakarta-commons/release/

Download  all commons zip files and import these files to a COMMONS project
in VAJava

 OR

Open  the  binary  distribution of STRUTS and extract all commons jar files
and import them in the COMMONS project in VAJava.

Struts   1.1b  source  from
http://jakarta.apache.org/builds/jakarta-struts/release/v1.1-b1/src/

·link is jakarta-struts-1.1-b1-src.zip
·import the entire file to a STRUTS project in VAJava



1.   Open jakarta-struts-1.1-b1.zip and extract the following files to e:
\apps\program files\ibm\VisualAge for Java\ide\project resources\IBM
WebSphere Test Environment\hosts\default_host\sample\WEB-INF\

·struts-*.tld
·*.dtd
·*.xml

 Note  : the DTDs in this folder are for reference only. Struts uses an
 internal copy of the dtd's to validate the xml files.

Installing the sample application

1.   In the directory e:\apps\program files\ibm\VisualAge for
Java\ide\project resources\IBM WebSphere Test
Environment\hosts\default_host\sample\WEB-INF\, open the struts-config.xml
file and replace the contents with  the following code


http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>

   
 
   
   
 
 
 
   
   


2. Open the web.xml file and replace the contents with the following code


http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";>



Note  :  This  file is basically an empty file but we still need to provide
this because the ActionServlet still looks for it somehow. If it can't find
the file, it throws a MalformedURLException exception.

3.   In  VAJ,  create  a  project  named STRUTS EXAMPLE. Create a text file
outside  of  VAJ and name it ApplicationResources.properties then paste the
codes  below.  Save  the  file  then import it in the project that you just
created (make sure you check the Resource box).

error.missing.userid=Please enter a user id
error.missing.password=Please enter a
password

prompt.login.user=User Id :
prompt.login.password=Password :

prompt.welcome.msg=Welcome 

4.   Open the sample.webapp file located in e:\apps\program
files\ibm\VisualAge for Java\ide\project resources\IBM WebSphere Test
Environment\hosts\default_host\sample\  and replace the contents with the
following code




   sample
   sample Application
   /ErrorReporter
   
 ErrorReporter
 Default error reporter servlet
 com.ibm.servlet.engine.webapp.DefaultErrorReporter
 /ErrorReporter
 true
 
 
   action
   Action Servlet
   org.apache.struts.action.ActionServlet
   *.do
   true
 
 application
 ApplicationResources
 
 
config
/WEB-INF/struts-config.xml
 
 
debug
2
 
 
detail
2
 
 
validate
true
 
 
 
   invoker
   Auto-registration servlet
   com.ibm.servlet.engine.webapp.InvokerServlet
   /servlet/*
   true
 
 
   jsp
   JSP support servlet
   com.ibm.ivj.jsp.jasper.runtime.JspDebugServlet
   
 workingDir
 $server_root$/temp/default_app
   
   
 jspemEnabled
 true
   
   
 scratchdir
 $server_root$/temp/JSP1_1/default_app
   
   
 keepgenerated
 true
   
   true
   *.jsp
 
 
   file
   File serving servlet
   com.ibm.servlet.engine.webapp.SimpleFileServlet
   /
   
 
 

issue

2002-05-14 Thread Galbreath, Mark

Is there a way to suppress the default value for  when the
property of the bean is an int?  I don't want a "0" showing in the textbox
when the property has not been set - it's screwing up validation.
 
Thanks,
Mark



RE: html:options with a Map collection

2002-05-14 Thread James Mitchell

I should know..I'm still cleaning my wounds!

;)

JM

> -Original Message-
> From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 12:04 PM
> To: Struts Users Mailing List
> Subject: RE: html:options with a Map collection
>
>
> Please take the hint! Mark is right and you wont like it if you
> force him to become sarcastic!
>
> Simon
>
> -
> Simon P. Chappell [EMAIL PROTECTED]
> Java Programming Specialist  www.landsend.com
> Lands' End, Inc.   (608) 935-4526
>
>
> >-Original Message-
> >From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> >Sent: Tuesday, May 14, 2002 10:50 AM
> >To: 'Struts Users Mailing List'
> >Subject: RE: html:options with a Map collection
> >
> >
> >That's great!  But a Map is still not a Collection.
> >
> >-Original Message-
> >From: Sriram Nookala [mailto:[EMAIL PROTECTED]]
> >Sent: Tuesday, May 14, 2002 11:32 AM
> >To: Struts Users Mailing List
> >Subject: Re: html:options with a Map collection
> >
> >
> >I got this to work using the following:
> >
> > >  label="key" value="value"/>
> >
> >where "getReportTemplates" returns the Map.
> >
> >- Original Message -
> >From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> >To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> >Sent: Tuesday, May 14, 2002 11:11 AM
> >Subject: RE: html:options with a Map collection
> >
> >
> >> A Map is not a Collection.
> >>
> >> Mark
> >>
> >> -Original Message-
> >> From: Sriram Nookala [mailto:[EMAIL PROTECTED]]
> >> Sent: Tuesday, May 14, 2002 10:48 AM
> >> To: Struts Users Mailing List
> >> Subject: Re: html:options with a Map collection
> >>
> >>
> >> I've been trying to find documentation on how to use a Map
> >collection in
> >> html:options with the Map key as the label name and the Map
> >value as the
> >> label property.
> >> thanks,
> >> sriram
> >>
> >>
> >>
> >> --
> >> To unsubscribe, e-mail:
> >> 
> >> For additional commands, e-mail:
> >> 
> >>
> >> --
> >> To unsubscribe, e-mail:
> >
> >> For additional commands, e-mail:
> >
> >>
> >>
> >
> >
> >--
> >To unsubscribe, e-mail:
> >
> >For additional commands, e-mail:
> >
> >
> >--
> >To unsubscribe, e-mail:
> 
> For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: xml-xslt v jsp

2002-05-14 Thread Craig R. McClanahan



On Tue, 14 May 2002 [EMAIL PROTECTED] wrote:

> Date: Tue, 14 May 2002 10:13:00 -0500
> From: [EMAIL PROTECTED]
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: RE: xml-xslt v jsp
>
> I aggree that it's very difficult to debug and is non-portable, but our
> experience was that we could never find a server environment with
> adequate performance.  The performance issue outweighed the portability
> and support issues for us.  Of course, we're talking about an intranet
> application where we had pretty good control over the browser
> environment.  That's the only case I would recommend that.
>

For those interested in using XML and XSLT processing, here are a couple
of technologies you might want to take a look at:

* The latest version of JAXP (1.2) supports a new mode for XSLT
  stylesheets that causes the transformation to be converted into
  a Java class that is then auto-compiled (much like JSP pages are).
  For repeated use of the same transform, this can make a huge
  difference in performance.  JAXP/1.2 is available as part of either
  the Java and XML Pack, or the Java Web Services Developer Pack
  .

* The JSP Standard Tag Library (JSTL) contains a rich set of XML
  manipulation tags for doing server-side XML processing within
  JSP pages.  This supports an approach for using existing Struts tags
  (or the JSTL tags) to interact with your data model, and the JSP page
  to provide the "container" for the dynamically assembled XML output.
  JSTL requires a servlet 2.3 / JSP 1.2 container, however.

> Greg
>

Craig McClanahan


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




  1   2   >