RE: Validator

2004-10-01 Thread David G. Friedman
I haven't used the validator in a while but I have a 3 questions for you:

1. If, as you say, the Javascript tag isn't being enclosed in
.. tags, then you need to verify that your validation file
is loaded AND that you have the correct form name in your .  I've had that problem before when the file either was
not loaded (bad path on my part for the plug-in) OR when the formName="..."
didn't match anything in my validation.xml file.  I recommend you make sure
the file loaded properly and is in the correct path specified in your plugIn
as you listed a matching formName in that .xml file.

2. Since your html:javascript tag names the form "userForm", why isn't your
action tag's onSubmit call this:
onsubmit="return validateUserForm(this);"

3. What does your action mapping look like?  I should look a bit like this
(depending on how you customized it, of course):





I. The "" should be the class name of the Action subclass to invoke.

II. The validate="true" forces the server-side to user the userForm's
validate() method provided by the super class ValidatorForm.  This allows
validation failure to go to the place specified in the input=""
attribute for your action in the struts-config.xml (or related Struts
module) file.

III. The "" should be a place to go (JSP, forward, html page, action) to
go to when validation fails.  Typically, this is some input form page which
is often the page calling the "/atualizaDadosUsuarioAction" Struts action in
the first place.

Regards,
David

-Original Message-
From: Vinicius Carvalho [mailto:[EMAIL PROTECTED]
Sent: Friday, October 01, 2004 2:57 PM
To: Struts Users Mailing List
Subject: Re: Validator


Daniel H. F. e Silva wrote:

>Hi Gabriel,
>
>  When posting to the struts-users list, please, don't use any language
other than english.
>It is unpolite as just a few dudes here understand portuguese.
>  If you and all other Struts dudes (hey, i'm brazilian too) need help with
Struts, join the
>funkiest irc channel ever: #funkycodemonkey at irc.darkmyst.org.
>
>Cheers,
> Daniel Silva.
>
>
>
>--- Gabriel França Campolina <[EMAIL PROTECTED]> wrote:
>
>
>
>>Olá Vinicius,
>>
>>Poste o seu mapeamento de suas action no struts-config, e o mapeamento
>>dos seus form, para que eu possa analizar? Verifique o log gerado pelo
>>seu container web(Tomcat, JBoss etc), em geral eles listam a maioria
>>dos problemas da sua aplicação.
>>
>>Gabriel F Campolina
>>Analista desenvolvedor Java
>>Stefanini IT Solutions - BH
>>
>>
>>
>>On Thu, 30 Sep 2004 14:33:51 -0300, Vinicius Carvalho
>><[EMAIL PROTECTED]> wrote:
>>
>>
>>>Hi there! I've been using Struts for quite sometime, but haven't used
>>>the validator yet.
>>>So I followed the receipt provided by Struts in Action, but got no
>>>success at all.
>>>
>>>Here's what I've done
>>>
>>>Struts-config is configured for the right plugin
>>>My ActionForm extends ValidatorForm and has no validate() method
>>>
>>>Validator-rules.xml:
>>>
>>>   >>  classname="org.apache.struts.validator.FieldChecks"
>>> method="validateRequired"
>>>   methodParams="java.lang.Object,
>>> org.apache.commons.validator.ValidatorAction,
>>> org.apache.commons.validator.Field,
>>> org.apache.struts.action.ActionMessages,
>>> javax.servlet.http.HttpServletRequest"
>>>msg="validator.errors.required">
>>>
>>>  
>>>
>>>
>>>
>>>validation.xml:
>>>
>>>  
>>>
>>>  
>>>  
>>> 
>>>ApplicationResources.properties
>>>
>>>validator.errors.required= O campo {0} é obrigatório
>>>prompt.nome=nome
>>>
>>>And my jsp file looks like this:
>>>
>type="br.com.auge.errors.action.form.UserForm" onsubmit="return
>>>validateRequired(this)">
>>>Nome >>/>
>>>
>>>
>>>
>>>Well, what is happening is that after I submit with no values at all,
>>>nothing happens, it forwards to the
>>>correct path. And also, the javascript generated isn't inside a
>>> block. So it's printed
>>>on the page footer.
>>>
>>>Where did I miss?
>>>
>>>Thanks
>>>
>>>Vinicius
>>>
Well, it does has an error on console, I'm working on that right now, if
I don't get any success I'll cry for help again ;)

ps: NoSuchMethod Error ...

Gotta check my struts.jar versions

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


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



Re: Presetting Form Data (SOLVED)

2004-10-01 Thread Tom Holmes Jr.
Ok, I found the problem ... I did some more searching on the Internet, 
and it was a previouus, much older message which I did not see at first:

The first Action-Mapping in order to set-up the MemberAddressForm was 
defined as:

type="com.tjh.csaa.beans.MemberAddressAction"
name="MemberAddressForm"
scope="request"
validate="false">
   
   


There is another Action-Mapping that is for when the form is actually 
submitted.  It is defined as:


   
   
   

SOOO, the solution is the "name"
name="memberAddressForm"
name="MemberAddressForm"
The correct one is the first one because that matches the form-bean 
definition.   Problem solved.

Why do my toughest problems have the simplest solution?  That question 
was rhetorical.   Thanks for all the help and being so patient with me.

Thanks again.
 Tom
Tom Holmes Jr. wrote:
I've done a lot more research on this issue and the I found the 
web-site:  http://husted.com/struts/catalog.html
which proved to be an invaluable aid in the best practices of how to 
create a Struts-based wab-application.

I also found this site which seemed to give me all the answers I needed 
or so I thought:  http://www.reumann.net/struts/lesson2/step9.do

So, I have a link from a JSP menu that looks like:
http://www.mydomain.net/update_address.do
The struts-config.xml has the following declared:
In the form-bean definitions I have:


In the Action Mappings I have:




So, the idea is like the example, that is I call the Action 
(MemberAddressAction) which is going to get my "member" (MemberDTO) from 
the session (because the user has previously logged-in) and the 
MemberDTO is now in session.  So, MemberAddressAction gets this "member" 
and uses the "populate" method I wrote to transfer the data from this 
"member" into the Form-Bean (MemberAddressForm).

Here is some of the code from the MemberAddressAction:
HttpSession session = request.getSession();
MemberDTO member = (MemberDTO)session.getAttribute("member");
if( member == null)
{
System.out.println("user has not signed in");
return (mapping.findForward("choice"));
}
else
{
MemberAddressForm memberForm = (MemberAddressForm)form;
copyBeanToForm(member,memberForm);
}
return (mapping.findForward("success"));
I can vouch for sure that the "member" (MemberDTO) does exist in session 
correctly ...  however, the form does not get created and as a result is 
null.   So, question is WHY?

Why does this code not work and how can I correct it?
MemberAddressForm memberForm = (MemberAddressForm) form;
Thanks again for any help.
  Tom
Tom Holmes Jr. wrote:
Thanks for the info.
"membership_address.do" is the Action from the JSP page when I do my 
submit.  If I call the this Action with validate=true, then it's going 
to call the FormBean Validate method first, and if anything is 
required, then it would get errors and return to the calling page with 
a bunch of error codes even though the user wasn't there the first 
time.  I've seen other people ask that question before.

The Action you suggest I call, is this a new Action altogether with no 
validation?  This action could either get data from the database, or 
if that is already done, then I could just take the data from the 
MemberDTO and put that into the formbean as you suggest, then I would 
automatically forward to the Membership_Address.jsp page.  Is that 
correct, or do you mean go to the same Action as when  I do a submit.

So, I won't be a bother to the list, can you re-direct me to the 
struts-example web-app?  Can I download that app from the Struts 
web-site directly?

Thanks again for the help.
Tom
Wendy Smoak wrote:
From: "Tom Holmes Jr." <[EMAIL PROTECTED]>
So, the way I started to handle this is call the JSP page directly with
the form.  I got the 'member' object from session and I populated the
value field as follows:

Would this be appropriate?  It works except for my checkboxes.


No.  Set those values in the Action code, before forwarding to the JSP.
The struts-example webapp shows how to do this-- look for the calls to
BeanUtils.copyProperties(...) that copy the values back and forth 
from the
DTO to the form bean.

Don't forget to write a reset method to handle those checkboxes.

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


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


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


Re: Presetting Form Data

2004-10-01 Thread Tom Holmes Jr.
I've done a lot more research on this issue and the I found the 
web-site:  http://husted.com/struts/catalog.html
which proved to be an invaluable aid in the best practices of how to 
create a Struts-based wab-application.

I also found this site which seemed to give me all the answers I needed 
or so I thought:  http://www.reumann.net/struts/lesson2/step9.do

So, I have a link from a JSP menu that looks like:
http://www.mydomain.net/update_address.do
The struts-config.xml has the following declared:
In the form-bean definitions I have:


In the Action Mappings I have:




So, the idea is like the example, that is I call the Action 
(MemberAddressAction) which is going to get my "member" (MemberDTO) from 
the session (because the user has previously logged-in) and the 
MemberDTO is now in session.  So, MemberAddressAction gets this "member" 
and uses the "populate" method I wrote to transfer the data from this 
"member" into the Form-Bean (MemberAddressForm).

Here is some of the code from the MemberAddressAction:
HttpSession session = request.getSession();
MemberDTO member = (MemberDTO)session.getAttribute("member");
if( member == null)
{
System.out.println("user has not signed in");
return (mapping.findForward("choice"));
}
else
{
MemberAddressForm memberForm = (MemberAddressForm)form;
copyBeanToForm(member,memberForm);
}
return (mapping.findForward("success"));
I can vouch for sure that the "member" (MemberDTO) does exist in session 
correctly ...  however, the form does not get created and as a result is 
null.   So, question is WHY?

Why does this code not work and how can I correct it?
MemberAddressForm memberForm = (MemberAddressForm) form;
Thanks again for any help.
  Tom
Tom Holmes Jr. wrote:
Thanks for the info.
"membership_address.do" is the Action from the JSP page when I do my 
submit.  If I call the this Action with validate=true, then it's going 
to call the FormBean Validate method first, and if anything is required, 
then it would get errors and return to the calling page with a bunch of 
error codes even though the user wasn't there the first time.  I've seen 
other people ask that question before.

The Action you suggest I call, is this a new Action altogether with no 
validation?  This action could either get data from the database, or if 
that is already done, then I could just take the data from the MemberDTO 
and put that into the formbean as you suggest, then I would 
automatically forward to the Membership_Address.jsp page.  Is that 
correct, or do you mean go to the same Action as when  I do a submit.

So, I won't be a bother to the list, can you re-direct me to the 
struts-example web-app?  Can I download that app from the Struts 
web-site directly?

Thanks again for the help.
Tom
Wendy Smoak wrote:
From: "Tom Holmes Jr." <[EMAIL PROTECTED]>
So, the way I started to handle this is call the JSP page directly with
the form.  I got the 'member' object from session and I populated the
value field as follows:

Would this be appropriate?  It works except for my checkboxes.

No.  Set those values in the Action code, before forwarding to the JSP.
The struts-example webapp shows how to do this-- look for the calls to
BeanUtils.copyProperties(...) that copy the values back and forth from 
the
DTO to the form bean.

Don't forget to write a reset method to handle those checkboxes.

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


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


Re: Indexed Properties and Lazy List behaviour

2004-10-01 Thread Niall Pemberton
OK I think I must be spreading confusion - thats what you get, arrays of
beans, not strings.

For LazyValidatorForm the default for an indexed property is an ArrayList of
LazyDynaBean - and it populates the LazyDynaBean for you automatically.

For LazyDynaBean the default indexed property is an ArrayList - but it
doesn't populate it with anything. If however you create a custom
LazyDynaBean (like the example I gave) changing the default indexed property
to an LazyDynaBean array then the default indexed property is an Array of
LazyDynaBean  - populated automatically. Now you can have 1...n levels of
indexed beans to your hearts content.

Niall

- Original Message - 
From: "Hubert Rabago" <[EMAIL PROTECTED]>
Subject: Re: Indexed Properties and Lazy List behaviour

> My understanding of the question on the user list was for a form which
> contained an array of beans, instead of just an array of strings.  An
> example would be a form bean containing a list/array of children, each
> with a name, date of birth, daily allowance, etc.  If each child is a
> dyna form, I can use FormDef for each element.



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



Re: Indexed Properties and Lazy List behaviour

2004-10-01 Thread Hubert Rabago
Aside from form field definition, which isn't needed for a lazy form
bean, having a FormDef-backed form would take care of the
formatting/parsing of the data, even i18n.  The form definition &
validation config combo is actually just optional.

My understanding of the question on the user list was for a form which
contained an array of beans, instead of just an array of strings.  An
example would be a form bean containing a list/array of children, each
with a name, date of birth, daily allowance, etc.  If each child is a
dyna form, I can use FormDef for each element.

On Fri, 1 Oct 2004 22:35:15 +0100, Niall Pemberton
<[EMAIL PROTECTED]> wrote:
> I believe I understand the principle of FormDef - you're combining the form
> definition with the validation rules. So is that why you want to nest
> indexed ActionForms rather than any old type of DynaBean? Are you then
> calling the validate() method on each of the indexed ActionForms?
> 
> You're right if you want a properly initialized lazy ActionForm then you
> need to go through the FormBeanConfig's createActionForm method. Having said
> that the default "indexed" property type of LazyDynaBean/LazyValdatorForm is
> an ArrayList - changing that to a LazyDynaBean[] as I showed in the
> CustomLazyBean means there is no need to then initialize that indexed
> property - its done automatically for arrays (CustomLazyBean would
> instantiate a new DynaBean and grows it accordingly).
> 
> From reading the message on the FormDef user list, then just having a
> property which is a CustomLazyBean (rather than CustomLazyBean array) sounds
> like it would work for your user - then only thing then is I don't really
> understand how that then interacts with FormDef - hence my questions at the
> top.
> 
> Sorry, should have got round to giving FormDef a go - but lifes busy :-(
> 
> Niall
> 
> 
> 
> - Original Message -
> From: "Hubert Rabago" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, October 01, 2004 9:43 PM
> Subject: Re: Indexed Properties and Lazy List behaviour
> 
> > But if I need it to be a DynaActionForm subclass, then I'd just use
> > LazyValidatorForm or its subclass, right?  In which case, wouldn't I
> > have to worry about it being properly initialized, as indicated in
> >
> http://struts.apache.org/userGuide/building_controller.html#dyna_action_form_classes
> > ?
> >
> > Someone asked about combining FormDef and LazyBeans to come up with a
> > form containing indexed properties.  FormDef works with
> > DynaActionForms.  If I have an array or list of dyna forms, I can use
> > FormDef with each element.  The problem is coming up with a lazy,
> > non-session-scope implementation.  I came up with the code snippet at
> > https://formdef.dev.java.net/servlets/ReadMsg?list=users&msgNo=12
> > because I assumed that in order to create a proper ActionForm, it
> > needed to go through FormBeanConfig's createActionForm.  Are lazy dyna
> > forms exempt from this requirement?
> >
> >
> > On Fri, 1 Oct 2004 21:14:25 +0100, Niall Pemberton
> > <[EMAIL PROTECTED]> wrote:
> > > It could, although there is no need for it to be an ActionForm - could
> just
> > > be a LazyDynaBean. Having said that, you would probably want to override
> the
> > > default "indexed" type to be a LazyDynaBean array rather than ArrayList
> as
> > > LazyDynaBean doesn't populate Lists, but it does Arrays.
> > >
> > > public class CustomLazyBean extends LazyDynaBean {
> > >
> > >public CustomLazyBean() {
> > > super();
> > >}
> > >
> > >   protected Object defaultIndexedProperty(String name) {
> > >return new CustomLazyBean[0];
> > >}
> > >
> > > }
> > >
> > >  > > type="org.apache.struts.validator.LazyValidatorForm>
> > >  > > type="myPackage.CustomLazyBean[]"/>
> > > 
> > >
> > >
> > > Niall
> > >
> > >
> > >
> > > - Original Message -
> > > From: "Hubert Rabago" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Friday, October 01, 2004 8:07 PM
> > > Subject: Re: Indexed Properties and Lazy List behaviour
> > >
> > > > In 2.3 of StrutsCatalogLazyList, it uses a Lazy*Form flavor to hold an
> > > > indexed property.  Can the indexed property itself an array or list of
> > > > Lazy*Form objects?
> > > >
> > > >  > > > type="org.apache.struts.validator.LazyValidatorForm>
> > > >  > > > type="org.apache.struts.validator.LazyValidatorForm"/>
> > > > 
> > > >

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



Re: File upload but outside session

2004-10-01 Thread Johannes Wolfgang Woger
I experienced the same with commons fileupload. Parsing the request
returns an empty list of fileitems
Wolfgang
Ivan Vasquez wrote:
Hi,
Our users need to upload a file as part of a form submission. First we
used struts-upload FormFile as one of the fields of the ActionForm. It
worked well until we tested it in a Tomcat cluster. 

Since the form is session-scoped, the FormFile has to be serialized for
sessions to be replicated. However we get a NotSerializableException for
org.apache.commons.fileupload.DeferredFileOutputStream
So now I'm trying to keep the file upload outside the session. I tried
using commons fileupload from my Action, but when I parse the
HttpServletRequest I get no items!
Any ideas?
Thank you.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


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


Tiles Defs put problem

2004-10-01 Thread Wylie van den Akker
OK yall, I'm running into a nasty situation where i have a a content 
tile and a navigation tile inside of a layout tile which extends a 
layout tile. The problem is im doing some puts inside the various 
content tiles that the nav tile cant see when i use tiles:importAttribute.

Here is the tiles code

   path="/WEB-INF/jsp/client/memberLayout.jsp">
   
value="/WEB-INF/jsp/client/myAccount/myAccountLayout.jsp"/>
   
value="my_account"
type="string"/>
   
   
   extends="template.client.myAccount.myAccountLayout">
   
value="/WEB-INF/jsp/client/myAccount/myAccount.jsp"/>
   
value="info"
type="string"/>
   

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


Re: Indexed Properties and Lazy List behaviour

2004-10-01 Thread Niall Pemberton
I believe I understand the principle of FormDef - you're combining the form
definition with the validation rules. So is that why you want to nest
indexed ActionForms rather than any old type of DynaBean? Are you then
calling the validate() method on each of the indexed ActionForms?

You're right if you want a properly initialized lazy ActionForm then you
need to go through the FormBeanConfig's createActionForm method. Having said
that the default "indexed" property type of LazyDynaBean/LazyValdatorForm is
an ArrayList - changing that to a LazyDynaBean[] as I showed in the
CustomLazyBean means there is no need to then initialize that indexed
property - its done automatically for arrays (CustomLazyBean would
instantiate a new DynaBean and grows it accordingly).

>From reading the message on the FormDef user list, then just having a
property which is a CustomLazyBean (rather than CustomLazyBean array) sounds
like it would work for your user - then only thing then is I don't really
understand how that then interacts with FormDef - hence my questions at the
top.

Sorry, should have got round to giving FormDef a go - but lifes busy :-(

Niall

- Original Message - 
From: "Hubert Rabago" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, October 01, 2004 9:43 PM
Subject: Re: Indexed Properties and Lazy List behaviour


> But if I need it to be a DynaActionForm subclass, then I'd just use
> LazyValidatorForm or its subclass, right?  In which case, wouldn't I
> have to worry about it being properly initialized, as indicated in
>
http://struts.apache.org/userGuide/building_controller.html#dyna_action_form_classes
> ?
>
> Someone asked about combining FormDef and LazyBeans to come up with a
> form containing indexed properties.  FormDef works with
> DynaActionForms.  If I have an array or list of dyna forms, I can use
> FormDef with each element.  The problem is coming up with a lazy,
> non-session-scope implementation.  I came up with the code snippet at
> https://formdef.dev.java.net/servlets/ReadMsg?list=users&msgNo=12
> because I assumed that in order to create a proper ActionForm, it
> needed to go through FormBeanConfig's createActionForm.  Are lazy dyna
> forms exempt from this requirement?
>
>
> On Fri, 1 Oct 2004 21:14:25 +0100, Niall Pemberton
> <[EMAIL PROTECTED]> wrote:
> > It could, although there is no need for it to be an ActionForm - could
just
> > be a LazyDynaBean. Having said that, you would probably want to override
the
> > default "indexed" type to be a LazyDynaBean array rather than ArrayList
as
> > LazyDynaBean doesn't populate Lists, but it does Arrays.
> >
> > public class CustomLazyBean extends LazyDynaBean {
> >
> >public CustomLazyBean() {
> > super();
> >}
> >
> >   protected Object defaultIndexedProperty(String name) {
> >return new CustomLazyBean[0];
> >}
> >
> > }
> >
> >  > type="org.apache.struts.validator.LazyValidatorForm>
> >  > type="myPackage.CustomLazyBean[]"/>
> > 
> >
> >
> > Niall
> >
> >
> >
> > - Original Message -
> > From: "Hubert Rabago" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Friday, October 01, 2004 8:07 PM
> > Subject: Re: Indexed Properties and Lazy List behaviour
> >
> > > In 2.3 of StrutsCatalogLazyList, it uses a Lazy*Form flavor to hold an
> > > indexed property.  Can the indexed property itself an array or list of
> > > Lazy*Form objects?
> > >
> > >  > > type="org.apache.struts.validator.LazyValidatorForm>
> > >  > > type="org.apache.struts.validator.LazyValidatorForm"/>
> > > 
> > >
> > >
> > > On Fri, 1 Oct 2004 00:17:40 +0100, Niall Pemberton
> > > <[EMAIL PROTECTED]> wrote:
> > > > I've set up this wiki page showing how to use indexed properties and
> > > > implement lazy list behaviour in an ActionForm.
> > > >
> > > > http://wiki.apache.org/struts/StrutsCatalogLazyList
> > > >
> > > > There are three possible solutions to lazy list beviour on that
page -
> > but
> > > > since I'm only using LazyDynaBeans myself, I would appreciate if
anyone
> > > > using either the Commons Collections LazyList or hand cranked lazy
lists
> > > > would take a look to see if what I posted looks right.
> > > >
> > > > Niall
> > > >
> > >
> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To 

RE: validation - mask help

2004-10-01 Thread Peng, Meimin
You're right. I want to do '1-800-Struts-Help' or '1-111-'
I was very confused about the mask values in struts validation. 
clear now... Thanks.

--M

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Beal
Sent: Friday, October 01, 2004 3:26 PM
To: [EMAIL PROTECTED]
Subject: Re: validation - mask help

Peng, Meimin wrote:
> Thanks.
> 
> I just make it work by doing this.
> 
> ^[0-9a-zA-Z-\-]*$
> 
> I couldn't find info on any strut books. But, here is the original
> validation package. Cheers!
> 
> http://jakarta.apache.org/regexp/apidocs/org/apache/regexp/RE.html
> 

That will allow any number of '-' signs to be valid:

'--'
'a---b'
'398-439-4381'
'39123951283'

will all be valid inputs.

Is that what you want, or do you want something like a serial number 
with any size fields, like:

dd---d-ddd
d-dd--ddd
-d-

(where 'd' is any hex digit).

-- Jeff


CONFIDENTIALITY NOTICE:  The information in this e-mail is privileged and
confidential.  Any use, copying or dissemination of any portion of this
e-mail by or to anyone other than the intended recipient(s) is unauthorized.
If you have received this e-mail in error, please reply to sender and delete
it from your system immediately.

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



Re: Help! Iterating through nested hashmap and setting properties

2004-10-01 Thread Niall Pemberton
I don't use the nested tags, but the problem is that the way you've code
them its just going to generate a whole load of  tags with the same
name...

   

(You can verify this easily by looking at the source of the generated html
page)

which means struts will simply try to populate all the values to property
"foo" in your ActionForm - rather than the appropriate "B" bean in your
array of your mapped property A!

The reason this is happening is because you've used the id and name
attributes - so that the nested tags are not doing their *thing* - building
up the nested property name for you. Theoretically if you used something
like the following

 
 
  
 
 


...then it would generate appropriate names for the structure you want,
something like

   
   
   
   

However I said theoretically because I don't think this will work - I
believe BeanUtils will NOT cope with the fact that you effectively trying to
index a mapped property and it will "blow up" on that.

I think the only way this is going to work is if you change your structure
to something that BeanUtils can cope with. Maybe your Map property (i.e. A)
should not contain an ArrayList of B, but contain a bean which has a
property which returns an ArraList of B. I think that would require
something like

   

which BeanUtils could cope with.

Alternatively you could wrap your Map in a LazyDynaMap - which effectively
changes it from a Map to a DynaBean, use JSTL to iterate over the DynaBean
properties and generate the "name" attributes with the EL expression
language - but maybe thats over cooking the goose.

Niall

- Original Message - 
From: "boukovska" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 30, 2004 5:34 PM
Subject: Help! Iterating through nested hashmap and setting properties


> Hi all
> I have a problem with setting the values on a hierarchy of nested
> properties.
> I have an ActionForm which has a property A of type HashMap. A is
> keyed
> on
> Strings, and each value of A is a Collection (ArrayList). This
> collection
> contains objects of type B.
> I am trying to iterate through the keys A, and for each key, iterate
> through
> the corresponding value (which is an ArrayList of B objects). The I
> want to display a property of
> B
> and let the user change it. I am able to display the properties of
> object B
> on the screen. However, for some reason the  tag doesn't
> work -
> the textbox is there, but the input does not populate the form.
> The following is what I am trying to do.
> 
>  
>  
> 
> 
> 
> The problem is that when I enter a new value for foo, nothing happens;
> the
> value of the nested property is not set. Is it possible to iterate
> through a
> HashMap, and let the user update its values?
> I am quite new to Struts, and urgently need
> this to
> work, but no luck. Any help will be really appreciated!
> Thanks
> Danielle



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



Re: Indexed Properties and Lazy List behaviour

2004-10-01 Thread Hubert Rabago
But if I need it to be a DynaActionForm subclass, then I'd just use
LazyValidatorForm or its subclass, right?  In which case, wouldn't I
have to worry about it being properly initialized, as indicated in
http://struts.apache.org/userGuide/building_controller.html#dyna_action_form_classes
?

Someone asked about combining FormDef and LazyBeans to come up with a
form containing indexed properties.  FormDef works with
DynaActionForms.  If I have an array or list of dyna forms, I can use
FormDef with each element.  The problem is coming up with a lazy,
non-session-scope implementation.  I came up with the code snippet at
https://formdef.dev.java.net/servlets/ReadMsg?list=users&msgNo=12
because I assumed that in order to create a proper ActionForm, it
needed to go through FormBeanConfig's createActionForm.  Are lazy dyna
forms exempt from this requirement?


On Fri, 1 Oct 2004 21:14:25 +0100, Niall Pemberton
<[EMAIL PROTECTED]> wrote:
> It could, although there is no need for it to be an ActionForm - could just
> be a LazyDynaBean. Having said that, you would probably want to override the
> default "indexed" type to be a LazyDynaBean array rather than ArrayList as
> LazyDynaBean doesn't populate Lists, but it does Arrays.
> 
> public class CustomLazyBean extends LazyDynaBean {
> 
>public CustomLazyBean() {
> super();
>}
> 
>   protected Object defaultIndexedProperty(String name) {
>return new CustomLazyBean[0];
>}
> 
> }
> 
>  type="org.apache.struts.validator.LazyValidatorForm>
>  type="myPackage.CustomLazyBean[]"/>
> 
> 
> 
> Niall
> 
> 
> 
> - Original Message -
> From: "Hubert Rabago" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, October 01, 2004 8:07 PM
> Subject: Re: Indexed Properties and Lazy List behaviour
> 
> > In 2.3 of StrutsCatalogLazyList, it uses a Lazy*Form flavor to hold an
> > indexed property.  Can the indexed property itself an array or list of
> > Lazy*Form objects?
> >
> >  > type="org.apache.struts.validator.LazyValidatorForm>
> >  > type="org.apache.struts.validator.LazyValidatorForm"/>
> > 
> >
> >
> > On Fri, 1 Oct 2004 00:17:40 +0100, Niall Pemberton
> > <[EMAIL PROTECTED]> wrote:
> > > I've set up this wiki page showing how to use indexed properties and
> > > implement lazy list behaviour in an ActionForm.
> > >
> > > http://wiki.apache.org/struts/StrutsCatalogLazyList
> > >
> > > There are three possible solutions to lazy list beviour on that page -
> but
> > > since I'm only using LazyDynaBeans myself, I would appreciate if anyone
> > > using either the Commons Collections LazyList or hand cranked lazy lists
> > > would take a look to see if what I posted looks right.
> > >
> > > Niall
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Re: validation - mask help

2004-10-01 Thread Jeff Beal
Peng, Meimin wrote:
Thanks.
I just make it work by doing this.
^[0-9a-zA-Z-\-]*$
I couldn't find info on any strut books. But, here is the original
validation package. Cheers!
http://jakarta.apache.org/regexp/apidocs/org/apache/regexp/RE.html
That will allow any number of '-' signs to be valid:
'--'
'a---b'
'398-439-4381'
'39123951283'
will all be valid inputs.
Is that what you want, or do you want something like a serial number 
with any size fields, like:

dd---d-ddd
d-dd--ddd
-d-
(where 'd' is any hex digit).
-- Jeff
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Format Date Question

2004-10-01 Thread Robert Taylor
Well, you could try to use and if it works, then your container
supports it :) else

robert

> -Original Message-
> From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 01, 2004 3:21 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Format Date Question
> 
> 
> I ended up grabbing the strings taglib and wrapped it as follows:
> 
> 
>pattern="dd-MMM-"/>
> 
> 
> This works great.  I don't think we're using the JSTL library yet that
> includes the fn:toUpperCase functionality...  How can I verify that?
> 
> Thanks
> Chris
> 
> -Original Message-
> From: Robert Taylor [mailto:[EMAIL PROTECTED] 
> Sent: Friday, October 01, 2004 3:16 PM
> To: Struts Users Mailing List
> Subject: RE: Format Date Question
> 
> 
> In JSP2.0 you could use JSTL fn:toUpperCase() after you format the date.
> 
> 
> 
> robert
> 
> > -Original Message-
> > From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED]
> > Sent: Friday, October 01, 2004 2:50 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: Format Date Question
> > 
> > 
> > I am using the fmt:formateDate taglib with a pattern in order to 
> > present dates in a specified format.  Ideally we'd like to output our 
> > dates as such 02-APR-2004 instead of 02-Apr-2004.  Is there any 
> > pattern or way I could force format date to output the date in 
> > uppercase?
> > 
> > ___
> > Chris Cranford
> > Programmer/Developer
> > SETECH Inc. & Companies
> > 6302 Fairview Rd, Suite 201
> > Charlotte, NC  28210
> > Phone: (704) 362-9423, Fax: (704) 362-9409, Mobile: (704) 650-1042
> > Email: [EMAIL PROTECTED]
> > 
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



Re: Indexed Properties and Lazy List behaviour

2004-10-01 Thread Niall Pemberton
It could, although there is no need for it to be an ActionForm - could just
be a LazyDynaBean. Having said that, you would probably want to override the
default "indexed" type to be a LazyDynaBean array rather than ArrayList as
LazyDynaBean doesn't populate Lists, but it does Arrays.

public class CustomLazyBean extends LazyDynaBean {

public CustomLazyBean() {
 super();
}

   protected Object defaultIndexedProperty(String name) {
return new CustomLazyBean[0];
}

}


 
 


Niall

- Original Message - 
From: "Hubert Rabago" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, October 01, 2004 8:07 PM
Subject: Re: Indexed Properties and Lazy List behaviour


> In 2.3 of StrutsCatalogLazyList, it uses a Lazy*Form flavor to hold an
> indexed property.  Can the indexed property itself an array or list of
> Lazy*Form objects?
>
>  type="org.apache.struts.validator.LazyValidatorForm>
>  type="org.apache.struts.validator.LazyValidatorForm"/>
> 
>
>
> On Fri, 1 Oct 2004 00:17:40 +0100, Niall Pemberton
> <[EMAIL PROTECTED]> wrote:
> > I've set up this wiki page showing how to use indexed properties and
> > implement lazy list behaviour in an ActionForm.
> >
> > http://wiki.apache.org/struts/StrutsCatalogLazyList
> >
> > There are three possible solutions to lazy list beviour on that page -
but
> > since I'm only using LazyDynaBeans myself, I would appreciate if anyone
> > using either the Commons Collections LazyList or hand cranked lazy lists
> > would take a look to see if what I posted looks right.
> >
> > Niall
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



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



Re: populate html:select

2004-10-01 Thread Wendy Smoak
From: "Anna Kerekes" <[EMAIL PROTECTED]>
> Just the "select" list information is gone, all the textbox information is
preserved on the form.

Thanks for confirming that.

If you want Struts to "remember" the selected items, then you MUST use
Struts tags to display those items,  and  in this
case.

Both of those tags have an array of attributes, and it's not always clear
which ones you need to use in combination to make it do what you want.  The
simplest thing to do would be to change all of your  tags to
 tags.

>From your original note, it looks like you're hard-coding the options as
plain-old-HTML  tags.  Let us know if that's not the case.

-- 
Wendy Smoak


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



File upload but outside session

2004-10-01 Thread Ivan Vasquez
Hi,

Our users need to upload a file as part of a form submission. First we
used struts-upload FormFile as one of the fields of the ActionForm. It
worked well until we tested it in a Tomcat cluster. 

Since the form is session-scoped, the FormFile has to be serialized for
sessions to be replicated. However we get a NotSerializableException for


org.apache.commons.fileupload.DeferredFileOutputStream

So now I'm trying to keep the file upload outside the session. I tried
using commons fileupload from my Action, but when I parse the
HttpServletRequest I get no items!

Any ideas?
Thank you.

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



RE: populate html:select

2004-10-01 Thread Anna Kerekes
Just the "select" list information is gone, all the textbox information is preserved 
on the form.



From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Fri 01/10/2004 3:38 PM
To: Struts Users Mailing List
Subject: Re: populate html:select



From: "Anna Kerekes" <[EMAIL PROTECTED]>
> This case is different from the regular use of html:option because this
> information is never saved to a Collection (since the validation
failed)..
> so this information about the dropdown menu needs has to be retrieved
> from the request scope or some other place

What information-- the contents of the drop-down, or the item(s) the user
selected?

Is *all* of the user input gone if the form fails validation, or just this
select list?

--
Wendy Smoak


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




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

Re: populate html:select

2004-10-01 Thread Wendy Smoak
From: "Anna Kerekes" <[EMAIL PROTECTED]>
> This case is different from the regular use of html:option because this
> information is never saved to a Collection (since the validation
failed)..
> so this information about the dropdown menu needs has to be retrieved
> from the request scope or some other place

What information-- the contents of the drop-down, or the item(s) the user
selected?

Is *all* of the user input gone if the form fails validation, or just this
select list?

-- 
Wendy Smoak


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



RE: Format Date Question

2004-10-01 Thread CRANFORD, CHRIS
I ended up grabbing the strings taglib and wrapped it as follows:


  


This works great.  I don't think we're using the JSTL library yet that
includes the fn:toUpperCase functionality...  How can I verify that?

Thanks
Chris

-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 01, 2004 3:16 PM
To: Struts Users Mailing List
Subject: RE: Format Date Question


In JSP2.0 you could use JSTL fn:toUpperCase() after you format the date.



robert

> -Original Message-
> From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 01, 2004 2:50 PM
> To: '[EMAIL PROTECTED]'
> Subject: Format Date Question
> 
> 
> I am using the fmt:formateDate taglib with a pattern in order to 
> present dates in a specified format.  Ideally we'd like to output our 
> dates as such 02-APR-2004 instead of 02-Apr-2004.  Is there any 
> pattern or way I could force format date to output the date in 
> uppercase?
> 
> ___
> Chris Cranford
> Programmer/Developer
> SETECH Inc. & Companies
> 6302 Fairview Rd, Suite 201
> Charlotte, NC  28210
> Phone: (704) 362-9423, Fax: (704) 362-9409, Mobile: (704) 650-1042
> Email: [EMAIL PROTECTED]
> 
> 

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


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



RE: Format Date Question

2004-10-01 Thread Robert Taylor
In JSP2.0 you could use JSTL fn:toUpperCase() after you format the date.



robert

> -Original Message-
> From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 01, 2004 2:50 PM
> To: '[EMAIL PROTECTED]'
> Subject: Format Date Question
> 
> 
> I am using the fmt:formateDate taglib with a pattern in order to present
> dates in a specified format.  Ideally we'd like to output our dates as such
> 02-APR-2004 instead of 02-Apr-2004.  Is there any pattern or way I could
> force format date to output the date in uppercase?
> 
> ___
> Chris Cranford
> Programmer/Developer
> SETECH Inc. & Companies
> 6302 Fairview Rd, Suite 201
> Charlotte, NC  28210
> Phone: (704) 362-9423, Fax: (704) 362-9409, Mobile: (704) 650-1042 
> Email: [EMAIL PROTECTED]
> 
> 

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



Re: Validator

2004-10-01 Thread Vinicius Carvalho
Daniel H. F. e Silva wrote:
Hi Gabriel,
 When posting to the struts-users list, please, don't use any language other than english.
It is unpolite as just a few dudes here understand portuguese. 
 If you and all other Struts dudes (hey, i'm brazilian too) need help with Struts, join the
funkiest irc channel ever: #funkycodemonkey at irc.darkmyst.org.

Cheers,
Daniel Silva.

--- Gabriel França Campolina <[EMAIL PROTECTED]> wrote:
 

Olá Vinicius,
Poste o seu mapeamento de suas action no struts-config, e o mapeamento
dos seus form, para que eu possa analizar? Verifique o log gerado pelo
seu container web(Tomcat, JBoss etc), em geral eles listam a maioria
dos problemas da sua aplicação.
Gabriel F Campolina
Analista desenvolvedor Java
Stefanini IT Solutions - BH

On Thu, 30 Sep 2004 14:33:51 -0300, Vinicius Carvalho
<[EMAIL PROTECTED]> wrote:
   

Hi there! I've been using Struts for quite sometime, but haven't used
the validator yet.
So I followed the receipt provided by Struts in Action, but got no
success at all.
Here's what I've done
Struts-config is configured for the right plugin
My ActionForm extends ValidatorForm and has no validate() method
Validator-rules.xml:
  

 
   
   
validation.xml:
 
   
 
 

ApplicationResources.properties
validator.errors.required= O campo {0} é obrigatório
prompt.nome=nome
And my jsp file looks like this:

Nome 


Well, what is happening is that after I submit with no values at all,
nothing happens, it forwards to the
correct path. And also, the javascript generated isn't inside a
 block. So it's printed
on the page footer.
Where did I miss?
Thanks
Vinicius
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

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


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

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

 

Well, it does has an error on console, I'm working on that right now, if 
I don't get any success I'll cry for help again ;)

ps: NoSuchMethod Error ...
Gotta check my struts.jar versions
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: populate html:select

2004-10-01 Thread Anna Kerekes
This case is different from the regular use of html:option because this information is 
never saved to a Collection (since the validation failed)..
 
so this information about the dropdown menu needs has to be retrieved from the request 
scope or some other place
 



From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Fri 01/10/2004 2:35 PM
To: Struts Users Mailing List
Subject: Re: populate html:select



From: "Anna Kerekes" <[EMAIL PROTECTED]>
Hello,

1
...
> The problem is that the value selected from the drop-down menu (i.e.
html:select)
> before the "submit" button was hit is NOT preserved on the form

You need to use Struts tags for the options if you expect the framework to
pre-fill the form.  Take a look at  and  which
you can use with various attributes including creating the lists from a
Collection.

--
Wendy Smoak


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




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



Re: Indexed Properties and Lazy List behaviour

2004-10-01 Thread Hubert Rabago
In 2.3 of StrutsCatalogLazyList, it uses a Lazy*Form flavor to hold an
indexed property.  Can the indexed property itself an array or list of
Lazy*Form objects?





On Fri, 1 Oct 2004 00:17:40 +0100, Niall Pemberton
<[EMAIL PROTECTED]> wrote:
> I've set up this wiki page showing how to use indexed properties and
> implement lazy list behaviour in an ActionForm.
> 
> http://wiki.apache.org/struts/StrutsCatalogLazyList
> 
> There are three possible solutions to lazy list beviour on that page - but
> since I'm only using LazyDynaBeans myself, I would appreciate if anyone
> using either the Commons Collections LazyList or hand cranked lazy lists
> would take a look to see if what I posted looks right.
> 
> Niall
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Format Date Question

2004-10-01 Thread CRANFORD, CHRIS
I am using the fmt:formateDate taglib with a pattern in order to present
dates in a specified format.  Ideally we'd like to output our dates as such
02-APR-2004 instead of 02-Apr-2004.  Is there any pattern or way I could
force format date to output the date in uppercase?

___
Chris Cranford
Programmer/Developer
SETECH Inc. & Companies
6302 Fairview Rd, Suite 201
Charlotte, NC  28210
Phone: (704) 362-9423, Fax: (704) 362-9409, Mobile: (704) 650-1042 
Email: [EMAIL PROTECTED]



RE: validation - mask help

2004-10-01 Thread Peng, Meimin
Thanks.

I just make it work by doing this.

^[0-9a-zA-Z-\-]*$

I couldn't find info on any strut books. But, here is the original
validation package. Cheers!

http://jakarta.apache.org/regexp/apidocs/org/apache/regexp/RE.html


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Beal
Sent: Friday, October 01, 2004 1:25 PM
To: [EMAIL PROTECTED]
Subject: Re: validation - mask help

Peng, Meimin wrote:
> Hi, 
> Please help.
> I want to use strut's validation to validate a form field called number.
> This field allows to input text, number and -.
> 
> The code bellows right now is only to validate text and number without
> space.
> How can I make it work with '-'?
> Thanks.
> 
> 
>  property="value"
> depends="mask">
>  key="errors.maskmsg"/>
> 
> 
> mask
> ^[0-9a-zA-Z]*$
> 
>   
>
> --M
> 
> CONFIDENTIALITY NOTICE:  The information in this e-mail is privileged and
> confidential.  Any use, copying or dissemination of any portion of this
> e-mail by or to anyone other than the intended recipient(s) is
unauthorized.
> If you have received this e-mail in error, please reply to sender and
delete
> it from your system immediately.

What about ^-?[0-9a-zA-Z]+$
That will allow you to enter any positive or negative hexadecimal number.

If you want to allow any of the following:

a--
612-6a-3461
--bc391

you'll need to do something different.


CONFIDENTIALITY NOTICE:  The information in this e-mail is privileged and
confidential.  Any use, copying or dissemination of any portion of this
e-mail by or to anyone other than the intended recipient(s) is unauthorized.
If you have received this e-mail in error, please reply to sender and delete
it from your system immediately.

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



RE: WEB-ROOT

2004-10-01 Thread Fogleson, Allen
Normally I would think of it as the root folder of your web archive. For
instance if I have the following

/
---WEB-INF
   ---classes
   ---lib
/images
/docs

/ would be my web-root. 

I think that is what Exadel is using. I haven't used it in over 6 months as
I prefer to just use some basics to do things with struts.

Al


-Original Message-
From: WOLips [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 01, 2004 12:18 PM
To: Struts Users Mailing List
Subject: WEB-ROOT

hello,

this is a part of getting start with Struts with Exadel, any can tell me
what the hell WEB-ROOT is?

i dont find any folder with this name.

Thanks.

Sako.

---

Creating JSP Page Placeholders

Next, let's create three JSP pages and place two of them. We will not write
any code for the

files, but only create them as placeholders so that we can create links to
them in the diagram.

We will write the code a little bit later.

Creating the Page Placeholders

11. Right-click the WEB-ROOT folder in the Package Explorer view and select
New/

Folder.

12. Enter pages for a folder name and click Finish.

We will keep our presentation files in this folder.

13. Right-click the pages folder and select New/New JSP File.

14. Create a JSP file named inputname.jsp . You can do this by typing in
just inputname

into the dialog or inputname.jsp .

15. Right-click the pages folder again to create a JSP file named
greeting.jsp .

Just leave these files blank for now.

16. Now, just inside the WEB-ROOT folder up at the same level as the pages
folder,

create another JSP file and call it index.jsp, leaving it blank as well.

Now we have created all the necessary JSP files.

path /greeting

name GetNameForm

scope request

type sample.GreetingAction

validate 

---


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

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



Re: populate html:select

2004-10-01 Thread Wendy Smoak
From: "Anna Kerekes" <[EMAIL PROTECTED]>
Hello,

1
...
> The problem is that the value selected from the drop-down menu (i.e.
html:select)
> before the "submit" button was hit is NOT preserved on the form

You need to use Struts tags for the options if you expect the framework to
pre-fill the form.  Take a look at  and  which
you can use with various attributes including creating the lists from a
Collection.

-- 
Wendy Smoak


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



populate html:select

2004-10-01 Thread Anna Kerekes
Hello,
 
I am using struts validation to validate an input form.  In my jsp I have:
 


1

2

3

4



The form is filled out.  After I hit the "submit" button Struts validation is run and 
the input form is displayed again with the errors on the form.  The problem is that 
the value selected from the drop-down menu (i.e. html:select) before the "submit" 
button was hit is NOT preserved on the form with the validation errors.  So the user 
has to re-enter whatever value he/she entered before validation.  This is 
annoying..is there a way I can make it so that the hmtl:select could be populated 
with the value that was entered before (if any).  I suspect that this value is stored 
somewhere (in request scope?) but I'm not sure how to get it.

What is strange is that other fields on my input form are preseved (i.e. textboxes, 
and textareas) but not drop-down menus, checkboxes, and file.

any help appreciated,

Anna:)

 


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



Re: validation - mask help

2004-10-01 Thread Jeff Beal
Peng, Meimin wrote:
Hi, 
Please help.
I want to use strut's validation to validate a form field called number.
This field allows to input text, number and -.

The code bellows right now is only to validate text and number without
space.
How can I make it work with '-'?
Thanks.


property="value"
depends="mask">

key="errors.maskmsg"/>


mask
^[0-9a-zA-Z]*$

  
   
--M

CONFIDENTIALITY NOTICE:  The information in this e-mail is privileged and
confidential.  Any use, copying or dissemination of any portion of this
e-mail by or to anyone other than the intended recipient(s) is unauthorized.
If you have received this e-mail in error, please reply to sender and delete
it from your system immediately.
What about ^-?[0-9a-zA-Z]+$
That will allow you to enter any positive or negative hexadecimal number.
If you want to allow any of the following:
a--
612-6a-3461
--bc391
you'll need to do something different.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: xml as a datasource?

2004-10-01 Thread Wendy Smoak
From: "joe a." <[EMAIL PROTECTED]>
> I am in need of a document covering how to use xml as a data source
> with struts.  If someone could post a link I would appreciate it.
> Also, what are the benefits to using xml as a datasource instead of a
> db like mysql?

I don't know that I'd do it in a production site of any size, but I believe
the struts-example webapp uses an XML file for it's user database.

IMO the Struts code shouldn't know where the data is... it should just call
methods on data access objects and get the objects it needs in return.  I
use the J2EE BluePrints DAO pattern because my database isn't one where JDBC
makes sense.  But I could easily replace the underlying datastore with
something else, and never make a change in the Action code.

-- 
Wendy Smoak


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



Re: xml as a datasource?

2004-10-01 Thread James Mitchell
I agree.  At a minimum, use HSSQLDB or something similar.



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

- Original Message - 
From: "Ivan Vasquez" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, October 01, 2004 2:11 PM
Subject: RE: xml as a datasource?


> Also, what are the benefits to using xml as a datasource instead of a
> db like mysql?

Unless you have existing data that cannot be migrated to a relational DB
(or other good reason to keep it as XML), I would advise against using
XML as data source. Simply put, parsing XML is always comparatively
slower to the performance any rdbms can offer.

Ivan.

-Original Message-
From: joe a. [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 01, 2004 2:04 PM
To: [EMAIL PROTECTED]
Subject: xml as a datasource?

I am in need of a document covering how to use xml as a data source
with struts.  If someone could post a link I would appreciate it. 

Thanks,
Joe

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


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





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



RE: xml as a datasource?

2004-10-01 Thread Ivan Vasquez
> Also, what are the benefits to using xml as a datasource instead of a
> db like mysql?

Unless you have existing data that cannot be migrated to a relational DB
(or other good reason to keep it as XML), I would advise against using
XML as data source. Simply put, parsing XML is always comparatively
slower to the performance any rdbms can offer.

Ivan.

-Original Message-
From: joe a. [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 01, 2004 2:04 PM
To: [EMAIL PROTECTED]
Subject: xml as a datasource?

I am in need of a document covering how to use xml as a data source
with struts.  If someone could post a link I would appreciate it. 

Thanks,
Joe

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


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



RE: validator-rules.xml behaviour

2004-10-01 Thread Anna Kerekes
Yes, thanks very much, that worked out great! Anna:)



From: Matt Bathje [mailto:[EMAIL PROTECTED]
Sent: Fri 01/10/2004 10:58 AM
To: Struts Users Mailing List
Subject: Re: validator-rules.xml behaviour



In your validateDate method, are you doing an errors.add before
returning false? If not, no message will be put into the errors object
to be printed out.

In my custom validators, I have the methodParams looks like this:

methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"

and then do this in the method right before returning false:
errors.add(field.getKey(), Resources.getActionMessage(request, va, field));


The other thing may be to try taking the property attribute off of your
html:errors tag.


Matt


Anna Kerekes wrote:
> Hello,
> 
> I am trying to add my own custom validation method to my validator-rules.xml file.
> Here's the new snippet I am adding (Validator is a utility class I wrote to perform 
> extra validation):
> 
> 
> classname="com.onx.usermanager.util.Validator"
>
> method="validateDate"
>
> methodParams="java.lang.Object"
>
> msg="error.date.invalid" />
>
> I have tried debugging my code, the validator does indeed go into my validateDate 
> method and returns a boolean=false.
>
> However, contrary to what I believed was going to happen, it does not throw the 
> error.date.invalid is this not what is supposed to happen by default if the 
> validator returns a false boolean?
>
> I think everything else is fine, in my jsp I have
>
> 
>
> and in my validation.xml:
>
> 
>
> 
>
> and in my ApplicationResources.properties file I have:
>
> error.date.invalid=End Date must be after Start 
> Date
>
> Please help me, any help is appreciated,
>
> you can email me directly at [EMAIL PROTECTED],
>
> thanks,
>
> Anna
>
> p.s. I can do other validations with my xml files fine, it is just this custom one 
> not working...
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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




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

RE: OT - RE: validation - mask help

2004-10-01 Thread Peng, Meimin
Yeah. I know.
But, I can't do anything about it.
It attaches to all my outgoing emails automatically.

-Original Message-
From: Brantley Hobbs [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 01, 2004 12:54 PM
To: Struts Users Mailing List
Subject: OT - RE: validation - mask help

> CONFIDENTIALITY NOTICE:  The information in this e-mail is privileged
and
> confidential.  Any use, copying or dissemination of any portion of
this
> e-mail by or to anyone other than the intended recipient(s) is
> unauthorized.
> If you have received this e-mail in error, please reply to sender and
> delete
> it from your system immediately.


That's hilarious for something being posted to a public mailing
list..

Brantley


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

CONFIDENTIALITY NOTICE:  The information in this e-mail is privileged and
confidential.  Any use, copying or dissemination of any portion of this
e-mail by or to anyone other than the intended recipient(s) is unauthorized.
If you have received this e-mail in error, please reply to sender and delete
it from your system immediately.

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



Re: Presetting Form Data

2004-10-01 Thread Tom Holmes Jr.
Thanks for the info.
"membership_address.do" is the Action from the JSP page when I do my 
submit.  If I call the this Action with validate=true, then it's going 
to call the FormBean Validate method first, and if anything is required, 
then it would get errors and return to the calling page with a bunch of 
error codes even though the user wasn't there the first time.  I've seen 
other people ask that question before.

The Action you suggest I call, is this a new Action altogether with no 
validation?  This action could either get data from the database, or if 
that is already done, then I could just take the data from the MemberDTO 
and put that into the formbean as you suggest, then I would 
automatically forward to the Membership_Address.jsp page.  Is that 
correct, or do you mean go to the same Action as when  I do a submit.

So, I won't be a bother to the list, can you re-direct me to the 
struts-example web-app?  Can I download that app from the Struts 
web-site directly?

Thanks again for the help.
Tom
Wendy Smoak wrote:
From: "Tom Holmes Jr." <[EMAIL PROTECTED]>
So, the way I started to handle this is call the JSP page directly with
the form.  I got the 'member' object from session and I populated the
value field as follows:

Would this be appropriate?  It works except for my checkboxes.

No.  Set those values in the Action code, before forwarding to the JSP.
The struts-example webapp shows how to do this-- look for the calls to
BeanUtils.copyProperties(...) that copy the values back and forth from the
DTO to the form bean.
Don't forget to write a reset method to handle those checkboxes.

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


xml as a datasource?

2004-10-01 Thread joe a.
I am in need of a document covering how to use xml as a data source
with struts.  If someone could post a link I would appreciate it. 
Also, what are the benefits to using xml as a datasource instead of a
db like mysql?

Thanks,
Joe

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



OT - RE: validation - mask help

2004-10-01 Thread Brantley Hobbs
> CONFIDENTIALITY NOTICE:  The information in this e-mail is privileged
and
> confidential.  Any use, copying or dissemination of any portion of
this
> e-mail by or to anyone other than the intended recipient(s) is
> unauthorized.
> If you have received this e-mail in error, please reply to sender and
> delete
> it from your system immediately.


That's hilarious for something being posted to a public mailing
list..

Brantley


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



validation - mask help

2004-10-01 Thread Peng, Meimin
Hi, 
Please help.
I want to use strut's validation to validate a form field called number.
This field allows to input text, number and -.

The code bellows right now is only to validate text and number without
space.
How can I make it work with '-'?
Thanks.






mask
^[0-9a-zA-Z]*$

  
   
--M

CONFIDENTIALITY NOTICE:  The information in this e-mail is privileged and
confidential.  Any use, copying or dissemination of any portion of this
e-mail by or to anyone other than the intended recipient(s) is unauthorized.
If you have received this e-mail in error, please reply to sender and delete
it from your system immediately.

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



Re: Presetting Form Data

2004-10-01 Thread Wendy Smoak
From: "Tom Holmes Jr." <[EMAIL PROTECTED]>
> So, the way I started to handle this is call the JSP page directly with
> the form.  I got the 'member' object from session and I populated the
> value field as follows:
> 
> Would this be appropriate?  It works except for my checkboxes.

No.  Set those values in the Action code, before forwarding to the JSP.

The struts-example webapp shows how to do this-- look for the calls to
BeanUtils.copyProperties(...) that copy the values back and forth from the
DTO to the form bean.

Don't forget to write a reset method to handle those checkboxes.

-- 
Wendy Smoak


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



Presetting Form Data

2004-10-01 Thread Tom Holmes Jr.
I'm a newbie struts, but I am making progress.  As I've worked on my 
application, I am learning more and it also causes me to ask more questions.

So, I have a login form, a loginAction, LoginBean, and it all works 
great.  The LoginBean calls out to the database, passing in a username 
to the database I either get a user back or I don't.  If I do, get a 
user back from the database, I load up all the information into my 
MemberDTO.  Then I put this 'member' into a session so I have throughout 
my web-application ... simple enough.

I want the user to be able to call a JSP page with a form so they will 
be able to edit their user information.  Hence, various fields, 
checkboxes, text boxes, text areas, or options will have to be defaulted 
to with data from the user.  There seem to be a number of ways to handle 
this, and I want to do what is what is appropriate for Struts.

So, the way I started to handle this is call the JSP page directly with 
the form.  I got the 'member' object from session and I populated the 
value field as follows:

Would this be appropriate?  It works except for my checkboxes.

I was reading elsewhere on this site, that I could create a "setup" 
method in my formBean (MemberAddressForm).  I'm guessing that it is here 
that I would get the information from the 'member' object (MemberDTO) 
and initialize the data into the formBean?  Is that what I need to do?

If I'm not hitting the mark, can someone please tell me the appropriate 
way to prepopulate data into the form with data from the database?

Thanks for any help.  It is VERY much appreciated!
  Tom
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [PROBLEM] Refreshing ResultList,

2004-10-01 Thread Ruben Cepeda
Mark,
Thanks but I thogth of redirect.  Below I am now including the action 
mappings.


 
 


 
 


*
Ruben Cepeda
[EMAIL PROTECTED]
*


Original Message Follows
From: Mark Lowe <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: [PROBLEM] Refreshing ResultList,
Date: Fri, 1 Oct 2004 16:32:56 +0200
Try

Mark
On 1 Oct 2004, at 15:38, Ruben Cepeda wrote:
Hello everyone,
I am adding new information to a table and the redirecting via an action 
forward to an action that display the content of the table.  This work 
perfectly the first time I add something to the table.  After the first 
adding when I am forward to view all the entry to the table I am only the 
old entry are show.  The new entries to the table are show on the database 
so is no that they are not getting through to the database.  Also if I hint 
refresh on the broswer about a dozen times the view displays the new 
entries to the table.  I turn off the query caching in my pool handler but 
that has no effect does anyone have a clue about this problem.



*
Ruben Cepeda
[EMAIL PROTECTED]
*
_
On the road to retirement? Check out MSN Life Events for advice on how to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement

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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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


Re: Inicialiazing a LookupDispachAction

2004-10-01 Thread Michael McGrady
I believe, Wendy, he is asking how LookupDispatchAction gets the name of 
his button if he does not somehow assign some value to a name, such as  
"method=button.delete" or "method=delete".

I gave you the answer to this, Gabriel.  There is a "huge" structure 
built around LookupDispatchAction which requires the coordination of 
struts-config.xml, ApplicationResources.properties, a Map hardcoded into 
your subclass of LookupDispatchAction, a reverse Map created from the 
mentioned properties file, and the related proper response page coding.  
There is no simple name=value setup.  If you want something simpler, try 
the Wiki link I mentioned.

Michael McGrady
Gabriel França Campolina wrote:
Hi Folks,
I'd like know more about this, if I don't set a value to variable
method, what method will call in my action???
ex in my url:
   
   if I do:
.../produto.do?method= //how call my methods to
lookupdispachaction(method=button.delete or method=delete)

  if I don't pass any value how method in my action is call
Thanks,
On Fri, 01 Oct 2004 08:44:47 -0700, Michael McGrady
<[EMAIL PROTECTED]> wrote:
 

Hi, Gabriel,
In order to cover multiple images on submits, LookupDispatchAction does
the following in order:
1 Find the mapping attirbute parameter in order to find the value of
the visual representation, e.g. "Delete It".  This requires, of course
that this be the value of the name attribute, e.g., typically "method".
2.  Creates a reverse map of all the keys in the application resource
property file for the user's locale.  Imagine that!  This is then used
to get the key in the property files for the value, e.g.,
"button.delete", for "Delete It".  Honest!  More to do, however:
3.  We then use the value of this key to determine from a map we have
hard coded into our Action class what the method is, e.g.,
"button.delete" is the key for "delete".
4.  Calls the method, e.g. "delete" by reflection.
This requires that you coordinate the page, the struts-config.xml, the
property file, a Map in your Action class and your methods in your
Action class.  You sure you want to do all that as well as incur the
need to have a reverse map to your properties file?  Check out
   http://wiki.apache.org/struts/StrutsCatalogVariousButtonSolutions
for a link to four simpler and lighter options.
Michael McGrady
   



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


Re: Inicialiazing a LookupDispachAction

2004-10-01 Thread Wendy Smoak
From: "Gabriel França Campolina" <[EMAIL PROTECTED]>
> I'd like know more about this, if I don't set a value to variable
> method, what method will call in my action???
> ex in my url:
>  if I do:
> .../produto.do?method= //how call my methods to
> lookupdispachaction(method=button.delete or method=delete)
>if I don't pass any value how method in my action is call

There is an 'unspecified' method that you can override to provide a behavior
when the parameter is missing from the request.  I usually just have it
return 'mapping.getInputForward()'.

-- 
Wendy Smoak


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



Re: Inicialiazing a LookupDispachAction

2004-10-01 Thread Gabriel França Campolina
Hi Folks,

I'd like know more about this, if I don't set a value to variable
method, what method will call in my action???

ex in my url:

if I do:
 .../produto.do?method= //how call my methods to
lookupdispachaction(method=button.delete or method=delete)

   if I don't pass any value how method in my action is call


Thanks,

On Fri, 01 Oct 2004 08:44:47 -0700, Michael McGrady
<[EMAIL PROTECTED]> wrote:
> Hi, Gabriel,
> 
> In order to cover multiple images on submits, LookupDispatchAction does
> the following in order:
> 
>  1 Find the mapping attirbute parameter in order to find the value of
> the visual representation, e.g. "Delete It".  This requires, of course
> that this be the value of the name attribute, e.g., typically "method".
> 
>  2.  Creates a reverse map of all the keys in the application resource
> property file for the user's locale.  Imagine that!  This is then used
> to get the key in the property files for the value, e.g.,
> "button.delete", for "Delete It".  Honest!  More to do, however:
> 
>  3.  We then use the value of this key to determine from a map we have
> hard coded into our Action class what the method is, e.g.,
> "button.delete" is the key for "delete".
> 
>  4.  Calls the method, e.g. "delete" by reflection.
> 
> This requires that you coordinate the page, the struts-config.xml, the
> property file, a Map in your Action class and your methods in your
> Action class.  You sure you want to do all that as well as incur the
> need to have a reverse map to your properties file?  Check out
> 
> http://wiki.apache.org/struts/StrutsCatalogVariousButtonSolutions
> 
> for a link to four simpler and lighter options.
> 
> Michael McGrady
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-- 
Gabriel França Campolina
Tel: 9202-8320

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



Re: WEB-ROOT

2004-10-01 Thread James Mitchell
I do not use Exadel, but it sounds fairly similar to what MyEclipse does.

Default using 'New Project' will give you something like this...

+-/myproject
  +-/Java Source
  +-/Web Root
+-/images
+-/WEB-INF
  +-lib




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

- Original Message -
From: "WOLips" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, October 01, 2004 12:18 PM
Subject: WEB-ROOT


> hello,
>
> this is a part of getting start with Struts with Exadel, any can tell me
> what the hell WEB-ROOT is?
>
> i dont find any folder with this name.
>
> Thanks.
>
> Sako.
>
> --
-
>
> Creating JSP Page Placeholders
>
> Next, let's create three JSP pages and place two of them. We will not
write
> any code for the
>
> files, but only create them as placeholders so that we can create links to
> them in the diagram.
>
> We will write the code a little bit later.
>
> Creating the Page Placeholders
>
> 11. Right-click the WEB-ROOT folder in the Package Explorer view and
select
> New/
>
> Folder.
>
> 12. Enter pages for a folder name and click Finish.
>
> We will keep our presentation files in this folder.
>
> 13. Right-click the pages folder and select New/New JSP File.
>
> 14. Create a JSP file named inputname.jsp . You can do this by typing in
> just inputname
>
> into the dialog or inputname.jsp .
>
> 15. Right-click the pages folder again to create a JSP file named
> greeting.jsp .
>
> Just leave these files blank for now.
>
> 16. Now, just inside the WEB-ROOT folder up at the same level as the pages
> folder,
>
> create another JSP file and call it index.jsp, leaving it blank as well.
>
> Now we have created all the necessary JSP files.
>
> path /greeting
>
> name GetNameForm
>
> scope request
>
> type sample.GreetingAction
>
> validate 
>
> --
-
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



Wiki Link for Images

2004-10-01 Thread Michael McGrady
My apologies to those who tried to get to www.michaelmcgrady.com since 
last night.  (I was amazed at the volume, actually.)  The host, 
www.lunarpages.com, was having JSP issues and now has the issues resolved.

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


WEB-ROOT

2004-10-01 Thread WOLips
hello,

this is a part of getting start with Struts with Exadel, any can tell me
what the hell WEB-ROOT is?

i dont find any folder with this name.

Thanks.

Sako.

---

Creating JSP Page Placeholders

Next, let's create three JSP pages and place two of them. We will not write
any code for the

files, but only create them as placeholders so that we can create links to
them in the diagram.

We will write the code a little bit later.

Creating the Page Placeholders

11. Right-click the WEB-ROOT folder in the Package Explorer view and select
New/

Folder.

12. Enter pages for a folder name and click Finish.

We will keep our presentation files in this folder.

13. Right-click the pages folder and select New/New JSP File.

14. Create a JSP file named inputname.jsp . You can do this by typing in
just inputname

into the dialog or inputname.jsp .

15. Right-click the pages folder again to create a JSP file named
greeting.jsp .

Just leave these files blank for now.

16. Now, just inside the WEB-ROOT folder up at the same level as the pages
folder,

create another JSP file and call it index.jsp, leaving it blank as well.

Now we have created all the necessary JSP files.

path /greeting

name GetNameForm

scope request

type sample.GreetingAction

validate 

---


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



RE: Scheduling Actions

2004-10-01 Thread Barnett, Brian W.
Try Quartz. I posted yesterday regarding Quartz and Struts. Weibe de Jong
replied with some excellent ideas on how to use the Quartz scheduler with
Struts and included some nice code to get you started.

-Original Message-
From: Ciaran Hanley [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 01, 2004 6:49 AM
To: Struts User Mailing List
Subject: OT: Scheduling Actions

Hi,

 

I have several actions in my struts webapp that require a user to manually
click a form button to carry out the action, e.g. update database. I want to
be able to schedule these actions to be carried out at a set time daily
without any user intervention. I am looking for suggestions on what ways
that this can be accomplished?

 

Thanks,

Ciaran

  _  


Ciaran Hanley

Software Development

Sentenial Ltd.

Tel: 00 353 (1) 629 2141
Fax: 00 353 (1) 629 2147

Mob: 00 353 (0) 87 916 4943
E-Mail: [EMAIL PROTECTED]

Web: www.sentenial.ie   

  

  _  

Notice:

The information in this e-mail is intended only for the named recipient and
may be privileged or confidential. If you are not the intended recipient,
please notify us immediately and do not copy, distribute or take any action
based on this e-mail. Sentenial Ltd will not be liable for direct, special,
indirect or consequential loss as a result of any virus being passed on or
arising from alteration of the contents of this e-mail by a third party. All
e-mail sent to or from this address is subject to archive and review by
someone other than the intended recipient. Any opinions expressed in this
e-mail are those of the individual and not necessarily those of Sentenial
Ltd. All Personal Data acquired by Sentenial Ltd for which the Data
Protection Act 1998 ("the Act") applies shall be stored and processed in
accordance with the Act. Should you wish to check, amend or remove the
details of your Personal Data held by Sentenial Ltd, please contact us at
 [EMAIL PROTECTED]

 

 


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



Re: Inicialiazing a LookupDispachAction

2004-10-01 Thread Michael McGrady
Hi, Gabriel,
In order to cover multiple images on submits, LookupDispatchAction does 
the following in order:


 1 Find the mapping attirbute parameter in order to find the value of 
the visual representation, e.g. "Delete It".  This requires, of course 
that this be the value of the name attribute, e.g., typically "method".

 2.  Creates a reverse map of all the keys in the application resource 
property file for the user's locale.  Imagine that!  This is then used 
to get the key in the property files for the value, e.g., 
"button.delete", for "Delete It".  Honest!  More to do, however:

 3.  We then use the value of this key to determine from a map we have 
hard coded into our Action class what the method is, e.g., 
"button.delete" is the key for "delete". 

 4.  Calls the method, e.g. "delete" by reflection.

This requires that you coordinate the page, the struts-config.xml, the 
property file, a Map in your Action class and your methods in your 
Action class.  You sure you want to do all that as well as incur the 
need to have a reverse map to your properties file?  Check out

http://wiki.apache.org/struts/StrutsCatalogVariousButtonSolutions
for a link to four simpler and lighter options.
Michael McGrady
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Inicialiazing a LookupDispachAction

2004-10-01 Thread Barnett, Brian W.
Turn off validation in struts-config by setting validate="false". Then you
call validate manually in your save method, which is typically where you
would want validation code.

-struts-config snippet-










-save method in action class-
public ActionForward save(ActionMapping mapping, 
ActionForm form,
HttpServletRequest request, 
HttpServletResponse response) throws ServiceException {

ActionErrors errors;
MyForm myForm = (MyForm) form;
errors = myForm.validate(mapping, request);

if (errors.isEmpty()) {
// save to database ...
return mapping.findForward(Constants.SAVED);
} else {
saveErrors(request, errors);
return mapping.findForward(Constants.VALIDATIONERROR);
}
}

-Original Message-
From: Gabriel França Campolina [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 01, 2004 6:44 AM
To: [EMAIL PROTECTED]
Subject: Inicialiazing a LookupDispachAction

Hi Folks,

I have a action-mapping that mapping a Action named ProdutoAction that
extends LookupDispachAction and have 3 methods into: start, delete,
save. I'd like inicialized my form  with values of my dataBase request
the method start. With ActionForm I can do, but I was used the
DynaValidatorForm and Validator. And When I request the url
.../produto.do?method=start, it validate my form and call the my input
attribute, How I call a method in LookupDispachAction without
validate?

Thanks,

Sorry Daniel, I don't more post my messages in portuguese

-- 
Gabriel França Campolina
Tel: 9202-8320

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

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



How inicialized the DynaValidatorForm with a LookUpDispachAction

2004-10-01 Thread Gabriel França Campolina
Hi folks,

How inicialized the DynaValidatorForm with a LookUpDispachAction?can't?

-- 
Gabriel França Campolina
Tel: 9202-8320

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



Re: validator-rules.xml behaviour

2004-10-01 Thread Matt Bathje
In your validateDate method, are you doing an errors.add before 
returning false? If not, no message will be put into the errors object 
to be printed out.

In my custom validators, I have the methodParams looks like this:
methodParams="java.lang.Object,
   org.apache.commons.validator.ValidatorAction,
   org.apache.commons.validator.Field,
   org.apache.struts.action.ActionMessages,
   javax.servlet.http.HttpServletRequest"
and then do this in the method right before returning false:
errors.add(field.getKey(), Resources.getActionMessage(request, va, field));
The other thing may be to try taking the property attribute off of your 
html:errors tag.

Matt
Anna Kerekes wrote:
Hello,
 
I am trying to add my own custom validation method to my validator-rules.xml file.
Here's the new snippet I am adding (Validator is a utility class I wrote to perform extra validation):
 


classname="com.onx.usermanager.util.Validator"
method="validateDate"
methodParams="java.lang.Object"
msg="error.date.invalid" />
I have tried debugging my code, the validator does indeed go into my validateDate 
method and returns a boolean=false.
However, contrary to what I believed was going to happen, it does not throw the 
error.date.invalid is this not what is supposed to happen by default if the 
validator returns a false boolean?
I think everything else is fine, in my jsp I have 


and in my validation.xml:


and in my ApplicationResources.properties file I have:
error.date.invalid=End Date must be after Start Date
Please help me, any help is appreciated,
you can email me directly at [EMAIL PROTECTED],
thanks,
Anna
p.s. I can do other validations with my xml files fine, it is just this custom one not 
working...
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


RE: new to Struts

2004-10-01 Thread Varley, Roger

> 
> $2,900 or $29.00 ?
> 

try googling for references to I18N.



__
This e-mail and the documents attached are confidential and intended 
solely for the addressee; it may also be privileged. If you receive this 
e-mail in error, please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos Origin group 
liability cannot be triggered for the message content. Although the 
sender endeavours to maintain a computer virus-free network, the sender 
does not warrant that this transmission is virus-free and will not be 
liable for any damages resulting from any virus transmitted.
__

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



Re: validator-rules.xml behaviour

2004-10-01 Thread Niall Pemberton
Take a look in FieldChecks to see how other validators work:

http://cvs.apache.org/viewcvs.cgi/jakarta-struts/src/share/org/apache/struts/validator/


Having said that, returning "false" just stops the validation from
proceeding for that field, you need to add an error message - looks to me
like you need to add ActionMessages to your validateDate() method

Niall

- Original Message - 
From: "Anna Kerekes" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, October 01, 2004 3:42 PM
Subject: validator-rules.xml behaviour


Hello,

I am trying to add my own custom validation method to my validator-rules.xml
file.
Here's the new snippet I am adding (Validator is a utility class I wrote to
perform extra validation):



I have tried debugging my code, the validator does indeed go into my
validateDate method and returns a boolean=false.

However, contrary to what I believed was going to happen, it does not throw
the error.date.invalid is this not what is supposed to happen by
default if the validator returns a false boolean?

I think everything else is fine, in my jsp I have



and in my validation.xml:





and in my ApplicationResources.properties file I have:

error.date.invalid=End Date must be after Start
Date

Please help me, any help is appreciated,

you can email me directly at [EMAIL PROTECTED],

thanks,

Anna

p.s. I can do other validations with my xml files fine, it is just this
custom one not working...


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





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



multichoice struts-config mapping

2004-10-01 Thread [EMAIL PROTECTED]
I try to get multichoice options value by a select form.And in y struts-config I use 
DynaActionForm getting an array of String as parameter property.But It's always give 
me null.
How to map it?





Libero ADSL: navighi gratis a 1.2 Mega, senza canone e costi di attivazione.
Abbonati subito su http://www.libero.it



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



validator-rules.xml behaviour

2004-10-01 Thread Anna Kerekes
Hello,
 
I am trying to add my own custom validation method to my validator-rules.xml file.
Here's the new snippet I am adding (Validator is a utility class I wrote to perform 
extra validation):
 


I have tried debugging my code, the validator does indeed go into my validateDate 
method and returns a boolean=false.

However, contrary to what I believed was going to happen, it does not throw the 
error.date.invalid is this not what is supposed to happen by default if the 
validator returns a false boolean?

I think everything else is fine, in my jsp I have 



and in my validation.xml:





and in my ApplicationResources.properties file I have:

error.date.invalid=End Date must be after Start Date

Please help me, any help is appreciated,

you can email me directly at [EMAIL PROTECTED],

thanks,

Anna

p.s. I can do other validations with my xml files fine, it is just this custom one not 
working...


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



RE: new to Struts

2004-10-01 Thread McCormack, Chris
$2,900 or $29.00 ?

-Original Message-
From: Sandro Duarte [mailto:[EMAIL PROTECTED]
Sent: 01 October 2004 15:33
To: Struts Users Mailing List
Subject: Re: new to Struts


I use MyEclipse, wich costs me $29,00 a year and do the job beautifully

Sandro


On Fri, 1 Oct 2004 15:57:12 +0200, WOLips <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> is Exadel Struts Studio plug-in for Eclipse a good tool?
> 
> do you use another one?
> 
> Exadel Pro costs $400 what is the good free alternative?
> 
> Regards.
> 
> Sako.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-- 
Sandro Duarte
Analista de Sistemas
TRE-RS/SI

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


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



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



Re: new to Struts

2004-10-01 Thread Sandro Duarte
I use MyEclipse, wich costs me $29,00 a year and do the job beautifully

Sandro


On Fri, 1 Oct 2004 15:57:12 +0200, WOLips <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> is Exadel Struts Studio plug-in for Eclipse a good tool?
> 
> do you use another one?
> 
> Exadel Pro costs $400 what is the good free alternative?
> 
> Regards.
> 
> Sako.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-- 
Sandro Duarte
Analista de Sistemas
TRE-RS/SI

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



Re: [PROBLEM] Refreshing ResultList,

2004-10-01 Thread Mark Lowe
Try

Mark
On 1 Oct 2004, at 15:38, Ruben Cepeda wrote:
Hello everyone,
I am adding new information to a table and the redirecting via an 
action forward to an action that display the content of the table.  
This work perfectly the first time I add something to the table.  
After the first adding when I am forward to view all the entry to the 
table I am only the old entry are show.  The new entries to the table 
are show on the database so is no that they are not getting through to 
the database.  Also if I hint refresh on the broswer about a dozen 
times the view displays the new entries to the table.  I turn off the 
query caching in my pool handler but that has no effect does anyone 
have a clue about this problem.



*
Ruben Cepeda
[EMAIL PROTECTED]
*
_
On the road to retirement? Check out MSN Life Events for advice on how 
to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement

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

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


Re: Error Message for Struts Validation

2004-10-01 Thread Caroline Jen
Thanks for your help.  The explanation is very clear.
--- Matt Bathje <[EMAIL PROTECTED]> wrote:

> I've never used the  attribute myself, but I
> think when you do, you 
> need to specify the key, and a name attribute for
> which validation the 
> message applies to. So in your case it would be:
> 
> 
> 
> You may also need to specify a bundle and resource
> attribute, but I 
> don't think so in your case.
> 
> The error message you are seeing (null is required)
> is from the default 
> error message. When you use the default error
> message, you need to 
> specify replacement values for the error message
> template. If you look 
> in your application.properties, you should have a
> bunch of errors. 
> lines, for each standard validator. For example, you
> should have a line 
> like:
> 
> errors.required={0} is required.
> 
> for the required validator. The {0} is what needs a
> replacement. To 
> define it in your validator, you use:
> 
> 
> OR (for struts 1.2.x)
> 
> 
> In these cases though, request.page should be
> defined in 
> application.properties as:
> 
> request.page=Page
> 
> then, when the error prints, it will print as "Page
> is required."
> 
> For me at least, this is a lot more handy than using
> , because you 
> can use the same label to print out the prompt and
> the error message.
> 
> Hopefully I explained this well enough...
> 
> Matt
> 
> 
> 
> Caroline Jen wrote:
> 
> > I use the validation.xml to validate the
> properties in
> > my form bean.  The validation works; but, the
> error
> > messages do not work as I expected.
> > 
> > While I have customized error messages prepared,
> the
> > error message displayed in the browser window for
> my
> > intentional violation are like:
> > . null is required
> > . null is required
> > 
> > I also wonder how to show error messages if there
> are
> > more than one validation check for a certain
> property.
> >  For example, depends="required,mask".
> > 
> > For example, in my validation.xml, I have:
> > [CODE]
> >   
> >   > property="document"
> > depends="required">
> >
> >  
> >   > property="title"
> > depends="required">
> >
> >  
> >   
> > [/CODE]
> > 
> > In my web.xml, I have:
> > [CODE]
> >   
> > application
> >
> resources.application
> >   
> > [/CODE]
> > 
> > and the application.properties file is in the
> >
>
C:\jakarta-tomcat-5.0.27\webapps\AppName\WEB-INF\classes\resources
> > directory.
> > 
> > In the application.properties, I have:
> > 
> > [CODE]
> > request.page=The requested page is not provided.
> > insert.tile=The title of the requested page must
> not
> > be left blank.
> > [/CODE]
> > 
> > 
> > 
> > ___
> > Do you Yahoo!?
> > Declare Yourself - Register online to vote today!
> > http://vote.yahoo.com
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


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

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



RE: Scheduling Actions

2004-10-01 Thread Robert Taylor
Factor the business logic out of your Actions into some generic business classes
and run a separate process to handle this type of automation. There is no
need to have it coupled to your web application. 

Look into Quarts, Timer/TimerTask, etc...


robert

> -Original Message-
> From: Ciaran Hanley [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 01, 2004 8:49 AM
> To: Struts User Mailing List
> Subject: OT: Scheduling Actions
> 
> 
> Hi,
> 
>  
> 
> I have several actions in my struts webapp that require a user to manually
> click a form button to carry out the action, e.g. update database. I want to
> be able to schedule these actions to be carried out at a set time daily
> without any user intervention. I am looking for suggestions on what ways
> that this can be accomplished?
> 
>  
> 
> Thanks,
> 
> Ciaran
> 
>   _  
> 
> 
> Ciaran Hanley
> 
> Software Development
> 
> Sentenial Ltd.
> 
> Tel: 00 353 (1) 629 2141
> Fax: 00 353 (1) 629 2147
> 
> Mob: 00 353 (0) 87 916 4943
> E-Mail: [EMAIL PROTECTED]
> 
> Web: www.sentenial.ie   
> 
>   
> 
>   _  
> 
> Notice:
> 
> The information in this e-mail is intended only for the named recipient and
> may be privileged or confidential. If you are not the intended recipient,
> please notify us immediately and do not copy, distribute or take any action
> based on this e-mail. Sentenial Ltd will not be liable for direct, special,
> indirect or consequential loss as a result of any virus being passed on or
> arising from alteration of the contents of this e-mail by a third party. All
> e-mail sent to or from this address is subject to archive and review by
> someone other than the intended recipient. Any opinions expressed in this
> e-mail are those of the individual and not necessarily those of Sentenial
> Ltd. All Personal Data acquired by Sentenial Ltd for which the Data
> Protection Act 1998 ("the Act") applies shall be stored and processed in
> accordance with the Act. Should you wish to check, amend or remove the
> details of your Personal Data held by Sentenial Ltd, please contact us at
>  [EMAIL PROTECTED]
> 
>  
> 
>  
> 
> 

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



new to Struts

2004-10-01 Thread WOLips
Hello,

is Exadel Struts Studio plug-in for Eclipse a good tool?

do you use another one? 

Exadel Pro costs $400 what is the good free alternative?

Regards.

Sako.


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



Re: OT: Scheduling Actions

2004-10-01 Thread DGraham

http://java-source.net/open-source/job-schedulers

Dennis






"Ciaran Hanley"
<[EMAIL PROTECTED]> 
10/01/2004 08:49 AM



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





To
"Struts User Mailing
List" <[EMAIL PROTECTED]>


cc



Subject
OT: Scheduling Actions








Hi,

 

I have several actions in my struts webapp that require a user to manually
click a form button to carry out the action, e.g. update database. I want
to
be able to schedule these actions to be carried out at a set time daily
without any user intervention. I am looking for suggestions on what ways
that this can be accomplished?

 

Thanks,

Ciaran

  _  


Ciaran Hanley

Software Development

Sentenial Ltd.

Tel: 00 353 (1) 629 2141
Fax: 00 353 (1) 629 2147

Mob: 00 353 (0) 87 916 4943
E-Mail: [EMAIL PROTECTED]

Web: www.sentenial.ie   

  

  _  

Notice:

The information in this e-mail is intended only for the named recipient
and
may be privileged or confidential. If you are not the intended recipient,
please notify us immediately and do not copy, distribute or take any action
based on this e-mail. Sentenial Ltd will not be liable for direct, special,
indirect or consequential loss as a result of any virus being passed on
or
arising from alteration of the contents of this e-mail by a third party.
All
e-mail sent to or from this address is subject to archive and review by
someone other than the intended recipient. Any opinions expressed in this
e-mail are those of the individual and not necessarily those of Sentenial
Ltd. All Personal Data acquired by Sentenial Ltd for which the Data
Protection Act 1998 ("the Act") applies shall be stored and processed
in
accordance with the Act. Should you wish to check, amend or remove the
details of your Personal Data held by Sentenial Ltd, please contact us
at
 [EMAIL PROTECTED]

 

 


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

Re: OT: Scheduling Actions

2004-10-01 Thread fzlists
There might be some debate about this, but a daemon thread would be my suggestion.

I know the rule about no spawning threads in a servlet container, but I've always 
thought that rule was a bit nebulous... Does it literally mean don't spwan any 
threads, or does it mean don't spawn any threads to service requests?  I think the 
former is correct... A daemon thread isn't attached to any given request, so I don't 
see where there is a problem.

Practically speaking, I do this in a major app here at work, running under Tomcat as 
well as Websphere, with no ill effect.  If your app is architected in such a way that 
the code you need to execute on a schedule is not part of the Actions (which chances 
are it shouldn't be), then your all set: just have the daemon thread instantiate 
whatever it needs and do what you need.  If you really need to execute the Action, you 
can use standard net code to go ahead and execute an appropriately-constructing 
request.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Fri, October 1, 2004 8:49 am, Ciaran Hanley said:
> Hi,
> 
> 
> 
> I have several actions in my struts webapp that require a user to manually
> click a form button to carry out the action, e.g. update database. I want
> to
> be able to schedule these actions to be carried out at a set time daily
> without any user intervention. I am looking for suggestions on what ways
> that this can be accomplished?
> 
> 
> 
> Thanks,
> 
> Ciaran
> 
>   _
> 
> 
> Ciaran Hanley
> 
> Software Development
> 
> Sentenial Ltd.
> 
> Tel: 00 353 (1) 629 2141
> Fax: 00 353 (1) 629 2147
> 
> Mob: 00 353 (0) 87 916 4943
> E-Mail: [EMAIL PROTECTED]
> 
> Web: www.sentenial.ie 
> 
> 
> 
>   _
> 
> Notice:
> 
> The information in this e-mail is intended only for the named recipient
> and
> may be privileged or confidential. If you are not the intended recipient,
> please notify us immediately and do not copy, distribute or take any
> action
> based on this e-mail. Sentenial Ltd will not be liable for direct,
> special,
> indirect or consequential loss as a result of any virus being passed on or
> arising from alteration of the contents of this e-mail by a third party.
> All
> e-mail sent to or from this address is subject to archive and review by
> someone other than the intended recipient. Any opinions expressed in this
> e-mail are those of the individual and not necessarily those of Sentenial
> Ltd. All Personal Data acquired by Sentenial Ltd for which the Data
> Protection Act 1998 ("the Act") applies shall be stored and processed in
> accordance with the Act. Should you wish to check, amend or remove the
> details of your Personal Data held by Sentenial Ltd, please contact us at
>  [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> 

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

[PROBLEM] Refreshing ResultList,

2004-10-01 Thread Ruben Cepeda
Hello everyone,
I am adding new information to a table and the redirecting via an action 
forward to an action that display the content of the table.  This work 
perfectly the first time I add something to the table.  After the first 
adding when I am forward to view all the entry to the table I am only the 
old entry are show.  The new entries to the table are show on the database 
so is no that they are not getting through to the database.  Also if I hint 
refresh on the broswer about a dozen times the view displays the new entries 
to the table.  I turn off the query caching in my pool handler but that has 
no effect does anyone have a clue about this problem.



*
Ruben Cepeda
[EMAIL PROTECTED]
*
_
On the road to retirement? Check out MSN Life Events for advice on how to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement

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


Re: OT: Scheduling Actions

2004-10-01 Thread David Cassidy

you might want to look at Timer objects ...

http://java.sun.com/j2se/1.4.2/docs/api/java/util/Timer.html

havn't used them, but if they are there ...



   
   
  "Ciaran Hanley"  
   
  <[EMAIL PROTECTED]To:   "Struts User Mailing List" 
<[EMAIL PROTECTED]>  
  ntenial.ie>  cc: 
   
   Subject:  OT: Scheduling Actions
   
  01/10/2004 13:49 
   
  Please respond to
   
  "Struts Users
   
  Mailing List"
   
   
   
   
   




Hi,



I have several actions in my struts webapp that require a user to manually
click a form button to carry out the action, e.g. update database. I want to
be able to schedule these actions to be carried out at a set time daily
without any user intervention. I am looking for suggestions on what ways
that this can be accomplished?



Thanks,

Ciaran

  _


Ciaran Hanley

Software Development

Sentenial Ltd.

Tel: 00 353 (1) 629 2141
Fax: 00 353 (1) 629 2147

Mob: 00 353 (0) 87 916 4943
E-Mail: [EMAIL PROTECTED]

Web: www.sentenial.ie 



  _

Notice:

The information in this e-mail is intended only for the named recipient and
may be privileged or confidential. If you are not the intended recipient,
please notify us immediately and do not copy, distribute or take any action
based on this e-mail. Sentenial Ltd will not be liable for direct, special,
indirect or consequential loss as a result of any virus being passed on or
arising from alteration of the contents of this e-mail by a third party. All
e-mail sent to or from this address is subject to archive and review by
someone other than the intended recipient. Any opinions expressed in this
e-mail are those of the individual and not necessarily those of Sentenial
Ltd. All Personal Data acquired by Sentenial Ltd for which the Data
Protection Act 1998 ("the Act") applies shall be stored and processed in
accordance with the Act. Should you wish to check, amend or remove the
details of your Personal Data held by Sentenial Ltd, please contact us at
 [EMAIL PROTECTED]










--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



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



RE: Indexed Properties and Lazy List behaviour

2004-10-01 Thread David Suarez
Your other solutions are awesome.  I use the "hand crank..." one since I
didn't know of the lazylist at the time.  The code looks right.

Thanks for posting the other "lazy" solutions, I'll try them in the
future.

Regards...djsuarez

-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 30, 2004 6:18 PM
To: Struts Users Mailing List
Subject: Indexed Properties and Lazy List behaviour

I've set up this wiki page showing how to use indexed properties and
implement lazy list behaviour in an ActionForm.

http://wiki.apache.org/struts/StrutsCatalogLazyList

There are three possible solutions to lazy list beviour on that page -
but
since I'm only using LazyDynaBeans myself, I would appreciate if anyone
using either the Commons Collections LazyList or hand cranked lazy lists
would take a look to see if what I posted looks right.

Niall






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



OT: Scheduling Actions

2004-10-01 Thread Ciaran Hanley
Hi,

 

I have several actions in my struts webapp that require a user to manually
click a form button to carry out the action, e.g. update database. I want to
be able to schedule these actions to be carried out at a set time daily
without any user intervention. I am looking for suggestions on what ways
that this can be accomplished?

 

Thanks,

Ciaran

  _  


Ciaran Hanley

Software Development

Sentenial Ltd.

Tel: 00 353 (1) 629 2141
Fax: 00 353 (1) 629 2147

Mob: 00 353 (0) 87 916 4943
E-Mail: [EMAIL PROTECTED]

Web: www.sentenial.ie   

  

  _  

Notice:

The information in this e-mail is intended only for the named recipient and
may be privileged or confidential. If you are not the intended recipient,
please notify us immediately and do not copy, distribute or take any action
based on this e-mail. Sentenial Ltd will not be liable for direct, special,
indirect or consequential loss as a result of any virus being passed on or
arising from alteration of the contents of this e-mail by a third party. All
e-mail sent to or from this address is subject to archive and review by
someone other than the intended recipient. Any opinions expressed in this
e-mail are those of the individual and not necessarily those of Sentenial
Ltd. All Personal Data acquired by Sentenial Ltd for which the Data
Protection Act 1998 ("the Act") applies shall be stored and processed in
accordance with the Act. Should you wish to check, amend or remove the
details of your Personal Data held by Sentenial Ltd, please contact us at
 [EMAIL PROTECTED]

 

 



[TEST]

2004-10-01 Thread James Neville
Test
This e-mail is confidential. If you have received it in error, you are on notice 
of its status. Please notify us immediately by reply e-mail and then delete this 
message from your system. Please do not copy it or use it for any purposes, or 
disclose its contents to any other person; to do so could be a breach of confidence. 
Thank you for your cooperation. Please contact +44 (0) 20 72037300 or email [EMAIL 
PROTECTED] if you need assistance.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Inicialiazing a LookupDispachAction

2004-10-01 Thread Gabriel França Campolina
Hi Folks,

I have a action-mapping that mapping a Action named ProdutoAction that
extends LookupDispachAction and have 3 methods into: start, delete,
save. I'd like inicialized my form  with values of my dataBase request
the method start. With ActionForm I can do, but I was used the
DynaValidatorForm and Validator. And When I request the url
.../produto.do?method=start, it validate my form and call the my input
attribute, How I call a method in LookupDispachAction without
validate?

Thanks,

Sorry Daniel, I don't more post my messages in portuguese

-- 
Gabriel França Campolina
Tel: 9202-8320

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



Re: ImageButtonBean & LookupDispatchAction

2004-10-01 Thread Michael McGrady
Good!  Just so you know, I discovered that in my haste I had made a few 
mistakes on the last option.  They are fixed.  I will now change the 
source code to reflect that.

Ben wrote:
Thanks Michael. I believe I have all the necessary information to move forward.
Thanks again.
-Ben
On Fri, 01 Oct 2004 01:01:21 -0700, Michael McGrady
<[EMAIL PROTECTED]> wrote:
 

Hi, Ben,
If you follow the link I gave you, all the source code is available at
the demonstration page under the link (in a light green) called "view
code".  It is just to the right of the CRUD options in each of the four
solutions.  If that is not enough, please let me know.  That solution
has the following code provided: (1) DispatchUtil , (2)
LogonDispatchUtilForm, which is nothing critical, but I wanted to give
out all the necessary code to run the example, (3) struts-config.xml,
and (4) OH, AHA!  I see your point!  Okay, I added as (4)
LogonDispatchUtilAction, that was just an oversight.  Sorry!  You can
get it there.
Michael

Ben wrote:
   

Can you show me the source code for the LogonDispatchUtilAction?
Thanks
On Fri, 01 Oct 2004 00:03:36 -0700, Michael McGrady
<[EMAIL PROTECTED]> wrote:
 

If you want to try out a war that I just created on this, with the code
that is running, try
http://wiki.apache.org/struts/StrutsCatalogVariousButtonSolutions , Ben.

Ben wrote:

   

Thanks everyone, especially Mike for providing me with a very
comprehensive answer. I am evaluating the suggested solutions.
On Thu, 30 Sep 2004 09:03:39 -0600, Carlos Cajina - Hotmail
<[EMAIL PROTECTED]> wrote:

 

Hi Ben.
 I see that Mike McGrady already pointed you in the right direction :^)
I've tried the solution he proposes with execelent results... if you have
any further questions or doubts I'll be glad to help.
Regards,
 Carlos
"Premature optimization is the root of all evil."
Donald E. Knuth
- Original Message -
From: "Ben" <[EMAIL PROTECTED]>
To: "Struts" <[EMAIL PROTECTED]>
Sent: Wednesday, September 29, 2004 11:58 PM
Subject: ImageButtonBean & LookupDispatchAction


   

Hi
Anyone knows any example on how to use ImageButtonBean in
LookupDispatchAction? Or can someone give me an example
implementation? Thanks.
Regards,
Ben

 

   

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


 

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



 

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

   

-
 

   

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


 

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

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

 


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


Probs with ActionError -> generate a blank page after request

2004-10-01 Thread daniel weiss
 
Hi folks,

i got some problems with ActionErrors from Struts. If i tried to add some
Error, i will get a blank page without some error msg.

code snipplet:

ActionErrors errors = validate(form,request,mapping);
errors.add("foobar", new ActionError("abc12345"));

System.out.println("error status --- : "  + errors.isEmpty());

if (!errors.isEmpty()) {
  saveErrors(request, errors);
  return mapping.getInputForward();
}



i used the module config with multiple modular struts-application. first, i have 
to send my request to my Action (myAction.do) and init something. If some exception
comes up, i would add this as ActionError and show an error on the jsp.
Here my action config:



 

I've learned to set the synonym input for my forward, otherwise i will get also 
a blank page without a error msg. 

My main problem is the result of a blank page without some errors. Look up at my 
example code
and action config.

I'll be thankfull for help
Greetings
geramaya







___
Do you Yahoo!?
Express yourself with Y! Messenger! Free. Download now. 
http://messenger.yahoo.com

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



Re: ImageButtonBean & LookupDispatchAction

2004-10-01 Thread Ben
Thanks Michael. I believe I have all the necessary information to move forward.

Thanks again.

-Ben

On Fri, 01 Oct 2004 01:01:21 -0700, Michael McGrady
<[EMAIL PROTECTED]> wrote:
> Hi, Ben,
> 
> If you follow the link I gave you, all the source code is available at
> the demonstration page under the link (in a light green) called "view
> code".  It is just to the right of the CRUD options in each of the four
> solutions.  If that is not enough, please let me know.  That solution
> has the following code provided: (1) DispatchUtil , (2)
> LogonDispatchUtilForm, which is nothing critical, but I wanted to give
> out all the necessary code to run the example, (3) struts-config.xml,
> and (4) OH, AHA!  I see your point!  Okay, I added as (4)
> LogonDispatchUtilAction, that was just an oversight.  Sorry!  You can
> get it there.
> 
> Michael
> 
> 
> 
> Ben wrote:
> 
> >Can you show me the source code for the LogonDispatchUtilAction?
> >
> >Thanks
> >
> >
> >On Fri, 01 Oct 2004 00:03:36 -0700, Michael McGrady
> ><[EMAIL PROTECTED]> wrote:
> >
> >
> >>If you want to try out a war that I just created on this, with the code
> >>that is running, try
> >>http://wiki.apache.org/struts/StrutsCatalogVariousButtonSolutions , Ben.
> >>
> >>
> >>
> >>Ben wrote:
> >>
> >>
> >>
> >>>Thanks everyone, especially Mike for providing me with a very
> >>>comprehensive answer. I am evaluating the suggested solutions.
> >>>
> >>>
> >>>On Thu, 30 Sep 2004 09:03:39 -0600, Carlos Cajina - Hotmail
> >>><[EMAIL PROTECTED]> wrote:
> >>>
> >>>
> >>>
> >>>
> Hi Ben.
> 
>    I see that Mike McGrady already pointed you in the right direction :^)
> I've tried the solution he proposes with execelent results... if you have
> any further questions or doubts I'll be glad to help.
> 
> Regards,
> 
>    Carlos
> 
> "Premature optimization is the root of all evil."
> Donald E. Knuth
> - Original Message -
> From: "Ben" <[EMAIL PROTECTED]>
> To: "Struts" <[EMAIL PROTECTED]>
> Sent: Wednesday, September 29, 2004 11:58 PM
> Subject: ImageButtonBean & LookupDispatchAction
> 
> 
> 
> 
> 
> >Hi
> >
> >Anyone knows any example on how to use ImageButtonBean in
> >LookupDispatchAction? Or can someone give me an example
> >implementation? Thanks.
> >
> >Regards,
> >Ben
> >
> >
> >
> >
> 
> 
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> >
> >
> >>>-
> >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >>-
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >
> >-
> 
> 
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Re: The best pratice to developer a login system

2004-10-01 Thread liooil

Just to avoid future issue (in case of a change in your
authorization/authentication system) , may i suggest to use standards in
your interface implementation (whatever is your final system)...
I'm thinking about JAAS.

Have a look on this paper :

http://theserverside.com/news/thread.tss?thread_id=14754

New Article on JAAS Authorization & Authentication Posted on TSS
Posted By: Nitin Bharti on July 31, 2002 @ 12:35 PM
"Using JAAS for Authorization & Authentication", by Dan Moore, explains
how to use the Java Authentication and Authorization API (JAAS). It
plugs JAAS into the Struts framework and shows how to use JAAS to secure
resources in an MVC architecture; It will first examine the JAAS
infrastructure and then look at integration with Struts. 




___[ Pub ]
Inscrivez-vous gratuitement sur Tandaime, Le site de rencontres !
http://rencontre.rencontres.com/index.php?origine=4

___[ Pub ]
Inscrivez-vous gratuitement sur Tandaime, Le site de rencontres !
http://rencontre.rencontres.com/index.php?origine=4


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



Re: CheckBoxes in tag

2004-10-01 Thread Ratnakar Parakala
Hi,
 
Why don't you use  for the same We are using it for similar 
functionality.
 
Ratnakar

Wendy Smoak <[EMAIL PROTECTED]> wrote:
From: "Shabada, Gnaneshwer" 
> You are right. But like I did in my previous snippet, if I setup my
> deleteAction mapping to deleteForm in my config file I would think the
> searchResults.jsp should by default take deleteForm as its ActionForm and
> recognize memberList in the iterate tag. I don't know why that didn't
work.

If it had any chance of working, it would be because you enclosed the
iterate within tags. That's how , ,
etc., work, they look to the enclosing form tag to get the form bean
(informatin about which comes from struts-config.xml)

But I don't think was ever intended to work that way to
begin with, so you have to explicitly tell it where your Collection is. I
haven't used it in years, possibly ever... I use exclusively.

> Is there any type of setting in config file that I put deleteForm as
default
> Form for searchresults.jsp. I know I have it mapped for the deleteAction.

You can set it up, but it's the tag that makes it work.

-- 
Wendy Smoak


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



-
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!

DynaActionForm and multichoice options

2004-10-01 Thread [EMAIL PROTECTED]
Hi All
I try to get multichoice options by a select box.I'm using DynaActionForm and I 
declared a String array as a trasfering form parameter in struts-config.
But actually in the Action class I cannot see it.
What is the correct syntax to declare action and form mapping  in struts-config for 
this purpose?
Please help
Regards 




Libero ADSL: navighi gratis a 1.2 Mega, senza canone e costi di attivazione.
Abbonati subito su http://www.libero.it



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



Re: ImageButtonBean & LookupDispatchAction

2004-10-01 Thread Michael McGrady
Hi, Ben,
If you follow the link I gave you, all the source code is available at 
the demonstration page under the link (in a light green) called "view 
code".  It is just to the right of the CRUD options in each of the four 
solutions.  If that is not enough, please let me know.  That solution 
has the following code provided: (1) DispatchUtil , (2) 
LogonDispatchUtilForm, which is nothing critical, but I wanted to give 
out all the necessary code to run the example, (3) struts-config.xml, 
and (4) OH, AHA!  I see your point!  Okay, I added as (4) 
LogonDispatchUtilAction, that was just an oversight.  Sorry!  You can 
get it there.

Michael
Ben wrote:
Can you show me the source code for the LogonDispatchUtilAction?
Thanks
On Fri, 01 Oct 2004 00:03:36 -0700, Michael McGrady
<[EMAIL PROTECTED]> wrote:
 

If you want to try out a war that I just created on this, with the code
that is running, try
http://wiki.apache.org/struts/StrutsCatalogVariousButtonSolutions , Ben.

Ben wrote:
   

Thanks everyone, especially Mike for providing me with a very
comprehensive answer. I am evaluating the suggested solutions.
On Thu, 30 Sep 2004 09:03:39 -0600, Carlos Cajina - Hotmail
<[EMAIL PROTECTED]> wrote:
 

Hi Ben.
  I see that Mike McGrady already pointed you in the right direction :^)
I've tried the solution he proposes with execelent results... if you have
any further questions or doubts I'll be glad to help.
Regards,
  Carlos
"Premature optimization is the root of all evil."
Donald E. Knuth
- Original Message -
From: "Ben" <[EMAIL PROTECTED]>
To: "Struts" <[EMAIL PROTECTED]>
Sent: Wednesday, September 29, 2004 11:58 PM
Subject: ImageButtonBean & LookupDispatchAction

   

Hi
Anyone knows any example on how to use ImageButtonBean in
LookupDispatchAction? Or can someone give me an example
implementation? Thanks.
Regards,
Ben
 

   

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

 

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


 


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

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

 


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


Re: ImageButtonBean & LookupDispatchAction

2004-10-01 Thread Ben
Can you show me the source code for the LogonDispatchUtilAction?

Thanks


On Fri, 01 Oct 2004 00:03:36 -0700, Michael McGrady
<[EMAIL PROTECTED]> wrote:
> If you want to try out a war that I just created on this, with the code
> that is running, try
> http://wiki.apache.org/struts/StrutsCatalogVariousButtonSolutions , Ben.
> 
> 
> 
> Ben wrote:
> 
> >Thanks everyone, especially Mike for providing me with a very
> >comprehensive answer. I am evaluating the suggested solutions.
> >
> >
> >On Thu, 30 Sep 2004 09:03:39 -0600, Carlos Cajina - Hotmail
> ><[EMAIL PROTECTED]> wrote:
> >
> >
> >>Hi Ben.
> >>
> >>I see that Mike McGrady already pointed you in the right direction :^)
> >>I've tried the solution he proposes with execelent results... if you have
> >>any further questions or doubts I'll be glad to help.
> >>
> >>Regards,
> >>
> >>Carlos
> >>
> >>"Premature optimization is the root of all evil."
> >>Donald E. Knuth
> >>- Original Message -
> >>From: "Ben" <[EMAIL PROTECTED]>
> >>To: "Struts" <[EMAIL PROTECTED]>
> >>Sent: Wednesday, September 29, 2004 11:58 PM
> >>Subject: ImageButtonBean & LookupDispatchAction
> >>
> >>
> >>
> >>>Hi
> >>>
> >>>Anyone knows any example on how to use ImageButtonBean in
> >>>LookupDispatchAction? Or can someone give me an example
> >>>implementation? Thanks.
> >>>
> >>>Regards,
> >>>Ben
> >>>
> >>>
> >>
> >>
> >>>-
> >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >>>
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> >
> >
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Re: ImageButtonBean & LookupDispatchAction

2004-10-01 Thread Ben
Thanks everyone, especially Mike for providing me with a very
comprehensive answer. I am evaluating the suggested solutions.


On Thu, 30 Sep 2004 09:03:39 -0600, Carlos Cajina - Hotmail
<[EMAIL PROTECTED]> wrote:
> Hi Ben.
> 
> I see that Mike McGrady already pointed you in the right direction :^)
> I've tried the solution he proposes with execelent results... if you have
> any further questions or doubts I'll be glad to help.
> 
> Regards,
> 
> Carlos
> 
> "Premature optimization is the root of all evil."
> Donald E. Knuth
> - Original Message -
> From: "Ben" <[EMAIL PROTECTED]>
> To: "Struts" <[EMAIL PROTECTED]>
> Sent: Wednesday, September 29, 2004 11:58 PM
> Subject: ImageButtonBean & LookupDispatchAction
> 
> > Hi
> >
> > Anyone knows any example on how to use ImageButtonBean in
> > LookupDispatchAction? Or can someone give me an example
> > implementation? Thanks.
> >
> > Regards,
> > Ben
> 
> 
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

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



Re: ImageButtonBean & LookupDispatchAction

2004-10-01 Thread Michael McGrady
If you want to try out a war that I just created on this, with the code 
that is running, try 
http://wiki.apache.org/struts/StrutsCatalogVariousButtonSolutions , Ben.

Ben wrote:
Thanks everyone, especially Mike for providing me with a very
comprehensive answer. I am evaluating the suggested solutions.
On Thu, 30 Sep 2004 09:03:39 -0600, Carlos Cajina - Hotmail
<[EMAIL PROTECTED]> wrote:
 

Hi Ben.
   I see that Mike McGrady already pointed you in the right direction :^)
I've tried the solution he proposes with execelent results... if you have
any further questions or doubts I'll be glad to help.
Regards,
   Carlos
"Premature optimization is the root of all evil."
Donald E. Knuth
- Original Message -
From: "Ben" <[EMAIL PROTECTED]>
To: "Struts" <[EMAIL PROTECTED]>
Sent: Wednesday, September 29, 2004 11:58 PM
Subject: ImageButtonBean & LookupDispatchAction
   

Hi
Anyone knows any example on how to use ImageButtonBean in
LookupDispatchAction? Or can someone give me an example
implementation? Thanks.
Regards,
Ben
 

   

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

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

 


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