RE: [Redirect] Caching problem with redirect... (new attempt)

2002-09-06 Thread James Mitchell

 -Original Message-
 From: Michael Delamere [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 06, 2002 2:29 AM


 Hi,

 I hope you don´t mind me asking again, but I got no answer yesterday


 I´m programming an application with a shopping cart.  Originally I used a
 normal forward.  The downside of this though, was that when the
 user pressed
 the refresh button, the article incremented by one every time.

You can eliminate this by utilizing token verification that is part of the
framework.
See the code in the struts-example or docs for exact usage and benefits.


 Michael



HTH

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://www.open-tools.org/struts-atlanta



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




RE: Avoiding the page is expired with POSTed forms

2002-09-06 Thread Dennis van den Berg

I extended the ActionServlet to set the following headers.

response.setDateHeader(Expires, System.currentTimeMillis());
response.setDateHeader(Last-Modified, System.currentTimeMillis());

Hope this helps

Dennis

-Original Message-
From: Michael [mailto:[EMAIL PROTECTED]]
Sent: donderdag 5 september 2002 18:13
To: Struts Users Mailing List
Subject: Avoiding the page is expired with POSTed forms


Is it possible to avoid the page is expired problem resulting from
going back to a page that was the result of a POST?  I temporarily
changed my form to GET and it works fine now but I really prefer post.

Michael


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


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




logic:equal with string arrays

2002-09-06 Thread Marco Maier

Hi All,

I would like to compare a element of an object array with the
logic:equal tag.
Something like that...

bean:define id=specialEvalRights name=loginForm 
property=view.specialEvalRights type=java.lang.String[]/

logic:equal name=specialEvalRights property=0 value=true
[...]
/logic:equal

but this doesn't work. I know that this works with HashMap's.
But how can I achieve this with string arrays?

TIA

Marco


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




RE: Exception when addForwardConfig

2002-09-06 Thread Miguel Angel Mulero Martinez

Ok! Thanks! You have all the reason. I don't need to put the ActionForward
in the config, only return it.
Now I have another problem:

I use a non relative URI: http://localhost:8081/ultimasNoticias.do

But my browser tries to go to:
http://localhost:8081/http:/localhost:8081/ultimasNoticias.do

I tried both forms (my Action is http://localhost:8081/login.do)

return new
ActionForward(dirTo,http://localhost:8081/ultimasNoticias.do,true,false)
;

and

return new
ActionForward(dirTo,http://localhost:8081/ultimasNoticias.do,true,true);

both with the same result.

What's the correct? What's the mistake?

Thanks!!




-Mensaje original-
De: Christopher Seekamp [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 05 de septiembre de 2002 15:42
Para: Struts Users Mailing List
Asunto: RE: Exception when addForwardConfig






Miguel:

Well, I don't fully understand what you are trying to do.  You are trying
to add another forward to one of your mappings, which is frozen.  Usually
it would seem within an Action you would return an ActionForward
indicating where to go next, such as new ActionForward( http://someurl.com
,true).  I guess you are trying to update your configuration dynamically
to allow later executions of one or more of your Actions to look up this
new forward by name?

I was not aware that the frozen configuration was new to Struts 1.1 but I
guess it is.  For a little more information on the frozen configuration
issue perhaps see
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg30718.html


Chris Seekamp




|-+-
| |   Miguel Angel Mulero   |
| |   Martinez  |
| |   [EMAIL PROTECTED]|
| |   ecsidel.es   |
| | |
| |   09/05/2002 08:58 AM   |
| |   Please respond to Struts |
| |   Users Mailing List   |
| | |
|-+-

---
--|
  |
|
  |   To:   Struts Users Mailing List
[EMAIL PROTECTED]
|
  |   cc:
|
  |   Subject:  RE: Exception when addForwardConfig
|
  |
|
  |
|

---
--|



Hi Chris,

In Struts 1.0.2, I used the ActionMapping.addForward() to create a new
forward and it worked. In Struts 1.1b2 this function doesn't exist, and I
thinked that addForwardConfig() was the substitute.

What function must I use to create a forward dinamically? I don't want to
write it to the configuration of my application, only want to use it to
make
a findForward().

Thanks!!!


-Mensaje original-
De: Christopher Seekamp [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 05 de septiembre de 2002 14:49
Para: Struts Users Mailing List
Asunto: RE: Exception when addForwardConfig






Miguel:

Most configuration objects can only be created when the struts-config.xml
is being created.  I assume that this is due to the fact that in many cases
(for example Action objects) are single instances used in multiple threads
so that they must be frozen (no updates allowed) after initialization so
that there are no multi-threaded issues.  The ActionMapping, via the
ActionConfig from which it inherits, is one of those configuration objects
that gets frozen. So basically, after the struts-config.xml is read and
processed at initialization time, such objects cannot be updated.

Chris Seekamp



|-+-
| |   Miguel Angel Mulero   |
| |   Martinez  |
| |   [EMAIL PROTECTED]|
| |   ecsidel.es   |
| | |
| |   09/05/2002 08:00 AM   |
| |   Please respond to Struts |
| |   Users Mailing List   |
| | |
|-+-

---

--|
  |
|
  |   To:   Struts Users Mailing List
[EMAIL PROTECTED]
|
  |   cc:
|
  |   Subject:  RE: Exception when addForwardConfig
|
  |
|
  |
|

---

--|



More data to my previous message:

In the javadoc, I've found that findForward:

Throws:
java.lang.IllegalStateException - if this module configuration has been
frozen

I don't know what that means. Someone could tell me how to unfroze the
module?

Thanks!!


Re: [Redirect] Caching problem with redirect... (new attempt)

2002-09-06 Thread Michael Delamere

Thanks, hopefully I´ll know what you are talking about once I´ve read the
docs... :-)

Regads,

Michael


- Original Message -
From: James Mitchell [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, September 06, 2002 8:45 AM
Subject: RE: [Redirect] Caching problem with redirect... (new attempt)


  -Original Message-
  From: Michael Delamere [mailto:[EMAIL PROTECTED]]
  Sent: Friday, September 06, 2002 2:29 AM
 
 
  Hi,
 
  I hope you don´t mind me asking again, but I got no answer yesterday
 
 
  I´m programming an application with a shopping cart.  Originally I used
a
  normal forward.  The downside of this though, was that when the
  user pressed
  the refresh button, the article incremented by one every time.

 You can eliminate this by utilizing token verification that is part of the
 framework.
 See the code in the struts-example or docs for exact usage and benefits.

 
  Michael
 
 

 HTH

 James Mitchell
 Software Engineer\Struts Evangelist
 Struts-Atlanta, the Open Minded Developer Network
 http://www.open-tools.org/struts-atlanta



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



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




RE: [Redirect] Caching problem with redirect... (new attempt)

2002-09-06 Thread James Mitchell

Here's a good response from Craig..

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg35600.html

Scroll down to see explaination


James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://www.open-tools.org/struts-atlanta




 -Original Message-
 From: Michael Delamere [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 06, 2002 3:22 AM
 To: Struts Users Mailing List
 Subject: Re: [Redirect] Caching problem with redirect... (new attempt)


 Thanks, hopefully I´ll know what you are talking about once I´ve read the
 docs... :-)

 Regads,

 Michael


 - Original Message -
 From: James Mitchell [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Friday, September 06, 2002 8:45 AM
 Subject: RE: [Redirect] Caching problem with redirect... (new attempt)


   -Original Message-
   From: Michael Delamere [mailto:[EMAIL PROTECTED]]
   Sent: Friday, September 06, 2002 2:29 AM
  
  
   Hi,
  
   I hope you don´t mind me asking again, but I got no answer
 yesterday
  
  
   I´m programming an application with a shopping cart.
 Originally I used
 a
   normal forward.  The downside of this though, was that when the
   user pressed
   the refresh button, the article incremented by one every time.
 
  You can eliminate this by utilizing token verification that is
 part of the
  framework.
  See the code in the struts-example or docs for exact usage and benefits.
 
  
   Michael
  
  
 
  HTH
 
  James Mitchell
  Software Engineer\Struts Evangelist
  Struts-Atlanta, the Open Minded Developer Network
  http://www.open-tools.org/struts-atlanta
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


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



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




RE: [OT] EasyStruts and location of the generated Action file (URGENT)

2002-09-06 Thread Heligon Sandra

I don't use Eclipse I use JBuilder5.
Has soemone any experience with Tomcat/EasyStruts/JBuilder ?

-Original Message-
From: Craig Tataryn [mailto:[EMAIL PROTECTED]]
Sent: 05 September 2002 21:06
To: [EMAIL PROTECTED]
Subject: Re: [OT] EasyStruts and location of the generated Action file
(URGENT)


I too use the Tomcat  Easy Struts plugins for Eclipse.  In fact I would say

they go hand in hand.

Typically this is what you do:

Install the Tomcat plugin, go into Window-Preferences-Tomcat and tell it 
where your tomcat base directory (CATILINA_HOME if you will) then create a 
new Tomcat project.  This ensures that your server.xml file will be setup 
properly so that a new context is added which points to your 
eclipse/workspaces/projectName/WEB-INF/ folder and your sources will be 
compiled to the proper directories.

If you need to stick jars in the WEB-INF/lib directory, right click on your 
project in the Java perspective (top most node) and choose Properties-Java 
Build Path-Libraries-Add External JARS.  Add the jar file, and the next 
time you refresh your WEB-INF/lib directory in eclipse you will see the new 
jar file appear there and you can use it's classes in your servlets.

Sound good?  So it just seems like you never started your project off as a 
Tomcat project before using the Easy Struts wizards.  Like I said, the 
Tomcat project container ensures that Tomcat knows where your classes are 
and it also ensures that the WEB-INF directory structure is created and 
updated for your project.

later,

craiger

From: Tiago Nodari [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: EasyStruts and location of the generated Action file  (URGENT)
Date: Thu, 05 Sep 2002 15:31:44 -0300


 Hi,

 I dont use eclipse that much but what I do is set the project base

path as CATALINA_HOME/webapps/ and I use a plugin called
Tomcat which has a project called tomcat that creates a web-inf and inside 
the web-inf a src and classes dir, works really nice...

http://www.sysdeo.com/eclipse/tomcatPlugin.html



At 03:18 PM 9/5/2002 +0200, you wrote:

 When I create a new Action class, it tries to save the file at:
 [.jpx project's location]/base package/src/base package +   
Action
class package.
 Why this path?
 The file must be created under the
 CATALINA_HOME/webapps/src/base package+ Action class package
 I don't understand which path (EasyStruts properties or setup I 
must
change).
 Where are saved the parameters declared in the EasyStruts set up 
and
properties ?
 Is it possible to share them ?

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


Craig W. Tataryn
Programmer/Analyst
Compuware

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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

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




[IFRAMES] Changing target on forward.

2002-09-06 Thread Joe Latty

I am using a master detail setup where there is a selection grid on the page
with an IFrame loaded with the details of the selected grid record.

This all works fine, however if I add a new record I need to update the grid
on the (_top) window. This can be achieved by all sorts of JavaScript hocus
pocus, but what would be neat would be the ability to change the target of
the form e.g.

return mapping.findForward(success, target now =_top);

Has anyone come up against this using frames/iframes?

Joe





RE: Avoiding the page is expired with POSTed forms

2002-09-06 Thread Michael

Wouldn't setting the expires date to the current time make the page
expire?  I'm trying to make it not expire.

 -Original Message-
 From: Dennis van den Berg [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, September 06, 2002 8:51 AM
 To: Struts Users Mailing List
 Subject: RE: Avoiding the page is expired with POSTed forms
 
 
 I extended the ActionServlet to set the following headers.
 
 response.setDateHeader(Expires, System.currentTimeMillis());
 response.setDateHeader(Last-Modified, 
 System.currentTimeMillis());
 
 Hope this helps
 
 Dennis
 
 -Original Message-
 From: Michael [mailto:[EMAIL PROTECTED]]
 Sent: donderdag 5 september 2002 18:13
 To: Struts Users Mailing List
 Subject: Avoiding the page is expired with POSTed forms
 
 
 Is it possible to avoid the page is expired problem 
 resulting from going back to a page that was the result of a 
 POST?  I temporarily changed my form to GET and it works fine 
 now but I really prefer post.
 
 Michael
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 


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




RE: [IFRAMES] Changing target on forward.

2002-09-06 Thread Andrew Hill

It looks like you are asking how you can forward the response to a
particular frame or window in the browser from the server.(?)
Alas, this is not possible.
The response will go to the frame the request came from, unless you specify
otherwise on the client side (for example using JS or the target attribute).
You cannot however choose this on the server side at the time the response
is being sent.

-Original Message-
From: Joe Latty [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 16:03
To: Struts Users Mailing List
Subject: [IFRAMES] Changing target on forward.


I am using a master detail setup where there is a selection grid on the page
with an IFrame loaded with the details of the selected grid record.

This all works fine, however if I add a new record I need to update the grid
on the (_top) window. This can be achieved by all sorts of JavaScript hocus
pocus, but what would be neat would be the ability to change the target of
the form e.g.

return mapping.findForward(success, target now =_top);

Has anyone come up against this using frames/iframes?

Joe




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




RE: [IFRAMES] Changing target on forward.

2002-09-06 Thread Miguel Angel Mulero Martinez

In the HTML page, in the form tag you can put the target, so you must select
before the action the target:

form  target=_top 

the target can be always the same or change with JavaScript, scriptlets,
etc.



-Mensaje original-
De: Joe Latty [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 06 de septiembre de 2002 10:03
Para: Struts Users Mailing List
Asunto: [IFRAMES] Changing target on forward.

I am using a master detail setup where there is a selection grid on the
page
with an IFrame loaded with the details of the selected grid record.

This all works fine, however if I add a new record I need to update the
grid
on the (_top) window. This can be achieved by all sorts of JavaScript
hocus
pocus, but what would be neat would be the ability to change the target
of
the form e.g.

return mapping.findForward(success, target now =_top);

Has anyone come up against this using frames/iframes?

Joe



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




Re: struts tags can not be displayed using tiles:insert

2002-09-06 Thread Cedric Dumoulin


  Hi,

Anen Wu wrote:

Hi Cedric,

I have put those taglib declarations on every page using Tiles and Struts.
For your information, I am using Struts 1.0.2 with Tiles for struts 1.0

Since my jsp (included Struts Tag) does not use any Tiles Definition, I
don't think I need to set up anything inside web.xml , do I ?

  You need to put struts declaration and taglib declaration in web.xml.
  Specify ActionServlet if you don't use definitions. Specify 
ComponentActionServlet if you use definition and Struts1.0.x.
  Appropriate taglib tld should be present and located according to the 
taglib declarations.
  There is one blank file for Tiles and Struts in Tiles distribution.


I have also tried to install your tiles-blank-struts1-0 war application
(Blank Site Example) , it s working fine, but if I tried to put some Struts
Tag, it also can not be displayed.

Btw, what's the use of controllerUrl and controllerClass attributes
inside insert tag ?

  This attribute are used to specify an action or controller to be call 
before the Tiles is rendered. The controller can fetch the data for the 
Tiles.

Do I need to set up anything to make Tiles intelligent enough to ask Struts
to render the page first before display it ?

  No. But you have to initialize struts properly ;-)


Any Tiles sample with Struts Tag could be really helpfull for me.

Thanks a lot for this innovative open source !

Best Regards,

Anen

  

  Cedric

  




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




RE: Imbeded JavaScript

2002-09-06 Thread Jon.Ridgway

Hi Tib,

Many thanks for this little gem. Didn't quite work, couldn't get the
imbedded quotes to parse in WLS 6.1, but found a workaround. 

Thanks again.

Jon Ridgway


-Original Message-
From: Gemes Tibor [mailto:[EMAIL PROTECTED]] 
Sent: 05 September 2002 10:19
To: Struts Users Mailing List
Subject: Re: Imbeded JavaScript

2002. szeptember 5. 10:38 dátummal Jon.Ridgway ezt írtad:
 Hi All,
 html:select property=PODStatus style=width: 48px
 onchange=sub('load.pod.popup', '%=index%')
 html:options collection=dsList
 property=deliveryStatusCode/
   /html:select

Because rt-expr must start with '%=' and end with '%'
Try this:

 html:select property='PODStatus' style='width: 48px'
 onchange='%= sub('load.pod.popup', ' + index+ ') %' 
 html:options collection=dsList
 property=deliveryStatusCode/
   /html:select

Hth,

Tib

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


The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

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




ServletException using Tiles in Struts 1.0.1

2002-09-06 Thread Floodgate, Gareth (G.)

Hi,

We are using Sturts 1.0.1 with Tiles, and have come across an issue, which I will 
attempt to describe below:

Explanation of usage:

The application is run within OC4J latest release

we use a jsp file to include common page information, it also includes the following 
line at the head of the JSP, the idea being to make this common across all JSPS

%@page buffer=64kb contentType=text/html; charset=UTF-8 errorPage=/error.jsp %

.. other common tiles definitions here, header menu bar, etc. ...

This JSP is then included at the head of an arbitary application page (called from an 
action), as so:

%@ include file=/layout/tiles-defs.jsp %

... other tiles inserts and puts for this page ...

... main page html - combination of logic:iterate, etc. ...



Explanation of Issue:

It appears that when the buffer (as defined above) becomes full, something causes a 
ServletException, the message is shown below:

 [ServletException in:/layout/default.jsp] null'

default.jsp is just a jsp with basic default info.

i.e. haed definitions and body definition

If the buffer attribute is removed the servlet exception happens immeadiately after 
the inclusion of the tiles-defs.jsp (that renders correctly).

Increasing the buffer size works for larger pages, but we are up to a buffer of 512kb 
and this really does not seem right, as the HTML produced is no way even near that 
size.

I would like to point out that the same page without any tiles bits works perfectly.


Does anyone have any experience with this type of error?


Many Thanks

Gareth Floodgate

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




Re: global forwards in forms.

2002-09-06 Thread Ted Husted

There's actually a feature requite there, but it's been marked later.
A patch has also been submitted, but with everything else going on, I 
haven't been able to look at it closely enough to commit it.

http://issues.apache.org/bugzilla/show_bug.cgi?id=7202

I do agree that now that we can do things like specify the input 
parameter as a forward, it only makes sense to use these as the standard 
Struts URI wrapper. In the case of an Action form, it may still be a 
requirement that it resolve to an Action. But being able to flex the 
target of a form (without a RTE) makes it easier to share forms between 
workflows (see also #10550).

What really made be a believer is when I needed to change from 
application-based to container-based security. The targets of all the 
forms had to be changed to accomodate the URI pattern. The URIs may be 
virtual, but they are not logical. Other components have expectations 
about how they are used. If the targets of the forms had been specified 
as ActionForwards, I could have made ALL the changes from within the 
Struts configuration.

-Ted

John Yu wrote:

 
 I see. Perhaps you can file a feature request in Bugzilla.
 
 
 At 07:44 am 06-09-2002, you wrote:
 
 I understand, however I read in http://husted.com/struts/catalog.htm

 Rather than embed the path to an ActionMapping in a JSP, a link should
 refer to a Global Forward instead...
 forward name=itemSearch  path=/item/Search.do/
 forward name=itemFindDonor path=/item/Search.do?column=donor/

 I thought this was good advice. Also, since a form action is 
 essentially a
 link with parameters hidden from the browser's address bar I can't see 
 why
 we shouldn't be able to use a global forward here as well.

 -Original Message-
 From: John Yu [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, 5 September 2002 3:46 PM
 To: Struts Users Mailing List
 Subject: Re: global forwards in forms.


 doesn't support forwarding to global forwards. What global forwards 
 give you is globally visible symbolic URIs. In a sense, the actions 
 are already globally visible symbolic URIs. (Watch out that using may 
 not be compatible with multi subapps.)
 
 


-- 
Ted Husted, Husted dot Com, Fairport NY US
co-author, Java Web Development with Struts
Order it today:
http://husted.com/struts/book.html


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




ClassCastException:java.lang.Integer

2002-09-06 Thread Vijeth R Naik

Hi 
I am a newbie using struts.
I have a simple jsp which has 2 fields, a String and a Number(eg: Name and
Age)br
When I try displaying the jsp, I get this exception,
ClassCastException:java.lang.Integer

I am using Tomcat-3.3.1 and Struts-1.0.2 

I have a form bean, where Name is a String and Age is an int.

In my ActionClass, I  set the bean values..

String age_str=request.getParameter(age);
int age_int=(new Integer(age_str)).intValue();

beanClass.setAge(age_int);

Kindly let me know what is the error..


TIA

Vijeth



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




RE: ClassCastException:java.lang.Integer

2002-09-06 Thread Miguel Angel Mulero Martinez

You can show me the part of your JSP when you use the values?


-Mensaje original-
De: Vijeth R Naik [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 06 de septiembre de 2002 12:59
Para: 'Strut User'
Asunto: ClassCastException:java.lang.Integer

Hi
I am a newbie using struts.
I have a simple jsp which has 2 fields, a String and a Number(eg: Name and
Age)br
When I try displaying the jsp, I get this exception,
ClassCastException:java.lang.Integer

I am using Tomcat-3.3.1 and Struts-1.0.2

I have a form bean, where Name is a String and Age is an int.

In my ActionClass, I  set the bean values..

String age_str=request.getParameter(age);
int age_int=(new Integer(age_str)).intValue();

beanClass.setAge(age_int);

Kindly let me know what is the error..


TIA

Vijeth



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


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




RE: ClassCastException:java.lang.Integer

2002-09-06 Thread Kidd, Polly

I think the thing to point out here is that you shouldn't have to do any of
this sort of code because struts takes care of this for you. If the input
fields in your jsp are defined with struts tags, eg.

html:text property=age/
html:text property=name/

and you have methods in your form bean called getAge()/setAge() and
getName()/setName(), when you submit your jsp struts will magically populate
the bean fields for you!

-Original Message-
From: Vijeth R Naik [mailto:[EMAIL PROTECTED]]
Sent: 06 September 2002 11:59
To: 'Strut User'
Subject: ClassCastException:java.lang.Integer


Hi 
I am a newbie using struts.
I have a simple jsp which has 2 fields, a String and a Number(eg: Name and
Age)br
When I try displaying the jsp, I get this exception,
ClassCastException:java.lang.Integer

I am using Tomcat-3.3.1 and Struts-1.0.2 

I have a form bean, where Name is a String and Age is an int.

In my ActionClass, I  set the bean values..

String age_str=request.getParameter(age);
int age_int=(new Integer(age_str)).intValue();

beanClass.setAge(age_int);

Kindly let me know what is the error..


TIA

Vijeth



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

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




RE: ClassCastException:java.lang.Integer

2002-09-06 Thread Vijeth R Naik


This is my jsp...

%@ page language=java %
%@ taglib uri=/WEB-INF/struts-bean.tld  prefix=bean %
%@ taglib uri=/WEB-INF/struts-html.tld  prefix=html %
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %

html:html locale=true
head
   html:base/
   titlebean:message key=index.title//title
/head
body bgcolor=white
h2Test/h2

html:errors/

html:form action=test.do method=GET
Name:html:text property=name / br/
Age:html:text property=age / br/

html:submit property=submit/
/html:form

/body
/html:html   




-Original Message-
From: Miguel Angel Mulero Martinez
[mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 4:29 PM
To: Struts Users Mailing List
Subject: RE: ClassCastException:java.lang.Integer


You can show me the part of your JSP when you use the values?


-Mensaje original-
De: Vijeth R Naik [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 06 de septiembre de 2002 12:59
Para: 'Strut User'
Asunto: ClassCastException:java.lang.Integer

Hi
I am a newbie using struts.
I have a simple jsp which has 2 fields, a String and a Number(eg: Name and
Age)br
When I try displaying the jsp, I get this exception,
ClassCastException:java.lang.Integer

I am using Tomcat-3.3.1 and Struts-1.0.2

I have a form bean, where Name is a String and Age is an int.

In my ActionClass, I  set the bean values..

String age_str=request.getParameter(age);
int age_int=(new Integer(age_str)).intValue();

beanClass.setAge(age_int);

Kindly let me know what is the error..


TIA

Vijeth



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


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


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




RE: [TGIF] Should this list discontinue it's long, treasured heritage

2002-09-06 Thread Galbreath, Mark

+2
It amazes me how anal-retentive some on this list are.  I'll bet they were
ugly kids and never got picked to be in any recess games.  The only
consolation was learning Flash and attempting to integrate it with Struts,
becoming frustrated and becoming impotent at home and bullies at the office.
Levity for these no-charismas actually causes pain.

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 11:32 PM
To: Struts Users Mailing List
Subject: [TGIF] RE: [Friday] Re: [VOTE] Should this list discontinue
it's long, treasured heritage


+1
I missed the vote for the same reasons.
I rather agree with your comments about the benefit of 'war
stories'/'lectures', and I certainly think that it is good to sometimes get
off-topic and discuss more general development issues such as XP vs other
methodologies etc...

-Original Message-
From: Joel Rees [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 11:22
To: [EMAIL PROTECTED]
Subject: [Friday] Re: [VOTE] Should this list discontinue it's long,
treasured heritage


I missed getting to vote, because Friday was over for me by the time
this started, and I didn't come in on Saturday.

On Fri, 2002-08-30 at 16:47, Eddie Bush wrote:
 Do you feel this list should discontinue it's long heritage of relaxed
 fridays?

 (   )  Yes
 (   )  No
 ( X )  More jokes and philosophy every day!

Okay, I'm only half serious.

But I'm thinking about how war stories mixed into a good college lecture
generally seemed to improve retention for the whole class. Sometimes it
did get out of hand, but the benefit was greater than the cost.

Just a thought.

(And it is Friday for me here.)

--
Joel Rees [EMAIL PROTECTED]


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


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

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




RE: ClassCastException:java.lang.Integer

2002-09-06 Thread Miguel Angel Mulero Martinez

With this code, Struts try to initialize the values to getName() and
getAge() of the bean that you have chosed in your struts-config.xml file, in
the definition of the action test.do

I think that getAge() must return a String, not a number, but I'm not sure.
Make a toString() to the value in the getAge().


-Mensaje original-
De: Vijeth R Naik [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 06 de septiembre de 2002 13:13
Para: 'Struts Users Mailing List'
Asunto: RE: ClassCastException:java.lang.Integer


This is my jsp...

%@ page language=java %
%@ taglib uri=/WEB-INF/struts-bean.tld  prefix=bean %
%@ taglib uri=/WEB-INF/struts-html.tld  prefix=html %
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %

html:html locale=true
head
   html:base/
   titlebean:message key=index.title//title
/head
body bgcolor=white
h2Test/h2

html:errors/

html:form action=test.do method=GET
Name:html:text property=name / br/
Age:html:text property=age / br/

html:submit property=submit/
/html:form

/body
/html:html




-Original Message-
From: Miguel Angel Mulero Martinez
[mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 4:29 PM
To: Struts Users Mailing List
Subject: RE: ClassCastException:java.lang.Integer


You can show me the part of your JSP when you use the values?


-Mensaje original-
De: Vijeth R Naik [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 06 de septiembre de 2002 12:59
Para: 'Strut User'
Asunto: ClassCastException:java.lang.Integer

Hi
I am a newbie using struts.
I have a simple jsp which has 2 fields, a String and a Number(eg: Name and
Age)br
When I try displaying the jsp, I get this exception,
ClassCastException:java.lang.Integer

I am using Tomcat-3.3.1 and Struts-1.0.2

I have a form bean, where Name is a String and Age is an int.

In my ActionClass, I  set the bean values..

String age_str=request.getParameter(age);
int age_int=(new Integer(age_str)).intValue();

beanClass.setAge(age_int);

Kindly let me know what is the error..


TIA

Vijeth



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


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


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


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




RE: [FRIDAY] Please help save my soul

2002-09-06 Thread Andrew Hill

just ignore it Andrew...
dont ask,
dont ask,
dont ask,
arrgh!

Ok. Whats he mean by 'retrograde?

Does this only happen to people born in bread, or to people who are
delivered in other foods as well?
Do all people with the problem lose the ability to talk softly?

Is it so bad it stops your struts from serving requests?
(NullPointerException?)

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 18:58
To: Struts (E-mail)
Subject: [FRIDAY] Please help save my soul


HELLO,

MY NAME IS HENRY APPIANG, AM FROM GHANA.I AM SORRY IF I MAY IN ANYWAY
DISTURB YOU.IT IS JUST A PITY THAT I HAVE TO SIT DOWN AND START TYPING ALL
THIS.I HAVE TO DO THIS BECAUSE I DO NOT HAVE ANY OTHER OPTION.

I AM A BOY OF TWENTY-FIVE YEARS OLD, BORN IN BREAD IN GHANA.IN ORDER NOT TO
WASTE YOUR TIME, LET JUST TELL YOU WHY I HAVE DECIDED TO MAIL YOU.

I HAVE A VERY BIG PROBLEM THAT IS AT THE MOMENT BIGGER THAN ME BUT NOT
BIGGER THAN GOD. WHEN I WAS TWENTY YEARS OLD,I REALISE THAT I HAVE A
PROBLEM. I REALISE THAT I AM HAVING A RETROGRADE EJACULATION, THIS I THOUGHT
WAS A JOKE.I CONTACTED A FEW DOCTORS, IT WAS COMFIRMED THAT I REALLY HAVE
THIS PROBLEM, SINCE THEN I BECAME WORRIED OF MY FUTURE, THINKING OF ANY
POSSIBLE SOLUTION IN ORDER TO REMEDY THE SITUATION BUT TO NO AVAIL.I HAVE
DONE SO MANY TEST WHICH PROVED THAT I HAVE THESE PROBLEM.

IN MY LITTLE EFFORT I TRIED SOLVING IT MYSELF BUT I COULD NOT,I WAS DIRECTED
BY A DOCTOR TO BUY A CERTAIN DRUG WHICH I FOUND OUT THAT IT IS NO WHERE TO
BE FOUND IN AFRICAN MARKET.

NOW I HAVE TWO OPTIONS
1, TO EITHER GET THESE DRUG OR SEE IF IT WILL SOLVE MY PROBLEM OR TO UNDERGO
A SURGERY, WHICH I PREFER FOR A LASTING SOLUTION.

MY LIFE DEPEND SOLELY ON THIS.I HAVE MADE ENQUIRIES ABOUT THE SURGERY,I
FOUND OUT THAT IT WILL COST ME $4,500USD TO UNDERGO,THIS IS WHY I HAVE SEEK
FOR YOUR ASSISTANCE.

MY SURVIVAL DEPENDS ON YOU, YOU CAN TURN MY LIFE ARROUND, AND YOU CAN PUT
THE SMILES ON MY FACE AGAIN WITH YOUR LITTLE DONATION.YOU CAN SAFE A SOUL.

I DO NOT HAVE ANYOTHER MEANS TO RAISE THESE MONEY EXCEPT THROUGH YOUR KIND
HEART.

KINDLY HELP SAVE MY SOUL.

REGARDS
HENRY.

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


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




RE: ClassCastException:java.lang.Integer

2002-09-06 Thread Galbreath, Mark

You cannot pass values as ints, only as strings.  This is basic to HTTP.

-Original Message-
From: Vijeth R Naik [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 6:59 AM
To: 'Strut User'
Subject: ClassCastException:java.lang.Integer


Hi 
I am a newbie using struts.
I have a simple jsp which has 2 fields, a String and a Number(eg: Name and
Age)br
When I try displaying the jsp, I get this exception,
ClassCastException:java.lang.Integer

I am using Tomcat-3.3.1 and Struts-1.0.2 

I have a form bean, where Name is a String and Age is an int.

In my ActionClass, I  set the bean values..

String age_str=request.getParameter(age);
int age_int=(new Integer(age_str)).intValue();

beanClass.setAge(age_int);

Kindly let me know what is the error..


TIA

Vijeth



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

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




Actions and Parameters

2002-09-06 Thread Smith, Johnathan M.

Please keep in mind that I am new to struts and I have a project that I have
to get done and a fast rate.  I would like to know where should I setup a
parameter/string that I need to use in every action. In my old MVC world I
would make a initparameter on my control (servlet) and the control would
pass the string to each model.  How do I do it in struts?



Johnathan Mark Smith
Divisional Assistant Vice President
Information Systems Division

Phone: (201) 352-1387
Pager: (201) 718-1370
Email: [EMAIL PROTECTED]
Text Messaging: [EMAIL PROTECTED]



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




Re: [STRUTS BOOK]

2002-09-06 Thread Ted Husted

The Introduction was one of the trickier parts of the book for us. The 
publisher kept saying the original first chapter wasn't the beginning. 
We were starting with Struts, but they wanted to start sooner than that. 
They also wanted a hands-on Struts example in the first chapter. I had 
no idea how to do all that in a single first chapter. Then George 
Franciscus came to the rescue with a very tightly written introductory 
chapter. It covers the basics of the underlying technologies and then 
leaps right into a working Struts application!

The trick George came up for the example was to include the prebuilt
classes in the download. That way, we didn't have to get into the build
issues before showing people what it is like to develop in Struts.

In fact, the new Enabling Technologies section of the Struts User
guide grew out of the work we did with our own chapter 1. Of course, 
ours has more text than hyperlinks (but that's what you have to do in 
print).

We'll be posting the Tiles and Validator chapters as our book examples 
Real Soon Now. Of course, Cedric and David drafted those. We decided to 
post these two since Tiles and Validator and the least documented parts 
of the framework right now. As example chapters, we will be able to keep 
them up indefinitely.

-Ted.


Galbreath, Mark wrote:

  Just got James' Mastering Jakarta Struts (Wiley 2002) last night from
  Amazon.  Scanning through it, the layout and coverage looks very 
good.  If I
  have one criticism at this time, it's that anyone wanting to master 
Jakarta
  Struts already knows about web applications and servlet containers. 
  There
  was no need to spend the first 60 pages of the book on those subjects
  (especially the Tomcat-specific stuff).
 
  Chuck and Ted: yours are preordered.  ;-)
 
  Mark
 
 

-- 
Ted Husted, Husted dot Com, Fairport NY US
co-author, Java Web Development with Struts
Order it today:
http://husted.com/struts/book.html



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




[FRIDAY] Please help save my life

2002-09-06 Thread Galbreath, Mark

Andrew,

My name is Honey and I have a story. It is not the saddest story, yet it's
mine. I have been working since my father died when I was 13 years old. My
mother worked 3 jobs so that my brother and I would not have to go on public
assistance. 
My father died from a genetic disease called Polycystic Kidneys.
(http://www.pkdcure.org) This is when Cysts grow all over the kidneys and
get so big that they overpower the kidneys until they cannot work anymore.
All of my aunts, uncles, and cousins on my father's side have died from this
disease at the age of 42 and younger. I was told that my brother Jeff would
die if I did not donate one of my kidneys to him. We were the only survivors
of our family because of this terminal disease and I was his only hope.
Unfortunately, that is how I found out that I also have Polycystic Kidney
Disease and could not help him. He sadly passed away. 

I have been working as a single parent holding down 2 jobs as a waitress.
Within the last 3 weeks, I have had 2 operations and have another major
operation in a month. My kidneys are so large they weigh over 40 pounds and
must be removed because there is no room in my body for them. Once the
operation is complete, I will have no kidneys and will have to live on
dialysis, while waiting for a transplant. I can no longer waitress, as I
have done all my life. 

To have a deadly disease is difficult enough, but to know that I have passed
it on to my only child, is an unbearable guilt. This is what my son has to
look forward to shortly. 

I have lived my whole life depending on myself and supporting my son. I
never asked anyone for anything. In fact, if someone ever needed help from
me I was always there financially and emotionally. 

Unfortunately, I now have to ask for help. If you could spare any amount of
money, even if only $5, it would make my life a little easier. At the very
least it will help solve some financial problems so I can focus on my
health. All I have now is hope. If you can help financially it would be most
appreciated. If you cannot, then your prayers are more then enough. Thank
you and God bless all. 

Sincerely, Honey Starr 

For instructions on how to help honey, please email her at
[EMAIL PROTECTED] 
Type Help in the subject line. 

*** This email is a request for a gift. It is NOT a commercial
advertisement. This email is being sent with the hopes of raising funds to
help defray the cost of medical bills, related healthcare fees, expenses
incurred from this campaign, and improve Honey's quality of life. Gifts are
entirely voluntary. 

A third party on behalf of Honey Starr is sending this email. To be removed
from our mailing list, email remove to [EMAIL PROTECTED] 

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




[ANAL]ScanMail Message: To Sender, sensitive content found and action t aken.

2002-09-06 Thread Galbreath, Mark

I bet it's fun working for these guys

-Original Message-
From: System Attendant [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 7:16 AM
To: 'Galbreath, Mark'
Subject: ScanMail Message: To Sender, sensitive content found and action
t aken.


Trend SMEX Content Filter has detected sensitive content.

Place = 'Struts Users Mailing List'; ; ; Struts Users Mailing List
Sender = Galbreath, Mark
Subject = [FRIDAY] Please help save my life
Delivery Time = September 06, 2002 (Friday) 07:15:32
Policy = Blocking04122002\Blocking05062002
Action on this mail = Quarantine message

Warning message from administrator:
Content filter has detected a sensitive e-mail.

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




[Struts Tip #11] Use smart forwarding to dispatch actions

2002-09-06 Thread Ted Husted

A key component to the Struts framework is the ActionForward. A 
deceptively simple object, all the ActionForward does is associate a 
system path with a logical name. But this object gives the framework 
much of its power and flexibility.

more ... http://husted.com/struts/tips/011.html

-- 
Ted Husted, Husted dot Com, Fairport NY US
co-author, Java Web Development with Struts
Order it today:
http://husted.com/struts/book.html


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




Validating DATE field

2002-09-06 Thread Drago Jenko

Hi,

Does someone has problem using validating date field which is not 

required. I always get error when the field is empty,  that is not a proper date.

I started writing program under Struts 1.1.b1 and  it worked , but when I changed to 
Struts 1.1.b2 this problem has occured.



Drago

field property=date depends=date

arg0 key=error.date/

var

var-namedatePatternStrict/var-name

var-valuedd.MM./var-value

/var

/field




RE: [FRIDAY] Please help save my soul

2002-09-06 Thread Andrew Hill

Do your parents know that your using the internet Mark?
I bet you havent done your homework yet either.

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 19:27
To: 'Struts Users Mailing List'
Subject: RE: [FRIDAY] Please help save my soul


Dear Andrew,

I received your email and wanted to personally thank you for your response.
I am overwhelmed by your kind words and act of generocity. It is of great
comfort to me and my family that there are compassionate people in the world
that are willing to assist others during troubling times.

Words can not express my sincere gratitude for your act of kindness. I will
certainly keep you updated on my condition as things progress.

To that end, my family is maintaining a list of people like yourself, so
that we can keep you apprised of my condition as I undergo treatment. My
prayers and thanks go out to you.

You can forward your generosity in the following manner:

Certified check or money order made out to Mark Galbreath.  Please send to
to TESSCO Technologies, c/o Mark Galbreath, Hunt Valley, MD 21046

God bless you for your caring assistance.


-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 7:15 AM
To: Struts Users Mailing List
Subject: RE: [FRIDAY] Please help save my soul


just ignore it Andrew...
dont ask,
dont ask,
dont ask,
arrgh!

Ok. Whats he mean by 'retrograde?

Does this only happen to people born in bread, or to people who are
delivered in other foods as well?
Do all people with the problem lose the ability to talk softly?

Is it so bad it stops your struts from serving requests?
(NullPointerException?)

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 18:58
To: Struts (E-mail)
Subject: [FRIDAY] Please help save my soul


HELLO,

MY NAME IS HENRY APPIANG, AM FROM GHANA.I AM SORRY IF I MAY IN ANYWAY
DISTURB YOU.IT IS JUST A PITY THAT I HAVE TO SIT DOWN AND START TYPING ALL
THIS.I HAVE TO DO THIS BECAUSE I DO NOT HAVE ANY OTHER OPTION.

I AM A BOY OF TWENTY-FIVE YEARS OLD, BORN IN BREAD IN GHANA.IN ORDER NOT TO
WASTE YOUR TIME, LET JUST TELL YOU WHY I HAVE DECIDED TO MAIL YOU.

I HAVE A VERY BIG PROBLEM THAT IS AT THE MOMENT BIGGER THAN ME BUT NOT
BIGGER THAN GOD. WHEN I WAS TWENTY YEARS OLD,I REALISE THAT I HAVE A
PROBLEM. I REALISE THAT I AM HAVING A RETROGRADE EJACULATION, THIS I THOUGHT
WAS A JOKE.I CONTACTED A FEW DOCTORS, IT WAS COMFIRMED THAT I REALLY HAVE
THIS PROBLEM, SINCE THEN I BECAME WORRIED OF MY FUTURE, THINKING OF ANY
POSSIBLE SOLUTION IN ORDER TO REMEDY THE SITUATION BUT TO NO AVAIL.I HAVE
DONE SO MANY TEST WHICH PROVED THAT I HAVE THESE PROBLEM.

IN MY LITTLE EFFORT I TRIED SOLVING IT MYSELF BUT I COULD NOT,I WAS DIRECTED
BY A DOCTOR TO BUY A CERTAIN DRUG WHICH I FOUND OUT THAT IT IS NO WHERE TO
BE FOUND IN AFRICAN MARKET.

NOW I HAVE TWO OPTIONS
1, TO EITHER GET THESE DRUG OR SEE IF IT WILL SOLVE MY PROBLEM OR TO UNDERGO
A SURGERY, WHICH I PREFER FOR A LASTING SOLUTION.

MY LIFE DEPEND SOLELY ON THIS.I HAVE MADE ENQUIRIES ABOUT THE SURGERY,I
FOUND OUT THAT IT WILL COST ME $4,500USD TO UNDERGO,THIS IS WHY I HAVE SEEK
FOR YOUR ASSISTANCE.

MY SURVIVAL DEPENDS ON YOU, YOU CAN TURN MY LIFE ARROUND, AND YOU CAN PUT
THE SMILES ON MY FACE AGAIN WITH YOUR LITTLE DONATION.YOU CAN SAFE A SOUL.

I DO NOT HAVE ANYOTHER MEANS TO RAISE THESE MONEY EXCEPT THROUGH YOUR KIND
HEART.

KINDLY HELP SAVE MY SOUL.

REGARDS
HENRY.

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


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

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


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




Re: [ANAL]ScanMail Message: To Sender, sensitive content found andac tion t aken.

2002-09-06 Thread Cliff Rowley

Ooh, you've been quarantined .. I wonder how long they'll keep it in
for.

On Fri, 2002-09-06 at 12:22, Galbreath, Mark wrote:
 I bet it's fun working for these guys
 
 -Original Message-
 From: System Attendant [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 06, 2002 7:16 AM
 To: 'Galbreath, Mark'
 Subject: ScanMail Message: To Sender, sensitive content found and action
 t aken.
 
 
 Trend SMEX Content Filter has detected sensitive content.
 
 Place = 'Struts Users Mailing List'; ; ; Struts Users Mailing List
 Sender = Galbreath, Mark
 Subject = [FRIDAY] Please help save my life
 Delivery Time = September 06, 2002 (Friday) 07:15:32
 Policy = Blocking04122002\Blocking05062002
 Action on this mail = Quarantine message
 
 Warning message from administrator:
 Content filter has detected a sensitive e-mail.
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
-- 

Regards

---
 Cliff Rowley| [EMAIL PROTECTED]
 Software Engineer   |   www.doctype.co.uk
 +44 (0) 1206 514263 | www.cliffrowley.com
---


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




RE: [FRIDAY] Please help save my soul

2002-09-06 Thread Galbreath, Mark

Apparently, you haven't eitheryour?  ;-)

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 7:37 AM

Do your parents know that your using the internet Mark?
I bet you havent done your homework yet either.

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




Re: [TGIF] RE: [Friday] Re: [VOTE] Should this list discontinueit's long, treasured heritage

2002-09-06 Thread Dave Derry

+1 on that!

As a long time lurker on this list I'd like to add my $0.02 to this
discussion.  I agree with Cliff and Andrew (and Joel) that the value of this
list goes beyond just Struts issues. This is not a support forum, a help
line, or 411 (that's the # for information for those of you not in the US),
but it is a community. No one is developing with Struts in a vacuum. Struts
is a tool being used for software development/engineering. We all also use a
number of other tools and technologies. And, like Cliff, I find that
discussions about these other tools and techniques is a broadening'
experience. Yes there are other forums that are more appropriate for
discussing those tools, if you are interested in in-depth discussions or
resolutions to technical problems with those tools. But, as a community,
sharing of information and experiences, IMHO, is entirely appropriate.

I also feel that the REALLY OT banter serves a purpose in helping to relieve
stress. And we all deal with stress!. It also helps to cement the sense of
community and camaraderie that is a hall mark of this list (and which makes
it the most interesting list that I subscribe to). And I don't know how many
of you have noticed, but the people who are wasting bandwidth with OT
banter are some of those who contribute the most to this list. I personally
get much more annoyed by the bandwidth that gets wasted with the same inane
questions over and over because so many people are to lazy to a)check the
archives, b)read the docs, or c)try something before asking Will this
work?. You won't get far in this business by taking the easy way out, or
expecting someone else to give you the answer/solution to easy
questions/problems.

Sorry for the long post.

Dave Derry
- Original Message -
From: Cliff Rowley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, September 06, 2002 1:08 AM
Subject: Re: [TGIF] RE: [Friday] Re: [VOTE] Should this list discontinueit's
long, treasured heritage


 +1 Yep yep, definitely agree (already voted, not trying to vote again).
 I started the XP discussion off, and the reason I asked here was because
 I was curious to know how developers using Struts and related
 technologies use XP, or not - because if I were to learn and adopt it
 (which I am, incidentally) I would be using Struts and related
 technologies.  I'm pretty sure there were people lurking who also
 benefited from the whole discussion too.  So in terms of Struts support,
 it was off topic - but in terms of development using Struts, I think it
 was perhaps on topic.

 Thin line, as you can see - but it's not just the every day usage of
 Struts that is important to developers using Struts.  In fact, as a
 result of another 'off-topic' discussion, I am now evaluating IntelliJ
 Idea - which has made another part of my job more tolerable :)

 
  But I'm thinking about how war stories mixed into a good college lecture
  generally seemed to improve retention for the whole class. Sometimes it
  did get out of hand, but the benefit was greater than the cost.
 
  Just a thought.
 
  (And it is Friday for me here.)
 
  --
  Joel Rees [EMAIL PROTECTED]



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




[FRIDAY] Please help us end terror

2002-09-06 Thread Galbreath, Mark

Dear Dave, 

You are here to contribute finding location of Osama Bin Laden, the world
most dangerous and wanted terrorist. Read below to know HOW. 


We currently know that his group uses encryptions methods named
steganography and public/private key encryption. (go www.pgp.com,
www.google.com - seek for steganography for more information). We will not
be able to crack down their conversation, but we will be able to find
PRESENCE of that conversation (Osama uses well-known software, this gives us
probability to implement robots that will locate usage of that software).
And this will help us to track down his coordinates - then we think that
official agencies will easily take care of him. 


So who we are - we are group of enthusiasts - 7 hackers, 2 security
analysts, 4 agents, and 2 managers is the CORE of team. So, pretty small
team, but our individuals are EXTREMLY TALENTED. And many enthusiasts on the
Net, which are ready to help install taps and other helpful things to track
down steganography usage. 


Currently we look for funding. To perform this operation well we need
$160,000 during the next two weeks. You alone probably will not donate such
amount for yet another possibility to find bin Laden. But TOGETHER we sure,
that this amount will be easily reached. As our actions are against the law
(normal citizen is not allowed to tap information, hack into providers :-),
we are looking for alternative funding, funding from publicity. We hope
everyone on the planet understand that terror should be stopped using any
possible ways. 


How to donate. We should know who you are (of course you can be anonymous),
because if we successfully catch Osama, we will REFUND all the money and
send you report. Write in payment details: donation of [EMAIL PROTECTED].
Also, use highest possible urgency level, as we should finish with the task
as soon, as possible, while their group have not performed new hijacks. 


Here are wire tranfer info: 
Bank account: 33673857 
Name on account (beneficiary): Yury Mikhnavets 
Name of the bank: SAMPO PANK 
Bank address: Tallinn, Estonia, Narva mnt 11, 15015 
S.W.I.F.T: FOREE2X 
Payment details: donation of 
Correspondent Bank: Bankers Trust Company 
Correspondent Bank S.W.I.F.T: BKTRUS33 
Urgency: the most urgent! 


Also, please, forward this message to those, who may help us, because
funding of our goals will help the whole world. 


Thank you for your support, 
Yury. 




Re: [Architecture] Use of business delegate and Actions..

2002-09-06 Thread Ted Husted

This is the kind of pattern I use myself. I've even taken it a step 
further by refactoring the

IService service = getService();
service.doSomething(io);

part into a standard Action that you can configure from the Struts 
config. It's a merger of the ActionForm Instance pattern and the 
DispatchAction patterns. You can specify something like

parameter=my.serviceType;doSomething

in the Struts config. Then the Action takes care of instantiating 
myServiceType and calling doSomething.

Mine's tweaked out for the business service beans I use (ProcessBeans), 
but the source could be adapted to any similar service.

http://cvs.apache.org/viewcvs/jakarta-struts/contrib/scaffold/src/java/org/apache/struts/scaffold/

See ProcessDispatchAction.

I think this all stems back to the Workflow pattern Craig proposed last 
year. We should be able to use a standard base Action to launch our 
business service and be able to specify the service (or a complete 
business service workflow) from a configuration file.

This way the Java engineers can focus on create flexible business 
classes that work well together and turn the workflow into a set of 
configuration details.

-Ted.


Robert Taylor wrote:

 An approach we have taken is to have a very course grained business service
 which encapsulates all business logic to support a set of common business
 requirements; so our Action class is really just a pure proxy to the
 business tier and the business service can be a proxy to the actual business
 components which may execute the logic. We also leverage DynaBeans so we can
 easliy transfer user I/O to our business service without coupling it to a
 specific presentation framework. Theoretically this allows us to reuse the
 business services with other presentation frameworks.
 
 So we end up with code like the following in our Action class. Notice
 that there is no business logic in the Action class operation:
 
 DynaBean io = (DynaBean) form;
 
 try {
 
 IService service = getService();
 
 service.doSomething(io);
 
 
 } catch(SomeException se) {
 
 // react to SomeException
 
 } catch(AnotherException ae) {
 
 // react to AnotherException
 
 }
 
 
 
 and in our IService.doSomething() implementation we have something like.
 
 void doSomething(DynaBean io) throws ServiceException {
 
 // extract data from io
 
 // convert into appropriate DTO (data transport object)
 
 // pass DTOs to business components to execute business logic
 
 // update io with results
 
 }
 
 
 So, in short, I think your on the right track with gut feeling.
 
 robert


-- 
Ted Husted, Husted dot Com, Fairport NY US
co-author, Java Web Development with Struts
Order it today:
http://husted.com/struts/book.html


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




Re: [FRIDAY] Please help us end terror

2002-09-06 Thread dave sag

Dear terrorist hacker

i would rather give money to ozzy-bin-liner to help him and his 
allies cover their tracks than fund your outrageous suggestion.  you 
claim to be a group of enthusiasts but in reality you are just 
another bunch of criminals seeking to infringe upon private people's 
communication.

plenty of people use encryption as part of their legitimate day to 
day business.  are you going to target them?  you want to make your 
own version of echelon is that it?

anyway a quick look at http://www.snopes.com/rumors/hackers.htm 
reveals you to be lying scum

dave



At 7:49 AM -0400 6/9/02, Galbreath, Mark wrote:
Dear Dave,

You are here to contribute finding location of Osama Bin Laden, the world
most dangerous and wanted terrorist. Read below to know HOW.


We currently know that his group uses encryptions methods named
steganography and public/private key encryption. (go www.pgp.com,
www.google.com - seek for steganography for more information). We will not
be able to crack down their conversation, but we will be able to find
PRESENCE of that conversation (Osama uses well-known software, this gives us
probability to implement robots that will locate usage of that software).
And this will help us to track down his coordinates - then we think that
official agencies will easily take care of him.


So who we are - we are group of enthusiasts - 7 hackers, 2 security
analysts, 4 agents, and 2 managers is the CORE of team. So, pretty small
team, but our individuals are EXTREMLY TALENTED. And many enthusiasts on the
Net, which are ready to help install taps and other helpful things to track
down steganography usage.


Currently we look for funding. To perform this operation well we need
$160,000 during the next two weeks. You alone probably will not donate such
amount for yet another possibility to find bin Laden. But TOGETHER we sure,
that this amount will be easily reached. As our actions are against the law
(normal citizen is not allowed to tap information, hack into providers :-),
we are looking for alternative funding, funding from publicity. We hope
everyone on the planet understand that terror should be stopped using any
possible ways.


How to donate. We should know who you are (of course you can be anonymous),
because if we successfully catch Osama, we will REFUND all the money and
send you report. Write in payment details: donation of [EMAIL PROTECTED].
Also, use highest possible urgency level, as we should finish with the task
as soon, as possible, while their group have not performed new hijacks.


Here are wire tranfer info:
Bank account: 33673857
Name on account (beneficiary): Yury Mikhnavets
Name of the bank: SAMPO PANK
Bank address: Tallinn, Estonia, Narva mnt 11, 15015
S.W.I.F.T: FOREE2X
Payment details: donation of
Correspondent Bank: Bankers Trust Company
Correspondent Bank S.W.I.F.T: BKTRUS33
Urgency: the most urgent!


Also, please, forward this message to those, who may help us, because
funding of our goals will help the whole world.


Thank you for your support,
Yury.


-- 


--
Dave SagCEO Portable Whole Ltd
[EMAIL PROTECTED]http://www.portablewhole.com

   Software Development will soon be an Agri-business.
Why write it when you can farm it.

   Latest: http://www.davesag.com/motp
   It's a whole new world in there. (req netscape or IE 4+)

--

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




RE: [FRIDAY] Please help us end terror

2002-09-06 Thread Galbreath, Mark

Busted!  :-(

But better than this guy!

http://www.snopes.com/sex/juvenile/bear.htm


-Original Message-
From: dave sag [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 8:12 AM

Dear terrorist hacker

i would rather give money to ozzy-bin-liner to help him and his 
allies cover their tracks than fund your outrageous suggestion.  you 
claim to be a group of enthusiasts but in reality you are just 
another bunch of criminals seeking to infringe upon private people's 
communication.

plenty of people use encryption as part of their legitimate day to 
day business.  are you going to target them?  you want to make your 
own version of echelon is that it?

anyway a quick look at http://www.snopes.com/rumors/hackers.htm 
reveals you to be lying scum

dave

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




RE: [BUG] html:submit disabled= requires boolean value?

2002-09-06 Thread Jerry Jalenak

Martin,

Thanks for the confirmation.  I have open bugzilla #12360 on this issue

Jerry

 -Original Message-
 From: Martin Cooper [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 05, 2002 6:13 PM
 To: 'Struts Users Mailing List'
 Subject: RE: [BUG] html:submit disabled= requires boolean value?
 
 
 Hmm.
 
 First of all, disregard what I said before about 
 BooleanConverter - that
 only applies when the form is being submitted, not when it is being
 rendered. My bad.
 
 However, you're right, there is definitely a problem. I've 
 confirmed it on
 both Tomcat 4.1.10 and Resin 2.1.4.
 
 What seems to happen is that, when a literal value is 
 specified, the JSP
 compiler automatically converts it to the appropriate boolean 
 keyword, so
 the resulting Java code compiles just fine. However, when an rtexpr is
 specified, the JSP compiler is not generating code to convert 
 a string value
 into a boolean value, so the Java compilation fails.
 
 Given that the behaviour is the same on both of the 
 containers I tried, I
 suspect there may be something in the JSP spec about this. It's not
 something I've ever come across, though. Craig may be able to 
 shed some more
 light on this.
 
 In any case, it appears that - unless both Tomcat and Resin 
 suffer from the
 same bug - we'll need to modify the html:submit tag to take a string
 value, and deal with the conversion in Struts.
 
 If you could submit a bug report to Bugzilla, that will 
 ensure that this
 issue doesn't get lost.
 
 --
 Martin Cooper
 
 
  -Original Message-
  From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 05, 2002 3:02 PM
  To: 'Struts Users Mailing List'
  Subject: RE: [BUG] html:submit disabled= requires boolean value?
  
  
  That's what I thought.  I'm passing in a string value of 
  'true' (no quotes).
  I've tried setting a session variable as well as setting an 
  attribute in a
  bean but I get the same results.  In the .JSP I use
  
  (when using a session var)
  
  % String buttonStatus = (String)
  session.getAttribute(buttonStatus); %
  html:submit property=action value=Update
  disabled=%=buttonStatus% /
  
  (when using a bean)
  
  bean:define id=buttonStatus name=myBean 
  property=buttonStatus
  /
  html:submit property=action value=Update
  disabled=%=buttonStatus% /
  
  Either way I get casting problems.  As long as I directly 
  code true as the
  value, it works fine.  I only get this problem when I try to 
  pass in a value
  as a runtime expression.
  
  
  Jerry   
  
   -Original Message-
   From: Martin Cooper [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, September 05, 2002 4:52 PM
   To: 'Struts Users Mailing List'
   Subject: RE: [BUG] html:submit disabled= requires boolean value?
   
   
   From the docs for the html:submit 'disabled' attribute:
   
   Set to true if this input field should be disabled.
   
   The field in the tag is a boolean, so the value you supply must be
   convertable to a boolean. The conversion of the string you 
  supply to a
   boolean is performed in BeanUtils.BooleanConverter, where:
   
   true, yes, y, on, 1 are all synonyms
   false, no, n, off, 0 are all synonyms
   
   As long as you pass one of these values (or an expression 
   that evaluates to
   one of these values), you'll be fine.
   
   --
   Martin Cooper
   
   
-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 2:17 PM
To: 'Struts Users Mailing List'
Subject: RE: [BUG] html:submit disabled= requires boolean value?


OK.  I think I've proven to myself that this is not a bug, as 
I can set
disabled=true and everything works fine.  When I try to 
   use either a
session variable (see below) or create a temporary bean, I 
   get strange
messages, like 'Can't convert java.lang.Object to boolean'.  
I'm at a loss.


What's the right way to do this?

Jerry

 -Original Message-
 From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 05, 2002 2:45 PM
 To: '[EMAIL PROTECTED]'
 Subject: [BUG] html:submit disabled= requires boolean value?
 
 
 I'm setting the value of the disabled= parameter on a 
 html:submit tag, and
 I'm getting the following error:
 
   Incompatible type for method. Can't convert 
  java.lang.String to
 boolean. _jspx_th_html_submit_2.setDisabled(buttonStatus);
 
 The code in the .JSP looks like this.
 
   %
   String buttonStatus = (String)
 session.getAttribute(ButtonStatus);
   %
   html:submit property=action value=Update
 disabled=%=buttonStatus% / 
 
 I've looked at the javadoc for the BaseHandler and the 
 setDisabled method is
 looking for a boolean value to be passed in.  It looks like 
 the tag is not
 converting the 

Re: Validating DATE field

2002-09-06 Thread Dave Derry

This is a problem that has been brought up several times. I don't know about
b1 since I've just started using Validator (with b2), but I do know that the
problem has been fixed in CVS. It is a very simple patch, that you can
easily make yourself if you don't want to get a nightly build. Check the CVS
repository for StrutsValidator.java. You just need to move a } in
validateDate.

Dave D

- Original Message -
From: Drago Jenko [EMAIL PROTECTED]


Hi,

Does someone has problem using validating date field which is not

required. I always get error when the field is empty,  that is not a proper
date.

I started writing program under Struts 1.1.b1 and  it worked , but when I
changed to Struts 1.1.b2 this problem has occured.




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




InitParameter and Actions

2002-09-06 Thread Smith, Johnathan M.

In the pass I setup InitParameter's in my web.xml file for my control
(servlet) and the control pass the string on to each model.  How can I do
the same thing in Struts. I need to pass a string like a database name to
every action object.  I would like it in a files so if I go from dev to QA
to prod I only have to change the name in a file


Johnathan Mark Smith
Divisional Assistant Vice President
Information Systems Division

Phone: (201) 352-1387
Pager: (201) 718-1370
Email: [EMAIL PROTECTED]
Text Messaging: [EMAIL PROTECTED]



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




Re: [STRUTS BOOK]

2002-09-06 Thread chuckcavaness

I'm sure there is going to be some overlap, but I really 
think that because we (Ted, James Goodwill, James Turner 
and Kevin Bedell, Sue and myself) all come from a 
slighly different background and have different 
experiences, the various Struts soon available will 
complement each other nicely.

Chuck

 The Introduction was one of the trickier parts of the book for us. The 
 publisher kept saying the original first chapter wasn't the beginning. 
 We were starting with Struts, but they wanted to start sooner than that. 
 They also wanted a hands-on Struts example in the first chapter. I had 
 no idea how to do all that in a single first chapter. Then George 
 Franciscus came to the rescue with a very tightly written introductory 
 chapter. It covers the basics of the underlying technologies and then 
 leaps right into a working Struts application!
 
 The trick George came up for the example was to include the prebuilt
 classes in the download. That way, we didn't have to get into the build
 issues before showing people what it is like to develop in Struts.
 
 In fact, the new Enabling Technologies section of the Struts User
 guide grew out of the work we did with our own chapter 1. Of course, 
 ours has more text than hyperlinks (but that's what you have to do in 
 print).
 
 We'll be posting the Tiles and Validator chapters as our book examples 
 Real Soon Now. Of course, Cedric and David drafted those. We decided to 
 post these two since Tiles and Validator and the least documented parts 
 of the framework right now. As example chapters, we will be able to keep 
 them up indefinitely.
 
 -Ted.
 
 
 Galbreath, Mark wrote:
 
   Just got James' Mastering Jakarta Struts (Wiley 2002) last night from
   Amazon.  Scanning through it, the layout and coverage looks very 
 good.  If I
   have one criticism at this time, it's that anyone wanting to master 
 Jakarta
   Struts already knows about web applications and servlet containers. 
   There
   was no need to spend the first 60 pages of the book on those subjects
   (especially the Tomcat-specific stuff).
  
   Chuck and Ted: yours are preordered.  ;-)
  
   Mark
  
  
 
 -- 
 Ted Husted, Husted dot Com, Fairport NY US
 co-author, Java Web Development with Struts
 Order it today:
 http://husted.com/struts/book.html
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 

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




RE: InitParameter and Actions

2002-09-06 Thread Lister, Tom (ANTS)

i'm using struts 1.0.1, app requiring multiple datasources

in web.xml i have
context-param
param-namedfltDataSourceRef/param-name
param-valuejdbc/ejif/param-value
/context-param
 context-param
   param-nameGLDataSourceRef/param-name
   param-valuejdbc/flexi/param-value
 /context-param

i get these values by in a servlet by
dsource = getServletContext().getInitParameter(GLDataSourceRef);

in fact i do this in a startup servlet and cache them in a data service so
that business tier can get hold of 
them without being aware of the web context
e.g.
// if  not set, then no point in trying
if (dsource != null) {
  EnvironmentDataServiceDelegate.setGLDataSourceRef(dsource);
  EJifUtils.debug(Set GLDataSourceRef);
}

:-)
Tom Lister
* 020 7612 3030
* [EMAIL PROTECTED]


-Original Message-
From: Smith, Johnathan M. [mailto:[EMAIL PROTECTED]]
Sent: 06 September 2002 13:55
To: '[EMAIL PROTECTED]'
Subject: InitParameter and Actions


In the pass I setup InitParameter's in my web.xml file for my control
(servlet) and the control pass the string on to each model.  How can I do
the same thing in Struts. I need to pass a string like a database name to
every action object.  I would like it in a files so if I go from dev to QA
to prod I only have to change the name in a file


Johnathan Mark Smith
Divisional Assistant Vice President
Information Systems Division

Phone: (201) 352-1387
Pager: (201) 718-1370
Email: [EMAIL PROTECTED]
Text Messaging: [EMAIL PROTECTED]



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


***
This communication (including any attachments) contains confidential information.  If 
you are not the intended recipient and you have received this communication in error, 
you should destroy it without copying, disclosing or otherwise using its contents.  
Please notify the sender immediately of the error.

Internet communications are not necessarily secure and may be intercepted or changed 
after they are sent.  Abbey National Treasury Services plc does not accept liability 
for any loss you may suffer as a result of interception or any liability for such 
changes.  If you wish to confirm the origin or content of this communication, please 
contact the sender by using an alternative means of communication.

This communication does not create or modify any contract and, unless otherwise 
stated, is not intended to be contractually binding.

Abbey National Treasury Services plc. Registered Office:  Abbey National House, 2 
Triton Square, Regents Place, London NW1 3AN.  Registered in England under Company 
Registration Number: 2338548.  Regulated by the Financial Services Authority (FSA).
***


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




[ANN] Struts QA Distilled, Vol#2

2002-09-06 Thread John Yu


Struts QA Distilled is a catalogue of question-and-answers distilled 
from Struts mailing lists and other sources. The catalogue is organized in 
topics. New entries are added to the catalogue periodically in batches.

Volume #2:

  http://www.scioworks.net/servlets/ShowPage?pid=34dp=3

Covers:
Q1: It is recommended properties of the FormBeans should be String 
properties. In that case, where do I do the type conversions?

Q2: How much does Struts depend on the session object and when is the 
object created?

Q3: I have problem with using ActionErrors and html:errors. I don't see 
my messages. Why?

Q4: My error messages generated by html:errors contain null at the 
start and the end. What have I done wrong?

Q5: How do I prevent my form from being validated when it is displayed the 
first time, if the JSP is fronted by an Action?

Q6: Struts 1.1 seems to support multiple resource bundles. How to use it?

Q7: After I replace my input type=submit... to html:submit..., my 
Javascript document.forms[0].submit() does not work anymore and returns me 
Object doesn't support this property or method. Why?

Q8: How do I configure Struts to intercept requests and perform some logic 
before passing them to the controller servlet for processing?

Q9: How do I send binary data to the controller servlet? (e.g. a 
Swing-based client sends serialized object to the controller servlet.)

Q10: I want to associate data with html:check and return the selected 
value as a String property in the FormBean. But I got exception coming from 
RequestUtils.populate(). Why?

-- 
John Yu   Scioworks Technologies
e: [EMAIL PROTECTED] w: +(65) 873 5989
w: http://www.scioworks.com   m: +(65) 9782 9610

Scioworks Camino - Don't develop Struts Apps without it!
Copyright (c) 2002 John Yu/Scioworks Technologies. All rights reserved.



RE: [Tag] nested tag being interpreted as scriptlet!

2002-09-06 Thread Sri Sankaran

John:
  You were dead on!  My jsp didn't have a taglib statement for the nested tags.

  Now I have to report a bug in the IDE.  Its feature list includes flagging tags 
whose definitions are unknown.  Since it didn't flag an error I didn't suspect 
anything wrong.

  Thanks.

Sri

 -Original Message-
 From: John Yu [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, September 05, 2002 10:12 PM
 To: Struts Users Mailing List
 Subject: Re: [Tag] nested tag being interpreted as scriptlet!
 
 
 
 Have you double checked you have struts-nested.tld
 declared in both your JSP and the web.xml?
 
 
 At 04:33 am 06-09-2002, you wrote:
 Using Struts 1.0.2 with nested extension on Tomcat 4.0.2
 
 My JSP has the following construct
 
nested:root name=sitebean
  nested:equal property=cartBean.haveModelBasedItems 
 value=true
etc
 
 This page fails to load with a NullPointerException.
 
 My hunt for its cause has lead me to the process of 
 translating a JSP 
 file
 into a Java file.
 
 The error is being raised because Tomcat is evaluating
 
nested:root name=sitebean
 
 as
 
out.write(\r\n\r\n\r\n\r\nnested:root name=\sitebean\\r\n);
 
 Why could this be happening?  I have confirmed and re-confirmed the
 syntactical correctness of my jsp file.
 
 The correct interpretation of this nested tag should be (as derived 
 from
 other pages that use the same construct)
 
org.apache.struts.taglib.nested.NestedRootTag 
 _jspx_th_nested_root_0 
  =
  new org.apache.struts.taglib.nested.NestedRootTag();
_jspx_th_nested_root_0.setPageContext(pageContext);
_jspx_th_nested_root_0.setParent(null);
_jspx_th_nested_root_0.setName(sitebean);
 
 Any suggestions?
 
 Sri
 
 -- 
 John Yu   Scioworks Technologies
 e: [EMAIL PROTECTED] w: +(65) 873 5989
 w: http://www.scioworks.com   m: +(65) 9782 9610
 
 Scioworks Camino - Don't develop Struts Apps without it!
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

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




DB hit from ActionForm Validate method

2002-09-06 Thread Cohan, Sean

We need to implement '3 strikes and your out' functionality to our logon
process.  If the user is unsuccessful after 3 logon attempts, we disable
their account.  I put some of the user id / password functionality in the
validate method of the LogonForm class.  However, in between each attempt, I
need find out what number of logon attempt they are on, and if this is not
their 3rd attempt, bump up the logon attempt number. If it's their second
attempt and they fail, I  need to let them know they only have 1 ore chance
to get it right.  If they successfully logon, we also need to show them how
many attempts it took them to logon the last time their account was
accessed.  

We were thinking we'd store their current and previous logon attempt number
in the DB.  My question is whether it is acceptable or common practice to
access the DB from the validate method or should DB access only be done in
the LogonAction class (which means I'd move the perform functionality to the
LogonAction class)?  

Thanks.


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




RE: DB hit from ActionForm Validate method

2002-09-06 Thread Galbreath, Mark

Store and increment the logon attempts in a session variable and track it in
your LogonAction class.  Define the appropriate messages in
ApplicationResources.properties and error paths in struts-config.xml. Place
an HTML:Errors tag in an appropriate place in the Logon.jsp to display the
messages.

And you should not be accessing the db directly from an Action class - pass
the user params to a VO, Stateless Session EJB, or DAO and have one of these
objects return.

Mark

-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 9:19 AM
To: 'Struts Users Mailing List'
Subject: DB hit from ActionForm Validate method


We need to implement '3 strikes and your out' functionality to our logon
process.  If the user is unsuccessful after 3 logon attempts, we disable
their account.  I put some of the user id / password functionality in the
validate method of the LogonForm class.  However, in between each attempt, I
need find out what number of logon attempt they are on, and if this is not
their 3rd attempt, bump up the logon attempt number. If it's their second
attempt and they fail, I  need to let them know they only have 1 ore chance
to get it right.  If they successfully logon, we also need to show them how
many attempts it took them to logon the last time their account was
accessed.  

We were thinking we'd store their current and previous logon attempt number
in the DB.  My question is whether it is acceptable or common practice to
access the DB from the validate method or should DB access only be done in
the LogonAction class (which means I'd move the perform functionality to the
LogonAction class)?  

Thanks.


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

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




Struts Debug Level

2002-09-06 Thread Smith, Johnathan M.

Where can I find a list of all the debug levels in struts?


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




Re: DB hit from ActionForm Validate method

2002-09-06 Thread Brian Hickey

Sean,

SNIP --  My question is whether it is acceptable or common practice to
 access the DB from the validate method or should DB access only be done in
 the LogonAction class (which means I'd move the perform functionality to
the
 LogonAction class)?
-- SNIP

IMHO, the answer is: logins are DB functions. Your role as a Struts
developer is to simply request the login and read the results of the
request. Understand that when you drag DB functionality into your Struts
app, you risk complexification (how about that word?) of your app and your
code. You may make maintenance a nightmare down the road.

Any DB worth a hoot has the capability of locking out users after X number
of attempts. It's a DBA thing as to how many and then how to reset.

Just a suggestion, but don't go there. You request the Login and wait for
the response. If it's bad news, report it to the user. Struts is all about
separation of Model - View - and Controller.

B


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




Re: STRUTS BOOK

2002-09-06 Thread Kirby Vandivort

Question..  are any of the three books, husted, chuck, or james written
TO version 1.1?  Amazon doesn't give details on any of the three, and
Ted's page mentions a chapter that talks about 1.1, but I'm wondering
if anything is out there yet that is actually written from the core up
to use 1.1.  My guess is that it is too early for such a beast, but I
figured it couldn't hurt to ask.

The Introduction was one of the trickier parts of the book for us. The
publisher kept saying the original first chapter wasn't the beginning.
We were starting with Struts, but they wanted to start sooner than that.
They also wanted a hands-on Struts example in the first chapter. I had
no idea how to do all that in a single first chapter. Then George
Franciscus came to the rescue with a very tightly written introductory
chapter. It covers the basics of the underlying technologies and then
leaps right into a working Struts application!

The trick George came up for the example was to include the prebuilt
classes in the download. That way, we didn't have to get into the build
issues before showing people what it is like to develop in Struts.

In fact, the new Enabling Technologies section of the Struts User
guide grew out of the work we did with our own chapter 1. Of course,
ours has more text than hyperlinks (but that's what you have to do in
print).

We'll be posting the Tiles and Validator chapters as our book examples
Real Soon Now. Of course, Cedric and David drafted those. We decided to
post these two since Tiles and Validator and the least documented parts
of the framework right now. As example chapters, we will be able to keep
them up indefinitely.

-Ted.


Galbreath, Mark wrote:

  Just got James' Mastering Jakarta Struts (Wiley 2002) last night from
  Amazon.  Scanning through it, the layout and coverage looks very
good.  If I
  have one criticism at this time, it's that anyone wanting to master
Jakarta
  Struts already knows about web applications and servlet containers.
  There
  was no need to spend the first 60 pages of the book on those subjects
  (especially the Tomcat-specific stuff).
 
  Chuck and Ted: yours are preordered.  ;-)
 
  Mark
 
 

--
Ted Husted, Husted dot Com, Fairport NY US
co-author, Java Web Development with Struts
Order it today:
http://husted.com/struts/book.html  

-- 

Kirby Vandivort  Theoretical Biophysics Group
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

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




RE: [FRIDAY] Please help save my soul

2002-09-06 Thread wbchmura


BDY.RTF
Description: RTF file


Re: InitParameter and Actions

2002-09-06 Thread Ted Husted

There are a couple of different ways to go

* Subclass the ActionServlet and do the same thing you did before. Just 
cast the servlet object of the Actions to your subclass and call 
whatever you've added.
* Load a helper servlet that exposes itself or an object in application 
scope to return whatever global parameters or other business services 
you need.
* [Struts 1.1] Use a plugin Action to do the same thing.
* Use the generic property parameter to the actions that need the String.
* Use an ActionMapping subclass and provide your own parameter string to 
each mapping.

In any case, a good way to go is to load any String parameters from a 
Properties file. Your servlet or plugin Action can then just load the 
Properties and everyone else can get what they need from there.

There some code for loading Propertoes file in the ResourcesUtil class here:

http://cvs.apache.org/viewcvs.cgi/jakarta-commons-sandbox/scaffold/src/java/org/apache/commons/scaffold/util/

-T.

Smith, Johnathan M. wrote:

 In the pass I setup InitParameter's in my web.xml file for my control
 (servlet) and the control pass the string on to each model.  How can I do
 the same thing in Struts. I need to pass a string like a database name to
 every action object.  I would like it in a files so if I go from dev to QA
 to prod I only have to change the name in a file
 
 
 Johnathan Mark Smith
 Divisional Assistant Vice President
 Information Systems Division
 
 Phone: (201) 352-1387
 Pager: (201) 718-1370
 Email: [EMAIL PROTECTED]
 Text Messaging: [EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 


-- 
Ted Husted, Husted dot Com, Fairport NY US
co-author, Java Web Development with Struts
Order it today:
http://husted.com/struts/book.html


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




Re: Struts Debug Level

2002-09-06 Thread Ted Husted

http://jakarta.apache.org/struts/api/org/apache/struts/action/ActionServlet.html

See the debug member.

Smith, Johnathan M. wrote:

 Where can I find a list of all the debug levels in struts?
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 


-- 
Ted Husted, Husted dot Com, Fairport NY US
co-author, Java Web Development with Struts
Order it today:
http://husted.com/struts/book.html


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




Re: [OT] RE: Struts and Large ResultSet

2002-09-06 Thread Michael Lee

Does anyone have any good examples of pagination from jsp-struts-ejb/jdbc
and back with large result sets?
The web seems to be pretty thin on examples.
thanks,
Mike

- Original Message -
From: Jan Fetyko [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, September 05, 2002 4:58 PM
Subject: Re: [OT] RE: Struts and Large ResultSet


Couple of thoughts:

1. Can you get and unique ID of the record(s) and store it somewhere
(users session) ? Pageing through would be easy (although if you have to
store couple of 1000 ids, it's not pretty) 2nd option maybe ?

2. Or is there a certain order by which this ResultSet is ordered by (
SELECT blah from BLAHBLAH ORDER BY blah ) ? In this case you can store
the ID of the first  last record displayed and then on the next 
previous actions, you'd use these to go up and down ( so to speak ).

Jf

Michael Lee wrote:

Actually this is a very valid topic, one which I'm struggling with now. I
use scrollable cursors when I set up my statement and setFetchSize and do
ResultSet.absolute() to go to the row that the 'NEXT' button sent. Is this
the right path? In struts I'll most likely send a
strutsAction.dofirstRow=50?listSize=25 or something on my submits but as
anyone done pagination on large sets like this? I do a query every time
they
click next. I don't think this is the best idea but I don't want to keep a
result set sitting around...
any idea? Am I on the right path?
thanks,
Mike


- Original Message -
From: Matt Veitas [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, September 05, 2002 10:28 AM
Subject: Re: [OT] RE: Struts and Large ResultSet




You can be assured they have lots and lots of money invested in huge
server farms and other hardware

Mazza, Glen R, PERSCOM wrote:



Google would seem to be a very good example of how to handle extremely


large


result sets.  A search on America, for example, returned 36.2 million


rows


kept  server-side, which the browser can quickly requery to get the


results,


10 or so rows at a time.

Can anyone surmise Google's probable approach to this?  Do they actually
retain DB cursors on the server side to query an additional 10 rows at a
time--but given their very fast response time, I suspect they may be


using


some other form of non-database cursor--I'm unsure if search engines even
use databases to return their result sets.

Thanks,
Glen


-

Changing data will happen. I see this kinda thing happen on google. You


to a


page and then when the results update the page 5 is different than it was
just a minute ago on the same query. It's kinda the way things are I


think.


The only way to avoid this is to keep the ResultSet open and updated from
the database. This is not a very good solution for high traffic sites.

Brandon

-Original Message-
From: John Owen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 22, 2002 9:50 AM
To: Struts Users Mailing List
Subject: Re: Struts and Large ResultSet


I suggested using the ArrayList for providing a read-only view of the
current state of the database. If something changes, your view would


remain


constant until you performed another query. If I were to provide
functionality for an item in the ArrayList, such as update, I would make
sure the system retrieved the latest copy of the item in question.

I would not suggest keeping a ResultSet of that size in the user session.


;)


I also would suggest determining if you really need to query 100,000


records


at once. If so, your J2EE container, application server or client machine
has to be able to handle that much information. If you devise cursors


using


a row limit (like rowcount, or is it rowid/rownum?) or some clever query
mechanism, you can pull back data in small, but meaningful groups.
Query-specific applications are database-dependent. I could devise


something


for Oracle 8.17 using cursors and using the limit functionality, but it
would not apply to mysql and other databases.

- Original Message -
From: Gus Delgado [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, August 22, 2002 10:17 AM
Subject: Re: Struts and Large ResultSet






The only problem with returning so much data is that your ArrayList and
the database can get out of sink if some else updates one of those




records.




Ashish Kulkarni wrote:





Hi
do u keep this Object in the user session???
if so, how does it affect the perforamce??
Ashish
John Owen wrote:Irregardless of struts, I would suggest storing the




ResultSet in an object




and then maniuplating the bean (for viewing) through an Action class. I
typically store data from a ResultSet in an object and put the object




into a




collection such as an ArrayList.

Hope this helps,

John
- Original Message -
From: Ashish Kulkarni
To: Struts Users Mailing List
Sent: Thursday, August 22, 2002 9:29 

RE: [FRIDAY] SOMEONE SAVE OUR LIST!!!!

2002-09-06 Thread Brandon Goodin

Isn't this list suppossed to be protected from this kind of refuse! I've got
a good sense of humor. But this is just sick! What the heck is this all
about? This really doesn't even qualify as a Friday topic. YUUUK!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 8:00 AM
To: [EMAIL PROTECTED]
Subject: RE: [FRIDAY] Please help save my soul



Dear Henry,

I would be most willing to contribute to your cause, in the order of the
full amount.  I would do this in trade for one of your kidneys (of which
you only need one).  I intend to put the kidney in question up for
auction on E-Bay.

Please forward me your mailing address there in Ghana and I will be most
happy to mail you:

1 x Coleman cooler (2 six pack size)
3 x Ice packs
1 x pair latex gloves
1 x Cutco steak knife
1 x Zip lock baggie (Freezer bag size)
1 x copy of Gray's Anatomy with relevant page dog-eared and organ
highlighted

A kidney is a small price to pay for a cure for your ailment


Thanks!




-Original Message-
From: Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 6:58 AM
To: struts-user
Subject: [FRIDAY] Please help save my soul


HELLO,

MY NAME IS HENRY APPIANG, AM FROM GHANA.I AM SORRY IF I MAY IN ANYWAY
DISTURB YOU.IT IS JUST A PITY THAT I HAVE TO SIT DOWN AND START TYPING
ALL
THIS.I HAVE TO DO THIS BECAUSE I DO NOT HAVE ANY OTHER OPTION.

I AM A BOY OF TWENTY-FIVE YEARS OLD, BORN IN BREAD IN GHANA.IN ORDER NOT
TO
WASTE YOUR TIME, LET JUST TELL YOU WHY I HAVE DECIDED TO MAIL YOU.

I HAVE A VERY BIG PROBLEM THAT IS AT THE MOMENT BIGGER THAN ME BUT NOT
BIGGER THAN GOD. WHEN I WAS TWENTY YEARS OLD,I REALISE THAT I HAVE A
PROBLEM. I REALISE THAT I AM HAVING A RETROGRADE EJACULATION, THIS I
THOUGHT
WAS A JOKE.I CONTACTED A FEW DOCTORS, IT WAS COMFIRMED THAT I REALLY
HAVE
THIS PROBLEM, SINCE THEN I BECAME WORRIED OF MY FUTURE, THINKING OF ANY
POSSIBLE SOLUTION IN ORDER TO REMEDY THE SITUATION BUT TO NO AVAIL.I
HAVE
DONE SO MANY TEST WHICH PROVED THAT I HAVE THESE PROBLEM.

IN MY LITTLE EFFORT I TRIED SOLVING IT MYSELF BUT I COULD NOT,I WAS
DIRECTED
BY A DOCTOR TO BUY A CERTAIN DRUG WHICH I FOUND OUT THAT IT IS NO WHERE
TO
BE FOUND IN AFRICAN MARKET.

NOW I HAVE TWO OPTIONS
1, TO EITHER GET THESE DRUG OR SEE IF IT WILL SOLVE MY PROBLEM OR TO
UNDERGO
A SURGERY, WHICH I PREFER FOR A LASTING SOLUTION.

MY LIFE DEPEND SOLELY ON THIS.I HAVE MADE ENQUIRIES ABOUT THE SURGERY,I
FOUND OUT THAT IT WILL COST ME $4,500USD TO UNDERGO,THIS IS WHY I HAVE
SEEK
FOR YOUR ASSISTANCE.

MY SURVIVAL DEPENDS ON YOU, YOU CAN TURN MY LIFE ARROUND, AND YOU CAN
PUT
THE SMILES ON MY FACE AGAIN WITH YOUR LITTLE DONATION.YOU CAN SAFE A
SOUL.

I DO NOT HAVE ANYOTHER MEANS TO RAISE THESE MONEY EXCEPT THROUGH YOUR
KIND
HEART.

KINDLY HELP SAVE MY SOUL.

REGARDS
HENRY.

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




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




RE: [FRIDAY] SOMEONE SAVE OUR LIST!!!!

2002-09-06 Thread Chappell, Simon P

I thought it was funny! (Of course, I grew up watching Monty Python, so I could well 
be more corrupted than I think I am. ;-)

Simon Sasquatches taste just like chicken Chappell

-Original Message-
From: Brandon Goodin [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 9:01 AM
To: Struts Users Mailing List
Subject: RE: [FRIDAY] SOMEONE SAVE OUR LIST


Isn't this list suppossed to be protected from this kind of 
refuse! I've got
a good sense of humor. But this is just sick! What the heck is this all
about? This really doesn't even qualify as a Friday topic. 
YUUUK!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 8:00 AM
To: [EMAIL PROTECTED]
Subject: RE: [FRIDAY] Please help save my soul



Dear Henry,

I would be most willing to contribute to your cause, in the 
order of the
full amount.  I would do this in trade for one of your kidneys 
(of which
you only need one).  I intend to put the kidney in question up for
auction on E-Bay.

Please forward me your mailing address there in Ghana and I 
will be most
happy to mail you:

1 x Coleman cooler (2 six pack size)
3 x Ice packs
1 x pair latex gloves
1 x Cutco steak knife
1 x Zip lock baggie (Freezer bag size)
1 x copy of Gray's Anatomy with relevant page dog-eared and organ
highlighted

A kidney is a small price to pay for a cure for your ailment


Thanks!




-Original Message-
From: Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 6:58 AM
To: struts-user
Subject: [FRIDAY] Please help save my soul


HELLO,

MY NAME IS HENRY APPIANG, AM FROM GHANA.I AM SORRY IF I MAY IN ANYWAY
DISTURB YOU.IT IS JUST A PITY THAT I HAVE TO SIT DOWN AND START TYPING
ALL
THIS.I HAVE TO DO THIS BECAUSE I DO NOT HAVE ANY OTHER OPTION.

I AM A BOY OF TWENTY-FIVE YEARS OLD, BORN IN BREAD IN GHANA.IN 
ORDER NOT
TO
WASTE YOUR TIME, LET JUST TELL YOU WHY I HAVE DECIDED TO MAIL YOU.

I HAVE A VERY BIG PROBLEM THAT IS AT THE MOMENT BIGGER THAN ME BUT NOT
BIGGER THAN GOD. WHEN I WAS TWENTY YEARS OLD,I REALISE THAT I HAVE A
PROBLEM. I REALISE THAT I AM HAVING A RETROGRADE EJACULATION, THIS I
THOUGHT
WAS A JOKE.I CONTACTED A FEW DOCTORS, IT WAS COMFIRMED THAT I REALLY
HAVE
THIS PROBLEM, SINCE THEN I BECAME WORRIED OF MY FUTURE, THINKING OF ANY
POSSIBLE SOLUTION IN ORDER TO REMEDY THE SITUATION BUT TO NO AVAIL.I
HAVE
DONE SO MANY TEST WHICH PROVED THAT I HAVE THESE PROBLEM.

IN MY LITTLE EFFORT I TRIED SOLVING IT MYSELF BUT I COULD NOT,I WAS
DIRECTED
BY A DOCTOR TO BUY A CERTAIN DRUG WHICH I FOUND OUT THAT IT IS NO WHERE
TO
BE FOUND IN AFRICAN MARKET.

NOW I HAVE TWO OPTIONS
1, TO EITHER GET THESE DRUG OR SEE IF IT WILL SOLVE MY PROBLEM OR TO
UNDERGO
A SURGERY, WHICH I PREFER FOR A LASTING SOLUTION.

MY LIFE DEPEND SOLELY ON THIS.I HAVE MADE ENQUIRIES ABOUT THE SURGERY,I
FOUND OUT THAT IT WILL COST ME $4,500USD TO UNDERGO,THIS IS WHY I HAVE
SEEK
FOR YOUR ASSISTANCE.

MY SURVIVAL DEPENDS ON YOU, YOU CAN TURN MY LIFE ARROUND, AND YOU CAN
PUT
THE SMILES ON MY FACE AGAIN WITH YOUR LITTLE DONATION.YOU CAN SAFE A
SOUL.

I DO NOT HAVE ANYOTHER MEANS TO RAISE THESE MONEY EXCEPT THROUGH YOUR
KIND
HEART.

KINDLY HELP SAVE MY SOUL.

REGARDS
HENRY.

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




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


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




Re: InitParameter and Actions

2002-09-06 Thread Michael Lee

They have a parameter=someValue
for every action mapping you set up. Is that what you want?
You can get the value in your Action class by calling
String prameterValue = mapping.getParameter();
hope this helps,
Mike

- Original Message -
From: Smith, Johnathan M. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, September 06, 2002 8:55 AM
Subject: InitParameter and Actions


 In the pass I setup InitParameter's in my web.xml file for my control
 (servlet) and the control pass the string on to each model.  How can I do
 the same thing in Struts. I need to pass a string like a database name to
 every action object.  I would like it in a files so if I go from dev to QA
 to prod I only have to change the name in a file


 Johnathan Mark Smith
 Divisional Assistant Vice President
 Information Systems Division

 Phone: (201) 352-1387
 Pager: (201) 718-1370
 Email: [EMAIL PROTECTED]
 Text Messaging: [EMAIL PROTECTED]



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


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




Re: DB hit from ActionForm Validate method

2002-09-06 Thread Michael Lee

I've always used validate() as simple form validation, such as ensure a
necessary field is set, not business validation such as a 3 login attempt
rule. I would recommend you set something in the request or session that
stores the number of attempts. In each action, when you check, increment
that number and then add a mapping forward for a 3 strikes your out rule so
on the last failed attempt instead of
mapping.findForward(mapping.getInput()) you send him to
mapping.findForward(3strikesyourout);

Your struts-config.xml would look something like this

actionpath=/login
   type=com.domain.LoginAction
   input=login.jsp
   name=loginForm
   scope=request
   validate=true
  forward name=success path=/main.jsp/
  forward name=3strikesyourout path=/main.jsp/
/action

hope this helps,
Mike



- Original Message -
From: Cohan, Sean [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, September 06, 2002 9:19 AM
Subject: DB hit from ActionForm Validate method


 We need to implement '3 strikes and your out' functionality to our logon
 process.  If the user is unsuccessful after 3 logon attempts, we disable
 their account.  I put some of the user id / password functionality in the
 validate method of the LogonForm class.  However, in between each attempt,
I
 need find out what number of logon attempt they are on, and if this is not
 their 3rd attempt, bump up the logon attempt number. If it's their second
 attempt and they fail, I  need to let them know they only have 1 ore
chance
 to get it right.  If they successfully logon, we also need to show them
how
 many attempts it took them to logon the last time their account was
 accessed.

 We were thinking we'd store their current and previous logon attempt
number
 in the DB.  My question is whether it is acceptable or common practice to
 access the DB from the validate method or should DB access only be done in
 the LogonAction class (which means I'd move the perform functionality to
the
 LogonAction class)?

 Thanks.


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


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




RE: STRUTS BOOK

2002-09-06 Thread Galbreath, Mark

Can't say about Ted's, but Chuck states specifically that his text is based
on 1.1 beta and James' states on page 59, simply 1.1 (which I think is a
bit disingenuous).

-Original Message-
From: Kirby Vandivort [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 9:51 AM
To: [EMAIL PROTECTED]
Subject: Re: STRUTS BOOK


Question..  are any of the three books, husted, chuck, or james written
TO version 1.1?  Amazon doesn't give details on any of the three, and
Ted's page mentions a chapter that talks about 1.1, but I'm wondering
if anything is out there yet that is actually written from the core up
to use 1.1.  My guess is that it is too early for such a beast, but I
figured it couldn't hurt to ask.

The Introduction was one of the trickier parts of the book for us. The
publisher kept saying the original first chapter wasn't the beginning.
We were starting with Struts, but they wanted to start sooner than that.
They also wanted a hands-on Struts example in the first chapter. I had
no idea how to do all that in a single first chapter. Then George
Franciscus came to the rescue with a very tightly written introductory
chapter. It covers the basics of the underlying technologies and then
leaps right into a working Struts application!

The trick George came up for the example was to include the prebuilt
classes in the download. That way, we didn't have to get into the build
issues before showing people what it is like to develop in Struts.

In fact, the new Enabling Technologies section of the Struts User
guide grew out of the work we did with our own chapter 1. Of course,
ours has more text than hyperlinks (but that's what you have to do in
print).

We'll be posting the Tiles and Validator chapters as our book examples
Real Soon Now. Of course, Cedric and David drafted those. We decided to
post these two since Tiles and Validator and the least documented parts
of the framework right now. As example chapters, we will be able to keep
them up indefinitely.

-Ted.


Galbreath, Mark wrote:

  Just got James' Mastering Jakarta Struts (Wiley 2002) last night from
  Amazon.  Scanning through it, the layout and coverage looks very
good.  If I
  have one criticism at this time, it's that anyone wanting to master
Jakarta
  Struts already knows about web applications and servlet containers.
  There
  was no need to spend the first 60 pages of the book on those subjects
  (especially the Tomcat-specific stuff).
 
  Chuck and Ted: yours are preordered.  ;-)
 
  Mark
 
 

--
Ted Husted, Husted dot Com, Fairport NY US
co-author, Java Web Development with Struts
Order it today:
http://husted.com/struts/book.html  

-- 

Kirby Vandivort  Theoretical Biophysics Group
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

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

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




Re: [ANN] Struts QA Distilled, Vol#2

2002-09-06 Thread Tim T. Young


Great resource, keep up the good work.

Tim



   
   
John Yu
   
john@sciowor  
   
ks.com
   
   
   
09/06/2002 
   
08:00 AM  To: Struts Users Mailing List 
[EMAIL PROTECTED]
Pleasecc:  
   
respond to 
   
Struts Users  
   
Mailing List  
   
 Subject: [ANN] Struts QA Distilled, 
Vol#2   
   
   



Caterpillar: Confidential Green  Retain Until: 10/06/2002
 Retention Category:  G90 -
 Information and Reports





Struts QA Distilled is a catalogue of question-and-answers distilled
from Struts mailing lists and other sources. The catalogue is organized in
topics. New entries are added to the catalogue periodically in batches.

Volume #2:

  http://www.scioworks.net/servlets/ShowPage?pid=34dp=3

Covers:
Q1: It is recommended properties of the FormBeans should be String
properties. In that case, where do I do the type conversions?

Q2: How much does Struts depend on the session object and when is the
object created?

Q3: I have problem with using ActionErrors and html:errors. I don't see
my messages. Why?

Q4: My error messages generated by html:errors contain null at the
start and the end. What have I done wrong?

Q5: How do I prevent my form from being validated when it is displayed the
first time, if the JSP is fronted by an Action?

Q6: Struts 1.1 seems to support multiple resource bundles. How to use it?

Q7: After I replace my input type=submit... to html:submit..., my
Javascript document.forms[0].submit() does not work anymore and returns me
Object doesn't support this property or method. Why?

Q8: How do I configure Struts to intercept requests and perform some logic
before passing them to the controller servlet for processing?

Q9: How do I send binary data to the controller servlet? (e.g. a
Swing-based client sends serialized object to the controller servlet.)

Q10: I want to associate data with html:check and return the selected
value as a String property in the FormBean. But I got exception coming from

RequestUtils.populate(). Why?

--
John Yu   Scioworks Technologies
e: [EMAIL PROTECTED] w: +(65) 873 5989
w: http://www.scioworks.com   m: +(65) 9782 9610

Scioworks Camino - Don't develop Struts Apps without it!
Copyright (c) 2002 John Yu/Scioworks Technologies. All rights reserved.





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




RE: [FRIDAY] SOMEONE SAVE OUR LIST!!!!

2002-09-06 Thread Galbreath, Mark

Lighten up, Brandon.  It's just BS from www.snopes.com.

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 10:05 AM
To: Struts Users Mailing List
Subject: RE: [FRIDAY] SOMEONE SAVE OUR LIST


I thought it was funny! (Of course, I grew up watching Monty Python, so I
could well be more corrupted than I think I am. ;-)

Simon Sasquatches taste just like chicken Chappell

-Original Message-
From: Brandon Goodin [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 9:01 AM
To: Struts Users Mailing List
Subject: RE: [FRIDAY] SOMEONE SAVE OUR LIST


Isn't this list suppossed to be protected from this kind of 
refuse! I've got
a good sense of humor. But this is just sick! What the heck is this all
about? This really doesn't even qualify as a Friday topic. 
YUUUK!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 8:00 AM
To: [EMAIL PROTECTED]
Subject: RE: [FRIDAY] Please help save my soul



Dear Henry,

I would be most willing to contribute to your cause, in the 
order of the
full amount.  I would do this in trade for one of your kidneys 
(of which
you only need one).  I intend to put the kidney in question up for
auction on E-Bay.

Please forward me your mailing address there in Ghana and I 
will be most
happy to mail you:

1 x Coleman cooler (2 six pack size)
3 x Ice packs
1 x pair latex gloves
1 x Cutco steak knife
1 x Zip lock baggie (Freezer bag size)
1 x copy of Gray's Anatomy with relevant page dog-eared and organ
highlighted

A kidney is a small price to pay for a cure for your ailment


Thanks!




-Original Message-
From: Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 6:58 AM
To: struts-user
Subject: [FRIDAY] Please help save my soul


HELLO,

MY NAME IS HENRY APPIANG, AM FROM GHANA.I AM SORRY IF I MAY IN ANYWAY
DISTURB YOU.IT IS JUST A PITY THAT I HAVE TO SIT DOWN AND START TYPING
ALL
THIS.I HAVE TO DO THIS BECAUSE I DO NOT HAVE ANY OTHER OPTION.

I AM A BOY OF TWENTY-FIVE YEARS OLD, BORN IN BREAD IN GHANA.IN 
ORDER NOT
TO
WASTE YOUR TIME, LET JUST TELL YOU WHY I HAVE DECIDED TO MAIL YOU.

I HAVE A VERY BIG PROBLEM THAT IS AT THE MOMENT BIGGER THAN ME BUT NOT
BIGGER THAN GOD. WHEN I WAS TWENTY YEARS OLD,I REALISE THAT I HAVE A
PROBLEM. I REALISE THAT I AM HAVING A RETROGRADE EJACULATION, THIS I
THOUGHT
WAS A JOKE.I CONTACTED A FEW DOCTORS, IT WAS COMFIRMED THAT I REALLY
HAVE
THIS PROBLEM, SINCE THEN I BECAME WORRIED OF MY FUTURE, THINKING OF ANY
POSSIBLE SOLUTION IN ORDER TO REMEDY THE SITUATION BUT TO NO AVAIL.I
HAVE
DONE SO MANY TEST WHICH PROVED THAT I HAVE THESE PROBLEM.

IN MY LITTLE EFFORT I TRIED SOLVING IT MYSELF BUT I COULD NOT,I WAS
DIRECTED
BY A DOCTOR TO BUY A CERTAIN DRUG WHICH I FOUND OUT THAT IT IS NO WHERE
TO
BE FOUND IN AFRICAN MARKET.

NOW I HAVE TWO OPTIONS
1, TO EITHER GET THESE DRUG OR SEE IF IT WILL SOLVE MY PROBLEM OR TO
UNDERGO
A SURGERY, WHICH I PREFER FOR A LASTING SOLUTION.

MY LIFE DEPEND SOLELY ON THIS.I HAVE MADE ENQUIRIES ABOUT THE SURGERY,I
FOUND OUT THAT IT WILL COST ME $4,500USD TO UNDERGO,THIS IS WHY I HAVE
SEEK
FOR YOUR ASSISTANCE.

MY SURVIVAL DEPENDS ON YOU, YOU CAN TURN MY LIFE ARROUND, AND YOU CAN
PUT
THE SMILES ON MY FACE AGAIN WITH YOUR LITTLE DONATION.YOU CAN SAFE A
SOUL.

I DO NOT HAVE ANYOTHER MEANS TO RAISE THESE MONEY EXCEPT THROUGH YOUR
KIND
HEART.

KINDLY HELP SAVE MY SOUL.

REGARDS
HENRY.

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




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


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

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




Re: [FRIDAY] SOMEONE SAVE OUR LIST!!!!

2002-09-06 Thread Eddie Bush

Aw ... you shouldn't have said that.  I was seeing you in a brand 
new light!  It would take a fair amount of creativity and put together 
the stories you've posted today -- I thought you were the originator. 
 D'oh :-(  Somehow I get the feeling that the one about retrograde 
ejaculation is yours though ... it's ok man *pats mark on back* ... I 
know it's got to be hard to deal with though.  The important thing is 
that your wife loves you in spite of your condition.  The best thing you 
can do is just get it out in the open and let everyone know so they can 
help!

Sincerely,

Eddie

Galbreath, Mark wrote:

Lighten up, Brandon.  It's just BS from www.snopes.com.

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 10:05 AM
To: Struts Users Mailing List
Subject: RE: [FRIDAY] SOMEONE SAVE OUR LIST


I thought it was funny! (Of course, I grew up watching Monty Python, so I
could well be more corrupted than I think I am. ;-)

Simon Sasquatches taste just like chicken Chappell




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




RE: [FRIDAY] SOMEONE SAVE OUR LIST!!!!

2002-09-06 Thread Lister, Tom (ANTS)

here's one for the aftermath of friday evening beers
http://www.hairytongue.com

god bless the internet

:-)
Tom Lister
* 020 7612 3030
* [EMAIL PROTECTED]


-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: 06 September 2002 15:21
To: 'Struts Users Mailing List'
Subject: RE: [FRIDAY] SOMEONE SAVE OUR LIST


Lighten up, Brandon.  It's just BS from www.snopes.com.

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 10:05 AM
To: Struts Users Mailing List
Subject: RE: [FRIDAY] SOMEONE SAVE OUR LIST


I thought it was funny! (Of course, I grew up watching Monty Python, so I
could well be more corrupted than I think I am. ;-)

Simon Sasquatches taste just like chicken Chappell

-Original Message-
From: Brandon Goodin [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 9:01 AM
To: Struts Users Mailing List
Subject: RE: [FRIDAY] SOMEONE SAVE OUR LIST


Isn't this list suppossed to be protected from this kind of 
refuse! I've got
a good sense of humor. But this is just sick! What the heck is this all
about? This really doesn't even qualify as a Friday topic. 
YUUUK!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 8:00 AM
To: [EMAIL PROTECTED]
Subject: RE: [FRIDAY] Please help save my soul



Dear Henry,

I would be most willing to contribute to your cause, in the 
order of the
full amount.  I would do this in trade for one of your kidneys 
(of which
you only need one).  I intend to put the kidney in question up for
auction on E-Bay.

Please forward me your mailing address there in Ghana and I 
will be most
happy to mail you:

1 x Coleman cooler (2 six pack size)
3 x Ice packs
1 x pair latex gloves
1 x Cutco steak knife
1 x Zip lock baggie (Freezer bag size)
1 x copy of Gray's Anatomy with relevant page dog-eared and organ
highlighted

A kidney is a small price to pay for a cure for your ailment


Thanks!




-Original Message-
From: Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 6:58 AM
To: struts-user
Subject: [FRIDAY] Please help save my soul


HELLO,

MY NAME IS HENRY APPIANG, AM FROM GHANA.I AM SORRY IF I MAY IN ANYWAY
DISTURB YOU.IT IS JUST A PITY THAT I HAVE TO SIT DOWN AND START TYPING
ALL
THIS.I HAVE TO DO THIS BECAUSE I DO NOT HAVE ANY OTHER OPTION.

I AM A BOY OF TWENTY-FIVE YEARS OLD, BORN IN BREAD IN GHANA.IN 
ORDER NOT
TO
WASTE YOUR TIME, LET JUST TELL YOU WHY I HAVE DECIDED TO MAIL YOU.

I HAVE A VERY BIG PROBLEM THAT IS AT THE MOMENT BIGGER THAN ME BUT NOT
BIGGER THAN GOD. WHEN I WAS TWENTY YEARS OLD,I REALISE THAT I HAVE A
PROBLEM. I REALISE THAT I AM HAVING A RETROGRADE EJACULATION, THIS I
THOUGHT
WAS A JOKE.I CONTACTED A FEW DOCTORS, IT WAS COMFIRMED THAT I REALLY
HAVE
THIS PROBLEM, SINCE THEN I BECAME WORRIED OF MY FUTURE, THINKING OF ANY
POSSIBLE SOLUTION IN ORDER TO REMEDY THE SITUATION BUT TO NO AVAIL.I
HAVE
DONE SO MANY TEST WHICH PROVED THAT I HAVE THESE PROBLEM.

IN MY LITTLE EFFORT I TRIED SOLVING IT MYSELF BUT I COULD NOT,I WAS
DIRECTED
BY A DOCTOR TO BUY A CERTAIN DRUG WHICH I FOUND OUT THAT IT IS NO WHERE
TO
BE FOUND IN AFRICAN MARKET.

NOW I HAVE TWO OPTIONS
1, TO EITHER GET THESE DRUG OR SEE IF IT WILL SOLVE MY PROBLEM OR TO
UNDERGO
A SURGERY, WHICH I PREFER FOR A LASTING SOLUTION.

MY LIFE DEPEND SOLELY ON THIS.I HAVE MADE ENQUIRIES ABOUT THE SURGERY,I
FOUND OUT THAT IT WILL COST ME $4,500USD TO UNDERGO,THIS IS WHY I HAVE
SEEK
FOR YOUR ASSISTANCE.

MY SURVIVAL DEPENDS ON YOU, YOU CAN TURN MY LIFE ARROUND, AND YOU CAN
PUT
THE SMILES ON MY FACE AGAIN WITH YOUR LITTLE DONATION.YOU CAN SAFE A
SOUL.

I DO NOT HAVE ANYOTHER MEANS TO RAISE THESE MONEY EXCEPT THROUGH YOUR
KIND
HEART.

KINDLY HELP SAVE MY SOUL.

REGARDS
HENRY.

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




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


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

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


***
This communication (including any attachments) contains confidential information.  If 
you are not the intended recipient and you have received this communication in error, 
you should destroy it without copying, disclosing or otherwise using its contents.  
Please notify the sender immediately of the error.

Internet communications are not necessarily secure and may be intercepted or changed 
after they are sent.  Abbey National Treasury Services plc does not accept liability 
for any loss you may suffer as a result of interception or any liability for such 
changes.  If you wish to confirm the origin or content of this 

RE: [FRIDAY] SOMEONE SAVE OUR LIST!!!!

2002-09-06 Thread Sri Sankaran

Humor in bodily functions (of dysfunctions) is so slapstick.  What are we ... 
teenagers?

 -Original Message-
 From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, September 06, 2002 10:21 AM
 To: 'Struts Users Mailing List'
 Subject: RE: [FRIDAY] SOMEONE SAVE OUR LIST
 
 
 Lighten up, Brandon.  It's just BS from www.snopes.com.
 
 -Original Message-
 From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 06, 2002 10:05 AM
 To: Struts Users Mailing List
 Subject: RE: [FRIDAY] SOMEONE SAVE OUR LIST
 
 
 I thought it was funny! (Of course, I grew up watching Monty 
 Python, so I could well be more corrupted than I think I am. ;-)
 
 Simon Sasquatches taste just like chicken Chappell
 
 -Original Message-
 From: Brandon Goodin [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 06, 2002 9:01 AM
 To: Struts Users Mailing List
 Subject: RE: [FRIDAY] SOMEONE SAVE OUR LIST
 
 
 Isn't this list suppossed to be protected from this kind of
 refuse! I've got
 a good sense of humor. But this is just sick! What the heck 
 is this all
 about? This really doesn't even qualify as a Friday topic. 
 YUUUK!
 
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 06, 2002 8:00 AM
 To: [EMAIL PROTECTED]
 Subject: RE: [FRIDAY] Please help save my soul
 
 
 
 Dear Henry,
 
 I would be most willing to contribute to your cause, in the
 order of the
 full amount.  I would do this in trade for one of your kidneys 
 (of which
 you only need one).  I intend to put the kidney in question up for
 auction on E-Bay.
 
 Please forward me your mailing address there in Ghana and I
 will be most
 happy to mail you:
 
 1 x Coleman cooler (2 six pack size)
 3 x Ice packs
 1 x pair latex gloves
 1 x Cutco steak knife
 1 x Zip lock baggie (Freezer bag size)
 1 x copy of Gray's Anatomy with relevant page dog-eared and organ 
 highlighted
 
 A kidney is a small price to pay for a cure for your ailment
 
 
 Thanks!
 
 
 
 
 -Original Message-
 From: Galbreath [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 06, 2002 6:58 AM
 To: struts-user
 Subject: [FRIDAY] Please help save my soul
 
 
 HELLO,
 
 MY NAME IS HENRY APPIANG, AM FROM GHANA.I AM SORRY IF I MAY 
 IN ANYWAY 
 DISTURB YOU.IT IS JUST A PITY THAT I HAVE TO SIT DOWN AND 
 START TYPING 
 ALL THIS.I HAVE TO DO THIS BECAUSE I DO NOT HAVE ANY OTHER OPTION.
 
 I AM A BOY OF TWENTY-FIVE YEARS OLD, BORN IN BREAD IN GHANA.IN
 ORDER NOT
 TO
 WASTE YOUR TIME, LET JUST TELL YOU WHY I HAVE DECIDED TO MAIL YOU.
 
 I HAVE A VERY BIG PROBLEM THAT IS AT THE MOMENT BIGGER THAN 
 ME BUT NOT 
 BIGGER THAN GOD. WHEN I WAS TWENTY YEARS OLD,I REALISE THAT I HAVE A 
 PROBLEM. I REALISE THAT I AM HAVING A RETROGRADE EJACULATION, THIS I 
 THOUGHT WAS A JOKE.I CONTACTED A FEW DOCTORS, IT WAS 
 COMFIRMED THAT I 
 REALLY HAVE
 THIS PROBLEM, SINCE THEN I BECAME WORRIED OF MY FUTURE, 
 THINKING OF ANY
 POSSIBLE SOLUTION IN ORDER TO REMEDY THE SITUATION BUT TO NO AVAIL.I
 HAVE
 DONE SO MANY TEST WHICH PROVED THAT I HAVE THESE PROBLEM.
 
 IN MY LITTLE EFFORT I TRIED SOLVING IT MYSELF BUT I COULD NOT,I WAS 
 DIRECTED BY A DOCTOR TO BUY A CERTAIN DRUG WHICH I FOUND OUT 
 THAT IT IS 
 NO WHERE TO
 BE FOUND IN AFRICAN MARKET.
 
 NOW I HAVE TWO OPTIONS
 1, TO EITHER GET THESE DRUG OR SEE IF IT WILL SOLVE MY PROBLEM OR TO 
 UNDERGO A SURGERY, WHICH I PREFER FOR A LASTING SOLUTION.
 
 MY LIFE DEPEND SOLELY ON THIS.I HAVE MADE ENQUIRIES ABOUT 
 THE SURGERY,I 
 FOUND OUT THAT IT WILL COST ME $4,500USD TO UNDERGO,THIS IS 
 WHY I HAVE 
 SEEK FOR YOUR ASSISTANCE.
 
 MY SURVIVAL DEPENDS ON YOU, YOU CAN TURN MY LIFE ARROUND, 
 AND YOU CAN 
 PUT THE SMILES ON MY FACE AGAIN WITH YOUR LITTLE 
 DONATION.YOU CAN SAFE 
 A SOUL.
 
 I DO NOT HAVE ANYOTHER MEANS TO RAISE THESE MONEY EXCEPT 
 THROUGH YOUR 
 KIND HEART.
 
 KINDLY HELP SAVE MY SOUL.
 
 REGARDS
 HENRY.
 
 --
 To unsubscribe, e-mail: 
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 --
 To 
 unsubscribe, e-mail: 
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

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




RE: [FRIDAY] SOMEONE SAVE OUR LIST!!!!

2002-09-06 Thread Tim T. Young


quote
including some drugs used to treat hypertension and alertsome mood
altering drugs./alert
/quote

I hope beer is not on that list...



   
   
wbchmura@Ensign-Bickf  
   
ordInd.com 
   
   
   
09/06/2002 09:41 AM
   
Please respond to  
   
Struts Users Mailing To: [EMAIL PROTECTED]   
   
List cc:  
   
   
   
   
   
   
   
 Subject: RE: [FRIDAY] SOMEONE 
SAVE OUR LIST  
   
   



Caterpillar: Confidential Green  Retain Until: 10/06/2002
 Retention Category:  G90 -
 Information and Reports




Refuse?!  I am just trying to help henry!

Good god man he has got RETROGRADE EJACULATION for cryin out loud!

From: http://www.nlm.nih.gov/medlineplus/ency/article/001282.htm

Retrograde ejaculation refers to the entry of semen into the bladder
instead of going out through the urethra during ejaculation.

Retrograde ejaculation may be caused by prior prostate or urethral
surgery, diabetes, some medications, including some drugs used to treat
hypertension and some mood altering drugs.

Switching to a framework like Jakarta Struts can help reduce most of the
symptoms.

The condition is relatively uncommon and may occur either partially or
completely. The presence of semen into the bladder is harmless. It mixes
into the urine and leaves the body with normal urination. Men with
diabetes and those who have had genitourinary tract surgery are at
increased risk of developing the condition.


-Original Message-
From: Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 10:21 AM
To: struts-user
Subject: RE: [FRIDAY] SOMEONE SAVE OUR LIST


Lighten up, Brandon.  It's just BS from www.snopes.com.

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 10:05 AM
To: Struts Users Mailing List
Subject: RE: [FRIDAY] SOMEONE SAVE OUR LIST


I thought it was funny! (Of course, I grew up watching Monty Python, so
I
could well be more corrupted than I think I am. ;-)

Simon Sasquatches taste just like chicken Chappell

-Original Message-
From: Brandon Goodin [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 9:01 AM
To: Struts Users Mailing List
Subject: RE: [FRIDAY] SOMEONE SAVE OUR LIST


Isn't this list suppossed to be protected from this kind of
refuse! I've got
a good sense of humor. But this is just sick! What the heck is this all
about? This really doesn't even qualify as a Friday topic.
YUUUK!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 8:00 AM
To: [EMAIL PROTECTED]
Subject: RE: [FRIDAY] Please help save my soul



Dear Henry,

I would be most willing to contribute to your cause, in the
order of the
full amount.  I would do this in trade for one of your kidneys
(of which
you only need one).  I intend to put the kidney in question up for
auction on E-Bay.

Please forward me your mailing address there in Ghana and I
will be most
happy to mail you:

1 x Coleman cooler (2 six pack size)
3 x Ice packs
1 x pair latex gloves
1 x Cutco steak knife
1 x Zip lock baggie (Freezer bag size)
1 x copy of Gray's Anatomy with relevant page dog-eared and organ
highlighted

A kidney is a 

Re: Actions and Parameters

2002-09-06 Thread John Yu



Struts doesn't prescribe a special way of doing it. Meaning that you 
achieve it the good old way: put the configuration as a init-param of the 
Struts' ActionServlet and access it via
Action.getServlet().getServletContext().getInitParameter(paramName).


At 07:15 pm 06-09-2002, you wrote:
Please keep in mind that I am new to struts and I have a project that I have
to get done and a fast rate.  I would like to know where should I setup a
parameter/string that I need to use in every action. In my old MVC world I
would make a initparameter on my control (servlet) and the control would
pass the string to each model.  How do I do it in struts?



Johnathan Mark Smith
Divisional Assistant Vice President
Information Systems Division

-- 
John Yu   Scioworks Technologies
e: [EMAIL PROTECTED] w: +(65) 873 5989
w: http://www.scioworks.com   m: +(65) 9782 9610

Scioworks Camino - Don't develop Struts Apps without it!
Copyright (c) 2002 John Yu/Scioworks Technologies. All rights reserved.


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




Re: Datasource Retrieval in 1.1 (Help needed)

2002-09-06 Thread Craig Tataryn

From ActionServlet.findDatasource() API docs:
Deprecated. Look up data sources directly in servlet context attributes

So I replaced my call to :
dataSource = getServlet().findDatasource(null);

with:
dataSource = 
(DataSource)getServlet().getServletContext().getAttribute(this.DATA_SOURCE_KEY);

And my datasource is retuned as null.

Anyone know what's going on?

Craig.

From: Craig Tataryn [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Datasource Retrieval in 1.1
Date: Thu, 05 Sep 2002 14:09:35 -0500

Ok, read the DTD for struts-config.xml and figured out that I would use the 
key attribute if I were to add another datasource.  I would still like to 
know how to retrieve the datasource without using the deprecated 
findDatasource() method.

Thanks,

Craig.


From: Craig Tataryn [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Datasource Retrieval in 1.1
Date: Thu, 05 Sep 2002 11:30:39 -0500

The documentation still lists the old way of how to retrieve a datasource 
which has been setup in struts-config.xml using findDatasource();

The API says to use datasource stored in attributes.  Can someone give 
an example of how I might do this from within my execute method?  I want 
to get rid of my deprecation warnings for findDatasource()

As well, I believe you can have multiple datasources setup in 
struts-config.xml.  The default datasource being keyed by 
org.apache.struts.action.Action.DATA_SOURCE_KEY.  Could someone point me 
to an example of multiple datasources and how to setup keys for each?

Thanks,

Craig.

Craig W. Tataryn
Programmer/Analyst
Compuware

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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


Craig W. Tataryn
Programmer/Analyst
Compuware

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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


Craig W. Tataryn
Programmer/Analyst
Compuware

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




RE: [FRIDAY] SOMEONE SAVE OUR LIST!!!!

2002-09-06 Thread Galbreath, Mark

Great site!  I especially like the glossary!  What an inspiration for email
signatures

-Original Message-
From: Lister, Tom (ANTS) [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 10:28 AM

here's one for the aftermath of friday evening beers
http://www.hairytongue.com

god bless the internet

:-)
Tom Lister

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




Proposal for struts-humor

2002-09-06 Thread Michael

I'd like to propose a new mailing list called struts-humor that way I
won't risk missing any of the important mails that get lost in with the
technical struts discussion.

Michael


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




Re: Proposal for struts-humor

2002-09-06 Thread Eddie Bush

Obviously you haven't followed the list closely for long ;-)  This was 
proposed and shot down.  Add a filter to your email client.

Regards,

Eddie

Michael wrote:

I'd like to propose a new mailing list called struts-humor that way I
won't risk missing any of the important mails that get lost in with the
technical struts discussion.

Michael




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




Re: DB hit from ActionForm Validate method

2002-09-06 Thread Ted Husted

The best thing is to think of the ActionForm as a data transfer object. 
As such, it shouldn't be accessing the data service itself, but simply 
carrying the data for others to use.

The validate method is an apology to the web tier. The standard HTML 
controls will accept any String value you care to throw at them. Many 
business tier methods either expect typed values or values that will 
cleanly convert. The ActionForm validate gives you the opportunity to 
preview the input before dispatching it to the Action object. But it is 
not a recommended practice to couple business services with a Struts 
ActionForm. Better to concentrate all the business service couping in 
your Actions.

Depending on how clever the business objects are, many developers don't 
use the validate method, but do it all in the Action. This is a 
perfectly fine way to go. It all depends on what else you have going on 
in ~your~ application.

-Ted

Cohan, Sean wrote:

 We need to implement '3 strikes and your out' functionality to our logon
 process.  If the user is unsuccessful after 3 logon attempts, we disable
 their account.  I put some of the user id / password functionality in the
 validate method of the LogonForm class.  However, in between each attempt, I
 need find out what number of logon attempt they are on, and if this is not
 their 3rd attempt, bump up the logon attempt number. If it's their second
 attempt and they fail, I  need to let them know they only have 1 ore chance
 to get it right.  If they successfully logon, we also need to show them how
 many attempts it took them to logon the last time their account was
 accessed.  
 
 We were thinking we'd store their current and previous logon attempt number
 in the DB.  My question is whether it is acceptable or common practice to
 access the DB from the validate method or should DB access only be done in
 the LogonAction class (which means I'd move the perform functionality to the
 LogonAction class)?  
 
 Thanks.
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 


-- 
Ted Husted, Husted dot Com, Fairport NY US
co-author, Java Web Development with Struts
Order it today:
http://husted.com/struts/book.html


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




RE: [FRIDAY] Dysfunctional Humor

2002-09-06 Thread Galbreath, Mark

Ever heard of the Peter Pan Syndrome?  Grow old and rigid if you want; I
prefer humor.  The proverb, When it stops being fun, it's time to stop
goes for most things in life.

For comparison, try http://www.consumptionjunction.com.  I'll take slapstick
any day.


-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 10:37 AM

Humor in bodily functions (of dysfunctions) is so slapstick.  What are we
... teenagers?

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




RE: [OT PROPOSAL]Proposal for struts-humor

2002-09-06 Thread Brandon Goodin

HEY where the prepend! (LOL)

Brandon Goodin
Phase Web and Multimedia
P(406)862-2245
F(406)862-0354
http://www.phase.ws

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 8:58 AM
To: Struts Users Mailing List
Subject: Re: Proposal for struts-humor





I completely agree with Michael...


Naveen Dhotre,
Consultant
Uovo Fi SYSTEM

Main: +44 (0) 1 494 685 700, Fax: +44 (0) 1494 685 707
Email: [EMAIL PROTECTED],  Web:  http://www.uovo.com



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



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




RE: Proposal for struts-humor

2002-09-06 Thread Galbreath, Mark

Why don't you guys create a new list called struts-putz?  If you do not
feel like you belong to the community (and that is what this is - it's not
just a list), leave.  Otherwise, b*tch (st00pid email anti-1st Amendment
filters) and whine all you want!

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 10:58 AM


I completely agree with Michael...


Naveen Dhotre,
Consultant
Uovo Fi SYSTEM

Main: +44 (0) 1 494 685 700, Fax: +44 (0) 1494 685 707
Email: [EMAIL PROTECTED],  Web:  http://www.uovo.com



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

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




Re: Proposal for struts-humor

2002-09-06 Thread Ted Husted

The current advice is to set your mailreader to segregate the subject 
lines containing [FRIDAY] or [BEER]. I'm tempted to add these 
instructions to the Struts home page.

In practice, subdividing lists rarely works since people with questions 
usually can't tell where to post them.

In this case, the [*] gang is looking for an audience and wouldn't be 
happy with a smaller venue.

-Ted.

Michael wrote:

 I'd like to propose a new mailing list called struts-humor that way I
 won't risk missing any of the important mails that get lost in with the
 technical struts discussion.
 
 Michael
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 


-- 
Ted Husted, Husted dot Com, Fairport NY US
co-author, Java Web Development with Struts
Order it today:
http://husted.com/struts/book.html


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




RE: How to set locale using j_security_check

2002-09-06 Thread Jon.Ridgway

Hi Mike,

By default the user's locale will be set to that specified by their browser.
If you want to give users the option of changing their locale you would have
to display supported locales on a form (drop down, graphics etc) let the
user pick a locale and post to an action then as you have already spotted
use the setLocale method on the Action class to set the users locale to that
specified.

There may be a way - using LDAP and/or RDBMS and/or custom realms in WLS to
set the locale to a value specified in the realm for the user; not sure off
the top of my head - never seen one - but I'll have a look into it for
you...

If you really wanted to do this the easiest way would be to forward to an
Action in your secured area (to initiate FORM based auth), say
domain.com/secure/main.do and have the action get their locale from
persistent store and set it before forwarding onto the
domain.com/secure/main.jsp.

Jon Ridgway


-Original Message-
From: Michael Lee [mailto:[EMAIL PROTECTED]] 
Sent: 06 September 2002 14:56
To: Struts Users Mailing List
Subject: How to set locale using j_security_check

I use container managed security in WLS using j_security_check. I have
multiple languages. I want to load a user object with a locale and set it
for that user as long as he is logged in (Action.setLocale(request,
locale)??).
How would I do this if the container is handling log in for me? For example
lets say I want to go to 
domain.com/main.jsp but first it sends me to domain.com/login.html. The
container would then authenticate and send me to main.jsp. I want to
intercept this return and log in the user and set the local so he can see
his language ApplicationResources.properties.
Any hints? (I know this group has em! This is the best damn email group in
the world, I swear)
thanks,
Mike


The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

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




Re: RE : Specifying roles for actions

2002-09-06 Thread Eddie Bush

Why would your login action have a role associated with it?!  ... isn't 
executing that action where you determine the role?  I ... think ... 
that might be your problem.  See - until a person is authenticated there 
is no prinicpal.  Until you have a principal, you don't have the 
associated role information loaded.  Until you have the associated roles 
loaded, you can't very well use it as criteria ...

Maybe I missed something in earlier banter on this topic.

Regards,

Eddie

Michael wrote:

You will most likely want to use a security-constraint and an
auth-method in your web.xml file if you want the container to
authenticate users automatically.  The roles attribute in
struts-config.xml lets you impose additional restrictions above and

beyond

whatever is set up in web.xml, but doesn't have any way to trigger
authentication in the first place.


I do in fact have this in my web.xml file.  In fact for the test1.jsp
it's working properly.  So after this I add the roles to the action
but the action gives me the error..

Web.xml

  security-constraint
web-resource-collection
  web-resource-nameTest 1/web-resource-name
  url-pattern/test1.jsp/url-pattern
  http-methodGET/http-method
  http-methodPOST/http-method
/web-resource-collection
auth-constraint
  role-nameidtect_readonly/role-name
/auth-constraint
  /security-constraint
  login-config
  auth-methodBASIC/auth-method
  realm-nameIdtect OEM Server/realm-name
  /login-config

  security-role
role-nameidtect_readonly/role-name
  /security-role

Struts_config.xml

!-- Process a user logon --
actionpath=/login
   type=com.idtect.oemserver.web.LoginAction
   name=loginForm
   scope=request
   input=/login.jsp
   roles=idtect_readonly

I get the following error:

HTTP Status 400 - User is not authorized to access action /login


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




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




[FRIDAY][HUMOR][OT][NOTSERIOUS][BEER] Proposal for new struts mailing list

2002-09-06 Thread wbchmura


BDY.RTF
Description: RTF file


Re: [REQUEST API UPDATE] RES: Datasource Retrieval in 1.1 (Help needed)

2002-09-06 Thread Craig Tataryn

Thanks!  Not sure why I didn't see that before!

Perhaps someone could update the API docs for findDataSource() so it directs 
the user to this function instead.

Thanks again!

Craig.

From: julio [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RES: Datasource Retrieval in 1.1 (Help needed)
Date: Fri, 6 Sep 2002 12:07:52 -0300

Hi Craig,

This question was already answered, look for the subject Connection
Pool Question(15/08/2002). Anyway, the code...


Then, in your action, you can access your datasource via:
execute(..)
{
DataSource ds = this.getDataSource(request);
}
...
...



Julio Cesar
Softsite Tecnologia Ltda
http://www.softsite.com.br
Fortaleza, CE, Brasil

-Mensagem original-
De: Craig Tataryn [mailto:[EMAIL PROTECTED]]
Enviada em: sexta-feira, 6 de setembro de 2002 11:47
Para: [EMAIL PROTECTED]
Assunto: Re: Datasource Retrieval in 1.1 (Help needed)

From ActionServlet.findDatasource() API docs:
Deprecated. Look up data sources directly in servlet context attributes

So I replaced my call to :
dataSource = getServlet().findDatasource(null);

with:
dataSource =
(DataSource)getServlet().getServletContext().getAttribute(this.DATA_SOUR
CE_KEY);

And my datasource is retuned as null.

Anyone know what's going on?

Craig.

 From: Craig Tataryn [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: Datasource Retrieval in 1.1
 Date: Thu, 05 Sep 2002 14:09:35 -0500
 
 Ok, read the DTD for struts-config.xml and figured out that I would use
the
 key attribute if I were to add another datasource.  I would still
like to
 know how to retrieve the datasource without using the deprecated
 findDatasource() method.
 
 Thanks,
 
 Craig.
 
 
 From: Craig Tataryn [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Datasource Retrieval in 1.1
 Date: Thu, 05 Sep 2002 11:30:39 -0500
 
 The documentation still lists the old way of how to retrieve a
datasource
 which has been setup in struts-config.xml using findDatasource();
 
 The API says to use datasource stored in attributes.  Can someone
give
 an example of how I might do this from within my execute method?  I
want
 to get rid of my deprecation warnings for findDatasource()
 
 As well, I believe you can have multiple datasources setup in
 struts-config.xml.  The default datasource being keyed by
 org.apache.struts.action.Action.DATA_SOURCE_KEY.  Could someone point
me
 to an example of multiple datasources and how to setup keys for each?
 
 Thanks,
 
 Craig.
 
 Craig W. Tataryn
 Programmer/Analyst
 Compuware
 
 _
 Join the world's largest e-mail service with MSN Hotmail.
 http://www.hotmail.com
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 Craig W. Tataryn
 Programmer/Analyst
 Compuware
 
 _
 MSN Photos is the easiest way to share and print your photos:
 http://photos.msn.com/support/worldwide.aspx
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


Craig W. Tataryn
Programmer/Analyst
Compuware

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




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


Craig W. Tataryn
Programmer/Analyst
Compuware

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




Re: [FRIDAY] SOMEONE SAVE OUR LIST!!!!

2002-09-06 Thread Dave Derry

Only in our
dreams..
..

- Original Message -
From: Sri Sankaran [EMAIL PROTECTED]


Humor in bodily functions (of dysfunctions) is so slapstick.  What are we
... teenagers?




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




how to return errors from Model component

2002-09-06 Thread Donald Ball

Hey guys, I have an MVC-type question. My View captures data from the user
and sends it to the Controller, which validates and massages it and uses it
to configure the Model and tell the Model to do something. Based on the
something, the Controller sends another View to the client. So far so good.

What happens when something, or rather, somethings go wrong when the Model
is doing its work? How should the Model communicate this to the Controller
in a way that doesn't violate the seperation of concerns? Currently, my
Model creates a struts ActionErrors object and puts the error messages into
it and returns it to the Controller. This strikes me as a bad design choice
because the Model object shouldn't have any notion of the environment in
which it lives. However, I'm unsure what the best practice is. Choices
include:

* Tossing an exception - but I would like to be able to send multiple
errors at the same time

* Return a List or array of String error messages - but then my messages
are hard-coded into the application, making i18n painful. I could make the
Strings returned be keys into the ApplicationResources properties file, but
then how do I attach parameters for messages that need them?

* Return, oh, a SortedMap of error messages, where the keys are the error
message keys, sorted in order of occurance, and the values are Lists of
parameters for the error messages - but this seems awfully convoluted.

Any suggestions?

- donald


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




[FRIDAY] Re: Proposal for struts-humor

2002-09-06 Thread Ted Husted

Just to be clear, the Apache projects, and the lists, are run as 
meritocracies: Them that does the work make the decisions.

It's been my observation that the individuals posting to the [FRIDAY] 
threads are mainly the same people who help out with the work of the 
list the rest of the week. This being true, we don't have a problem with 
cutting everyone some slack on this issue.

Of course, if the humorists were not also contributors, it would be a 
different matter.

-Ted.

Galbreath, Mark wrote:

 Why don't you guys create a new list called struts-putz?  If you do not
 feel like you belong to the community (and that is what this is - it's not
 just a list), leave.  Otherwise, b*tch (st00pid email anti-1st Amendment
 filters) and whine all you want!
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 06, 2002 10:58 AM
 
 
 I completely agree with Michael...
 
 
 Naveen Dhotre,
 Consultant
 Uovo Fi SYSTEM
 
 Main: +44 (0) 1 494 685 700, Fax: +44 (0) 1494 685 707
 Email: [EMAIL PROTECTED],  Web:  http://www.uovo.com
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 


-- 
Ted Husted, Husted dot Com, Fairport NY US
co-author, Java Web Development with Struts
Order it today:
http://husted.com/struts/book.html


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




RE: how to return errors from Model component

2002-09-06 Thread wbchmura


BDY.RTF
Description: RTF file


Re: how to return errors from Model component

2002-09-06 Thread Tim T. Young


I would agree that your model should not be manipulating ActionError(s).
If your requirement is that you MUST send multiple errors back from the
model then perhaps a custom exception (with a list of other exception,
errors string, or keys to i18n, internal to it), that you can pick apart in
the Action:perform( ... catch (...)).If you think that multiple model
errors is a down-the-road thing, take the XP route and implement a solution
for single errors, then when the feature becomes required you can use your
knowledge gained from the first pass to implement the multiple way.

Tim



   
   
Donald Ball  
   
dball@rhowor  
   
ld.com
   
   
   
09/06/2002 
   
10:11 AM  To: [EMAIL PROTECTED]   
   
Pleasecc:  
   
respond to 
   
Struts Users  
   
Mailing List  
   
 Subject: how to return errors from Model 
component   
   
   



Caterpillar: Confidential Green  Retain Until: 10/06/2002
 Retention Category:  G90 -
 Information and Reports




Hey guys, I have an MVC-type question. My View captures data from the user
and sends it to the Controller, which validates and massages it and uses it
to configure the Model and tell the Model to do something. Based on the
something, the Controller sends another View to the client. So far so good.

What happens when something, or rather, somethings go wrong when the Model
is doing its work? How should the Model communicate this to the Controller
in a way that doesn't violate the seperation of concerns? Currently, my
Model creates a struts ActionErrors object and puts the error messages into
it and returns it to the Controller. This strikes me as a bad design choice
because the Model object shouldn't have any notion of the environment in
which it lives. However, I'm unsure what the best practice is. Choices
include:

* Tossing an exception - but I would like to be able to send multiple
errors at the same time

* Return a List or array of String error messages - but then my messages
are hard-coded into the application, making i18n painful. I could make the
Strings returned be keys into the ApplicationResources properties file, but
then how do I attach parameters for messages that need them?

* Return, oh, a SortedMap of error messages, where the keys are the error
message keys, sorted in order of occurance, and the values are Lists of
parameters for the error messages - but this seems awfully convoluted.

Any suggestions?

- donald


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






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




Re: how to return errors from Model component

2002-09-06 Thread Ted Husted

I generally use the second approach. The whole ResourceBundle concept is 
part of the  Java platform and not Struts specific. So I have I my 
business classes return message tokens and any pertinent replacement 
parameters. The parameters do not usually need to be translated so this 
is usually not an issue.

Actually, I have the business classes return a transfer object that 
wraps the messages and other detail up into a tidy bundle. For example, 
it can also provide a dispatch property (ActionForward name). So if 
the messages are confirmations, it passes through to success. But if the 
messages are errors, the dispatch can return failure instead. The 
Struts Action then looks up its failure forward.

My thinking is that the ActionForward *object* belongs to the web tier, 
but the tokens, like success and failure, are a protocol that 
belongs to the application. Ditto for the tokens in the message resources.

http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/scaffold/src/java/org/apache/commons/scaffold/util/

look for ProcessResult.

This is then used on the Struts side by the ProcessAction or the 
ProcessDispatchAction.

http://cvs.apache.org/viewcvs.cgi/jakarta-struts/contrib/scaffold/src/java/org/apache/struts/scaffold/

-Ted.



Donald Ball wrote:

 Hey guys, I have an MVC-type question. My View captures data from the user
 and sends it to the Controller, which validates and massages it and uses it
 to configure the Model and tell the Model to do something. Based on the
 something, the Controller sends another View to the client. So far so good.
 
 What happens when something, or rather, somethings go wrong when the Model
 is doing its work? How should the Model communicate this to the Controller
 in a way that doesn't violate the seperation of concerns? Currently, my
 Model creates a struts ActionErrors object and puts the error messages into
 it and returns it to the Controller. This strikes me as a bad design choice
 because the Model object shouldn't have any notion of the environment in
 which it lives. However, I'm unsure what the best practice is. Choices
 include:
 
 * Tossing an exception - but I would like to be able to send multiple
 errors at the same time
 
 * Return a List or array of String error messages - but then my messages
 are hard-coded into the application, making i18n painful. I could make the
 Strings returned be keys into the ApplicationResources properties file, but
 then how do I attach parameters for messages that need them?
 
 * Return, oh, a SortedMap of error messages, where the keys are the error
 message keys, sorted in order of occurance, and the values are Lists of
 parameters for the error messages - but this seems awfully convoluted.
 
 Any suggestions?
 
 - donald
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 


-- 
Ted Husted, Husted dot Com, Fairport NY US
co-author, Java Web Development with Struts
Order it today:
http://husted.com/struts/book.html


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




Re: How to set locale using j_security_check

2002-09-06 Thread Michael Lee

Thanks but it still seems open.. We do give the user the ability to choose
language.

 If you really wanted to do this the easiest way would be to forward to an
 Action in your secured area (to initiate FORM based auth), say
 domain.com/secure/main.do and have the action get their locale from
 persistent store and set it before forwarding onto the
 domain.com/secure/main.jsp.

This is kind of what I was asking...
This can't be uncommon for struts users (as most are probably working in a
J2EE environment and using container managed security 'j_security_check').
I want to store the user object in the session. Included in that object is
the locale.
Problem is, using container managed security it will forward to the page
they requested and it will not have the locale set by the user on last log
in.
Help!
Mike

- Original Message -
From: Jon.Ridgway [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, September 06, 2002 11:06 AM
Subject: RE: How to set locale using j_security_check


 Hi Mike,

 By default the user's locale will be set to that specified by their
browser.
 If you want to give users the option of changing their locale you would
have
 to display supported locales on a form (drop down, graphics etc) let the
 user pick a locale and post to an action then as you have already spotted
 use the setLocale method on the Action class to set the users locale to
that
 specified.

 There may be a way - using LDAP and/or RDBMS and/or custom realms in WLS
to
 set the locale to a value specified in the realm for the user; not sure
off
 the top of my head - never seen one - but I'll have a look into it for
 you...

 If you really wanted to do this the easiest way would be to forward to an
 Action in your secured area (to initiate FORM based auth), say
 domain.com/secure/main.do and have the action get their locale from
 persistent store and set it before forwarding onto the
 domain.com/secure/main.jsp.

 Jon Ridgway


 -Original Message-
 From: Michael Lee [mailto:[EMAIL PROTECTED]]
 Sent: 06 September 2002 14:56
 To: Struts Users Mailing List
 Subject: How to set locale using j_security_check

 I use container managed security in WLS using j_security_check. I have
 multiple languages. I want to load a user object with a locale and set it
 for that user as long as he is logged in (Action.setLocale(request,
 locale)??).
 How would I do this if the container is handling log in for me? For
example
 lets say I want to go to
 domain.com/main.jsp but first it sends me to domain.com/login.html. The
 container would then authenticate and send me to main.jsp. I want to
 intercept this return and log in the user and set the local so he can see
 his language ApplicationResources.properties.
 Any hints? (I know this group has em! This is the best damn email group in
 the world, I swear)
 thanks,
 Mike


 The contents of this email are intended only for the named addressees and
 may contain confidential and/or privileged material. If received in error
 please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
 e-mail from your system. Unauthorised review, distribution, disclosure or
 other use of this information could constitute a breach of confidence.
Your
 co-operation in this matter is greatly appreciated.

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


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




[FRIDAY] Out of control ... again

2002-09-06 Thread Eddie Bush

Guys,

I enjoy (part of) your postings just as much as you intended them to be 
enjoyed.  However, it seems we're headed down that dark, lonely 
alley-way again.  Ok, ok ... I chipped in on the crap myself, so I guess 
I don't have full right to say anything.  However, if you value the list 
and wish to see us being able to continue with our relaxed friday 
attitude, I strongly urge you to cut out the entirely inappropriate crap 
that has started to be slung around today.

You all know I'm not for cutting out all the [OT] and [FRIDAY] stuff, 
but I have to agree with folks that say part of what has been posted 
today is uncalled for and entirely inappropriate for public consumption.

Bear in mind what we learned from the recent poll:
*  Most folks enjoy the [OT] stuff
*  Many folks would prefer any [OT] stuff be more closely confined 
to technically-oriented topics
*  Several would like to make note that beer is not a worthy topic 
for discussion

I think if we keep those points in mind, all of us will be able to get 
along just fine.  If we find ourselves driven to think outside the box 
(wrt these points), I think we'll find that the minority numbers we saw 
dislikeing the [OT] posts will quickly become a majority.  Thereafter, 
the list will (out of necessity) become much more rigid.  I don't think 
any of us want this.  Can we *please* act like adults?

Personally, I enjoyed (a few of) the posts this morning.  However, 
posting sites with sexually-explicit material - that comes with pop-up 
pages of all sorts of things! - and trying to belittle people doesn't 
seem appropriate for this list IMNSHO.  Many of us are in public areas 
where things like the first could get us into serious trouble.  The 
second is just ... wrong.

Regards,

Eddie



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




RE: how to return errors from Model component

2002-09-06 Thread Jon.Ridgway

Hi Donald,

The approach I have used is to define a base exception that contains a map
of error messages. Have your business exceptions extend this. In the struts
action class catch the exception and morph them into ActionErrors, ie

ActionErrors errors = new ActionErrors ();

while (exception.hasNext ())
{
key = exception.next();
msg = exception.get(key)

errors.add (key, new ActionError (key, msg));
}

saveErrors (errors);

You could add this logic into a utility singleton and away you go...


Jon Ridgway


-Original Message-
From: Donald Ball [mailto:[EMAIL PROTECTED]] 
Sent: 06 September 2002 16:11
To: [EMAIL PROTECTED]
Subject: how to return errors from Model component

Hey guys, I have an MVC-type question. My View captures data from the user
and sends it to the Controller, which validates and massages it and uses it
to configure the Model and tell the Model to do something. Based on the
something, the Controller sends another View to the client. So far so good.

What happens when something, or rather, somethings go wrong when the Model
is doing its work? How should the Model communicate this to the Controller
in a way that doesn't violate the seperation of concerns? Currently, my
Model creates a struts ActionErrors object and puts the error messages into
it and returns it to the Controller. This strikes me as a bad design choice
because the Model object shouldn't have any notion of the environment in
which it lives. However, I'm unsure what the best practice is. Choices
include:

* Tossing an exception - but I would like to be able to send multiple
errors at the same time

* Return a List or array of String error messages - but then my messages
are hard-coded into the application, making i18n painful. I could make the
Strings returned be keys into the ApplicationResources properties file, but
then how do I attach parameters for messages that need them?

* Return, oh, a SortedMap of error messages, where the keys are the error
message keys, sorted in order of occurance, and the values are Lists of
parameters for the error messages - but this seems awfully convoluted.

Any suggestions?

- donald


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


The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

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




RE: [FRIDAY] Out of control ... again

2002-09-06 Thread Chappell, Simon P

Well said Sheriff Eddie!

I hereby promise [hand placed upon a stack of printed Struts articles] to be a good 
Struts mailing list user and to use my power for good and not evil. So help me Craig! 
:-)

Simon

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


-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 10:36 AM
To: Struts Users List
Subject: [FRIDAY] Out of control ... again


Guys,

I enjoy (part of) your postings just as much as you intended 
them to be 
enjoyed.  However, it seems we're headed down that dark, lonely 
alley-way again.  Ok, ok ... I chipped in on the crap myself, 
so I guess 
I don't have full right to say anything.  However, if you 
value the list 
and wish to see us being able to continue with our relaxed friday 
attitude, I strongly urge you to cut out the entirely 
inappropriate crap 
that has started to be slung around today.

You all know I'm not for cutting out all the [OT] and [FRIDAY] stuff, 
but I have to agree with folks that say part of what has been posted 
today is uncalled for and entirely inappropriate for public 
consumption.

Bear in mind what we learned from the recent poll:
*  Most folks enjoy the [OT] stuff
*  Many folks would prefer any [OT] stuff be more closely confined 
to technically-oriented topics
*  Several would like to make note that beer is not a worthy topic 
for discussion

I think if we keep those points in mind, all of us will be able to get 
along just fine.  If we find ourselves driven to think 
outside the box 
(wrt these points), I think we'll find that the minority 
numbers we saw 
dislikeing the [OT] posts will quickly become a majority.  Thereafter, 
the list will (out of necessity) become much more rigid.  I 
don't think 
any of us want this.  Can we *please* act like adults?

Personally, I enjoyed (a few of) the posts this morning.  However, 
posting sites with sexually-explicit material - that comes with pop-up 
pages of all sorts of things! - and trying to belittle people doesn't 
seem appropriate for this list IMNSHO.  Many of us are in public areas 
where things like the first could get us into serious trouble.  The 
second is just ... wrong.

Regards,

Eddie



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


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




RE: how to return errors from Model component

2002-09-06 Thread wbchmura


BDY.RTF
Description: RTF file


RE: how to return errors from Model component

2002-09-06 Thread Jon.Ridgway

Hi All,

As Ted has pointed out you might also want to get your messages from the
resource bundle, in which case you would just use the key to key into the
bundle (I have had a number of clients recently however that wanted to use
LDAP/RDBMS as a central store for localized error messages - are there any
plans to extend Struts to support the storing of resources in a LDAP/RDBMS
store?)


Jon Ridgway


-Original Message-
From: Jon.Ridgway [mailto:[EMAIL PROTECTED]] 
Sent: 06 September 2002 16:41
To: 'Struts Users Mailing List'
Subject: RE: how to return errors from Model component

Hi Donald,

The approach I have used is to define a base exception that contains a map
of error messages. Have your business exceptions extend this. In the struts
action class catch the exception and morph them into ActionErrors, ie

ActionErrors errors = new ActionErrors ();

while (exception.hasNext ())
{
key = exception.next();
msg = exception.get(key)

errors.add (key, new ActionError (key, msg));
}

saveErrors (errors);

You could add this logic into a utility singleton and away you go...


Jon Ridgway


-Original Message-
From: Donald Ball [mailto:[EMAIL PROTECTED]] 
Sent: 06 September 2002 16:11
To: [EMAIL PROTECTED]
Subject: how to return errors from Model component

Hey guys, I have an MVC-type question. My View captures data from the user
and sends it to the Controller, which validates and massages it and uses it
to configure the Model and tell the Model to do something. Based on the
something, the Controller sends another View to the client. So far so good.

What happens when something, or rather, somethings go wrong when the Model
is doing its work? How should the Model communicate this to the Controller
in a way that doesn't violate the seperation of concerns? Currently, my
Model creates a struts ActionErrors object and puts the error messages into
it and returns it to the Controller. This strikes me as a bad design choice
because the Model object shouldn't have any notion of the environment in
which it lives. However, I'm unsure what the best practice is. Choices
include:

* Tossing an exception - but I would like to be able to send multiple
errors at the same time

* Return a List or array of String error messages - but then my messages
are hard-coded into the application, making i18n painful. I could make the
Strings returned be keys into the ApplicationResources properties file, but
then how do I attach parameters for messages that need them?

* Return, oh, a SortedMap of error messages, where the keys are the error
message keys, sorted in order of occurance, and the values are Lists of
parameters for the error messages - but this seems awfully convoluted.

Any suggestions?

- donald


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


The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

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


The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

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




Re: [FRIDAY] Out of control ... again

2002-09-06 Thread Eddie Bush

I wish I could help you :-(  I think it's fantastic that you've 
progressed as far as you have.  Kudos to you for being able to make time!

Regards,

Eddie

James Mitchell wrote:

You know, Craig blasted me when I gave Micael-Oge-Mac-Something (whatever
his name is) the virtual finger.

Not sure if were aware, but there is a porn advertisement popup as Eddie
mentioned.  (I hope the network folks here don't notice it)
I can only imagine what Craig will say if he clicks that link you sent Mark.
(ducking for cover)

Anyway, please be sure to read the other thread about DBMessageResources and
give me some advice if you've hit a similar issue.


James There's nothing tastier than a Sasquatch Steak and Mushrooms
Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://www.open-tools.org/struts-atlanta




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




RE: DBMessageResources status and questions

2002-09-06 Thread Jason Rosen

James,
I was just taking a look at ActionServlet.initApplicationMessageResources()
and noticed that the ActionServlet takes care of instantiating each
MessageResources implementation for each subapp.  I don't think the
MessageResource or MessageResourceFactory implementations need to worry
about subapps.  The ActionServlet sets the appropriate ServletContext
attribute:
   getServletContext().setAttribute
(mrcs[i].getKey() + config.getPrefix(), resources);

and the Action.getResources(javax.servlet.http.HttpServletRequest request)
method ensures retrieval of the message from the proper MessageResources
implementation (as specified in the module's message-resources/ tag:
   return ((MessageResources) context.getAttribute
(key + appConfig.getPrefix()));

So all your DBMessageResources should ever need to retrieve a message is
locale and key 
[getMessage(java.util.Locale locale, java.lang.String key)] - which
MessageResources instance to query is determined by the Action.getResources.

This also may mean that if 2 subapps need the same DB table/view for
messages, then each will need to configure a DBMessageResources and
(possibly, based on your implementation of DBMessageResources) have 2 memory
caches for the same data because it is being accessed by 2 instances of the
DBMessageResources from 2 different subapp configs.  So I guess, keep in
mind that there may be multiple instances of DBMessageResources to
accomodate each subapp or build in some functionality to keep track of which
instances exist and try to pool them (if they are configured to use the same
datasources).

Jason



-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 8:25 AM
To: Struts Users Mailing List
Subject: DBMessageResources status and questions


I apologize ahead of time for my confusion/misunderstanding/stupidity ;)

As you may have read recently, I am attempting to tackle a
DBMessageResources implementation, but I am bumping into a couple of issues
related to struts design.

Status:
--
My first DBMessageResources is working fine now.  I have created the sql
scripts and code necessary to run the struts-example using a database
instead of a properties file.  The only changes were to add the class files
and change one line in the struts-config.xml.  It works fine.

Assumption:
--
From what I can tell, struts assumes that all MessageResources are cached in
memory.  If this were not true then there would be some way for my code to
tell what sub-app was picked.

So, if my code were to try and get data based on 1)key, 2)locale, and
3)module, there is no way for me to know #3.  This means that my
implementation must retrieve and store the data (HashMap) based on #1 and #2
which eliminates using it in any app other than the default (unless I hard
code it as part of 'parameter' in the struts-config-subapp.xml).

The dtd allows me to specify:

 message-resources className=some.subclass.of.MessageResourcesConfig ...
set-property property=subapp value=something/

However, MessageResourcesConfig is neither passed on the constructor or
available through some other means, so I would have to do this...

  message-resources
factory=org.apache.struts.util.DBMessageResourcesFactory
  parameter=something.DBMessageResources/
 ^

and worry about parsing it out later (ick, I hate this).


Questions:
-
-Am I missing something here?  Is there some way to get at servletContext,
 ApplicationConfig, or even MessageResourcesConfig


Future:
--
I've also got plans for XMLMessageResources, but I think that I will have
the same issues with it as well.


Sorry for the long post.
I would appreciate any enlightening you can give.


James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://www.open-tools.org/struts-atlanta




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



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

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




Re: [FRIDAY] Out of control ... again [OT] [HELP] [LOTS OF POSTINGS LITTLE HELP]

2002-09-06 Thread Bryan Hilterbrand

There are many potential solutions to this, but one is to figure out what
the end result of iterating through your result set is, then create a stored
procedure to do the same thing.

Bryan

- Original Message -
From: Michael Lee [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, September 06, 2002 9:42 AM
Subject: Re: [FRIDAY] Out of control ... again [OT] [HELP] [LOTS OF POSTINGS
LITTLE HELP]


Hey, do any of you [FRIDAY] guys know how to handle iterating through
enourmously large result sets without storing the ResultSet object in
memory? I use JDBC cursors now but have to do the query upon each 'next' or
'previous'.

I always ask the tough questions that get few responses!
:)
Mike Lee


- Original Message -
From: James Mitchell [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, September 06, 2002 11:45 AM
Subject: RE: [FRIDAY] Out of control ... again


 LMAO

 James Mitchell
 Software Engineer\Struts Evangelist
 Struts-Atlanta, the Open Minded Developer Network
 http://www.open-tools.org/struts-atlanta




  -Original Message-
  From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
  Sent: Friday, September 06, 2002 11:41 AM
  To: Struts Users Mailing List
  Subject: RE: [FRIDAY] Out of control ... again
 
 
  Well said Sheriff Eddie!
 
  I hereby promise [hand placed upon a stack of printed Struts
  articles] to be a good Struts mailing list user and to use my
  power for good and not evil. So help me Craig! :-)
 
  Simon
 
  -
  Simon P. Chappell [EMAIL PROTECTED]
  Java Programming Specialist  www.landsend.com
  Lands' End, Inc.   (608) 935-4526
 
 
  -Original Message-
  From: Eddie Bush [mailto:[EMAIL PROTECTED]]
  Sent: Friday, September 06, 2002 10:36 AM
  To: Struts Users List
  Subject: [FRIDAY] Out of control ... again
  
  
  Guys,
  
  I enjoy (part of) your postings just as much as you intended
  them to be
  enjoyed.  However, it seems we're headed down that dark, lonely
  alley-way again.  Ok, ok ... I chipped in on the crap myself,
  so I guess
  I don't have full right to say anything.  However, if you
  value the list
  and wish to see us being able to continue with our relaxed friday
  attitude, I strongly urge you to cut out the entirely
  inappropriate crap
  that has started to be slung around today.
  
  You all know I'm not for cutting out all the [OT] and [FRIDAY] stuff,
  but I have to agree with folks that say part of what has been posted
  today is uncalled for and entirely inappropriate for public
  consumption.
  
  Bear in mind what we learned from the recent poll:
  *  Most folks enjoy the [OT] stuff
  *  Many folks would prefer any [OT] stuff be more closely confined
  to technically-oriented topics
  *  Several would like to make note that beer is not a worthy topic
  for discussion
  
  I think if we keep those points in mind, all of us will be able to get
  along just fine.  If we find ourselves driven to think
  outside the box
  (wrt these points), I think we'll find that the minority
  numbers we saw
  dislikeing the [OT] posts will quickly become a majority.  Thereafter,
  the list will (out of necessity) become much more rigid.  I
  don't think
  any of us want this.  Can we *please* act like adults?
  
  Personally, I enjoyed (a few of) the posts this morning.  However,
  posting sites with sexually-explicit material - that comes with pop-up
  pages of all sorts of things! - and trying to belittle people doesn't
  seem appropriate for this list IMNSHO.  Many of us are in public areas
  where things like the first could get us into serious trouble.  The
  second is just ... wrong.
  
  Regards,
  
  Eddie
  
  
  
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 

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


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




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




Re: ActionForward and Modal Dialgs

2002-09-06 Thread slickdev

Thanks for your reply.  I agree with you, but was curious whether anyone has
seen the behavior, and what the workaround might be.
R/
JS
- Original Message -
From: Ted Husted [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, September 05, 2002 8:29 PM
Subject: Re: ActionForward and Modal Dialgs


 Try the same thing using plain HTML files. It's likely to be a
 JavaScript thing. The client is responsible for opening the windows. It
 doesn't know anything about JSPs or ActionForwards and shouldn't act any
 differently when they are used.

 -Ted.

 slickdev wrote:

  This is a question about ActionForward and JavaScript.
 
  OVERVIEW
 From a jsp, I create a modal dialog:
var x = window.showModalDialog( 'opsig.jsp', '  ',
'dialogHeight:220px; dialogWidth:800px; help:0; center:1; scroll:1;
status:0' )
 
  The modal dialog is itself a jsp, with a form which maps to an Action
class:
 
  html:form action=/opsig
!-- stuff here --
  /html:form
 
  The perform( ) method forwards to another page.
  ==
 
  QUESTION: why does the dialog jsp create two different results?
 
  1.  When the dialog jsp is hosted in the modal window described above,
the resulting forward logic creates the forward page in a new browser
window.
 
  2.  When the dialog jsp is hosted in a standard IE 5.5 browser window,
the resulting forward logic creates the forward page in the same browser
window.
 
 
 
 


 --
 Ted Husted, Husted dot Com, Fairport NY US
 co-author, Java Web Development with Struts
 Order it today:
 http://husted.com/struts/book.html


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



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




Re: [FRIDAY] Out of control ... again [OT] [HELP] [LOTS OF POSTINGSLITTLE HELP]

2002-09-06 Thread Eddie Bush

PostgreSQL has a nifty bit of functionality for bringing back just 
pieces of a result set.  You could build something around this 
functionality.

I think the pieces of the SELECT you want are:

LIMIT
START
COUNT

Check out their web site.

Regards,

Eddie

(There are other DBMSs that provide this functionality too.  Of course, 
using something like Jakarta OJB, you could use proxy objects which 
would only contain keys and materialize the full objects as you need 
them.  For a very large result set, however, it may be wiser to go 
database-dependant.  Testing both approaches in your application would 
be the only way I'm aware of to determine which suits your needs the best)

Bryan Hilterbrand wrote:

There are many potential solutions to this, but one is to figure out what
the end result of iterating through your result set is, then create a stored
procedure to do the same thing.

Bryan

- Original Message -
From: Michael Lee [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, September 06, 2002 9:42 AM
Subject: Re: [FRIDAY] Out of control ... again [OT] [HELP] [LOTS OF POSTINGS
LITTLE HELP]


Hey, do any of you [FRIDAY] guys know how to handle iterating through
enourmously large result sets without storing the ResultSet object in
memory? I use JDBC cursors now but have to do the query upon each 'next' or
'previous'.

I always ask the tough questions that get few responses!
:)
Mike Lee




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




RE: Proposal for struts-humor

2002-09-06 Thread Galbreath, Mark

My message was lost in the translation.  What I was trying to say is that
this is a list of toleration and people are permitted to state just about
anything they want that does not cross the bounds of decency.  So if people
wish to complain about a particular thread, complain away!  On the other
hand, yes, the OT msgs got out of hand on Tuesday but stopped as soon as
Craig slammed on the brakes.  This tradition of laid-back Friday humor was
actually started by me back in April.  As the foremost proponent of
toleration, I would not want anyone to get the idea that I would ask anybody
to leave - though people are free to come and go as they like.  I do agree
that we should not abuse the latitude the list owners have given us and
restrict the funny business to Fridays.

And Ted is correct - the jokesters on struts-user are, for the most part,
the people who respond to the vast majority of requests for assistance.

It is a rare beautiful day on the Chesapeake today...think I'll get out of
here early and hit an outdoor pub for a Guinness or threeGotta get up
early and read James' book tomorrow

Cheers!
Mark

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 11:22 AM
To: Struts Users Mailing List
Subject: Re: Proposal for struts-humor


Mark,

You're a good guy, and I understand where you're coming from, but 
lashing out at someone like that is uncalled for.  This place is 
starting to look like some EFNet IRC channel ...

Can we please cut the crap and (as Craig asked) go back to struts now?

Regards,

Eddie

Galbreath, Mark wrote:

Why don't you guys create a new list called struts-putz?  If you do not
feel like you belong to the community (and that is what this is - it's not
just a list), leave.  Otherwise, b*tch (st00pid email anti-1st Amendment
filters) and whine all you want!




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

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




Need Help in struts desing issue

2002-09-06 Thread Ashish Kulkarni

Hi,
I m developing web site in struts, and need some help
in desing issue,
I have a jsp where in I display table of records for
name, last name, phone , each row has a check box, and
there is a button called details, 
so if the user selects one check box and clicks
details, i have to show a detail.jsp with all the
details of that person, like his address etc.
This check box value will be unique key, so i will
pass this unique key to detail.jsp
I have a bean which can get the details when i provide
the unique key,
so how can i go about it, like define this bean in the
detail.jsp and while i am loading the page call a
method on this bean which will set the parameters . or
in my Action class for the previous page have some
logic.
can anyone provide with some code , struts-config file
about doing it in a nice way in struts,



=
A$HI$H

__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

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




RE: Actions and Parameters

2002-09-06 Thread John Yu


Yup. It depends on what visibility (i.e. scope) you want.


At 11:38 pm 06-09-2002, you wrote:
I got it working but putting it into the strut-config.xml for the mapping

-Original Message-
From: John Yu [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 10:44 AM
To: Struts Users Mailing List
Subject: Re: Actions and Parameters

Struts doesn't prescribe a special way of doing it. Meaning that you
achieve it the good old way: put the configuration as a init-param of the
Struts' ActionServlet and access it via
Action.getServlet().getServletContext().getInitParameter(paramName).


At 07:15 pm 06-09-2002, you wrote:
 Please keep in mind that I am new to struts and I have a project that I
have
 to get done and a fast rate.  I would like to know where should I setup a
 parameter/string that I need to use in every action. In my old MVC world I
 would make a initparameter on my control (servlet) and the control would
 pass the string to each model.  How do I do it in struts?
 
 
 
 Johnathan Mark Smith
 Divisional Assistant Vice President
 Information Systems Division

-- 
John Yu   Scioworks Technologies
e: [EMAIL PROTECTED] w: +(65) 873 5989
w: http://www.scioworks.com   m: +(65) 9782 9610

Scioworks Camino - Don't develop Struts Apps without it!
Copyright (c) 2002 John Yu/Scioworks Technologies. All rights reserved.


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




Java Script help with client side validation

2002-09-06 Thread Struts Rodolphe


Does anyone know who to write or have  a java script that does the following:

- Loop through the A FORM which contains an array lists of B FORM

- For each field in B FORM, validates the input for required, integer, ...etc.

I am newbie to java scripts, and the existing java scripts in validator-resources 
cannot be applied to the case where we have a form that contains an array of another 
form which has all fields required to be validated.

Thanks,

 



-
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes


Re: how to return errors from Model component

2002-09-06 Thread Eddie Bush

Jon.Ridgway wrote:

Hi All,

As Ted has pointed out you might also want to get your messages from the
resource bundle, in which case you would just use the key to key into the
bundle (I have had a number of clients recently however that wanted to use
LDAP/RDBMS as a central store for localized error messages - are there any
plans to extend Struts to support the storing of resources in a LDAP/RDBMS
store?)

James Mitchell is working on a DBMessageResources for Struts.  He's had 
some good progress (from what I understand), but has hit a wall for the 
time being.  It is in the works though.

Regards,

Eddie


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




  1   2   >