RE: XML based ApplicationResources.properties

2001-08-14 Thread nicolas bonvin

you should also take a look a at the Mapper framework contributed by
Francois Rey and available at http://husted.com/about/struts/mapper.zip
it includes an i18n package that contains a TMXResourceBundle.

while a TMX file is rather abstract at first sight, as Loren mentioned it
has the advantage of being supported by the translation industry, and can
also be transformed via XSL from a more readble vocabulary if needed (or the
other way around)

TMX vocabulary:
  
  
New
  
  
Nouveau
  
  

could be transformed from:
  
  
New
  
  
Nouveau
  
  

and vice versa...

nicolas b.

> -Original Message-
> From: Halvorson, Loren [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 14, 2001 3:56 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: XML based ApplicationResources.properties
>
>
> With regard to a standard XML format for localized data, have you taken a
> look at TMX?  http://lisa.org/tmx/
> We wrote a very simple MessageResources subclass that reads TMX
> files via a
> SAX parser.  The advantage is that there are lots of translation tools out
> there to translate TMX file.
>
> -Original Message-
> From: Mills, Theo [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 14, 2001 8:03 AM
> To: '[EMAIL PROTECTED]'
> Subject: XML based ApplicationResources.properties
>
>
> Are there any plans to turn the ApplicationResources.properties into an
> actual xml document?
>
> It would make the file more manageable, IMO, by conforming to a standard
> found in other struts "property" files, such as struts-config, and allow
> messages to be returned as actual html or text blocks, rather
> than a single
> string. Additionally, you could add other properties to the error message,
> such as an error logging function (logging=yes, or something) that could
> append the messages to a log file.
>
> Or better yet, you could put all multilingual versions of an error in a
> single place, such as:
>
> 
>
>authenticationError
>
>
>   
>   english
>   
>   
>Try again!
>   
>
>
>   
>   german
>   
>   
>Nein! Das geht aber nicht!
>   
>
> 
>
> -Theo Mills
>




referring to hashmap elements with struts...

2001-08-14 Thread Andy Goldstein

Hi there.

I have an Action that's tossing a very nice HashMap object at a Struts page.
Is there a way (using Struts) that I can refer to the individual values in
the Hash by using their keys?  I see how I would iterate (although I'm not
crazy about this functionality), but that's not what I'm interested in: I
need to be able to use the key/value pairs.  After all, isn't that what
makes a Hash so helpful?

Thanks,

Andy
[EMAIL PROTECTED]





Re: Acronym BMO ( Session Beans )What does it stand 4.

2001-08-14 Thread kuma.cra

Well never mind i'll stick to Business Method Objects for now.BMO
Cheers Chukie

Troy Hart wrote:

> I'm not sure, but I would guess Business Model Objects.
>
> On Tuesday 14 August 2001 02:21 am, you wrote:
> > Hi i didn't get a response or a suggestion regarding BMO (Session Beans
> > ) Thus i would like to know what this acronym stands for . I have come
> > across a UML class diagram that connects a BMO TO a DAO (Data Access
> > Object ) via Query / Update.Has or does BMO SOMETHING TO DO WITH
> > Business Method Objects to hazard a guess as it is within the Business
> > Layer of the UML Class Diagram
> >
> > Cheers Chuckie




How do I set the default Forward in action form

2001-08-14 Thread BinhMinh Nguyen

Hi,
I run across a little problem I dont know how to
solve, please help.

I have three buttons: OK, RESET, and EDIT and one
text-field. Under normal case, after entering the text
in the text-field, user will click on one of the three
buttons,And  I handle the button-events as followed in
my Action.java class:
 
String btnOK= request.getParameter("OK");
String btnRESET = request.getParameter("RESET");
String btnEDIT  = request.getParameter("EDIT");


if(btnOK != null)
{   
   return return mapping.findForward("submit");
}

if(btnRESET != null)
{   
   return return mapping.findForward("reset");
}
if(btnEDIT != null)
{   
   return return mapping.findForward("edit");
}



Here come my question:

If the user enter the text in the text-field and press
the  key (ascii=13) on the key board when the
text-filed still has the focus, ie. none of the button
is clicked, How do I force the form to submit? ie.
behave as the button OK is clicked.

For now, I have the blank screen browsed up.

Thank you very much.

Binh




__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



How do you format a date using struts?

2001-08-14 Thread Bob Byron

How do you format a date using struts?

I have a list of orders that I am logic:iterate'ing
through.  At one point I write out a date, but it is
not in the format I want.  I am using the following
code:

  


How do I reformat the deliveryDate?  I want to use
something similar to the following, but I am not sure
how to implement it in struts.
<%=
DateFormat.getDateInstance(DateFormat.SHORT).format(orders[interator].getExpDttm());
%>

Thank You,
Bob Byron


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



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

2001-08-14 Thread Eduardo Fujii



To anyone interested,
 
It looks like I got rid of the errors when 
initializing Tomcat. I had to copy struts.jar, and all the commons-*.jar to 
Tomcat's lib directory.
Is this how it is supposed to be ? I like the idea 
of separating Struts' stuff from the container (in my case Tomcat).
 
If anyone knows why that happens, please let me 
know.
 
 
Eduardo FujiiMonterey Institute of International Studies400 Pacific 
Street Room D-203Monterey, CA 93940(831) 647-6679[EMAIL PROTECTED]

  - Original Message - 
  From: 
  [EMAIL PROTECTED] 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, August 13, 2001 4:25 
  PM
  Subject: Parsing error processing 
  resource path /WEB-INF/struts-config.xml
  Hi guys,Could someone help me on this ? I downloaded 
  the nightly build (binarydistribution jakarta-struts_20010813.tar.gz), and 
  all other requirements(jaxp 1.1, xalan j.2.2_D6, and xerces that comes 
  with it). Copied filestruts-blank.war to Tomcat's webapps directory and 
  restarted Tomcat.Tomcat spills error messages like these:Begin 
  event threw exceptionjava.lang.ClassNotFoundException: 
  org.apache.struts.action.ActionMapping. (trace)cannot load 
  servlet name: action: Parsing error processing resource 
  path/WEB-INF/structs-config.xmlI copied jaxp.jar, xerces.jar, 
  xalan.jar, and crimson.jar to Tomcat's libdirectory. Could someone tell me 
  what else is missing ?Thanks,


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

2001-08-14 Thread Larry Maturo

Hi Dave,

Interesting.  I hadn't thought about that at all.
You are correct. I already do that for p3, since
I need to populate it with the correct data so
the user does not have to re-enter data they have
already entered.  I just never considered that
I can do that for any page from any page.  Wow!

Thank you.

-- Larry


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




But you can get a copy of the form for p2, in your p3 action, set the value
in
p2's form and save it in either request or session scope before you forward
to
it.  That way struts will find it and use it, instead of creating a new one,
and
you have access to your value in p2's action.

cheers,

Dave



"Larry Maturo" <[EMAIL PROTECTED]> on 08/14/2001
05:58:50 PM

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

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



Hi Dave,

You wrote:
You can set the value of the hidden field from your action, if it is part of
your form bean.

Actually, I need to set it in p3, which has an entirely different form than
p2, so setting it in p3's form bean would not help.

You wrote:
Also, do you have an action prior to displaying p2 which fills the form etc?

Yes.  It's what uses the value to fill in what get's use by the p2 jsp.  All
3 of my action classes goes to a database to get info.  What is being passed
is the key I need to get the correct info out of the db.

-- Larry


Inserting a simple one may make it easier to do what you're trying to do...

Cheers,

Dave





"Larry Maturo" <[EMAIL PROTECTED]> on 08/14/2001
05:27:19 PM

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

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



Hi Dave,

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

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

-- Larry


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




Larry,

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

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

Cheers,

Dave





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

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

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



I'll be glad to supply more info.

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

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

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

Any ideas on how to handle this?

-- Larry Maturo




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

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

Cheers,

Dave




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

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

To:   [EM

RE: ABSOLUTELY WORLDS NO. 1 ..MEGA !

2001-08-14 Thread Greg Lehane

please remove me from this mail list

-Original Message-
From: ENTERTAINMENT [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 3:44 PM
To: MEGA-ENTERTAINMENT
Subject: ABSOLUTELY WORLDS NO. 1 ..MEGA !


Dear Ladies & Gentlemen,

Welcome to the GREATEST SEX SHOW on the ENTIRE NET !

We now offer you to ENTER the world´s No.1 voted SEX-SERVER on the WEB !


By far the largest and most incredible content of LIVE SEX is now served
to users WORLDWIDE!

EVERYTHING is offered 100% ANONOMOUSLY & you don´t need to sign-up or
have a creditcard ... The way it should be ! 

TO PLUGIN and get access to something you with guarantee NEVER have seen
before, use ANY of the servers listed below !

Enjoy the BEST!

Yours truly,
MEGA-ENTERTAINMENT 

To get EASY ACCESS & PLUGIN to the LARGEST CONTENT SEXSERVER on the NET,
use any of the 10 SERVERS listed here: 

1.  http://coolestweb.fadlan.com 
2.  http://coolestweb.paklinks.com
3.  http://kickme.to/coolestweb
4.  http://siam.to/coolestweb
5.  http://coolestweb.hk.st
6.  http://coolestweb.hotresume.net
7.  http://coolestweb.isCool.net
8.  http://arriveat.com/coolestwebs
9.  http://coolestweb.x1.nl
10. http://www.actioncenter.com/c/coolestweb

To get EASY ACCESS & PLUGIN to the LESBIAN IBIZA BABES, use any of the
10 SERVERS listed here:

1.  http://coolestbabes.fadlan.com
2.  http://coolestbabes.paklinks.com
3.  http://kickme.to/coolestbabes
4.  http://siam.to/coolestbabes
5.  http://coolestbabes.hk.st
6.  http://coolestbabes.hotresume.net
7.  http://coolestbabes.isCool.net
8.  http://arriveat.com/coolestbabes
9.  http://coolestbabes.x1.nl
10. http://www.actioncenter.com/c/coolestbabes






Geary's template library in Struts

2001-08-14 Thread Ryan Kannegiesser

I know that the template taglib in Struts 1.0 was contributed by
David Geary and is based on his JavaWorld article.  In his recently
published Advanced JSP book, he presents an enhanced version of the
library.  He added some interesting features, like the ability to
nest and extend regions, and put region definitions in a separate
file.  Are there plans to incorporate his updates into the Struts
template library?

As an aside, I am also aware of the Tiles library that is supposed to
be added to Struts (though I didn't see it in the TO DO list)...will
this replace the template library?

Thanks!
Ryan

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



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

2001-08-14 Thread dhay



But you can get a copy of the form for p2, in your p3 action, set the value in
p2's form and save it in either request or session scope before you forward to
it.  That way struts will find it and use it, instead of creating a new one, and
you have access to your value in p2's action.

cheers,

Dave



"Larry Maturo" <[EMAIL PROTECTED]> on 08/14/2001
05:58:50 PM

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

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



Hi Dave,

You wrote:
You can set the value of the hidden field from your action, if it is part of
your form bean.

Actually, I need to set it in p3, which has an entirely different form than
p2, so setting it in p3's form bean would not help.

You wrote:
Also, do you have an action prior to displaying p2 which fills the form etc?

Yes.  It's what uses the value to fill in what get's use by the p2 jsp.  All
3 of my action classes goes to a database to get info.  What is being passed
is the key I need to get the correct info out of the db.

-- Larry


Inserting a simple one may make it easier to do what you're trying to do...

Cheers,

Dave





"Larry Maturo" <[EMAIL PROTECTED]> on 08/14/2001
05:27:19 PM

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

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



Hi Dave,

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

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

-- Larry


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




Larry,

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

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

Cheers,

Dave





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

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

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



I'll be glad to supply more info.

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

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

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

Any ideas on how to handle this?

-- Larry Maturo




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

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

Cheers,

Dave




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

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

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



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

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

I need to pass data in the link without using
a parameter, since when I get to the target
page from an Action Class, instead 

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

2001-08-14 Thread Larry Maturo

Hi Dave,

You wrote:
You can set the value of the hidden field from your action, if it is part of
your form bean.

Actually, I need to set it in p3, which has an entirely different form than
p2, so setting it in p3's form bean would not help.

You wrote:
Also, do you have an action prior to displaying p2 which fills the form etc?

Yes.  It's what uses the value to fill in what get's use by the p2 jsp.  All
3 of my action classes goes to a database to get info.  What is being passed
is the key I need to get the correct info out of the db.

-- Larry


Inserting a simple one may make it easier to do what you're trying to do...

Cheers,

Dave





"Larry Maturo" <[EMAIL PROTECTED]> on 08/14/2001
05:27:19 PM

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

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



Hi Dave,

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

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

-- Larry


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




Larry,

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

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

Cheers,

Dave





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

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

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



I'll be glad to supply more info.

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

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

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

Any ideas on how to handle this?

-- Larry Maturo




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

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

Cheers,

Dave




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

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

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



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

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

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

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

-- Larry Maturo

























ABSOLUTELY WORLDS NO. 1 ..MEGA !

2001-08-14 Thread ENTERTAINMENT

Dear Ladies & Gentlemen,

Welcome to the GREATEST SEX SHOW on the ENTIRE NET !

We now offer you to ENTER the world´s No.1 voted SEX-SERVER on the WEB ! 

By far the largest and most incredible content of LIVE SEX is now served to users 
WORLDWIDE!

EVERYTHING is offered 100% ANONOMOUSLY & you don´t need to sign-up or have a 
creditcard ... The way it should be ! 

TO PLUGIN and get access to something you with guarantee NEVER have seen before, use 
ANY of the servers listed below !

Enjoy the BEST!

Yours truly,
MEGA-ENTERTAINMENT 

To get EASY ACCESS & PLUGIN to the LARGEST CONTENT SEXSERVER on the NET, use any of 
the 10 SERVERS listed here: 

1.  http://coolestweb.fadlan.com 
2.  http://coolestweb.paklinks.com
3.  http://kickme.to/coolestweb
4.  http://siam.to/coolestweb
5.  http://coolestweb.hk.st
6.  http://coolestweb.hotresume.net
7.  http://coolestweb.isCool.net
8.  http://arriveat.com/coolestwebs
9.  http://coolestweb.x1.nl
10. http://www.actioncenter.com/c/coolestweb

To get EASY ACCESS & PLUGIN to the LESBIAN IBIZA BABES, use any of the 10 SERVERS 
listed here:

1.  http://coolestbabes.fadlan.com
2.  http://coolestbabes.paklinks.com
3.  http://kickme.to/coolestbabes
4.  http://siam.to/coolestbabes
5.  http://coolestbabes.hk.st
6.  http://coolestbabes.hotresume.net
7.  http://coolestbabes.isCool.net
8.  http://arriveat.com/coolestbabes
9.  http://coolestbabes.x1.nl
10. http://www.actioncenter.com/c/coolestbabes






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

2001-08-14 Thread dhay



Hi again,

You can set the value of the hidden field from your action, if it is part of
your form bean.

Also, do you have an action prior to displaying p2 which fills the form etc?
Inserting a simple one may make it easier to do what you're trying to do...

Cheers,

Dave





"Larry Maturo" <[EMAIL PROTECTED]> on 08/14/2001
05:27:19 PM

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

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



Hi Dave,

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

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

-- Larry


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




Larry,

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

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

Cheers,

Dave





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

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

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



I'll be glad to supply more info.

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

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

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

Any ideas on how to handle this?

-- Larry Maturo




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

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

Cheers,

Dave




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

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

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



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

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

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

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

-- Larry Maturo
























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

2001-08-14 Thread Assenza, Chris

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

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

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

Chris

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



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


Hi Dave,

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

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

-- Larry


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




Larry,

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

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

Cheers,

Dave





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

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

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



I'll be glad to supply more info.

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

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

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

Any ideas on how to handle this?

-- Larry Maturo




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

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

Cheers,

Dave




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

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

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



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

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

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

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

-- Larry Maturo

















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

2001-08-14 Thread Larry Maturo

Hi Dave,

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

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

-- Larry


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




Larry,

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

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

Cheers,

Dave





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

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

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



I'll be glad to supply more info.

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

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

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

Any ideas on how to handle this?

-- Larry Maturo




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

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

Cheers,

Dave




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

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

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



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

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

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

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

-- Larry Maturo


















Multi-page form submission

2001-08-14 Thread Debasish Ghosh

Hi all -

I am designing a multipage form, where I have one
ActionForm containing all the fields of all the pages.
I have one Action which handles all validations. What
I want is that after the submission of the form, the
user will NOT be able to view any data of the form by
hitting the Back button of the browser.

I have tried doing the following :

In the Action class' perform() method, after
committing the records in the database, I am doing a
session.RemoveAttribute( mapping.getAttribute() ) to
remove the form from the session. By the way, I have
the action form in the session scope.

But this does not work. Some of the pages still have
some entered data !!

Any help will be appreciated.

Regards.

- Debasish

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



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

2001-08-14 Thread dhay



Larry,

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

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

Cheers,

Dave





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

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

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



I'll be glad to supply more info.

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

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

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

Any ideas on how to handle this?

-- Larry Maturo




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

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

Cheers,

Dave




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

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

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



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

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

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

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

-- Larry Maturo

















Tiles?

2001-08-14 Thread Will Spies/Towers Perrin



Did I see a message saying Struts 1.1 will support Tiles?






RE: findForward and Errors

2001-08-14 Thread Shawn Sohl

Craig,
Thanks for your reply.  I have tested the code in the logonAction
class it does work.  However, it only works when you use a "key" in the
properties file.  If I have this code in a "catch" statement, how can I use
the actual error message with the "getMessage()" method of the exception
class?   Any ideas on how to get around this?

Thanks

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 1:20 PM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject: Re: findForward and Errors




On Tue, 14 Aug 2001, Shawn Sohl wrote:

> In my Action class I catch errors if they occur.  What I want to know is
can
> I create an "ActionErrors" object within my Action class and add an error
to
> it like I do in a Form class.  Basically what I want to do is shown in the
> code below.  My .jsp page that "failure" points to has the
""
> tag within it but it isnt picking up the error.  I know I can create and
set
> an attribute within the response object and pass the error that way but I
> thought I could use something like I'm trying to do below.
> 
>  catch(Exception e)
> {
>   ActionErrors errors = new ActionErrors();
> errors.add("error",new ActionError(e.getMessage());
> return mapping.findForward("failure");
> }
> 
> Thanks
>   
> 

The Struts example application does something very similar to this in
LogonAction -- since that is where an invalid username/pasword combination
is detected.  I think this is a reasonable design approach.

Craig




RE: indexed properties weirdness. I'm desperate...

2001-08-14 Thread Marcel Maré

Hi Dave

Thanks for your prompt answer, it saves me from banging the wall with my
head wondering why it won't work.

Any time frame for the addition of nested properties to the indexed tags?

What I would really appreciate if, whenever the new tags are added to the
nightly build, you could also add a code snippet illustrating the use of the
tag and outlining the *minimum* requirements on the property getters. The
examples posted to this list are a bit confusing.

Anyway, thanks for the existing tags and TIA for any improvements.

Marcel

> -Oorspronkelijk bericht-
> Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Verzonden: maandag 13 augustus 2001 23:58
> Aan: [EMAIL PROTECTED]
> Onderwerp: Re: indexed properties weirdness. I'm desperate...
>
>
>
>
> Hi Marcel,
>
> Unfortunately using the indexed tags you cannot currently use
> nested properties.
>
> This is on my todo list, but I just got back from vacation and
> may take a while.
> Solution with scriptlets was posted a while back, I believe,
>
> Cheers,
>
> Dave
>
>
>
>
>
> Marcel Maré <[EMAIL PROTECTED]> on
> 08/11/2001 11:10:45
> AM
>
> Please respond to [EMAIL PROTECTED]
>
> To:   "Mailinglist Struts-User"
>   <[EMAIL PROTECTED]>
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject:  indexed properties weirdness. I'm desperate...
>
>
>
> This is driving me crazy. I've spent days figuring this out. Yes, I have
> read other postings about this, but obviously I'm missing
> something (part of
> my brain perhaps).
>
> What I want is the form bean to contain a list of objects, which have some
> properties. The jsp will iterate over the objects in the list to display
> it's (nested) properties in a form. Sounds simple? It isn't.
>
> I just can't figure out what property getters I *have* to implement.
>
> This is a test case I have created:
>
> =
> The Form bean
> =
>
> public class EditCartForm extends ActionForm {
>
> // other stuff omitted
>
>
> private ArrayList indexables = new ArrayList();
>
> public EditCartForm() {
> }
>
> public Indexable getIndexable(int index) {
> return (Indexable) indexables.get(index);
> }
>
> public List getIndexables() {
> return indexables;
> }
>
> }
>
> ==
> The Indexable class that is in the list
> ==
>
> public class Indexable extends Object implements java.io.Serializable {
>
> private String stringProp;
> private Integer intObjProp;
> private int intProp;
>
> public Indexable() {
> }
>
> public Indexable( int value ) {
> intProp = value;
> intObjProp = new Integer(intProp);
> stringProp = String.valueOf(intProp);
> }
>
> public String getStringProp() {
> return stringProp;
> }
>
> public void setStringProp(String value) {
> this.stringProp = value;
> }
>
> public Integer getIntObjProp() {
> return intObjProp;
> }
>
> public void setIntObjProp(Integer intObjProp) {
> this.intObjProp = intObjProp;
> }
>
> public int getIntProp() {
> return intProp;
> }
>
> public void setIntProp(int intProp) {
> this.intProp = intProp;
> }
> }
>
>
> ===
> struts-config
> ===
>
>
> type="com.webtothemax.shop.actions.AddToCartAction"
>name="theForm"
>scope="session"
>validate="false"
>
>
> ===
> The jsp
> ===
>
> 
>
> 
>
>  type="com.webtothemax.shop.common.CartItem" property="cart.cartItems">
>
> 
>  indexed="true" />
>  indexed="true" />
>  indexed="true"
> />
>
> : This is just an example: I have only 1 of these lines in the real file.
> :
> : stuff omitted
> :
> : Note that I iterate over another collection (which has the same size)
> ===
>
>
> What I would expect:
>
>  
>
> to be rendered as something like :
>
> 
>
> Where because of omitting the "name" attribute the formbean should be
> referenced.
>
> This is what I get in reality:
>
> When I include the name attribute:
>ERROR: "No getter method for property indexable.stringProp of bean
> theForm"
> When I omit the name attribute:
>ERROR: "No getter method for property indexable.stringProp of bean
> org.apache.struts.taglib.html.BEAN"
> When also omit stringProp:
>ERROR: "No getter method for property indexable of bean
> org.apache.struts.taglib.html.BEAN"
>
>
>
> So, if somebody could spell it out for me, real slowly, I would be very
> grateful.
>
> TIA
>
> Marcel Maré
>
> WebToTheMax
>
> E [EMAIL PROTECTED]
> W http://www.webtothemax.com
>
>
>
>
>
>
>
>




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

2001-08-14 Thread Larry Maturo

I'll be glad to supply more info.

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

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

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

Any ideas on how to handle this?

-- Larry Maturo




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

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

Cheers,

Dave




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

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

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



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

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

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

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

-- Larry Maturo











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

2001-08-14 Thread dhay



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

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

Cheers,

Dave




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

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

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



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

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

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

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

-- Larry Maturo










Tiles v Templates

2001-08-14 Thread Declan O'Reilly



Hi
 
Since Tiles will be incorporated in 1.1, does this 
mean that it will be used instead of or in tandem with Templates.Also I 
noticed that the Template code that David Geary has in his recent JSP book is 
more recent than is currently in Struts. Does anybody know of any plans to 
update Struts.
 
ThanksDeclan O'Reilly
 
 


MessageResources - getMessage(locale, string)

2001-08-14 Thread Brando Arguello

Hello,

I'm trying to get the localized text based on 
the locale that I set on my pageContext.

The MessageResources object seems to be ignoring
the "locale" when I try to retrieve the string,
it uses the default locale instead of the new locale.

I first create a locale object to set 
the Action.LOCALE_KEY in the pageContext. 

I get my MessageResource object from the
servletContext
which I use to get my localize text using the
   getMessage(locale, "text.option."); 


code:

Locale spanish = new Locale("es", "");


pageContext.setAttribute(Action.LOCALE_KEY, spanish,
  PageContext.SESSION_SCOPE);

MessageResources messages = null;


servletContext = getServletContext();
messages = (MessageResources)servletContext.
 getAttribute   
  (Action.MESSAGES_KEY);


String value = messages.getMessage(spanish,
"text.option.");

I do have the ApplicationResource_es.properties file.

Questions:
- The API doco says that it will use the default
  locale to get the text. If that is the case what
  is the use of the locale parameter? 
- Am I using the wrong context?
- how do I make sure that I set and retrieve
  the right text from the right file?


thanks for your help,
Brando


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Can I use two different ActionServlets for One WebApplication

2001-08-14 Thread Efrain Gutierrez

I have to modify an application that have a Custom
ActionServlet, but can i declare another in the
struts-conf and how did i use...!!! ?
Thanks in advance...

=
Ing. Jose Efrain Gutierrez C
Web Developer/Softtek Monterrey Mexico
ICQ:2293612
yahoo & hotmail:jefrainmx

_
Do You Yahoo!?
Construye tu página personal en Yahoo! GeoCities. ¡Es fácil, 
rápido y gratis! http://geocities.yahoo.com.mx



Is there another mailing list for questions about problems with installs ?

2001-08-14 Thread Eduardo Fujii



Hi there,
 
If someone knows about another mailing list where 
installations problems are discussed, please let me know,
 
Thanks,
 
Eduardo FujiiMonterey Institute of 
International Studies400 Pacific Street Room D-203Monterey, CA 
93940(831) 647-6679[EMAIL PROTECTED]


refresh and Struts Action problem

2001-08-14 Thread Yi Shen




Hi all,
I sent this email 
before. I did not get any feedback yet. I still need help for 
this. thank you.
Here is my problem:
I have the the following line for automatic refresh 
:

The above line is conditionally added to the html 
output depending on some session variable.
That session variable is set by an action form in 
that jsp page which has a single submit button and the sole purpose is to turn 
on the refresh flag so that the  tag is added subsequently to the 
jsp output. Eveything works fine until the page autoomatically refreshes through 
the META tag - every time it refreshes, it calls the Action class even 
though we are not submitting anything. Why is it happening --- is it due to 
cache problem or something else. Any help would be greatly 
appreciated.
 
Cheers, 
 

Yi 
ShenSS8 
Networks Inc.  Suite 500495 March 
Road, KanataOntario K2K 3G1
(: (613)592-2100 
Ext. 3240*: [EMAIL PROTECTED]  
 


Re: findForward and Errors

2001-08-14 Thread Craig R. McClanahan



On Tue, 14 Aug 2001, Shawn Sohl wrote:

> In my Action class I catch errors if they occur.  What I want to know is can
> I create an "ActionErrors" object within my Action class and add an error to
> it like I do in a Form class.  Basically what I want to do is shown in the
> code below.  My .jsp page that "failure" points to has the ""
> tag within it but it isnt picking up the error.  I know I can create and set
> an attribute within the response object and pass the error that way but I
> thought I could use something like I'm trying to do below.
> 
>  catch(Exception e)
> {
>   ActionErrors errors = new ActionErrors();
> errors.add("error",new ActionError(e.getMessage());
> return mapping.findForward("failure");
> }
> 
> Thanks
>   
> 

The Struts example application does something very similar to this in
LogonAction -- since that is where an invalid username/pasword combination
is detected.  I think this is a reasonable design approach.

Craig





Re: findForward and Errors

2001-08-14 Thread Rama Krishna

oops! sorry.

this is correct

saveErrors(request,errors);

- Original Message -
From: "Rama Krishna" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 14, 2001 11:05 AM
Subject: Re: findForward and Errors


> you need to save errors
>
> before return and after errors.add
>
> saveErrors(errors);
>
> this should work.
>
>
> - Original Message -
> From: "Shawn Sohl" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Tuesday, August 14, 2001 10:51 AM
> Subject: findForward and Errors
>
>
> > In my Action class I catch errors if they occur.  What I want to know is
> can
> > I create an "ActionErrors" object within my Action class and add an
error
> to
> > it like I do in a Form class.  Basically what I want to do is shown in
the
> > code below.  My .jsp page that "failure" points to has the
> ""
> > tag within it but it isnt picking up the error.  I know I can create and
> set
> > an attribute within the response object and pass the error that way but
I
> > thought I could use something like I'm trying to do below.
> >
> >  catch(Exception e)
> > {
> > ActionErrors errors = new ActionErrors();
> > errors.add("error",new ActionError(e.getMessage());
> > return mapping.findForward("failure");
> > }
> >
> > Thanks
> >
> >
>



RE: findForward and Errors

2001-08-14 Thread MacKellar, Kimberly

This doesn't work unless e.getMessage() returns a String that is an entry in
your ApplicationResources.properties file.  I did something similar but
added an entry in the ApplicationResources.properties file like 
error.exception = "Exception: {0}". 
 
Then when I create the error I use 
catch (Exception e) {
ActionErrors errors = new ActionErrors();
errors.add(ActionErrors.GLOBAL_ERROR, new
ActionError("error.exception", e.getMessage()));
saveErrors(request, errors);
return mapping.findForward("failure");
}

And you need to save the errors.

Kim MacKellar

-Original Message-
From: Shawn Sohl [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 12:52 PM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: findForward and Errors


In my Action class I catch errors if they occur.  What I want to know is can
I create an "ActionErrors" object within my Action class and add an error to
it like I do in a Form class.  Basically what I want to do is shown in the
code below.  My .jsp page that "failure" points to has the ""
tag within it but it isnt picking up the error.  I know I can create and set
an attribute within the response object and pass the error that way but I
thought I could use something like I'm trying to do below.

 catch(Exception e)
{
ActionErrors errors = new ActionErrors();
errors.add("error",new ActionError(e.getMessage());
return mapping.findForward("failure");
}

Thanks
  



Re: findForward and Errors

2001-08-14 Thread Rama Krishna

you need to save errors

before return and after errors.add

saveErrors(errors);

this should work.


- Original Message -
From: "Shawn Sohl" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, August 14, 2001 10:51 AM
Subject: findForward and Errors


> In my Action class I catch errors if they occur.  What I want to know is
can
> I create an "ActionErrors" object within my Action class and add an error
to
> it like I do in a Form class.  Basically what I want to do is shown in the
> code below.  My .jsp page that "failure" points to has the
""
> tag within it but it isnt picking up the error.  I know I can create and
set
> an attribute within the response object and pass the error that way but I
> thought I could use something like I'm trying to do below.
>
>  catch(Exception e)
> {
> ActionErrors errors = new ActionErrors();
> errors.add("error",new ActionError(e.getMessage());
> return mapping.findForward("failure");
> }
>
> Thanks
>
>



Re: findForward and Errors

2001-08-14 Thread dhay



You certainly can.  You just need to save the errors before you return, using

 saveErrors(request, errors);
Cheers,

Dave





Shawn Sohl <[EMAIL PROTECTED]> on 08/14/2001 01:51:53 PM

Please respond to [EMAIL PROTECTED]

To:   "'[EMAIL PROTECTED]'"
  <[EMAIL PROTECTED]>,
  "'[EMAIL PROTECTED]'"
  <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  findForward and Errors



In my Action class I catch errors if they occur.  What I want to know is can
I create an "ActionErrors" object within my Action class and add an error to
it like I do in a Form class.  Basically what I want to do is shown in the
code below.  My .jsp page that "failure" points to has the ""
tag within it but it isnt picking up the error.  I know I can create and set
an attribute within the response object and pass the error that way but I
thought I could use something like I'm trying to do below.

 catch(Exception e)
{
 ActionErrors errors = new ActionErrors();
errors.add("error",new ActionError(e.getMessage());
return mapping.findForward("failure");
}

Thanks










findForward and Errors

2001-08-14 Thread Shawn Sohl

In my Action class I catch errors if they occur.  What I want to know is can
I create an "ActionErrors" object within my Action class and add an error to
it like I do in a Form class.  Basically what I want to do is shown in the
code below.  My .jsp page that "failure" points to has the ""
tag within it but it isnt picking up the error.  I know I can create and set
an attribute within the response object and pass the error that way but I
thought I could use something like I'm trying to do below.

 catch(Exception e)
{
ActionErrors errors = new ActionErrors();
errors.add("error",new ActionError(e.getMessage());
return mapping.findForward("failure");
}

Thanks
  



Re: How can I get the DataSource from a JSP page

2001-08-14 Thread BinhMinh Nguyen

Hi Kent, Luis,
I do agree that a datasource should be in the logic
layer, not in the JSP/prsentation layer, but I have a
problem to populate the JSP combo box with data that
is retrieved from the database when they first logn
the page. And I think getting a datasource here is
good enouhg :) . Do you have any idea  to avoid this.
thank you very much for your help. I think of
prepopulate but I donnot know how to implement it.

Binh

--- Luis Olivares <[EMAIL PROTECTED]> wrote:
> Why don't you put it inside a Custom Tag? That way
> you don't put it in the
> presentation layer.
> 
> I think with the code sample that Craig shows us is
> possible.
> 
> <%
>   DataSource ds = (DataSource)
>   
>
application.getAttribute("org.apache.struts.action.DATA_SOURCE");
>   ...
> %>
> 
> Am I right?
> 
> Regards
> 
> Luis Olivares.
>  Infosphere S.A. de C.V.
>  "Delivering the Power of Information"
>
>
-
>   (52)8-365-42-88 Ext. 107.
> [EMAIL PROTECTED]
> 
> - Original Message -
> From: "Kent Roylance" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, August 13, 2001 9:27 PM
> Subject: RE: How can I get the DataSource from a JSP
> page
> 
> 
> > Binh,
> >
> > Why would you want to get a DataSource from a JSP
> page?  I would not
> > recommend using a DataSource at the presentation
> level.  Normally, you
> would
> > get the data from the action class and store it in
> the session so that
> your
> > presentation layer can use it.  It is much easier
> that way, and a cleaner
> > separation of the data, business logic, and
> presentation layers.  Just a
> > suggestion.
> >
> > Kent
> >
> > -Original Message-
> > From: BinhMinh Nguyen
> [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, August 13, 2001 5:51 PM
> > To: [EMAIL PROTECTED]
> > Subject: How can I get the DataSource from a JSP
> page
> >
> >
> > Hi,
> >
> > I know how to get a DataSource from a Action java
> > class
> >  but I do not know how to obtain a DataSource from
> a
> > JSP page.
> > Please show me how.
> > thank you very much
> > Binh Nguyen
> >
> > __
> > Do You Yahoo!?
> > Send instant messages & get email alerts with
> Yahoo! Messenger.
> > http://im.yahoo.com/
> 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Re: Downloading a file from a action class

2001-08-14 Thread Craig R. McClanahan



On 14 Aug 2001 [EMAIL PROTECTED] wrote:

> All,
> 
> I am curious if anyone has written an action class that will
> download a file to the browser.  Not have the browser open a file, but
> have the download box popup everytime after a action.  I know how to
> set the header information and mime type, but what do you return for
> the ActionForward.
> 

For this purpose, you will need to actually *do* the download in your
Action.  Then, you return null instead of an ActionForward instance.  This
tells Struts that you have already handled the response so that it does
not need to.

> Thanks
> 
> Jeff Krueger
> 
> 
> 

Craig





Re: Downloading a file from a action class

2001-08-14 Thread dhay



Jeff,

I have done it.  Just return null, and it works fine.

btw, I have a wierd problem when I use it with frames - I lose the output
*after* I do the download ie other actions are still excecuted, but I don't see
any output!  Can you let me know if you run into anything similar?

Thanks,

Dave





[EMAIL PROTECTED] on 08/14/2001 12:57:01 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Downloading a file from a action class



All,

I am curious if anyone has written an action class that will download a file
to the browser.  Not have the browser open a file, but have the download box
popup everytime after a action.  I know how to set the header information and
mime type, but what do you return for the ActionForward.

Thanks

Jeff Krueger











Downloading a file from a action class

2001-08-14 Thread jeff

All,

I am curious if anyone has written an action class that will download a file to 
the browser.  Not have the browser open a file, but have the download box popup 
everytime after a action.  I know how to set the header information and mime type, but 
what do you return for the ActionForward.

Thanks

Jeff Krueger





RE: Index within iterate tags

2001-08-14 Thread Assenza, Chris

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

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

-Chris

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



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


Hi,

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

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

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

Cheers


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

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

www.mimesweeper.com
**



Re: Index within iterate tags

2001-08-14 Thread dhay



Hi Nicola,

Believe there is a way to extract it already (but never used it)...but If you
only need the index for javascript, can't you obtain it from the name of your
indexed field ie pass the field in as a param to your function?

I do this with a button defined with
   

and my function is

function setParamDefault(button)
{
var myName = button.name;
   var start = myName.indexOf("[") + 1;
   var length = myName.indexOf("]") - start;
   var index = myName.substr(start, length);

   document.ParametersForm["parameter[" + index + "].value"].value =
document.ParametersForm["parameter[" + index + "].defaultValue"].value

}

Cheers,

Dave






Nicola Taylor <[EMAIL PROTECTED]> on 08/14/2001
12:00:21 PM

Please respond to [EMAIL PROTECTED]

To:   "Struts-User (E-mail)"
  <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Index within iterate tags



Hi,

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

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

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

Cheers


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

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

www.mimesweeper.com
**









RE: ActionForm.reset() method

2001-08-14 Thread Mike Dewhirst

so if I have old data in there, it will be overwritten, plus validate() will
be invoked afterwards if I have validate=true in the config?

-Original Message-
From: Gregor Rayman [mailto:[EMAIL PROTECTED]]
Sent: 14 August 2001 17:02
To: [EMAIL PROTECTED]
Subject: Re: ActionForm.reset() method


"Mike Dewhirst" <[EMAIL PROTECTED]>

> is automatically called when? When the form is first created by the
> Controller?

No, it is called always before the controller populates it from the
request.

--
gR



=**

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

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

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

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

**=



Re: Getting locale attribute from session.

2001-08-14 Thread Craig R. McClanahan

There is an easy way to internationalize your graphics without having to
mess around with the Locale yourself.

Consider that you might normally create an image link like this:

  

but you want the HREF to the link to be different for different
Locales.  First, change your tag to:

  

and then, in your application resources files, define something like this
(assuming we're in the en_GB Locale):

  image.key=image_en_GB.gif

Now, you've appropriately internationalized your images, just like
 does for your text strings.

Craig


On Tue, 14 Aug 2001, Juraj Kazda wrote:

> Hello,
> 
> I'm new user of struts framework and I have a problem.
> 
> I would like to make an internationalized application with _everything_
> internationalized. This means that I have a nice graphics (menu too) on
> my pages in several language versions. I would like to obtain a LOCALE
> key (object) from session (inserted there by 
> tag). And here is the problem: to be perfect, I would like to get this
> key by the name which is stored in
> org.apache.struts.action.Action.LOCALE_KEY constant. How to access the
> key?
> 
> I've made my entering (index.jsp) file as a template file and I check
> the locale via  and  tags. But inside these
> tags I have to use directly the org.apache.struts.action.LOCALE keyword
> - it's not possible to ask for key name (by asking I mean getting the
> value of org.apache.struts.action.Action.LOCALE_KEY). Or is it possible?
> 
> If someone knows, please help me.
> 
> I have tried to check archives for this, but with no success (for what I
> want is hard to find right keywords... - BTW, I like the archive, it
> helped me several times)
> 
> Thank you very much.
> 
> With regards
> 
> --jerry
> 
> 
> 




Re: Examples of mutli-click prevention using struts tokens

2001-08-14 Thread Craig R. McClanahan

On Tue, 14 Aug 2001, Tim Fox wrote:

> Anyone know of any examples of how to use the
> saveToken(), resetToken(), and isTokenValid() methods - for prevention of
> submission of forms multiple times.
> I can't find anything in the docs.
> Specifically I want to be able to use them in the situation where I *don't*
> have a  in my page - is this possible?
> thanx in advance
> 

If you don't have a form, then what you are trying to prevent is following
the same hyperlink twice, right?  In that case, you can tell the
 tag to include the transaction control token like this:

  

This will cause the token to be included on the hyperlink as a query
parameter, so that you can check it with isTokenValid() in your action
associated with path "/foo", just as if it came in on a form.  Once you've
validated that, the action can forward to whatever page you actually want
to display.

Craig





Re: ActionForm.reset() method

2001-08-14 Thread Gregor Rayman

"Mike Dewhirst" <[EMAIL PROTECTED]>

> is automatically called when? When the form is first created by the
> Controller?

No, it is called always before the controller populates it from the
request.

--
gR





RE: XML based ApplicationResources.properties

2001-08-14 Thread Craig R. McClanahan



On Tue, 14 Aug 2001, Halvorson, Loren wrote:

> With regard to a standard XML format for localized data, have you taken a
> look at TMX?  http://lisa.org/tmx/
> We wrote a very simple MessageResources subclass that reads TMX files via a
> SAX parser.  The advantage is that there are lots of translation tools out
> there to translate TMX file.
> 

If you'd be interested in contributing your MessageResources
implementation code to Struts, I'd be very interested in including it in
the package.  You can correspond with me privately if you'd like to pursue
this.

Craig McClanahan




ActionForm.reset() method

2001-08-14 Thread Mike Dewhirst

is automatically called when? When the form is first created by the
Controller?


=**

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

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

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

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

**=



Re: How to Build & Deploy a New Application

2001-08-14 Thread Craig R. McClanahan



On Tue, 14 Aug 2001, Efrain Gutierrez wrote:

> How to Build & Deploy a New Application
> in Tomcat and Weblogic.???
> 

For Tomcat, there is an "Application Developer's Guide" included in the
documentation (just fire up Tomcat and follow the documentation
links) that discusses the basic concepts of web applications.  An online
version of the latest thinking (refers to Tomcat 4 but the principles are
pretty much the same for any version of Tomcat) is at:

  http://jakarta.apache.org/tomcat/tomcat-4.0-doc-exp/appdev/index.html

For WebLogic, I'm sure they have documentation about this sort of thing
(they tend to be very thorough), but am not familiar enough with it to
point at a particular doc.

> =
> Ing. Jose Efrain Gutierrez C

Craig McClanahan




Index within iterate tags

2001-08-14 Thread Nicola Taylor

Hi,

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

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

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

Cheers


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

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

www.mimesweeper.com
**



Re: AW: Pressing Struts Questions

2001-08-14 Thread Craig R. McClanahan



On Tue, 14 Aug 2001, Beuck, Torsten wrote:

> Hi Bernhard, Michael,
> 
> > 
> > >without having tested this, but have you ever tried to 
> > convert 'Ändern'
> > >instead of 'Ändern'?
> > 
> > Without testing it myself but looking at the sourcecode 
> > 'Ändern' should
> > remain unchanged.
> 
> I've tested it and you are right: It remains unchanged. The filter method
> only replaces the characters '&', '<', '>' and '"'.
> 
> > 
> > This probably could work as a temporary fix. On the long run we will
> > need a proper solution though.
> > 
> 
> Currently i use 'Aendern' because with UTF-8 encoding the browser cannot
> display 'Ä'. But this could not be the final solution.
> 
> Maybe i will find the time to write a corrected filter method. What i don't
> know is: Who is responsible for the ResponseUtils class? Is it Craig R.
> McClanahan? Should i post the method code to this mailing list or send it
> directly to him?
> 

The way to get problems you encounter addressed is to post them to the bug
tracking system:

  http://nagoya.apache.org/bugzilla/

so that all of the Struts committers can be made aware of the issue.  The
bug tracking system also has a mechanism for accepting attachments, so
patches are *very* welcome.

> Best regards
> 
> Torsten
> 

Craig





Struts next release.

2001-08-14 Thread Gonzalez, Rafael E

Hi,

I'm new to the struts world so forgive me if I sound ignorant. 
I 've been using the struts 1.0b3 release and I will like to use 
a tag that is not defined in that release. The tags i want to use is
 and .
 I want to know when is the next release going to be available.

thanks

Rafael



Re: How can I get the DataSource from a JSP page

2001-08-14 Thread Luis Olivares

Why don't you put it inside a Custom Tag? That way you don't put it in the
presentation layer.

I think with the code sample that Craig shows us is possible.

<%
  DataSource ds = (DataSource)
   application.getAttribute("org.apache.struts.action.DATA_SOURCE");
  ...
%>

Am I right?

Regards

Luis Olivares.
 Infosphere S.A. de C.V.
 "Delivering the Power of Information"
-
  (52)8-365-42-88 Ext. 107.
[EMAIL PROTECTED]

- Original Message -
From: "Kent Roylance" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 13, 2001 9:27 PM
Subject: RE: How can I get the DataSource from a JSP page


> Binh,
>
> Why would you want to get a DataSource from a JSP page?  I would not
> recommend using a DataSource at the presentation level.  Normally, you
would
> get the data from the action class and store it in the session so that
your
> presentation layer can use it.  It is much easier that way, and a cleaner
> separation of the data, business logic, and presentation layers.  Just a
> suggestion.
>
> Kent
>
> -Original Message-
> From: BinhMinh Nguyen [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 13, 2001 5:51 PM
> To: [EMAIL PROTECTED]
> Subject: How can I get the DataSource from a JSP page
>
>
> Hi,
>
> I know how to get a DataSource from a Action java
> class
>  but I do not know how to obtain a DataSource from a
> JSP page.
> Please show me how.
> thank you very much
> Binh Nguyen
>
> __
> Do You Yahoo!?
> Send instant messages & get email alerts with Yahoo! Messenger.
> http://im.yahoo.com/




Re: FormBean Pre-popping?

2001-08-14 Thread Brian . Duchouquette


William,

The action does not directly know the next view or previous view. The
action object returns a generic ActionForward object with a  "success",
"failure", etc. or a more specific "contacts", "roles", etc if you have
sub-screens with that information.  The controller uses struts-config.xml
to find the location of the next page based on the actionforward object.
If your formbean contains all the fields in your views that it serves, then
you should not have a problem.  Note that in the case I am describing here
I would have a parent bean then child beans that are populated with user
data (contact, roles) as necessary.

If contact information appears in a different view, then I just re-use that
bean in a new parent formbean again.

This is the way I approached the multiple page / Tab page view problem.
Maybe someone else had a different approach...

Brian




   
   
William Lyvers 
   
  <[EMAIL PROTECTED]>   
   
cc:
   
08/14/2001 10:32Subject: FormBean Pre-popping? 
   
AM 
   
Please respond 
   
to struts-user 
   
   
   
   
   




Our company is considering adopting the Strut framework into our web
development.  One thing that has grabbed my attention is that the
pre-popping of FormBeans from MT objects occurs in an Action before
forwarding the page to the next View.  This seems to dictate that the each
action directly knows the next view as well as the previous view.
Consequently, the action classes are tied to particular flows throughout
the
website.  This seems somewhat awkward -- especially when a form can be
appear in multiple flows.  Am I missing something or is this the intended
design?

Thanks,
Billy







Re: ActionForm not being updated. Please advice.

2001-08-14 Thread SUPRIYA MISRA

You will need to use Indexed To Tags developed by Dave which is not part of 
Struts 1.0. I have tested it--It works !!!

http://husted.com/about/struts/indexed-tags.htm


>From: "Alex Colic" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "Struts" <[EMAIL PROTECTED]>
>Subject: ActionForm not being updated. Please advice.
>Date: Tue, 14 Aug 2001 11:28:01 -0400
>
>Hi, I am trying to get that iterate tag to work.
>
>I am interating through a vector a displaying the results. I have one field
>that I want the user to update hence I have made it a text box. When the
>page displays, the data is correct but when the user enters something into
>the text box and hits submit, the form in the actionservlet has the old 
>data
>not what the user has entered.
>
>My jsp is as follows:
>
>
>
>   
> 
>   
>   
> 
>
>   
> 
>   
>
>
>
>
>Anything the user enters in the unit price is ignored, the old value is
>present in the form.
>
>My Struts config is:
>
>
>  type="com.popware.rd.viPro.form.ItemBidForm"/>
>   
>
>
>
>
>
> type="com.popware.rd.viPro.action.viRFQSummaryAction"
>name="ItemBidForm"
>input="/pwRFQList.jsp">
> 
> 
>
> 
> type="com.popware.rd.viPro.action.viRFQBidAction"
>name="ItemBidForm"
>input="/pwRFQList.jsp">
> 
> 
>
>
>viRFQSummaryAction works, the form is populated and passed to pwRFQBid.jsp
>but whatever the user enters as a unit cost is ignored. I take the form out
>in viRFQBidAction and check it.
>
>Any help in figuring this out is appreciated.
>
>Alex
>


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




Re: ActionForm not being updated. Please advice.

2001-08-14 Thread Gregor Rayman

"Alex Colic" <[EMAIL PROTECTED]> wrote:

> I am interating through a vector a displaying the results. I have one field
> that I want the user to update hence I have made it a text box. When the
> page displays, the data is correct but when the user enters something into
> the text box and hits submit, the form in the actionservlet has the old data
> not what the user has entered.

This is because the generated HTML does not contain the index. Try the
"indexed" attribute of  (it is not in the release version 1.0)

Or try this:




Note: your ActionForm has to be able to handle setAttribute(i, ...) even
when the underlaying vector is empty.

--
gR




FormBean Pre-popping?

2001-08-14 Thread William Lyvers

Our company is considering adopting the Strut framework into our web
development.  One thing that has grabbed my attention is that the
pre-popping of FormBeans from MT objects occurs in an Action before
forwarding the page to the next View.  This seems to dictate that the each
action directly knows the next view as well as the previous view.
Consequently, the action classes are tied to particular flows throughout the
website.  This seems somewhat awkward -- especially when a form can be
appear in multiple flows.  Am I missing something or is this the intended
design?

Thanks,
Billy



Re: Getting locale attribute from session.

2001-08-14 Thread Gregor Rayman

"Juraj Kazda" <[EMAIL PROTECTED]> wrote:

> Hello,
>
> I'm new user of struts framework and I have a problem.
>
> I would like to make an internationalized application with _everything_
> internationalized. This means that I have a nice graphics (menu too) on
> my pages in several language versions. I would like to obtain a LOCALE
> key (object) from session (inserted there by 
> tag). And here is the problem: to be perfect, I would like to get this
> key by the name which is stored in
> org.apache.struts.action.Action.LOCALE_KEY constant. How to access the
> key?

The key is just a constant, have a look in the sources. But I do not think
this is the right way to do it. You could use  inside the
href attributes of the images instead. If you want to hse the tag
, which I'd reccomend to you, have a look at the attributes
pageKey or srcKey, they use message resources.

In this way you can create message resources files with names of the
pictures in different languages:



and in the files specify the names of those pictures:

ApplicationResources_en.properties:

picture.save=/images/save.gif

ApplicationResources_de.properties:

picture.save=/images/speichern.gif

ApplicationResources_sk.properties:

picture.save=/images/ulozit.gif

...



> I've made my entering (index.jsp) file as a template file and I check
> the locale via  and  tags. But inside these
> tags I have to use directly the org.apache.struts.action.LOCALE keyword
> - it's not possible to ask for key name (by asking I mean getting the
> value of org.apache.struts.action.Action.LOCALE_KEY). Or is it possible?
>
> If someone knows, please help me.

Here a scriplet, how to get the locale if you need it for something,
where you cannot use taglibs (like getting Format etc.)

<%
  Locale locale = (Locale) pageContext.getAttribute(Action.LOCALE_KEY,
PageContext.SESSION_SCOPE);
  if (null == locale) {
locale = request.getLocale();
  }
  DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.DEFAULT,
DateFormat.DEFAULT, locale);
%>

--
gR







ActionForm not being updated. Please advice.

2001-08-14 Thread Alex Colic

Hi, I am trying to get that iterate tag to work.

I am interating through a vector a displaying the results. I have one field
that I want the user to update hence I have made it a text box. When the
page displays, the data is correct but when the user enters something into
the text box and hits submit, the form in the actionservlet has the old data
not what the user has entered.

My jsp is as follows:



  

  
  

   
  

  




Anything the user enters in the unit price is ignored, the old value is
present in the form.

My Struts config is:



  















viRFQSummaryAction works, the form is populated and passed to pwRFQBid.jsp
but whatever the user enters as a unit cost is ignored. I take the form out
in viRFQBidAction and check it.

Any help in figuring this out is appreciated.

Alex




Re: AW: Pressing Struts Questions

2001-08-14 Thread Michael Gerdau

>Maybe i will find the time to write a corrected filter method. What i don't
>know is: Who is responsible for the ResponseUtils class? Is it Craig R.
>McClanahan? Should i post the method code to this mailing list or send it
>directly to him?

Craig wrote the original class. I don't know wether he's still the
maintainer but would expect so.

When you post a patch it is probably best to do so on the struts-dev list
and not on the struts-user list.



In case this wasn't clear anyway:
When you "write a corrected filter method" you should try doing so by
parsing stuff like "&something;" and not by enumerating all such
sequences you know about.



Best,
Michael
--
 Vote against SPAM - see http://www.politik-digital.de/spam/
 Michael Gerdau   email: [EMAIL PROTECTED]
 Profanity ... It's not just for Windows users.
 PGP-keys available on request or at public keyserver





RE: get/set on properties in a form bean

2001-08-14 Thread Geddes, Mark (ANTS)
Title: RE: get/set on properties in a form bean



Denis,
Thanks 
for your more enlightening reply! I use the same pattern as you. My FormBeans 
use Strings to represent dates and I convert to/from java.util.Date within my 
Action classes. I use static utility methods for parsing and formatting, taking 
advantage of the Locale object created by Struts for each user. I can thus 
ensure that my validate() method is able to highlight date parsing errors, along 
with any other errors.
 
Mark

  -Original Message-From: CARDON Denis 
  [mailto:[EMAIL PROTECTED]]Sent: 14 August 2001 16:07To: 
  '[EMAIL PROTECTED]'Subject: RE: get/set on properties 
  in a form bean
  Hi Mike, 
  Yes it support basic type conversion, however it does not 
  support more complex type conversion like dates String --> java.util.Date. 
  In the case of dates, their format depend on local settings (and other more 
  specific conventions, like: 10/08/2001 or 10-08-2001, etc.) and so cannot be 
  implicitly converted. 
  I faced this problem a few days ago and was constrained not to 
  use my beans (which contain Date typed properties) directly into the 
  ActionForm. Instead, I just use String for dates properties in the ActionForm 
  and subsequently convert them to java.util.Date when I populate my bean using 
  ActionForm data. 
  However I don't think this is a very elegant way to do this. 
  How do you all solve this issue? 
  Regards, 
  Denis 
  -Original Message- From: 
  Geddes, Mark (ANTS) [mailto:[EMAIL PROTECTED]] 
  Sent: Tuesday, August 14, 2001 3:59 PM To: '[EMAIL PROTECTED]' Subject: 
  RE: get/set on properties in a form bean 
  yes 
  -Original Message- From: Mike 
  Dewhirst [mailto:[EMAIL PROTECTED]] 
  Sent: 14 August 2001 14:55 To: 
  '[EMAIL PROTECTED]' Subject: get/set on 
  properties in a form bean 
  If I have a bean with int, long, etc. properties in an 
  ActionForm, will Struts cast/convert them to and from 
  String automatically? 
  =** 
  If you are not the intended recipient, employee or agent 
  responsible for delivering the message to the intended 
  recipient, you are hereby notified that any 
  dissemination or copying of this communication and its attachments 
  is strictly prohibited. 
  If you have received this communication and its attachments in 
  error, please return the original message and 
  attachments to the sender using the reply facility on 
  e-mail. 
  Internet communications are not secure and therefore the UCLES 
  Group does not accept legal responsibility for the 
  contents of this message.  Any views or opinions 
  presented are solely those of the author and do not necessarily 
  represent those of the UCLES Group unless otherwise 
  specifically stated. 
  This footnote also confirms that this email message has been 
  swept by MIMEsweeper for the presence of computer 
  viruses although this does not guarantee that this 
  email is virus free. 
  **= 
  
  *** 
  This email message contains confidential information for the 
  above addressee only.  If you are not the intended addressee you must not 
  disclose or use the information in any manner whatsoever.
  Any opinion or views contained in this email message are those 
  of the sender, do not represent those of the Company in any way and reliance 
  should not be placed upon its contents.
  Unless otherwise stated this email message is not intended to 
  be contractually binding.  Where an Agreement exists between our 
  respective companies and there is conflict between the contents of this email 
  message and the Agreement then the terms of that Agreement shall 
  prevail.
  Abbey National Treasury Services plc. Registered in England. 
  Registered Office:  Abbey House, Baker Street, London NW1 6XL.  
  Company Registration No: 2338548.  Regulated by the SFA
  *** 
  


onclick handler in the context of a struts iterate tag

2001-08-14 Thread Larry Maturo

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

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

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

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

-- Larry Maturo




Getting locale attribute from session.

2001-08-14 Thread Juraj Kazda

Hello,

I'm new user of struts framework and I have a problem.

I would like to make an internationalized application with _everything_
internationalized. This means that I have a nice graphics (menu too) on
my pages in several language versions. I would like to obtain a LOCALE
key (object) from session (inserted there by 
tag). And here is the problem: to be perfect, I would like to get this
key by the name which is stored in
org.apache.struts.action.Action.LOCALE_KEY constant. How to access the
key?

I've made my entering (index.jsp) file as a template file and I check
the locale via  and  tags. But inside these
tags I have to use directly the org.apache.struts.action.LOCALE keyword
- it's not possible to ask for key name (by asking I mean getting the
value of org.apache.struts.action.Action.LOCALE_KEY). Or is it possible?

If someone knows, please help me.

I have tried to check archives for this, but with no success (for what I
want is hard to find right keywords... - BTW, I like the archive, it
helped me several times)

Thank you very much.

With regards

--jerry





Re: book ??????????

2001-08-14 Thread Troy Hart

Thanks, sorry for being snippy. 


On Tuesday 14 August 2001 09:01 am, you wrote:
> The server is doing that, not the messenger.  I had that happen to one of
> my previous messages also...
>
>
>
>
>
> Troy Hart
> <[EMAIL PROTECTED]To:
> [EMAIL PROTECTED] et>  cc:
>  Subject: Re: book ??
> 08/14/2001
> 09:45 AM
> Please
> respond to
> struts-user
>
>
>
>
>
>
> ENOUGH ALREADY!!!
>
> On Friday 14 July 2000 12:59 am, you wrote:
> > Hi everybody
> >
> > is there any book where i can find strut related material???
> >
> >
> > praveen



RE: get/set on properties in a form bean

2001-08-14 Thread CARDON Denis
Title: RE: get/set on properties in a form bean





Hi Mike, 


Yes it support basic type conversion, however it does not support more complex type conversion like dates String --> java.util.Date. In the case of dates, their format depend on local settings (and other more specific conventions, like: 10/08/2001 or 10-08-2001, etc.) and so cannot be implicitly converted. 

I faced this problem a few days ago and was constrained not to use my beans (which contain Date typed properties) directly into the ActionForm. Instead, I just use String for dates properties in the ActionForm and subsequently convert them to java.util.Date when I populate my bean using ActionForm data. 

However I don't think this is a very elegant way to do this. How do you all solve this issue?


Regards,


Denis


-Original Message-
From: Geddes, Mark (ANTS) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 3:59 PM
To: '[EMAIL PROTECTED]'
Subject: RE: get/set on properties in a form bean



yes


-Original Message-
From: Mike Dewhirst [mailto:[EMAIL PROTECTED]]
Sent: 14 August 2001 14:55
To: '[EMAIL PROTECTED]'
Subject: get/set on properties in a form bean



If I have a bean with int, long, etc. properties in an ActionForm, will
Struts cast/convert them to and from String automatically?



=**


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


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


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


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


**=



***
This email message contains confidential information for the above addressee only.  If you are not the intended addressee you must not disclose or use the information in any manner whatsoever.

Any opinion or views contained in this email message are those of the sender, do not represent those of the Company in any way and reliance should not be placed upon its contents.

Unless otherwise stated this email message is not intended to be contractually binding.  Where an Agreement exists between our respective companies and there is conflict between the contents of this email message and the Agreement then the terms of that Agreement shall prevail.

Abbey National Treasury Services plc. Registered in England. Registered Office:  Abbey House, Baker Street, London NW1 6XL.  Company Registration No: 2338548.  Regulated by the SFA

***





Re: Multi-page form bean persistence

2001-08-14 Thread Brian . Duchouquette


Richard,

I can think of 2 things that may cause the data structure to not persist.
1.  The framework might be calling an implemented reset() method on your
formbean.  To get multi-page formbeans to work, I had to avoid
implementation of this method (since it is called between requests).  2.
You may have code in your action class that is disposing of your formbean.

Brian




   

Richard

William Lake To: [EMAIL PROTECTED]

<[EMAIL PROTECTED]cc:   

n.ac.uk> Subject: Multi-page form bean persistence 

   

08/14/2001 

09:16 AM   

Please 

respond to 

struts-user

   

   





I have a multi-page form to manipulate a 2-level tree structure, so one of
the variables of my ActionForm specifies which branch of the tree is shown,
and I have no problem switching between branches to view the data. I'm
using another variable to define a cancel/commit status of the form, which
defines when the user has chosen to finish editing. If this status is not
set then the Action forwards to the Input form.

The form transfers properties between pages by using  tags.
The problem is that the data structure does not persist (it is a member
variable of the form class) between requests, even though it is only
created if the variable is null and it is not set in the reset method. I
have also tried using "session" scope for the form, with no noticeable
difference.

Perhaps there is somebody who can explain how to achieve form persistance
across pages (the view is the same for all "pages" in my case) or is this a
"grey-area" at the moment in this excellent framework?

I would also like to use multiple data sources for the benefits of
connection pooling. I couldn't find any mention of documentation describing
how to define this. Is there a property of the XML tag to give a database a
named reference?
* Actually, I couldn't find any documentation detailing the precise
structure and layout of the "struts-config.xml" file.

As a final point, it would be nice to see a "how-to" article section on the
Struts website with minimal examples of such scenarios or building blocks
if you like. I wonder if this has been discussed before?

Regards,
Richard







Re: book ??????????

2001-08-14 Thread Brian . Duchouquette


The server is doing that, not the messenger.  I had that happen to one of
my previous messages also...




   

Troy Hart  

<[EMAIL PROTECTED]To: [EMAIL PROTECTED]

et>  cc:   

 Subject: Re: book ??  

08/14/2001 

09:45 AM   

Please 

respond to 

struts-user

   

   





ENOUGH ALREADY!!!

On Friday 14 July 2000 12:59 am, you wrote:
> Hi everybody
>
> is there any book where i can find strut related material???
>
>
> praveen







AW: can't test my jsp page

2001-08-14 Thread Bernhard J. Hirschmann


Ok, maybe you have set up Tomcat not properly.
In the Tomcat directory there's the file "conf/server.xml" where you have to
declare the path for your application. There you have a section like:

 
.
.
.

   
 

Where "myapp" is the root of your application.
Make sure, your *.tld files are located in myapp/WEB-INF/

I hope that helps.

Best regards,
Bernhard



> -Ursprüngliche Nachricht-
> Von: Tamanaei, ITS PersWi C500, DA [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 14. August 2001 16:29
> An: '[EMAIL PROTECTED]'
> Betreff: AW: can't test my jsp page
> Wichtigkeit: Niedrig
>
>
> yes of course,
> the file struts-html.tld is locatet in "C:\Tomcat\webapps\ROOT\WEB-INF\"
>
> -Ursprüngliche Nachricht-
> Von: Bernhard J. Hirschmann [mailto:[EMAIL PROTECTED]]
> Gesendet am: Dienstag, 14. August 2001 16:19
> An: [EMAIL PROTECTED]
> Betreff: AW: can't test my jsp page
>
>
> Are you sure, the file struts-html.tld is located in
> "C:\Tomcat\webapps\ROOT\WEB-INF\" ?
>
> Tomcat can not find this file - thats the simple reason.
>
>
> > -Ursprüngliche Nachricht-
> > Von: Tamanaei, ITS PersWi C500, DA [mailto:[EMAIL PROTECTED]]
> > Gesendet: Dienstag, 14. August 2001 15:54
> > An: '[EMAIL PROTECTED]'
> > Betreff: can't test my jsp page
> > Wichtigkeit: Niedrig
> >
> >
> > Hi everyone,
> >
> > i have written a simple jsp page, which will use the descriptor-file
> > "struts-html.tld" from struts.
> > But i wanted to run this page at Tomcat and i got the following error:
> >
> > "org.apache.jasper.compiler.CompileException:
> > C:\Tomcat\webapps\ROOT\ebi\Struts_test.jsp(2,0) Unable to open
> taglibrary
> > /WEB-INF/struts-html.tld :
> C:\Tomcat\webapps\ROOT\WEB-INF\struts-html.tld"
> >
> >
> >
> >
> >
>




Re: Acronym BMO ( Session Beans )What does it stand 4.

2001-08-14 Thread Troy Hart

I'm not sure, but I would guess Business Model Objects.

On Tuesday 14 August 2001 02:21 am, you wrote:
> Hi i didn't get a response or a suggestion regarding BMO (Session Beans
> ) Thus i would like to know what this acronym stands for . I have come
> across a UML class diagram that connects a BMO TO a DAO (Data Access
> Object ) via Query / Update.Has or does BMO SOMETHING TO DO WITH
> Business Method Objects to hazard a guess as it is within the Business
> Layer of the UML Class Diagram
>
> Cheers Chuckie



Re: book ??????????

2001-08-14 Thread Troy Hart

ENOUGH ALREADY!!!

On Friday 14 July 2000 12:59 am, you wrote:
> Hi everybody
>
> is there any book where i can find strut related material???
>
>
> praveen



AW: can't test my jsp page

2001-08-14 Thread Tamanaei, ITS PersWi C500, DA

yes of course,
the file struts-html.tld is locatet in "C:\Tomcat\webapps\ROOT\WEB-INF\"

-Ursprüngliche Nachricht-
Von: Bernhard J. Hirschmann [mailto:[EMAIL PROTECTED]]
Gesendet am: Dienstag, 14. August 2001 16:19
An: [EMAIL PROTECTED]
Betreff: AW: can't test my jsp page


Are you sure, the file struts-html.tld is located in
"C:\Tomcat\webapps\ROOT\WEB-INF\" ?

Tomcat can not find this file - thats the simple reason.


> -Ursprüngliche Nachricht-
> Von: Tamanaei, ITS PersWi C500, DA [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 14. August 2001 15:54
> An: '[EMAIL PROTECTED]'
> Betreff: can't test my jsp page
> Wichtigkeit: Niedrig
>
>
> Hi everyone,
>
> i have written a simple jsp page, which will use the descriptor-file
> "struts-html.tld" from struts.
> But i wanted to run this page at Tomcat and i got the following error:
>
> "org.apache.jasper.compiler.CompileException:
> C:\Tomcat\webapps\ROOT\ebi\Struts_test.jsp(2,0) Unable to open taglibrary
> /WEB-INF/struts-html.tld : C:\Tomcat\webapps\ROOT\WEB-INF\struts-html.tld"
>
>
>
>
>



RE: can't test my jsp page

2001-08-14 Thread Turgay Zengin

Seems like Tomcat cannot find the .tld file where it expects. I suggest that 
you don't put your files under ROOT context, but under webapps as a new 
directory.
i.e. If your application's name is "ebi" then create a directory 
c:\tomcat\webapps\ebi and put everything under that.

For your current configuration to work, I guess the .tld file should be in 
C:\Tomcat\webapps\ROOT\WEB-INF\ , is it there?

HTH,
-Turgay.

On 2001-08-14 13:53:51 "Tamanaei, ITS PersWi C500, DA" 
<[EMAIL PROTECTED]> wrote:

Hi everyone,

i have written a simple jsp page, which will use the descriptor-file
"struts-html.tld" from struts.
But i wanted to run this page at Tomcat and i got the following error:

"org.apache.jasper.compiler.CompileException:
C:\Tomcat\webapps\ROOT\ebi\Struts_test.jsp(2,0) Unable to open taglibrary
/WEB-INF/struts-html.tld : C:\Tomcat\webapps\ROOT\WEB-INF\struts-html.tld"

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




ActionErrors going out of request scope

2001-08-14 Thread B Manikandan

Hi,

I have a frame based implementation.

frame 2

   frame 1

frame 3


  All actions are invoked from frame 1.In frame 2 and 3 ,I have
html:errors.

Now in case of error, Iam populating ActionErrors and also calling
saveErrors.But Iam displaying the frames page in all requests.So the
Action.ERROR_KEY is lost in request.

How do I handle this ?

Mani



---
Information transmitted by this E-MAIL is proprietary to Wipro Limited and
is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail
from your records.




Struts forms used with an html editor

2001-08-14 Thread Erdebil, Nilufer

Is anyone using an HTML editor to initially create a jsp and then putting in
the Struts forms into the page? I would like to know if there are any
problems when the JSP with the struts forms is put back into the HTML editor
to make layout changes. ( I am using Dreamweaver as the HTML editor)

Nilufer Erdebil



--
This communication contains confidential information intended solely for the use of 
the individual/s and/or entity or entities to whom it was intended to be addressed.  
If you are not the intended recipient, be aware that any disclosure, copying, 
distribution, or use of the contents of this transmission is prohibited.  If you have 
received this communication in error, please contact the sender immediately, delete 
this communication from your system, and do not disclose its contents to any third 
party, or use its contents.  Any opinions expressed are solely those of the author and 
do not necessarily represent those of Orchestream Ltd or its group of companies unless 
otherwise specifically stated.



AW: can't test my jsp page

2001-08-14 Thread Bernhard J. Hirschmann


Are you sure, the file struts-html.tld is located in
"C:\Tomcat\webapps\ROOT\WEB-INF\" ?

Tomcat can not find this file - thats the simple reason.


> -Ursprüngliche Nachricht-
> Von: Tamanaei, ITS PersWi C500, DA [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 14. August 2001 15:54
> An: '[EMAIL PROTECTED]'
> Betreff: can't test my jsp page
> Wichtigkeit: Niedrig
>
>
> Hi everyone,
>
> i have written a simple jsp page, which will use the descriptor-file
> "struts-html.tld" from struts.
> But i wanted to run this page at Tomcat and i got the following error:
>
> "org.apache.jasper.compiler.CompileException:
> C:\Tomcat\webapps\ROOT\ebi\Struts_test.jsp(2,0) Unable to open taglibrary
> /WEB-INF/struts-html.tld : C:\Tomcat\webapps\ROOT\WEB-INF\struts-html.tld"
>
>
>
>
>




Multi-page form bean persistence

2001-08-14 Thread Richard William Lake

I have a multi-page form to manipulate a 2-level tree structure, so one of the 
variables of my ActionForm specifies which branch of the tree is shown, and I have no 
problem switching between branches to view the data. I'm using another variable to 
define a cancel/commit status of the form, which defines when the user has chosen to 
finish editing. If this status is not set then the Action forwards to the Input form.

The form transfers properties between pages by using  tags. The problem 
is that the data structure does not persist (it is a member variable of the form 
class) between requests, even though it is only created if the variable is null and it 
is not set in the reset method. I have also tried using "session" scope for the form, 
with no noticeable difference.

Perhaps there is somebody who can explain how to achieve form persistance across pages 
(the view is the same for all "pages" in my case) or is this a "grey-area" at the 
moment in this excellent framework?

I would also like to use multiple data sources for the benefits of connection pooling. 
I couldn't find any mention of documentation describing how to define this. Is there a 
property of the XML tag to give a database a named reference?
* Actually, I couldn't find any documentation detailing the precise structure and 
layout of the "struts-config.xml" file.

As a final point, it would be nice to see a "how-to" article section on the Struts 
website with minimal examples of such scenarios or building blocks if you like. I 
wonder if this has been discussed before?

Regards,
Richard



can't test my jsp page

2001-08-14 Thread Tamanaei, ITS PersWi C500, DA

Hi everyone,

i have written a simple jsp page, which will use the descriptor-file
"struts-html.tld" from struts.
But i wanted to run this page at Tomcat and i got the following error:

"org.apache.jasper.compiler.CompileException:
C:\Tomcat\webapps\ROOT\ebi\Struts_test.jsp(2,0) Unable to open taglibrary
/WEB-INF/struts-html.tld : C:\Tomcat\webapps\ROOT\WEB-INF\struts-html.tld"







RE: get/set on properties in a form bean

2001-08-14 Thread Geddes, Mark (ANTS)

yes

-Original Message-
From: Mike Dewhirst [mailto:[EMAIL PROTECTED]]
Sent: 14 August 2001 14:55
To: '[EMAIL PROTECTED]'
Subject: get/set on properties in a form bean


If I have a bean with int, long, etc. properties in an ActionForm, will
Struts cast/convert them to and from String automatically?


=**

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

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

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

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

**=


***
This email message contains confidential information for the above addressee only.  If 
you are not the intended addressee you must not disclose or use the information in any 
manner whatsoever.

Any opinion or views contained in this email message are those of the sender, do not 
represent those of the Company in any way and reliance should not be placed upon its 
contents.

Unless otherwise stated this email message is not intended to be contractually 
binding.  Where an Agreement exists between our respective companies and there is 
conflict between the contents of this email message and the Agreement then the terms 
of that Agreement shall prevail.

Abbey National Treasury Services plc. Registered in England. Registered Office:  Abbey 
House, Baker Street, London NW1 6XL.  Company Registration No: 2338548.  Regulated by 
the SFA
***



get/set on properties in a form bean

2001-08-14 Thread Mike Dewhirst

If I have a bean with int, long, etc. properties in an ActionForm, will
Struts cast/convert them to and from String automatically?


=**

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

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

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

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

**=



RE: XML based ApplicationResources.properties

2001-08-14 Thread Halvorson, Loren

With regard to a standard XML format for localized data, have you taken a
look at TMX?  http://lisa.org/tmx/
We wrote a very simple MessageResources subclass that reads TMX files via a
SAX parser.  The advantage is that there are lots of translation tools out
there to translate TMX file.

-Original Message-
From: Mills, Theo [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, August 14, 2001 8:03 AM
To: '[EMAIL PROTECTED]'
Subject: XML based ApplicationResources.properties


Are there any plans to turn the ApplicationResources.properties into an
actual xml document?

It would make the file more manageable, IMO, by conforming to a standard
found in other struts "property" files, such as struts-config, and allow
messages to be returned as actual html or text blocks, rather than a single
string. Additionally, you could add other properties to the error message,
such as an error logging function (logging=yes, or something) that could
append the messages to a log file.

Or better yet, you could put all multilingual versions of an error in a
single place, such as:


   
   authenticationError
   
   
  
  english
  
  
   Try again!
  
   
   
  
  german
  
  
   Nein! Das geht aber nicht!
  
   


-Theo Mills



Examples of mutli-click prevention using struts tokens

2001-08-14 Thread Tim Fox

Anyone know of any examples of how to use the
saveToken(), resetToken(), and isTokenValid() methods - for prevention of
submission of forms multiple times.
I can't find anything in the docs.
Specifically I want to be able to use them in the situation where I *don't*
have a  in my page - is this possible?
thanx in advance






Re: ActionForm and business object?

2001-08-14 Thread Mark Chen



Craig,
 
Thanks!
 
Mark
>>> [EMAIL PROTECTED] 08/13/01 07:03PM 
>>>On Mon, 13 Aug 2001, Mark Chen wrote:> I 
remembered that I read some article about separating business object> 
from ActionForm using Some kind of util class built from Struts to> 
extract info from business object or value object.> > 
Unfortunately, I couldn't locate the document. Any help will be> greatly 
appreciated!> > You might want to look at 
PropertyUtils.copyProperties().  This is whatStruts uses deep inside 
when populating the properties of your form beans,but the methods are 
equally useful to your own code.In Struts 1.0, this class is in package 
"org.apache.struts.util".  In1.1-dev, the classes got moved to the 
Jakarta Commons project 
because they are generally usefuloutside of Struts as well.  The only 
thing you do to use these is changethe package name to 
"org.apache.commons.beanutils" instead -- callingsequences are 
compatible.> > Mark Chen> > Montage.DMC, 
AT&T Canada,> Craig


Re: STRUTS with Sybase EAServer 3.6.1 C2

2001-08-14 Thread daoust . c



My understanding is that there are some class issues with EAServer and that
the fix has not yet been made public.  This si the latest info I could get
from the EAServer newsgroups.

Claude





"Malcolm Wise" <[EMAIL PROTECTED]> on 08/13/2001 06:54:21 AM

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

To:   [EMAIL PROTECTED]
cc:(bcc: Claude Daoust/BCBSRI)

Subject:  STRUTS with Sybase EAServer 3.6.1 C2




Has anybody out there managed to get struts working with EAServer?
I've got struts-example working to a point, but I'm stuck with
StringIndexOutOfBounds exceptions in some of the HTML tag library classes
and jsessionid problems.

TIA

Malcolm Wise
Technology Manager
Semiconductor & Devices Europe
Tel. +44(0)1256 388864
http://www.semiconductor.sony-europe.com









**
MailSweeper

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed.  If you are not the intended recipient, you are hereby
notified that any disclosure, copying, distribution or taking of any 
action in reliance on the information contained in this e-mail is
prohibited.  If you have received this email in error, please 
immediately notify your email administrator.

Blue Cross Blue Shield of Rhode Island 459-1000 x4357 (in state)
1-800-637-3718 x4357 (out of state)
**



XML based ApplicationResources.properties

2001-08-14 Thread Mills, Theo

Are there any plans to turn the ApplicationResources.properties into an
actual xml document?

It would make the file more manageable, IMO, by conforming to a standard
found in other struts "property" files, such as struts-config, and allow
messages to be returned as actual html or text blocks, rather than a single
string. Additionally, you could add other properties to the error message,
such as an error logging function (logging=yes, or something) that could
append the messages to a log file.

Or better yet, you could put all multilingual versions of an error in a
single place, such as:


   
   authenticationError
   
   
  
  english
  
  
   Try again!
  
   
   
  
  german
  
  
   Nein! Das geht aber nicht!
  
   


-Theo Mills




How to Build & Deploy a New Application

2001-08-14 Thread Efrain Gutierrez

How to Build & Deploy a New Application
in Tomcat and Weblogic.???

=
Ing. Jose Efrain Gutierrez C
Web Developer/Softtek Monterrey Mexico
ICQ:2293612
yahoo & hotmail:jefrainmx

_
Do You Yahoo!?
Construye tu página personal en Yahoo! GeoCities. ¡Es fácil, 
rápido y gratis! http://geocities.yahoo.com.mx



test

2001-08-14 Thread jigerjava
test hope it gets thru.
Get Your Private, Free E-mail from Indiatimes at  http://email.indiatimes.comBuy Music, Video, CD-ROM and Audio-Books from http://www.planetmonline.com


AW: Pressing Struts Questions

2001-08-14 Thread Beuck, Torsten

Hi Bernhard, Michael,

> 
> >without having tested this, but have you ever tried to 
> convert 'Ändern'
> >instead of 'Ändern'?
> 
> Without testing it myself but looking at the sourcecode 
> 'Ändern' should
> remain unchanged.

I've tested it and you are right: It remains unchanged. The filter method
only replaces the characters '&', '<', '>' and '"'.

> 
> This probably could work as a temporary fix. On the long run we will
> need a proper solution though.
> 

Currently i use 'Aendern' because with UTF-8 encoding the browser cannot
display 'Ä'. But this could not be the final solution.

Maybe i will find the time to write a corrected filter method. What i don't
know is: Who is responsible for the ResponseUtils class? Is it Craig R.
McClanahan? Should i post the method code to this mailing list or send it
directly to him?

Best regards

Torsten



Re: How to get a locale object in the constructor of a ActionForm class?

2001-08-14 Thread Gregor Rayman

"Hartmut Bernecker" <[EMAIL PROTECTED]> wrote:


> Hi,
> 
> how can I get a locale object in the construtcor of a ActionForm class?
> In a login-form I want to set a selectbox containing language
> descriptions to the right value ("de" or "en" or "fr" etc). I think the
> best way to do that would be an initialisation with the current locale
> in the constructor of the ActionForm bean:
> 
> public LoginForm() {
>setLanguage("de");
> }
> 
> BTW: The locale is set by  in the JSP page.

I don't think it shoudl be done in the constructor. if you really want 
to do it in an ActionForm and not Action, you should think about the
method reset which gets the request as parameter.

--
gR




Re: Pressing Struts Questions

2001-08-14 Thread Michael Gerdau

Hi Torsten, Bernhard !

>without having tested this, but have you ever tried to convert 'Ändern'
>instead of 'Ändern'?

Without testing it myself but looking at the sourcecode 'Ändern' should
remain unchanged.

This probably could work as a temporary fix. On the long run we will
need a proper solution though.

Best,
Michael
--
 Vote against SPAM - see http://www.politik-digital.de/spam/
 Michael Gerdau   email: [EMAIL PROTECTED]
 WOODEN STICK 9x - For propping open your Windows
 PGP-keys available on request or at public keyserver





RE: Struts example application deployed on webappcabaret

2001-08-14 Thread Turgay Zengin

Hi,
Among the possible reasons:
Turned Off (May be, I try not to turn the context off, but once I did to 
change a class)
Does NOT exist (not possible, it is there :))
Busy (in which case you may try again). (may be)

So, please try again...

I suggest that you write to my e-mail address about wbappcabaret issues 
([EMAIL PROTECTED]) not to make the Struts list busy with that.

-Turgay.

On 2001-08-14 10:33:17 <[EMAIL PROTECTED]> wrote:
---
I get the error on your page???

Server Context Not Available. Possible reasons:
Turned Off
Does NOT exist
Busy (in which case you may try again).

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




AW: Pressing Struts Questions

2001-08-14 Thread Bernhard J. Hirschmann

Hi Torsten!

without having tested this, but have you ever tried to convert 'Ändern'
instead of 'Ändern'?

Best regards,
Bernhard




Pressing Struts Questions

2001-08-14 Thread Beuck, Torsten

Hi to all Struts developers.

A few days ago i posted two different questions to this mailings.
Unfortunately it seems as if nobody noticed these mails. I am sorry but i
have to post them again, because i urgently need any clues.

Here are the questions:

1)ResponseUtils.filter
--
The html:options tag handler (and other html tag handlers) uses
ResponseUtils.filter to replace the characters '&', '>', '<' and '='. This
filter method changes the string 'Ändern' to 'Ändern'. For
english text this may be a nice feature, but it prevents developers to use
text in languages with special characters (like german).
Is there a workaround or can anyone rewrite the filter method so that it
only replaces single '&' characters and ignores character entities?

2) select tag and indexed properties

I have an ActionForm:

public class MyForm extends ActionForm {
  ...
  public Collection getOptions(int index) { ... }
  public Collection getLabels(int index) { ... }
  public String[] getSelection(int index) { ... }
  public void setSelection(int index, String[] value) { ... }
  ...
}

and the following JSP code:



  ...
  

  
  ...



('test' is a bean that the list to iterate over; 'form' is the name of the
MyForm instance)

Everthing works fine but the setSelection(...) method. When i submit the
form i get:

java.lang.IllegalArgumentException: argument type mismatch
 at java.lang.reflect.Method.invoke(Native Method)
 at
org.apache.struts.util.PropertyUtils.setIndexedProperty(PropertyUtils.java:8
33)
 at
org.apache.struts.util.PropertyUtils.setIndexedProperty(PropertyUtils.java:7
85)
 at
org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.java:90
2)
 at org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:932)
 at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:509)
 at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:772)
 at
org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:20
61)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1563)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)

I have to define a method

  public void setSelection(int index, String value) { ... }

to get it working, but then i only get the first selected entry in the list
and not all. Is this a bug or did i something wrong?

Thank you in advance.

Torsten Beuck
OTTO Versand
Abteilung IT-EW-WQ
Wandsbeker Str. 3 - 7
22172 Hamburg

Tel.:  +49 40 6461 5351
Fax:   +49 40 6464 5351
eMail: [EMAIL PROTECTED]




RE: Struts example application deployed on webappcabaret

2001-08-14 Thread baris.guzelordu

I get the error on your page???

Server Context Not Available. Possible reasons: 
Turned Off
Does NOT exist
Busy (in which case you may try again).

-Original Message-
From: Turgay Zengin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 12:35 PM
To: [EMAIL PROTECTED]
Subject: Struts example application deployed on webappcabaret


Hi everybody,

I have finished my first Struts application (well, nearly finished), and
I 
thought you may want to have a look at it. You can find it at work at 
http://www.webappcabaret.com/turgayzengin , and also I have a place on 
sourceforge where you can find the source code at 
http://sourceforge.net/projects/coursetracking.

It is a simple application, which helps you track training courses 
information in a company. You can add/edit course information and
add/delete 
employees to/from courses. Then you get reports about courses and
employees.

It is not complete yet, however I thought that (if you have time) you
may 
have a look and point the design mistakes or any other bad practices I
did, 
and also make suggestions to make it a better application. Also, if you
are 
new to Struts or web application development, I will be happy if you
find 
anything useful for you.

Please note that the code is not optimised, user interface is very
simple, 
there are only "Resultsets" for database operations (Rowsets may be
used), 
etc. However, it is working, and I want to improve it, so your help will
be 
very much appreciated.

I'll be happy if such an application will be useful for others. Anyway,
it 
is available on sourceforge and webappcabaret, you are welcome to have a

look at it...

To try the app on webappcabaret, logon as "training" with no password.
You 
will now be able to insert/update courses and get reports.

I would like to know if there are any other applications developed using

Struts available, other than the ones listed on
www.husted.com/about/struts.

Have fun,
Turgay.

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


***

This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you are not the intended recipient you are hereby notified that any
dissemination, forwarding, copying or use of any of the information is
prohibited.

The opinions expressed in this message belong to sender alone. There is no
implied endorsement by TURKCELL.

This e-mail has been scanned for all known computer viruses.

***



RE: JBuilder 5, Struts 1.0 & WebLogic 6.0, a Tutorial

2001-08-14 Thread markus.colombo

I had to update the following part:

http://www.netstore.ch/mesi/strutstutorial/part2.html#Heading6

(I left out the dependencies tab, which prevented the struts.jar from being
in the war file...)


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 5:24 AM
To: [EMAIL PROTECTED]
Cc: Wymann, Roland
Subject: JBuilder 5, Struts 1.0 & WebLogic 6.0, a Tutorial


A small Tutorial can be found at:
http://www.netstore.ch/mesi/strutsTutorial/

Even if it is weblogic specific, it might be interresting for everybody who
develops with JBuilder.

Thanks to Anthony, Bill and everybody else in this list for the tips !




RE: the data flow

2001-08-14 Thread devon . bowen

> 3. Controller Creates a new instance of ActionForm, invokes it's
> reset method.

The instance of the ActionForm either already exists (created by
a previous Action) or is created when the HTML for the form is
generated (as the form is being given to the user for modification).
Reset is not called at this point because maybe the form has
been preloaded with info or maybe the form is being returned to
the user because a previous validation failed. Reset() is invoked
when the form has been filled out and is on its way back to the
server. The form is then cleared and filled with the new parameters
before being delivered to the Action. So form creation takes place
as the HTML is going out and the reset is invoked when the data
is on its way back. They don't happen together.

> 3b. If validate method contains code, run it (populating the 
> errors object)

If "validate" is set to "true" in the struts-config.xml file.

Devon




the data flow

2001-08-14 Thread Mike Dewhirst

Just want to clarify the flow of data in Struts:

1. Controller receives request.
2. Controller looks up mapping for Action and what ActionForm to use.
3. Controller Creates a new instance of ActionForm, invokes it's reset
method.
3a. If request contains parameters, Controller populates form by mapping
property methods to setters (e.g. parameter "email" would be populated by
calling ".setEmail(..)" method in the form).
3b. If validate method contains code, run it (populating the errors object)
4. Controller invokes Action class' perform method.
5. As the instance of form ActionForm is supplied to the perform method,
populate/process form, invoke EJB's/DB access/etc.
6. return the appropriate mapping (success/failure/etc).
7. Controller looks up returned mapping and forwards to mapped URI.

Could somebody let me know if this is correct.

Mike


=**

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

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

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

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

**=



How to get a locale object in the constructor of a ActionForm class?

2001-08-14 Thread Hartmut Bernecker

Hi,

how can I get a locale object in the construtcor of a ActionForm class?
In a login-form I want to set a selectbox containing language
descriptions to the right value ("de" or "en" or "fr" etc). I think the
best way to do that would be an initialisation with the current locale
in the constructor of the ActionForm bean:

public LoginForm() {
   setLanguage("de");
}

BTW: The locale is set by  in the JSP page.

TIA
Hartmut



Struts example application deployed on webappcabaret

2001-08-14 Thread Turgay Zengin

Hi everybody,

I have finished my first Struts application (well, nearly finished), and I 
thought you may want to have a look at it. You can find it at work at 
http://www.webappcabaret.com/turgayzengin , and also I have a place on 
sourceforge where you can find the source code at 
http://sourceforge.net/projects/coursetracking.

It is a simple application, which helps you track training courses 
information in a company. You can add/edit course information and add/delete 
employees to/from courses. Then you get reports about courses and employees.

It is not complete yet, however I thought that (if you have time) you may 
have a look and point the design mistakes or any other bad practices I did, 
and also make suggestions to make it a better application. Also, if you are 
new to Struts or web application development, I will be happy if you find 
anything useful for you.

Please note that the code is not optimised, user interface is very simple, 
there are only "Resultsets" for database operations (Rowsets may be used), 
etc. However, it is working, and I want to improve it, so your help will be 
very much appreciated.

I'll be happy if such an application will be useful for others. Anyway, it 
is available on sourceforge and webappcabaret, you are welcome to have a 
look at it...

To try the app on webappcabaret, logon as "training" with no password. You 
will now be able to insert/update courses and get reports.

I would like to know if there are any other applications developed using 
Struts available, other than the ones listed on www.husted.com/about/struts.

Have fun,
Turgay.

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




TILES - cannot run the provided webapps

2001-08-14 Thread nicolas bonvin

cedric?,

I downloaded the latest(20010731) version of tiles from
http://www.lifl.fr/~dumoulin/tiles/ and tried to deploy the tiles-tutorial
webapp inside of tomcat4.0-b7 (as well as other tomcat versions just to make
sure); unfortunately, here's the error I get upon requesting
http://localhost:8080/tiles-tutorial/index.jsp

any idea?

thanks,

nicolas b.


Root Cause:
javax.servlet.jsp.JspException: Can't get definitions factory from context.
at
org.apache.struts.taglib.tiles.InsertTag.processDefinitionName(InsertTag.jav
a:589)
at
org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:442
)
at org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:399)
at org.apache.jsp._0002findex_jsp._jspService(_0002findex_jsp.java:65)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:458)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:215)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2314)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1000)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1093
)
at java.lang.Thread.run(Thread.java:484)




ScanMail Message: To Recipient virus found and action taken.

2001-08-14 Thread System Attendant

ScanMail for Microsoft Exchange has detected virus-infected attachment(s).

Sender = [EMAIL PROTECTED]
Recipient(s) = [EMAIL PROTECTED]
Subject = Rejected Message
Scanning Time = 08/14/2001 10:33:35

Action on virus found:
The attachment validate.js matched file blocking settings. ScanMail has
Deleted it. 

Warning to recipient. ScanMail detected a virus in an email attachment.
08/14/200110:33 AM
[validate.js/Deleted] 
Rejected Message
[EMAIL PROTECTED]



Antigen found =*.js file

2001-08-14 Thread ANTIGEN_NT_49613125

Antigen for Exchange found validate.js matching =*.js file filter.
The file is currently Removed.  The message, "Rejected Message", was
sent from [EMAIL PROTECTED] and was discovered in Herz,
Stefan\Inbox
located at ZDF/ZDF_MAINZ/NT_49613125.



Rejected Message

2001-08-14 Thread orby

The attached mail message has been rejected for the following reason:

Message contains attachments: validate.js

Additional Information:








Matt,

I solved this problem using JavaScript (if Java behaves with the same way,
it will work for Java too). I compared resulting values of day, month and
year for destination date after setting this properties. If they're
different, date is invalid.
I include my JavaScript version here: (See attached file: validate.js)

---
Andrei Mamitchev
[EMAIL PROTECTED]
ICQ#: 89581227

I have a Data Object (DO) that we use to throw b/w our EJBs and forms.

1.  In one particular DO, I am using the Gregorian Calendar to set day,
month
and year.
2.  I am using the validation framework to validate that day is b/w 1-31,
that
month is b/w 1-12 and year is b/w 2001 and 2100.

The validation framework is not validating day or month, because with the
gregorian calendar in my getters/setters - you can set a day or a month to
any
number and it will simply increment the calendar.

Does anyone know of a way to get around this?  I'd like to NOT use
Javascript,
but I want to validate the value the user entered, rather than the value
from
the DO using getValue();


 validate.js



Acronym BMO ( Session Beans )What does it stand 4.

2001-08-14 Thread Chuck Amadi

Hi i didn't get a response or a suggestion regarding BMO (Session Beans
) Thus i would like to know what this acronym stands for . I have come
across a UML class diagram that connects a BMO TO a DAO (Data Access
Object ) via Query / Update.Has or does BMO SOMETHING TO DO WITH
Business Method Objects to hazard a guess as it is within the Business
Layer of the UML Class Diagram

Cheers Chuckie
-- 
The views expressed by the sender of this message don't 
necessarily represent those of Brecon Beacons National Park 
Authority. This message is intended for the addressee(s) only 
and is sent in confidence; if you receive it in error, please can you 
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn 
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog. 
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion 
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn 
mewn camgymeriad, a fyddech gystal â rhoi gwybod i 
ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.



  1   2   >