RE: How can I implement session time out control in struts

2002-09-18 Thread wbchmura


I am not sure about some of this, but one problem is going to be 
actually notifying the user.  

Basically I think that unless the user actually is using the pages 
during the last five minutes - how are they going to be notified?  That 
and you can't reload the page?  Frames maybe?  One frame on the screen, 
another that refreshes every minute or something.

Applet maybe?



-Original Message-
From: mkhan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 10:05 AM
To: struts-user
Subject: How can I implement session time out control in struts


Our application requires to notify 5 mins before the session time out 
and
give an option to client to increase their session time out for another
increment of 30 mins without reloading their page ...Any suggestions?
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: How can I implement session time out control in struts

2002-09-18 Thread wbchmura


Can you do some sort of javascript timer that starts on every page load? 
 Does a pop up window after 30 minutes?



-Original Message-
From: h.miller [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 10:40 AM
To: struts-user
Subject: RE: How can I implement session time out control in struts


Is not the fact that you pop up the page enough to re-start the timeout
clock?

Perhaps the OK button, should point to a do-nothing struts action and 
the
cancel button should just be a JavaScript close, that will not restart 
the
clock.

Bit of experimentation to get it right!

-Original Message-
From: Khan, Manuchehar A (ACF) [mailto:[EMAIL PROTECTED]]
Sent: 18 September 2002 15:28
To: 'Struts Users Mailing List'
Subject: RE: How can I implement session time out control in struts


I will try to explain again.
Application session time out is 40 mins. Every page we load on client 
has to
notify client after 30 mins that session will time out in 10 mins...This 
can
be achieved easily by starting a timer at client browser and pop up once
timer ran out of time. Now user will be given choice to increase their
session time without reloading thier page. This can be achieved by 
popping
up another window asking to click ok if they want to increase their 
session
time. On clicking ok the browser will send request to server and will 
close
itself. 
My q is what do we need to do on server to increase the session time to
another 30 mins ? 

-Original Message-
From: Jan Fetyko [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 9:17 AM
To: Struts Users Mailing List
Subject: Re: How can I implement session time out control in struts


Another possible question is : What about multiple windows open within 
the same session ?
This kind of functionality is calling for Java applets. I guess. :(



Khan, Manuchehar A (ACF) wrote:

I saw bank of america site. They start timer once the page is loaded 
and
before session timeout they notify user of extending the time by 
popping up
a small browser window...When the user click ok or close window it is 
tied
up to form that sends command to server to increase the session 
time...but
how do we do that on server side to increase session time?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 10:11 AM
To: [EMAIL PROTECTED]
Subject: RE: How can I implement session time out control in struts



I am not sure about some of this, but one problem is going to be 
actually notifying the user.  

Basically I think that unless the user actually is using the pages 
during the last five minutes - how are they going to be notified?  That 

and you can't reload the page?  Frames maybe?  One frame on the screen, 

another that refreshes every minute or something.

Applet maybe?



-Original Message-
From: mkhan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 10:05 AM
To: struts-user
Subject: How can I implement session time out control in struts


Our application requires to notify 5 mins before the session time out 
and
give an option to client to increase their session time out for another
increment of 30 mins without reloading their page ...Any suggestions?
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]

--
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: How do I set the default selection when I'm using html:options?

2002-09-18 Thread wbchmura


You can add in an html:option tag above the html:options tag that 
will be the default.



-Original Message-
From: mleejr [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 11:21 AM
To: struts-user
Subject: How do I set the default selection when I'm using html:options?


 1) How do I set a default value in an html:select on an options list? I
need the default state to be the one loaded from the struts form.
It doesn't like this.

html:select property=state size=1 value=%= state in ActionForm 
%
   html:options name=allUnitedStates labelName=allUnitedStates/
 /html:select

thanks everyone,
Mike


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




RE: How do I set the default selection when I'm using html:options?

2002-09-18 Thread wbchmura


So...

Is that a problem?  I almost think that with something like states you 
would want it to appear as the default and then also in the normal order 
of states...   



-Original Message-
From: mleejr [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 12:56 PM
To: struts-user
Subject: Re: How do I set the default selection when I'm using
html:options?


Tried it.
Problem with that is you now get 2 options that are the same.
ie:
GA
AK
AL

GA

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 18, 2002 11:28 AM
Subject: RE: How do I set the default selection when I'm using 
html:options?



 You can add in an html:option tag above the html:options tag that
 will be the default.



 -Original Message-
 From: mleejr [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 18, 2002 11:21 AM
 To: struts-user
 Subject: How do I set the default selection when I'm using 
html:options?


  1) How do I set a default value in an html:select on an options list? 
I
 need the default state to be the one loaded from the struts form.
 It doesn't like this.

 html:select property=state size=1 value=%= state in ActionForm
 %
html:options name=allUnitedStates labelName=allUnitedStates/
  /html:select

 thanks everyone,
 Mike


 --
 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: Sub Apps

2002-09-17 Thread wbchmura


Well that saved me some research in the future...

Thanks much!
(its made it into my Struts-Saved folder - congrats)

-Original Message-
From: ekbush [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 12:34 AM
To: struts-user
Subject: Re: Sub Apps


On a very high-level, yes :-)

Back in the old days (Struts 1.0), you used to have one application. 
 You configured the action servlet in web.xml, and told it where to find 

your one (and only) struts-config.xml file.  This one file was where all 

of your application config was kept.  Unfortunately, there was 
contention when multiple people needed to update the configuration file.

... along comes 1.1 (beta)

Now, you can have as many configuration files as you have modules.  Each 

module will (presumably) be handled by one team, so contention is less. 
 Each module can be independently developed - caring nothing about the 
others, unless it has to.  This is better for multi-developer settings. 
 To ease the transition, there is always one module -- the default 
module.  That module lives (speaking in URI-terms) at 
http://mydomain.dom/appContext/.  All other modules live at 
http://mydomain.dom/appContext/module/.

By default, all paths are treated as relative to the module context. 
 Since this happens to be the same as the applciation context for the 
default application, struts 1.0 applications should be able to easily 
migrate to 1.1.  You could then convert over to the new modules strategy 

one piece at a time.

That a birds-eye view of sub-applications.  Is that what you wanted? 
 Need more details?  Oh, what the heck - here:

It's really quite easy to implement.  You just ... well, in your 
web.xml, you do something like this:

!-- Default Sub-Application Config --
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/conf/struts-default.xml/param-value
/init-param
!-- ModuleA Sub-Application Config --
init-param
  param-nameconfig/modulea/param-name
  param-value/WEB-INF/conf/struts-moduleb.xml/param-value
/init-param
!-- ModuleB Sub-Application Config --
init-param
  param-nameconfig/moduleb/param-name
  param-value/WEB-INF/conf/struts-moduleb.xml/param-value
/init-param

Each file is a struts-config file.  What you're actually doing when you 
specify the config elements, is saying make this module live at 
app-context/module.  So, from the example above, we would reach 
module a by using a URL like:

http://localhost:8080/myApp/modulea/index.do

We could reach moduleb by doing something like:

http://localhost:8080/myApp/moduleb/index.do

Both of my examples depend on one very important key:  You should have 
an action setup for each of them that maps to /index.  Provided that you 

have done that, you'll have good results.

Let's look at one of the struts-config files:

struts-config
  form-beans/
  global-forwards
forward contextRelative=true
 name=toDefault
 path=/index.do
 redirect=true/
forward contextRelative=true
 name=toModuleA
 path=/modulea/index.do
 redirect=true/
forward contextRelative=true
 name=toModuleB
 path=/moduleb/index.do
 redirect=true/
  /global-forwards
  action-mappings
action path=/index
parameter=/default/moduleindex.jsp
type=org.apache.struts.actions.ForwardAction
/action
  /action-mappings
  message-resources key=org.apache.struts.action.MESSAGE
 
parameter=com.mycompany.struts.module.DefaultResources/
/struts-config

The global-forwards gives me a way to get from this sub-application 
(this is a cut-down excerpt from my struts-default.xml) to my other 
sub-applications.  Every one of my struts-module.xml files has these 
very same global-forwards.  I just copied and pasted them from one to 
the other.  I made them all context-relative (that means -- interpret 
this path as though it is relative to the APPLICATION-context -- not the 

module-context.  Struts, by default, will interpret your paths as being 
relative to the module-context).  There are other ways to change 
sub-applications too.  org.apache.struts.actions.SwitchAction will do 
this for you.  Be sure you give it both required request parameters: 
 prefix (the module name preceeded by a '/' -- as in /modulea) and page 
(if you do a type-o like I did, and get an exception saying to use 
prefix and path just ignore it.  It is incorrect.  I already filed a bug 

and submitted a patch).

To make navigation among modules easy, all of them have an index action. 

 That is the primary entry-point from one module to another.  I may or 
may not have additional links into other sub-applications, depending on 
what my requirements are.  That's something you'll have to judge for 
yourself.

You'll notice some convention I use.  Each of my modules has it's own 
directory under the application root.  I keep 

RE: Sub Apps

2002-09-17 Thread wbchmura


+1 for adding this to the main documentation!


-Original Message-
From: rmcintosh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 10:26 AM
To: struts-user
Subject: RE: Sub Apps


I just got around to reading this and glad I did. At the moment I'm
still stuck in the 1.0 world and wasn't looking forward to figuring out
the 1.1 ways, but this has certainly helped a bunch. This is the kind of
thing that should be in the docs (if it isn't already).

- Robert

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]] 
Sent: Monday, September 16, 2002 11:34 PM
To: Struts Users Mailing List
Subject: Re: Sub Apps

On a very high-level, yes :-)

Back in the old days (Struts 1.0), you used to have one application. 
 You configured the action servlet in web.xml, and told it where to find

your one (and only) struts-config.xml file.  This one file was where all

of your application config was kept.  Unfortunately, there was 
contention when multiple people needed to update the configuration file.

... along comes 1.1 (beta)

Now, you can have as many configuration files as you have modules.  Each

module will (presumably) be handled by one team, so contention is less. 
 Each module can be independently developed - caring nothing about the 
others, unless it has to.  This is better for multi-developer settings. 
 To ease the transition, there is always one module -- the default 
module.  That module lives (speaking in URI-terms) at 
http://mydomain.dom/appContext/.  All other modules live at 
http://mydomain.dom/appContext/module/.

By default, all paths are treated as relative to the module context. 
 Since this happens to be the same as the applciation context for the 
default application, struts 1.0 applications should be able to easily 
migrate to 1.1.  You could then convert over to the new modules strategy

one piece at a time.

That a birds-eye view of sub-applications.  Is that what you wanted? 
 Need more details?  Oh, what the heck - here:

It's really quite easy to implement.  You just ... well, in your 
web.xml, you do something like this:

!-- Default Sub-Application Config --
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/conf/struts-default.xml/param-value
/init-param
!-- ModuleA Sub-Application Config --
init-param
  param-nameconfig/modulea/param-name
  param-value/WEB-INF/conf/struts-moduleb.xml/param-value
/init-param
!-- ModuleB Sub-Application Config --
init-param
  param-nameconfig/moduleb/param-name
  param-value/WEB-INF/conf/struts-moduleb.xml/param-value
/init-param

Each file is a struts-config file.  What you're actually doing when you 
specify the config elements, is saying make this module live at 
app-context/module.  So, from the example above, we would reach 
module a by using a URL like:

http://localhost:8080/myApp/modulea/index.do

We could reach moduleb by doing something like:

http://localhost:8080/myApp/moduleb/index.do

Both of my examples depend on one very important key:  You should have 
an action setup for each of them that maps to /index.  Provided that you

have done that, you'll have good results.

Let's look at one of the struts-config files:

struts-config
  form-beans/
  global-forwards
forward contextRelative=true
 name=toDefault
 path=/index.do
 redirect=true/
forward contextRelative=true
 name=toModuleA
 path=/modulea/index.do
 redirect=true/
forward contextRelative=true
 name=toModuleB
 path=/moduleb/index.do
 redirect=true/
  /global-forwards
  action-mappings
action path=/index
parameter=/default/moduleindex.jsp
type=org.apache.struts.actions.ForwardAction
/action
  /action-mappings
  message-resources key=org.apache.struts.action.MESSAGE
 
parameter=com.mycompany.struts.module.DefaultResources/
/struts-config

The global-forwards gives me a way to get from this sub-application 
(this is a cut-down excerpt from my struts-default.xml) to my other 
sub-applications.  Every one of my struts-module.xml files has these 
very same global-forwards.  I just copied and pasted them from one to 
the other.  I made them all context-relative (that means -- interpret 
this path as though it is relative to the APPLICATION-context -- not the

module-context.  Struts, by default, will interpret your paths as being 
relative to the module-context).  There are other ways to change 
sub-applications too.  org.apache.struts.actions.SwitchAction will do 
this for you.  Be sure you give it both required request parameters: 
 prefix (the module name preceeded by a '/' -- as in /modulea) and page 
(if you do a type-o like I did, and get an exception saying to use 
prefix and path just ignore it.  It is incorrect.  I already filed a bug

and submitted a patch).

To make navigation among modules easy, all of 

[validator]

2002-09-17 Thread wbchmura


Heya

I have a validator set up and it seems to work.  I've read the validator 
docs online and da online book, but..


field  property=employeeFirstName
depends=required,mask
var
var-namemask/var-name
var-value${text}/var-value
/var
arg0 key=form.register.firstname/
/field

This is an internal app and I don't need any i18n so I dont have all my 
field names in the properties file.

Is there a way to avoid entering all the names into a property file?

For instance, is there a way to tell it to use a string instead of a 
key...

like:
arg0 key=First name/

TIA



William B Chmura
Internet Services Admin / IT Department 
Ensign-Bickford Industries, Inc and subsidiaries
http://www.e-bind.com
http://www.e-bco.com
http://www.e-brealty.com
http://www.eba-d.com
http://www.applied-food.com

 



WINMAIL.DAT
Description: application/vnd.ms-tnef

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


RE: [OT] Newbie Design best practice question

2002-09-17 Thread wbchmura


We just went through similar agony with four levels of users.  We ended 
up with two sets of JSP pages.  We ended up doing a second set for one 
of the groups because there was just so much of a difference and it 
would be helpful to have a different layout.

Of course we are still working on it so I cant say it all worked out for 
us :)


-Original Message-
From: James.Piper [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 2:05 PM
To: struts-user
Subject: [OT] Newbie Design best practice question


If I were to have a STRUTS enabled application where I had user types of
restricted_users, full_access_users, and admins and for the most part 
the
content of the screens the different user types get to see are the same,
except for maybe Id like there to be a few extra bits of functionality 
on
the full_access_users and admin screens that doesn't get shown on the
restricted_users screen, then what's the best way to go about this? It 
will
probably also be that each user type will require some Action objects 
not
used by the other user types.

Should I attempt to use one set of JSPs for all the different types of 
users
and put logic inside each of the JSPs that says something like 'if the 
user
is of type full_access_users then shown these extra few buttons', or 
should
I give each type of user their own set of JSPs?

I am tempted to try and use one set of JSPs for all user types so that I
don't have to worry about maintenance of three sets of almost identical 
JSP
files.  On the other hand I feel I may be asking for security trouble by
trying to have each JSP check for the user's user type - I also have a
notion that checking user types is something that I should be doing
elsewhere.

If I do use separate JSPs for each user type, would it make sense to use 
the
STRUTS sub-application mechanism to separate them out?

Thanks for your thoughts,

- Jim

--
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: SQL Query Builder [Off Topic]

2002-09-17 Thread wbchmura

I thought there was a free version...

Slightly limited

-Original Message-
From: jmitchtx [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 2:47 PM
To: struts-user
Subject: RE: SQL Query Builder [Off Topic]


WOW!!!  I wish it was free!!!


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




 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 17, 2002 2:08 PM
 To: [EMAIL PROTECTED]
 Subject: RE: SQL Query Builder [Off Topic]


 DBVisualizer?
  -Original Message-
  From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, September 17, 2002 11:29 AM
  To: 'Struts Users Mailing List'
  Subject: RE: SQL Query Builder [Off Topic]
 
 
  yep - but I'd be willing to bet someone has written a Swing
  query engine.
 
  -Original Message-
  From: James Mitchell [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, September 17, 2002 12:10 PM
  To: Struts Users Mailing List
  Subject: RE: SQL Query Builder [Off Topic]
 
 
  Isn't that only for Oracle?
 
  I was hoping to find an Open Source Swing alternative myself.
 
 
 
  James Mitchell
  Software Engineer\Struts Evangelist
  Struts-Atlanta, the Open Minded Developer Network
  http://www.open-tools.org/struts-atlanta
 
 
 
 
   -Original Message-
   From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, September 17, 2002 12:01 PM
   To: 'Struts Users Mailing List'
   Subject: RE: SQL Query Builder [Off Topic]
  
  
   I use PL/SQL Developer 5.0.
  
   -Original Message-
   From: James Mitchell [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, September 17, 2002 12:00 PM
   To: Struts Users Mailing List
   Subject: RE: SQL Query Builder [Off Topic]
  
  
   Well, I'm pretty proficient in sql.  But for extremely complex
   queries that
   require multiple outer joins (like more than 8 tables), I rely on
   the visual
   query building capabilities of Visual Interdev (ya ya ya M$ 
sucks).
  
   I'd love to hear about any open source project that can do
  what Interdev
   does:
  
   It gives you 4 panes.
   1. Tables
   2. Fields selected
   3. Sql used
   4. Results of query (if you run it)
  
   Truly wysiwyg, drop a new table in the table pane, and all panes 
are
   updated.  Modify the sql pane and all the other panes are
  updated as well.
  
   When you connect to an ODBC source (yes, this requires
  ODBC, but the sql
   generated works regardless) you can just drag in all the
  tables you want.
   Add filter params and order by, do grouping, sum, count, whatever.
  
   This also requires that you know your database
  relationships (to a certain
   extent).  Interdev will read the metadata off the
  connection and do a best
   guess based on
  
   The reason I use Interdev is that it creates the vendor specific
   sql syntax,
   which can be different for Oracle vs. DB2 vs. MySql
  
   Then I just copy from the sql pane into my application (be
  it a resource
   file or into the code) and I'm done.
  
  
  
   James Mitchell
   Software Engineer\Struts Evangelist
   Struts-Atlanta, the Open Minded Developer Network
   http://www.open-tools.org/struts-atlanta
  
  
  
  
-Original Message-
From: Howard Miller [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 11:15 AM
To: '[EMAIL PROTECTED]'
Subject: SQL Query Builder [Off Topic]
   
   
Hi,
   
This is completely off-topic, and I'm sorry in advance, but
   this is where
all the usefull people live!!!
   
Has anybody come accross a SQL query builder, or even
  query-by-example
builder in java. That is something to visually put
  together a query for
non-sql-savy users. Its to live in a Struts application,
  so must be
Servlet/JSP/Applet based.
   
Trying to save myself some work!!
   
Howard Miller
   
   
   
--
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]


 --
 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: Roles without LDAP

2002-09-17 Thread wbchmura


Sure, play with the Memory Realms in Tomcat.  Its the easiest off the 
bat, and you can switch them in Tomcat later...

See tomcat docs or the tomcat-user list for more info...

This should keep ya busy for a few minutes :)
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html


-Original Message-
From: jsmith4 [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 2:50 PM
To: struts-user
Subject: Roles without LDAP


Anyway to use Roles without LDAP??

Can I just save some object in the session??   



--
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: [validator]

2002-09-17 Thread wbchmura

D'oh - worked wonderfully.

I just finished entering them all into the properties file anyway...  Ah 
well. 

-Original Message-
From: dderry [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 3:03 PM
To: struts-user
Subject: Re: [validator]


Add the resource=false attribute

i.e.  arg0 key=First name resource=false

Not sure how this translates into ActionErrors 'cause we're not using 
Struts
for presentation, but it does tell Validator to use the key as a String 
and
not a look-up key.

Hope this helps,
Dave Derry


- Original Message -
From: [EMAIL PROTECTED]



 Heya

 I have a validator set up and it seems to work.  I've read the 
validator
 docs online and da online book, but..


 field property=employeeFirstName
 depends=required,mask
 var
 var-namemask/var-name
 var-value${text}/var-value
 /var
 arg0 key=form.register.firstname/
 /field

 This is an internal app and I don't need any i18n so I dont have all 
my
 field names in the properties file.

 Is there a way to avoid entering all the names into a property file?

 For instance, is there a way to tell it to use a string instead of a
 key...

 like:
 arg0 key=First name/

 TIA



 William B Chmura
 Internet Services Admin / IT Department
 Ensign-Bickford Industries, Inc and subsidiaries



--
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: default value for html:select

2002-09-17 Thread wbchmura


Answer to #1)

html:select property=companySelection
html:option value=Select a company/html:option
html:options collection=companyList  
property=orglevel2id  labelProperty=orglevel2name/
  /html:select

The above sets the Select a company as the default.  I think if you 
wanted the default to be set in the collection you would just set it as 
the first entry when you make the collection.  Someone tell me if I am 
wrong on this one...


Answer to #2)
To display alternating colors, a bunch of us like:
http://edhill.its.uiowa.edu/display/




-Original Message-
From: mleejr [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 4:29 PM
To: struts-user
Subject: default value for html:select


I have one MAIN question. I don't want to have to repost a question. I 
try searching for answers to my questions on the website but it always 
forwards me to google. Are these emails not cached for searching?

Anyway, 2 questions;
1) How do I set a default value in an html:select on an options list? I 
need the default state to be the one loaded from the struts form.

html:select property=state size=1 value=%= userForm.state 
%
  html:options name=allUnitedStates labelName=allUnitedStates/
/html:select


2) I do a query. I put the result in  the logic:iterate below. I want to 
alternate colors. I've seen this before but I couldn't do a search 
because of the aforementioned problem. Thanks

  logic:present name=users
  logic:iterate name=users id=aUser property=users 
scope=request
  tr
tdbean:write name=aUser property=userID//td
tdbean:write name=aUser property=userType//td
.
  /tr
/logic:iterate
  /logic:present



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




RE: accessing large/multiple files on hard drive

2002-09-10 Thread wbchmura


BDY.RTF
Description: RTF file


RE: Question about multiple Validation XML files?

2002-09-10 Thread wbchmura


BDY.RTF
Description: RTF file


RE: DropDown-Selects

2002-09-10 Thread wbchmura


BDY.RTF
Description: RTF file


Using global forwards to tile definitions?

2002-09-10 Thread wbchmura


BDY.RTF
Description: RTF file


RE: document.forms[0].submit()::

2002-09-10 Thread wbchmura


BDY.RTF
Description: RTF file


RE: alternating row colors in the iterate tag.

2002-09-10 Thread wbchmura


BDY.RTF
Description: RTF file


XSL for struts config?

2002-09-10 Thread wbchmura


BDY.RTF
Description: RTF file


WINMAIL.DAT
Description: application/vnd.ms-tnef

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


RE: secure JSPs (resources under WEB-INF)

2002-09-09 Thread wbchmura


BDY.RTF
Description: RTF file


RE: secure JSPs (resources under WEB-INF)

2002-09-09 Thread wbchmura


BDY.RTF
Description: RTF file


RE: Validation documentation (help requested)

2002-09-09 Thread wbchmura


BDY.RTF
Description: RTF file


Connecticut / New England area - Struts user group

2002-09-09 Thread wbchmura


BDY.RTF
Description: RTF file


WINMAIL.DAT
Description: application/vnd.ms-tnef

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


RE: Problems to display the space characters

2002-09-09 Thread wbchmura


BDY.RTF
Description: RTF file


RE: accessing large/multiple files on hard drive

2002-09-09 Thread wbchmura


BDY.RTF
Description: RTF file


RE: [FRIDAY] Please help save my soul

2002-09-06 Thread wbchmura


BDY.RTF
Description: RTF file


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

2002-09-06 Thread wbchmura


BDY.RTF
Description: RTF file


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 wbchmura


BDY.RTF
Description: RTF file


RE: [OT] JavaScript auto-submit form

2002-09-06 Thread wbchmura


BDY.RTF
Description: RTF file


RE: Need Help in struts desing issue

2002-09-06 Thread wbchmura


BDY.RTF
Description: RTF file


RE: [FRIDAY] [OT][BEER][VOTE]

2002-09-04 Thread wbchmura


Like a pebble shattering the stillness of the pond...

:)

-Original Message-
From: Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 04, 2002 12:05 PM
To: struts-user
Subject: [FRIDAY] [OT][BEER]


...couldn't resist - list...too...serious...must...lighten...up
 
Mark
If only I had known this ( T = ( - ? ))!
 


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




RE: Open Forward in a different window

2002-09-04 Thread wbchmura


BDY.RTF
Description: RTF file


RE: Struts advantages, Struts alternatives

2002-09-04 Thread wbchmura


BDY.RTF
Description: RTF file


RE: Struts advantages, Struts alternatives

2002-09-04 Thread wbchmura


BDY.RTF
Description: RTF file


RE: [Proposal] Thread Topic Identification (was [BS] Are we getti ngo ff the topic)

2002-08-29 Thread wbchmura


I would agree with putting the tags on.  I don't think there needs to be 
an official list of tags, just having them there will be easy enough.

Hopefully, if everyone starts doing it, new people would notice that 
every time there is a question of something about tiles (for example) it 
seems to always start with [tiles]...  

-1 for new list








-Original Message-
From: ekbush [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 10:35 AM
To: struts-user
Subject: Re: [Proposal] Thread Topic Identification (was [BS] Are we
getti ngo ff the topic)


Are filters really _that_ hard to set up?  ... I've got probably 30 of 
them going to sift and sort my mail -- continually having to edit them 
as projects evolve (ie there is tomcat5 stuff floating around now, and I 

had to edit my tc-dev filter).

I don't see it as much of a problem -- and most (reasonable) clients can 

be configured to actually just delete messages off the server if they 
meet certain criteria, so there's not even any need to download them.

+1 for tags
-1 for a seperate list
+1 for more fridays in the week :-P

I think the tags would really help us all zone-in on what is most 
important to us.  As such, I think it would be helpful to everyone - 
devs *and* users.  Think of this example (I'm going to pick on Cedric, 
because he comes to mind):

Cedric downloads his mail - there are about 150 struts-user mailings, 
but he's really busy and really just cares to see the ones for tiles 
right now.

without tags:
Cedric probably has to read all the subjects, and he might still miss 
something that speaks of a tiles issue but doesn't mention it in the 
topic.

with tags:
Cedric knows immediately which threads need his expert assistance, and 
can even filter them to a (sub-)folder for easy-access.  Yes, when he 
has time he can go through the others too (if he wants), but right now 
he's quite busy (probably is but I'm speaking hypothetically, of course) 

so he can just cut to the chase and take care of those people most in 
need of his help.

... but I'm sure you all have your own view on why it would be a 
good/bad thing.

Regards,

Eddie

Cliff Rowley wrote:

True, I hadn't though of that.

On Thu, 2002-08-29 at 15:10, Kidd, Polly wrote:

bound to be... if someone isn't sure which category their problem 
falls
into, they will probably mail to both...

-Original Message-
From: Cliff Rowley [mailto:[EMAIL PROTECTED]]

I guess the question is, filter one list or two.  Is the volume of two
separate lists going to be more than the same information in one list?

On Thu, 2002-08-29 at 15:04, Tim T. Young wrote:

My fear with another list is that good information will be available 
in
both, and I will have to process 300+ emails a day (2 lists x 150 a 
list).

Tim



--
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] Thread Topic Identification (was [BS] Are we getting o ff the topic)

2002-08-29 Thread wbchmura


Even if they come close like:

[tiles]
[tiles problem]
[tiles help]

They would still be useful and sortable and to a degree filterable .



-Original Message-
From: ekbush [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 11:14 AM
To: struts-user
Subject: Re: [Proposal] Thread Topic Identification (was [BS] Are we
getting o ff the topic)


Maybe we could sweet-talk Craig into getting something put on the site 
about using them?  I don't know if he'd be willing/able to permit it (or 

get it permitted), but we could ... do something like has been done with 

the commons, at least.  There is a little blurb up listed with their 
list info that says:

*Important*

Since there are multiple projects in commons, please add [/projectname/ 
] at the beginning of the subject.

... and I can vouch for the fact that people use the [name] tags pretty 
regularly.  You most certainly could filter on it.  The thing to do 
would be to shun those who do not follow the convention.  If someone 
isn't willing to take the time to learn a communities 
standards/conventions, are they really worthy of help?  Of course, thats 

a bit more coarse-grained than was proposed, and I rather like the tags 
proposed, but maybe it's a suitable compromise.

So we'd have something like:

* [core]
* [validator]
* [tiles]

That's nowhere near as exhaustive, and wouldn't provide as fine-grained 
control, but I think _anyone_ could manage to remember them ... It could 

still be useful, I think.  Any more exhaustive of a list would (IMHO) 
need to be posted somewhere folks would see (and read!) when they sign 
up for the list, if you want to hold them accountable for it to the 
point you would shun them.  I suppose a person could just email them a 
list of tags and suggest (nicely) that they use them if they want 
answers to questions ... but ...

My $0.02

Eddie

[EMAIL PROTECTED] wrote:

Afternoon chaps!

My problem with starting these [topic] subject headers for our emails 
is that every time a new person posts to the list you'll be going 
through the same hell telling them how to format their headers 
correctly, (as well as how to search the archive, how to phrase 
questions . . . .etc) To me it would be nice if everyone done this, but 
chances are it's not going to happen. The few people who try to do it 
are going to get annoyed that no one else does etc. Getting people to 
put half decent headers on the emails would be a start. How many time 
have you seen things like help or struts problem? Why else are these 
people posting to the group? These headers might help with these 
problems, but I doubt it would ever be enough to filter your emails.

Totally agree that making 2 list will just encourage double posting 
too!

Regards
IV




--
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] Thread Topic Identification (was [BS] Are we getting o ff the topic)

2002-08-29 Thread wbchmura

Heck I would just be happy if Outlook rules worked consistently and 
applied to server store...


-Original Message-
From: home [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 11:47 AM
To: struts-user
Subject: Re: [Proposal] Thread Topic Identification (was [BS] Are we
getting o ff the topic)


wouldn´t it be nice if there was a convention of how filtering rules 
have to
look like?  That way one could just import them in to any mail program
*sigh* .

Regards,

Michael


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 29, 2002 5:32 PM
Subject: RE: [Proposal] Thread Topic Identification (was [BS] Are we 
getting
o ff the topic)



 Even if they come close like:

 [tiles]
 [tiles problem]
 [tiles help]

 They would still be useful and sortable and to a degree filterable .



 -Original Message-
 From: ekbush [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 29, 2002 11:14 AM
 To: struts-user
 Subject: Re: [Proposal] Thread Topic Identification (was [BS] Are we
 getting o ff the topic)


 Maybe we could sweet-talk Craig into getting something put on the site
 about using them?  I don't know if he'd be willing/able to permit it 
(or

 get it permitted), but we could ... do something like has been done 
with

 the commons, at least.  There is a little blurb up listed with their
 list info that says:

 *Important*

 Since there are multiple projects in commons, please add 
[/projectname/
 ] at the beginning of the subject.

 ... and I can vouch for the fact that people use the [name] tags 
pretty
 regularly.  You most certainly could filter on it.  The thing to do
 would be to shun those who do not follow the convention.  If someone
 isn't willing to take the time to learn a communities
 standards/conventions, are they really worthy of help?  Of course, 
thats

 a bit more coarse-grained than was proposed, and I rather like the 
tags
 proposed, but maybe it's a suitable compromise.

 So we'd have something like:

 * [core]
 * [validator]
 * [tiles]

 That's nowhere near as exhaustive, and wouldn't provide as 
fine-grained
 control, but I think _anyone_ could manage to remember them ... It 
could

 still be useful, I think.  Any more exhaustive of a list would (IMHO)
 need to be posted somewhere folks would see (and read!) when they sign
 up for the list, if you want to hold them accountable for it to the
 point you would shun them.  I suppose a person could just email them a
 list of tags and suggest (nicely) that they use them if they want
 answers to questions ... but ...

 My $0.02

 Eddie

 [EMAIL PROTECTED] wrote:

 Afternoon chaps!
 
 My problem with starting these [topic] subject headers for our 
emails
 is that every time a new person posts to the list you'll be going
 through the same hell telling them how to format their headers
 correctly, (as well as how to search the archive, how to phrase
 questions . . . .etc) To me it would be nice if everyone done this, 
but
 chances are it's not going to happen. The few people who try to do it
 are going to get annoyed that no one else does etc. Getting people to
 put half decent headers on the emails would be a start. How many time
 have you seen things like help or struts problem? Why else are 
these
 people posting to the group? These headers might help with these
 problems, but I doubt it would ever be enough to filter your emails.
 
 Totally agree that making 2 list will just encourage double posting
 too!
 
 Regards
 IV
 



 --
 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: [BEER] Is it Friday Yet?

2002-08-29 Thread wbchmura

Can we have a [Mark] tag added?

-Original Message-
From: Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 1:44 PM
To: struts-user
Subject: RE: [BEER] Is it Friday Yet?


Hey, we're both Scots/English (the Galbraith/Galbreath clan went native 
from
its English roots in the 13th century by marrying into Clan 
MacReynolds)!
What more commonality do you need other than a fine single malt and a 
good
Scottish ale?

BTW: I married a McKechnie of Clan MacReynolds.  Incest is best...even 
if
it's 1500 years removed!

Mark

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 1:34 PM
To: Struts Users Mailing List
Subject: Re: [BEER] Is it Friday Yet?


Thank you for asking - I was wondering too, but didn't want to ... 
offend? ... anyone!

Jacob Hookom wrote:

Are you related to Mark? ;-)

| -Original Message-
| From: Galbraith, Paul [mailto:[EMAIL PROTECTED]]
| Sent: Thursday, August 29, 2002 12:13 PM
| To: [EMAIL PROTECTED]
| Subject: [BEER] Is it Friday Yet?
| 
| Just testing...
| 
| Sorry folks, I just couldn't resist!




--
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: [Tag Protocol] How to let newbies know?

2002-08-29 Thread wbchmura


I agree on that one...  Worse yet - when I come in after the weekend and 
have all those e-mails... If I did not have my e-mail client running, my 
rules will not process all the new ones in my inbox so I have to sort 
all the lists apart...


-Original Message-
From: jmitchtx [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 3:33 PM
To: struts-user
Subject: RE: [Tag Protocol] How to let newbies know?


Not sure about you, but I can have from 5 to 500 unread emails sitting 
in my
inbox over a weekend.  Having [tiles], [security], [validator] or 
[whatever]
would greatly reduce my scan - read - respond - delete cycle.

You might not like it, but I intend to use it.

James If Sasquatch had the measles, how would you know?  Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://www.open-tools.org/struts-atlanta




 -Original Message-
 From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 29, 2002 3:20 PM
 To: Struts Users Mailing List
 Subject: RE: [Tag Protocol] How to let newbies know?


 I disagree with the need for a tag protocol.

 The whole point of the subject line is to annotate the message
 with a concise (summary) description.

 Now you want to annotate the annotation?

 Next someone'll ask for a description of the tag

 Sri

 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 29, 2002 3:05 PM
 To: Struts Users Mailing List
 Subject: RE: [Tag Protocol] How to let newbies know?


 funny guys!!!

 I think that from now on, when I respond to a thread, if it
 doesn't have some kind of tag description, I will just add it on
 my email subject line.

 There's no need to piss off anyone about using tagged subject
 lines. Eventually, everyone will get the hint, especially when
 people use the archives.  It might also help when searching.

 The initial list I made was based on the structure of my Outlook
 folders that I keep old messages in.  I've been archiving and
 organizing all relevant (and important) messages for 4 or 5
 months now.  It has helped me on several occasions.




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




  -Original Message-
  From: Dave Derry [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, August 29, 2002 2:24 PM
  To: Struts Users Mailing List
  Subject: Re: [Tag Protocol] How to let newbies know?
 
 
  He's also easily encouragable   ;-))
 
 
  - Original Message -
  From: John Owen [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Thursday, August 29, 2002 1:44 PM
  Subject: Re: [Tag Protocol] How to let newbies know?
 
 
   I think you mean incorrigible... ;)
   - Original Message -
   From: Eddie Bush [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Sent: Thursday, August 29, 2002 12:38 PM
   Subject: Re: [Tag Protocol] How to let newbies know?
  
  
Galbreath, Mark wrote:
   
N...I want to pounce on the first one who doesn't conform
because
   it's
prima facia evidence the lamer didn't read the FAQs nor the 
email
   welcoming
to Struts-user.

Mark (running away from Craig...)

... you are ... encouragable (sp?)  LOL
 
 
 
  --
  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: [BEER] Is it Friday Yet?

2002-08-29 Thread wbchmura

I would like to propose adding a [US_en] or suitable tag also :)

-Original Message-
From: Nicolas.Desjardins [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 3:43 PM
To: struts-user
Subject: RE: [BEER] Is it Friday Yet?


la liste s'est transformée en liste francophone??? :o)

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 3:34 PM
To: 'Struts Users Mailing List'
Subject: RE: [BEER] Is it Friday Yet?


Mon dieu! J'espère pas!

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 3:28 PM

Mais vous reviendrez samedi à la finition ce que vous avez négligé.

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




 -Original Message-
 From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 29, 2002 3:18 PM
 To: 'Struts Users Mailing List'
 Subject: RE: [BEER] Is it Friday Yet?


 Je pars du bureau tot pour obtenir une biere.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 29, 2002 2:21 PM

 Can we have a [Mark] tag added?
 +1

 --
 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: [Tag Protocol] How to let newbies know?

2002-08-29 Thread wbchmura

It does not replace the subject line...  just catagorize it...


-Original Message-
From: Sri.Sankaran [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 3:43 PM
To: struts-user
Subject: RE: [Tag Protocol] How to let newbies know?


If the writer cannot summarize in 5-10 words (the subject) we are 
expecting that (s)he can in 1 or 2 words?

Sri

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, August 29, 2002 3:26 PM
To: Struts Users Mailing List
Subject: RE: [Tag Protocol] How to let newbies know?


Have you taken time to look at some of the subject lines we get around 
here? The tags have the potential to help greatly.

Simon

-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 2:20 PM
To: Struts Users Mailing List
Subject: RE: [Tag Protocol] How to let newbies know?


I disagree with the need for a tag protocol.

The whole point of the subject line is to annotate the message
with a concise (summary) description.  

Now you want to annotate the annotation?

Next someone'll ask for a description of the tag

Sri

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 3:05 PM
To: Struts Users Mailing List
Subject: RE: [Tag Protocol] How to let newbies know?


funny guys!!!

I think that from now on, when I respond to a thread, if it
doesn't have some kind of tag description, I will just add it 
on my email subject line.

There's no need to piss off anyone about using tagged subject
lines. Eventually, everyone will get the hint, especially when 
people use the archives.  It might also help when searching.

The initial list I made was based on the structure of my
Outlook folders that I keep old messages in.  I've been 
archiving and organizing all relevant (and important) messages 
for 4 or 5 months now.  It has helped me on several occasions.




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




 -Original Message-
 From: Dave Derry [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 29, 2002 2:24 PM
 To: Struts Users Mailing List
 Subject: Re: [Tag Protocol] How to let newbies know?


 He's also easily encouragable   ;-))


 - Original Message -
 From: John Owen [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, August 29, 2002 1:44 PM
 Subject: Re: [Tag Protocol] How to let newbies know?


  I think you mean incorrigible... ;)
  - Original Message -
  From: Eddie Bush [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Thursday, August 29, 2002 12:38 PM
  Subject: Re: [Tag Protocol] How to let newbies know?
 
 
   Galbreath, Mark wrote:
  
   N...I want to pounce on the first one who doesn't conform
   because
  it's
   prima facia evidence the lamer didn't read the FAQs nor
the email
  welcoming
   to Struts-user.
   
   Mark (running away from Craig...)
   
   ... you are ... encouragable (sp?)  LOL



 --
 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]



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




[OT] And let that be a lesson to you...

2002-08-29 Thread wbchmura


I think I have seen more off topic and vaguely related e-mail in the 
past two days on this list than I have since I joined.   Ironically it 
all started with ...  you know the rest...








WINMAIL.DAT
Description: application/vnd.ms-tnef

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


Taglib question - popup windows

2002-08-28 Thread wbchmura


Hi All,

I am working on a taglib that will make popup windows for you.  The 
thought behind this was to be able to provide pop-up help and tips for 
our user community (who aparently need extra help).  

I want to keep it so that it would work without the struts libraries, 
but would also like to take advantage of some of them.  What would be 
the best way?  I was thinking I could use different tags that only work 
if struts is present, and as many as I could without it.  So I could 
have two tags...  popup and strutsPopup or something like that...

Thoughts?

Also, if anyone wants to look at the code and give me any tips for 
taglibs that would be cool also...

If anyone is interested the tag looks like so:

pu:basicPopup 
textLink = this is the text link 
cssFile=./images/testcss2.css
Here is some content for you...
/pu:basicPopup


Full extended and overriding defaults it looks like so:

pu:basicPopup 
menubar=no
title=This is the title
imageLink = ./images/help.gif 
textLink = this is the text link 
resizeable=yes
directories=no
location=no
toolbar=no
height=200
width=400
cssFile=./images/testcss2.css
Here is some content for you...
/pu:basicPopup

There are also some attributes to override the default css names

The whole thing works:  http://www.explosivo.com/bill/downloads/tomcat/
Its popupdev (Set up for tomcat as is...)

(i still have more to do though for properties, i18n, etc)

















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




RE: html:select and collection display

2002-08-28 Thread wbchmura


This is similar to selecting a state, then town, etc...

I resubmit after changing the action value so the servlet knows what to 
do next...


Here is the HTML code for it

!-- this is element 0 --
html:hidden property=action value=/

  Select Company
  html:select property=companySelection 
onchange=selectChange('Company'); 
html:option value=Select a company/html:option
html:options collection=companyList property=orglevel2id 
labelProperty=orglevel2name/
  /html:select

Here is the javascript it runs




script language=JavaScript
function selectChange(txt) {
   document.FormDrillDownReport.elements[0].value = 'changed' + txt;
   document.FormDrillDownReport.submit();
}
/script


-Original Message-
From: rear [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 2:38 PM
To: struts-user
Subject: RE: html:select and collection display


Paul,

Thanks for the reply!  I tried to get an example of a JSP using 
onchange,
but have not been able to come up with a complete example which also 
uses
the html:select tag.  It would sure be a great help if you could point 
me
in the direction of one!  

Thanks,
Ron

-Original Message-
From: Galbraith, Paul [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, August 28, 2002 4:37 AM
To: Struts Users Mailing List
Subject: RE: html:select and collection display

Ron, where exactly are you wanting to display the therapyDesc?  You'll 
want
to use the onClick or onChange javascript event handlers of the 
html:select
tag.  You'll need to write some javascript that can identify the 
therapyCode
and display the matching therapyDesc.  I hope that's a start in the 
right
direction for you, and I'm not telling you something you already 
know...if
you're not sure how to do this, just ask.

Paul

-Original Message-
From: Rea, Ron [mailto:[EMAIL PROTECTED]]
Sent: August 27, 2002 1:23 PM
To: '[EMAIL PROTECTED]'
Subject: html:select and collection display


Hello All, 
 
I'm still pretty new to Struts, so maybe this is really simple, but I 
can't
figure it out for the life of me.  I am displaying a drop-down within a 
JSP.
The collection contains a therapyCode and a therapyDesc, the drop-down
displaying the therapyCode.  What I need to do is, once the therapyCode 
is
selected from the drop-down, also display the therapyDesc for that
therapyCode.  Any ideas as to how to do this???
 
Collection: therapyArrayList
===
therapyCode
therapyDesc 
 
Code to display drop-down:
html:select property=therapyCode1 size=1 
html:options collection=therapyArrayList
property=therapyCode
labelProperty=therapyCode/ 
/html:select
 

--
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: html:select and collection display

2002-08-28 Thread wbchmura

Hi, I agree...

My solution was geared for an application with four levels of selections 
resulting in many many many combinations falling under the latter of the 
options below.

I would agree on client side if you can get away with it...



-Original Message-
From: Paul.Galbraith [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 2:59 PM
To: struts-user
Subject: RE: html:select and collection display


Hi Ron, I saw that somebody else had replied and had given you 
(somewhat) conflicting, but still good, advice regarding this.  

An important question is this:  do you want to have the page refresh 
from the server when a user clicks on the selection in the drop-down box 
(very annoying for the user!), or do you want to be able to handle this 
entirely on the client-side in the browser?  

A client-side solution is preferable, IMHO, if you can get away with it, 
because it will be much more responsive to the user.  There are two 
tradeoffs with the client-side approach, however.  One is that you need 
to write client-side javascript, and your requirements may dictate that 
you cannot do this (i.e. if you have to deal with users who have 
javascript disabled, or browsers that don't support javascript).  The 
second tradeoff comes if you have a lot of data, because for the 
client-side solution to work you need to populate a javascript array(s) 
with every possible value of therapyCode and therapyDesc, and write it 
all to the html page, every time someone requests the page from the 
server.  The cost of doing this processing for every page hit may make 
this unfeasible (esp. in a high-volume website)...you can also run into 
cases where the amount of data is so big that writing it all to a 
javascript array on the page makes the page too large to be practical.

So, before I offer any more advice, first tell me if you think you'd 
want to do this with a client-side or server-side approach!

Paul

-Original Message-
From: Rea, Ron [mailto:[EMAIL PROTECTED]]
Sent: August 28, 2002 2:38 PM
To: 'Struts Users Mailing List'
Subject: RE: html:select and collection display


Paul,

Thanks for the reply!  I tried to get an example of a JSP using 
onchange,
but have not been able to come up with a complete example which also 
uses
the html:select tag.  It would sure be a great help if you could point 
me
in the direction of one!  

Thanks,
Ron

-Original Message-
From: Galbraith, Paul [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, August 28, 2002 4:37 AM
To: Struts Users Mailing List
Subject: RE: html:select and collection display

Ron, where exactly are you wanting to display the therapyDesc?  You'll 
want
to use the onClick or onChange javascript event handlers of the 
html:select
tag.  You'll need to write some javascript that can identify the 
therapyCode
and display the matching therapyDesc.  I hope that's a start in the 
right
direction for you, and I'm not telling you something you already 
know...if
you're not sure how to do this, just ask.

Paul

-Original Message-
From: Rea, Ron [mailto:[EMAIL PROTECTED]]
Sent: August 27, 2002 1:23 PM
To: '[EMAIL PROTECTED]'
Subject: html:select and collection display


Hello All, 
 
I'm still pretty new to Struts, so maybe this is really simple, but I 
can't
figure it out for the life of me.  I am displaying a drop-down within a 
JSP.
The collection contains a therapyCode and a therapyDesc, the drop-down
displaying the therapyCode.  What I need to do is, once the therapyCode 
is
selected from the drop-down, also display the therapyDesc for that
therapyCode.  Any ideas as to how to do this???
 
Collection: therapyArrayList
===
therapyCode
therapyDesc 
 
Code to display drop-down:
html:select property=therapyCode1 size=1 
html:options collection=therapyArrayList
property=therapyCode
labelProperty=therapyCode/ 
/html:select
 

--
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: Taglib question - popup windows

2002-08-28 Thread wbchmura


Oh wait... Are you referring to the user community comment?  I meant the 
user community I develop for in house (s dont tell them I said 
that)...

Otherwise it is serious


-Original Message-
From: caraunltd [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 3:52 PM
To: struts-user
Subject: Re: Taglib question - popup windows


I assume this is a put on?  I sure hope so.

At 01:42 PM 8/28/2002 -0400, you wrote:

Hi All,

I am working on a taglib that will make popup windows for you.  The
thought behind this was to be able to provide pop-up help and tips for
our user community (who aparently need extra help).

I want to keep it so that it would work without the struts libraries,
but would also like to take advantage of some of them.  What would be
the best way?  I was thinking I could use different tags that only work
if struts is present, and as many as I could without it.  So I could
have two tags...  popup and strutsPopup or something like that...

Thoughts?

Also, if anyone wants to look at the code and give me any tips for
taglibs that would be cool also...

If anyone is interested the tag looks like so:

pu:basicPopup
textLink = this is the text link
cssFile=./images/testcss2.css
Here is some content for you...
/pu:basicPopup


Full extended and overriding defaults it looks like so:

pu:basicPopup
menubar=no
title=This is the title
imageLink = ./images/help.gif
textLink = this is the text link
resizeable=yes
directories=no
location=no
toolbar=no
height=200
width=400
cssFile=./images/testcss2.css
Here is some content for you...
/pu:basicPopup

There are also some attributes to override the default css names

The whole thing works:  http://www.explosivo.com/bill/downloads/tomcat/
Its popupdev (Set up for tomcat as is...)

(i still have more to do though for properties, i18n, etc)

















--
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: Are we getting off the topic

2002-08-28 Thread wbchmura


Anyone have time to write a NLP that would automatically respond to 
when is the next version of struts going to be released?

other than that, I agree on the really obvious questions, but how do we 
delinate what is pure struts and just associated with it?  If its 
assocaited with it isn't struts-user the place for it?  I don't have a 
good answer...



-Original Message-
From: jconrad [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 4:29 PM
To: struts-user
Subject: RE: Are we getting off the topic


I also agree STRONGLY. I'm a newbie to Struts, when I signed onto the 
mailing list I read the article how to ask a good question. Two keys 
were RTFM and STFW. So read, then search, then ask.

-Original Message-
From: Tero P Paananen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 2:16 PM
To: Struts Users Mailing List
Subject: RE: Are we getting off the topic


 This board is too valuable to me. Any thoughts?
 Agree... Disagree?

Agree STRONGLY.

There's a reason why I subscribe to Struts mailing list
and not to General Java or Tomcat Debug mailing list.

Furthermore, if people would spend even 5 minutes trying
to search answers to their questions using Google or the
mailing list archives, many of the questions wouldn't
need to be asked in the first place, because they've
already been asked and answered several times.

Have some consideration for those of us who receive
several hundred emails a day and really do not have
time to shift through all the crap.

-TPP

--
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]




Outputting from a taglib in struts

2002-08-27 Thread wbchmura


I am playing with making a taglib and having the biggest issues with it. 
 
I am trying to output and have been trying to use:

 pageContext.getOut().write(Hello +name+!);

To write to the output.  This only returns [Exception 
in:/WEB-INF/jsp/twizard/mainmenu.jsp] null 

I am following a tutorial, sort-of...  Does struts require anything 
special?  I would think not...  (I am also using tiles if that matters)

Thanks

PS. If anyone can recommend a tutorial I would be greatful...






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




RE: Outputting from a taglib in struts

2002-08-27 Thread wbchmura

Okay - My hands are actually on it, well its packed since my last 
move...  I will dig it out tonight!

I think I got it to work using the bodySupport.print()

Strange though...


-Original Message-
From: KevinA.Smith [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 27, 2002 10:29 AM
To: struts-user
Subject: RE: Outputting from a taglib in struts


If you can lay your hands on it, I *highly* recommend the O'Reilly 
JavaServer Pages book. It has two chapters that are extremely useful to 
first-time and experiences taglib authors.

--Kevin

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 27, 2002 10:23 AM
To: [EMAIL PROTECTED]
Subject: Outputting from a taglib in struts



I am playing with making a taglib and having the biggest issues with it. 

 
I am trying to output and have been trying to use:

 pageContext.getOut().write(Hello +name+!);

To write to the output.  This only returns [Exception 
in:/WEB-INF/jsp/twizard/mainmenu.jsp] null 

I am following a tutorial, sort-of...  Does struts require anything 
special?  I would think not...  (I am also using tiles if that matters)

Thanks

PS. If anyone can recommend a tutorial I would be greatful...






--
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: html:errors/ not displaying message?

2002-08-21 Thread wbchmura

I dont think that there is a limit...  One thing I did notice was that 
you named your directory labone.i18n, instead of having it as 
labone/i18n...  I am not sure if that could have been causing your 
problem.

No problem on the help...  Just giving back to the list...


-Original Message-
From: Jerry.Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 5:17 PM
To: Chmura, William B.
Subject: RE: html:errors/ not displaying message?


Should've read the rest of your message, the part where you changed the
message-resources 

I made the same change, and lo and behold!, it worked.  Strange.  I 
would
think that you could put the ApplicationResources.properties file at any
directory level provide you pointed to it correctly with the
message-resources.  I didn't think there was a limit to the depth that 
you
could put these files.  I know that commons-logging and log4j properties
files have to be at the highest level in the class structure, but I 
didn't
think that applied to ApplicationResources.

Thanks for your help!  Let me know if there is ever anything I can do 
for
you.

Jerry

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 20, 2002 3:43 PM
 To: [EMAIL PROTECTED]
 Subject: RE: html:errors/ not displaying message?
 
 
 
 Okay...
 
 I have it working on Tomcat 4.0.3
 
 All i did was copy your properties file over to the 
 testProject/classes/com/labone directory
 
 I changed the message resources to this...
 
 message-resources parameter=com.labone.ApplicationResources 
 null=false /
 
 
 It worked
 
 
 -Original Message-
 From: Jerry.Jalenak [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 20, 2002 4:17 PM
 To: Chmura, William B.
 Subject: RE: html:errors/ not displaying message?
 
 
 WB,
 
 I've packaged the app and attached it - can you take a quick 
 look at see 
 if
 I'm missing something that is so obvious that I can't see it? 
  I've been
 over this so many times I'm starting to get a headache
 
 Thanks!
 
 Jerry
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, August 20, 2002 3:12 PM
  To: [EMAIL PROTECTED]
  Subject: RE: html:errors/ not displaying message?
  
  
  
  I am not sure how all of that works, but I have a feeling 
  that its okay 
  that way.  When I had the problem it was 
  showing the same thing.  
  
  Are you ABSOLUTELY sure the properties file is named right 
 and is in 
  your classes directory (not in your source if you have 
 one)?  Can you 
  put a copy in the classes directory and remove the package off the 
  resource tag and try it for hahas.
  
  The only reason I ask is that everytime - EVERYTIME - I have 
  a problem 
  with this it turns out to be something stupid I did and am 
  overlooking 
  (like a bad filename or putting it somewhere else or a 
 hundred other 
  things).
  
  
  
  
  
  -Original Message-
  From: Jerry.Jalenak [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, August 20, 2002 3:52 PM
  To: struts-user
  Subject: RE: html:errors/ not displaying message?
  
  
  I agree, it appears that the key is not being found.  The 
 ActionForm 
  adds
  the message like this:
  
  errors.add(userID, new ActionError(error.bad.userid));
  
  In my ApplicationResources.properties, I have 
  
  errors.header=
  errors.footer=
  errors.prefix=
  errors.suffix=
  
  error.bad.userid = Unknown User ID
  
  What concerns(?) me is that the error that is being display 
  has the key
  listed as en_US.error.bad.userid.  This indicates to me that it is 
  looking
  for an ApplicationResources_en.properties - not the default
  ApplicationResources.properties  In fact, I think I'll 
  try to add an
  'english' version of the file and see what happens.
  
  jerry
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, August 20, 2002 2:54 PM
   To: [EMAIL PROTECTED]
   Subject: RE: html:errors/ not displaying message?
   
   
   The ?? Show that its not being found - within the ?? is the 
  kjey its 
   looking for...
   
   
   
   
   -Original Message-
   From: kkamholz [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, August 20, 2002 3:44 PM
   To: struts-user
   Subject: RE: html:errors/ not displaying message?
   
   
   The question marks MIGHT be displayed because you don't have 
   errors.prefix
   or errors.suffix defined.  I think the errors tag uses those 
   when you're
   displaying errors by property.  I'm not sure though, so 
   hopefully one of 
   the
   guru's will chime in and tell us how stupid we are, hahaha.
   
   ~ Keith
   http://www.buffalo.edu/~kkamholz
   
   
   
   -Original Message-
   From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, August 20, 2002 3:36 PM
   To: 'Struts Users Mailing List'
   Subject: RE: html:errors/ not displaying message?
   
   
   Well, that's 

RE: Tomcat/Struts - DB Conn Pooling

2002-08-21 Thread wbchmura

I've used both the basic connection pooling through struts and have also 
implemented poolman lately for some projects.  I liked poolman because I 
can do caching with it...  



-Original Message-
From: nealcabage [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 3:01 PM
To: struts-user
Subject: Tomcat/Struts - DB Conn Pooling


For those of you out there who have written web apps using Tomcat and
Struts, with JDBC connectivity, what did you use for dB connection 
pooling?
I understand that Struts provides some conn pooling? I read somewhere 
that
Tomcat might also provide this functionality, though I wonder if they 
were
referring to HTTP connection pooling, rather than dB.  Also, I suppose 
there
is the possibility of using PoolMan ... or perhaps if a driver (I think 
I'll
be using Connect/J for MySQL) offers it.

Could someone please provide a suggestion or some advice?

Thanks in advice.

:)

Neal


--
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: Any way to use the toolTips within struts html tags?

2002-08-21 Thread wbchmura


Are you referring to the ALT tags?  The ones that IE renders like a 
tooltip?

Personally I am not an IE user (Mozilla), but those tags are used by the 
handicapped for a variety of things and maybe should be added on that 
basis. 

Does not look too hard to do to the link tag...  Thats without diving 
into i18n issues which I am wholly unfamiliar with...

See 
http://cvs.apache.org/viewcvs/jakarta-struts/src/share/org/apache/struts/taglib/html/LinkTag.java?rev=1.25content-type=text/vnd.viewcvs-markup




-Original Message-
From: Gilles.Vandaele [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 10:35 AM
To: struts-user
Subject: Any way to use the toolTips within struts html tags?


Any way to use the toolTips within struts html tags?
  
 If the title attribute is part of the W3C Document Object Model  
 (HTML) Level 1 Recommendation, why isn'it included in the Struts 
 html tags?   
  






Gilles Vandaele



--
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: html:errors/ not displaying message?

2002-08-20 Thread wbchmura

Could just not be finding your properties file...

Should be in: 
/classes/com/labone/Messages/ApplicationResources.properties



-Original Message-
From: Jerry.Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 3:02 PM
To: struts-user
Subject: RE: html:errors/ not displaying message?


OK, should've caught that one.  Also had a finger-check in the 
ActionForm
where I'm setting the error message.  Fixed 'em both.  Now I'm getting a
message on the logon.jsp, but it looks like this:

???en_US.error.bad.userid??? 

I'm guessing it has something to do with localization?  Ideas? 

Jerry

 -Original Message-
 From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 20, 2002 1:44 PM
 To: 'Struts Users Mailing List'
 Subject: RE: html:errors/ not displaying message?
 
 
 For your html:errors/ tag, don't specify the name 
 attribute.  Specify the
 property attribute instead.  It would look like:
 html:errors property=userID /
 
 I hope this helps ya out.
 
 ~ Keith
 http://www.buffalo.edu/~kkamholz
 
 
 
 -Original Message-
 From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 20, 2002 2:41 PM
 To: '[EMAIL PROTECTED]'
 Subject: html:errors/ not displaying message?
 
 
 I'm putting together a very basic, sample application for 
 some training
 purposes using Struts 1.1b2.  In testing the app, I cannot 
 seem to get an
 error message from an ActionForm to display on the jsp.  Can 
 someone see
 what the heck I'm doing wrong?
 
 struts-config.xml
 
 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE struts-config PUBLIC -//Apache Software 
 Foundation//DTD Struts
 Configuration 1.1//EN
 http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd;
 
 struts-config
 
   form-beans
   form-bean name=LogonBean
 type=com.labone.LogonBean /
   /form-beans
   
   action-mappings
   action path=/LogonAction
 type=com.labone.LogonAction
   name=LogonBean
   input=/logon.jsp
   scope=request
   validate=true
   forward name=OK  path=/display.jsp /
   forward name=NOK path=/logon.jsp /
   /action
   /action-mappings
   
   message-resources
 parameter=com.labone.Messages.ApplicationResources /
   
 /struts-config
 
 LogonBean.java
 
 package com.labone;
 
 import javax.servlet.http.HttpServletRequest;
 
 import org.apache.struts.action.ActionError;
 import org.apache.struts.action.ActionErrors;
 import org.apache.struts.action.ActionForm;
 import org.apache.struts.action.ActionMapping;
 
 public class LogonBean extends ActionForm
 {
   private String userID;
   
   public LogonBean()
   {
   this.userID = ;
   }
   
   public String getUserID()
   {
   return this.userID;
   }
   
   public void setUserID(String userID)
   {
   this.userID = userID;
   }
   
   public ActionErrors validate(ActionMapping mapping,
 HttpServletRequest request)
   {
   ActionErrors errors = new ActionErrors();
   
   if ((!userID.equals (Jerry))  
 (!userID.equals (Qing)))
   {
   errors.add(ActionErrors.GLOBAL_ERROR, new
 ActionError(userID, error.bad.userid));
   }
 
   return errors;
   }
 }
 
 ApplicationResources.properties
 
 errors.header=
 errors.footer=
 
 error.bad.userid = Unknown User ID
 
 logon.jsp
 
 %@ taglib uri=/beanprefix=bean   %
 %@ taglib uri=/display prefix=display%
 %@ taglib uri=/htmlprefix=html   %
 %@ taglib uri=/logic   prefix=logic  %
 %@ taglib uri=/nested  prefix=nested %
 %@ taglib uri=/tiles   prefix=tiles  %
 
 html
   head
   titleThis is a test web application/title
   /head
   body
   table border=0
   html:form action=LogonAction.do 
 method=POST
   tr
   td
   User ID:
   /td
   td
   html:text maxlength=10
 property=userID size=10 /
   /td
   td
   html:errors name=userID/
   /td
   /tr
   tr
   td colspan=3
   html:submit/
   /td
   /tr
   /html:form
   /table
   /body
 /html
 
 
 Aughh!
 
   
 
 Jerry Jalenak
 Web Publishing
 LabOne, Inc.
 10101 

RE: Anything terrible happen over the past week?

2002-08-20 Thread wbchmura

Dare I ask if there is a patch for this?


-Original Message-
From: Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 3:12 PM
To: struts-user
Subject: RE: Anything terrible happen over the past week?


Yep.  I came back from vacation and resubscribed.

Mark

-Original Message-
From: [EMAIL PROTECTED]
Sent: Tuesday, August 20, 2002 2:24 PM

I've been out moving for the past week.  I can catch up on the full 
archive over the next week, but has anything terrible been discovered 
and / or fixed since the b2 came out?

--
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: html:errors/ not displaying message?

2002-08-20 Thread wbchmura

I've never specified locale...

I did get the ?en_US**? When it could not find my entry or my entire 
properties file...


-Original Message-
From: Jerry.Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 3:36 PM
To: struts-user
Subject: RE: html:errors/ not displaying message?


Well, that's just it.  I don't remember either, and can't see to find it 
in
the DTD (old age / bad eyes?).  I tried Sri's suggestion of using 
html:html
locale=true  but it didn't seem to help (I don't usually use the
html:html tags).  I mean, this is so basic its embarassing, but I 
can't
seem to get the da*n error message to display, at least the way I want 
it.
I'm now (still) getting ???en_US.error.bad.userid???  - kinda worthless, 
ya
know?

Jerry

 -Original Message-
 From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 20, 2002 2:29 PM
 To: 'Struts Users Mailing List'
 Subject: RE: html:errors/ not displaying message?
 
 
 Would it go in the message-resources tag in your struts-config.xml?  I
 haven't done it, but i think i remember seeing that on this list.
 
 ~ Keith
 http://www.buffalo.edu/~kkamholz
 
 
 -Original Message-
 From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 20, 2002 3:23 PM
 To: 'Struts Users Mailing List'
 Subject: RE: html:errors/ not displaying message?
 
 
 Checked.  it's there.  I seem to remember a post sometime 
 ago about
 having to specify locale= , but can't seem to remember where 
 it needs to be
 coded.  I went to check the archives about an hour ago and 
 couldn't get into
 'em.  Anybody else remember something about this?
 
 Jerry
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, August 20, 2002 2:28 PM
  To: [EMAIL PROTECTED]
  Subject: RE: html:errors/ not displaying message?
  
  
  Could just not be finding your properties file...
  
  Should be in: 
  /classes/com/labone/Messages/ApplicationResources.properties
  
  
  
  -Original Message-
  From: Jerry.Jalenak [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, August 20, 2002 3:02 PM
  To: struts-user
  Subject: RE: html:errors/ not displaying message?
  
  
  OK, should've caught that one.  Also had a finger-check in the 
  ActionForm
  where I'm setting the error message.  Fixed 'em both.  Now 
  I'm getting a
  message on the logon.jsp, but it looks like this:
  
  ???en_US.error.bad.userid??? 
  
  I'm guessing it has something to do with localization?  Ideas? 
  
  Jerry
  
   -Original Message-
   From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, August 20, 2002 1:44 PM
   To: 'Struts Users Mailing List'
   Subject: RE: html:errors/ not displaying message?
   
   
   For your html:errors/ tag, don't specify the name 
   attribute.  Specify the
   property attribute instead.  It would look like:
   html:errors property=userID /
   
   I hope this helps ya out.
   
   ~ Keith
   http://www.buffalo.edu/~kkamholz
   
   
   
   -Original Message-
   From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, August 20, 2002 2:41 PM
   To: '[EMAIL PROTECTED]'
   Subject: html:errors/ not displaying message?
   
   
   I'm putting together a very basic, sample application for 
   some training
   purposes using Struts 1.1b2.  In testing the app, I cannot 
   seem to get an
   error message from an ActionForm to display on the jsp.  Can 
   someone see
   what the heck I'm doing wrong?
   
   struts-config.xml
   
   ?xml version=1.0 encoding=ISO-8859-1?
   !DOCTYPE struts-config PUBLIC -//Apache Software 
   Foundation//DTD Struts
   Configuration 1.1//EN
   http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd;
   
   struts-config
   
 form-beans
 form-bean name=LogonBean
   type=com.labone.LogonBean /
 /form-beans
 
 action-mappings
 action path=/LogonAction
   type=com.labone.LogonAction
 name=LogonBean
 input=/logon.jsp
 scope=request
 validate=true
 forward name=OK  path=/display.jsp /
 forward name=NOK path=/logon.jsp /
 /action
 /action-mappings
 
 message-resources
   parameter=com.labone.Messages.ApplicationResources /
 
   /struts-config
   
   LogonBean.java
   
   package com.labone;
   
   import javax.servlet.http.HttpServletRequest;
   
   import org.apache.struts.action.ActionError;
   import org.apache.struts.action.ActionErrors;
   import org.apache.struts.action.ActionForm;
   import org.apache.struts.action.ActionMapping;
   
   public class LogonBean extends ActionForm
   {
 private String userID;
 
 public LogonBean()
 {
 this.userID = ;
 }
 
 public String getUserID()
 {
 return this.userID;
 }
 
  

RE: html:errors/ not displaying message?

2002-08-20 Thread wbchmura

The ?? Show that its not being found - within the ?? is the kjey its 
looking for...




-Original Message-
From: kkamholz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 3:44 PM
To: struts-user
Subject: RE: html:errors/ not displaying message?


The question marks MIGHT be displayed because you don't have 
errors.prefix
or errors.suffix defined.  I think the errors tag uses those when you're
displaying errors by property.  I'm not sure though, so hopefully one of 
the
guru's will chime in and tell us how stupid we are, hahaha.

~ Keith
http://www.buffalo.edu/~kkamholz



-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 3:36 PM
To: 'Struts Users Mailing List'
Subject: RE: html:errors/ not displaying message?


Well, that's just it.  I don't remember either, and can't see to find it 
in
the DTD (old age / bad eyes?).  I tried Sri's suggestion of using 
html:html
locale=true  but it didn't seem to help (I don't usually use the
html:html tags).  I mean, this is so basic its embarassing, but I 
can't
seem to get the da*n error message to display, at least the way I want 
it.
I'm now (still) getting ???en_US.error.bad.userid???  - kinda worthless, 
ya
know?

Jerry

 -Original Message-
 From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 20, 2002 2:29 PM
 To: 'Struts Users Mailing List'
 Subject: RE: html:errors/ not displaying message?
 
 
 Would it go in the message-resources tag in your struts-config.xml?  I
 haven't done it, but i think i remember seeing that on this list.
 
 ~ Keith
 http://www.buffalo.edu/~kkamholz
 
 
 -Original Message-
 From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 20, 2002 3:23 PM
 To: 'Struts Users Mailing List'
 Subject: RE: html:errors/ not displaying message?
 
 
 Checked.  it's there.  I seem to remember a post sometime 
 ago about
 having to specify locale= , but can't seem to remember where 
 it needs to be
 coded.  I went to check the archives about an hour ago and 
 couldn't get into
 'em.  Anybody else remember something about this?
 
 Jerry
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, August 20, 2002 2:28 PM
  To: [EMAIL PROTECTED]
  Subject: RE: html:errors/ not displaying message?
  
  
  Could just not be finding your properties file...
  
  Should be in: 
  /classes/com/labone/Messages/ApplicationResources.properties
  
  
  
  -Original Message-
  From: Jerry.Jalenak [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, August 20, 2002 3:02 PM
  To: struts-user
  Subject: RE: html:errors/ not displaying message?
  
  
  OK, should've caught that one.  Also had a finger-check in the 
  ActionForm
  where I'm setting the error message.  Fixed 'em both.  Now 
  I'm getting a
  message on the logon.jsp, but it looks like this:
  
  ???en_US.error.bad.userid??? 
  
  I'm guessing it has something to do with localization?  Ideas? 
  
  Jerry
  
   -Original Message-
   From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, August 20, 2002 1:44 PM
   To: 'Struts Users Mailing List'
   Subject: RE: html:errors/ not displaying message?
   
   
   For your html:errors/ tag, don't specify the name 
   attribute.  Specify the
   property attribute instead.  It would look like:
   html:errors property=userID /
   
   I hope this helps ya out.
   
   ~ Keith
   http://www.buffalo.edu/~kkamholz
   
   
   
   -Original Message-
   From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, August 20, 2002 2:41 PM
   To: '[EMAIL PROTECTED]'
   Subject: html:errors/ not displaying message?
   
   
   I'm putting together a very basic, sample application for 
   some training
   purposes using Struts 1.1b2.  In testing the app, I cannot 
   seem to get an
   error message from an ActionForm to display on the jsp.  Can 
   someone see
   what the heck I'm doing wrong?
   
   struts-config.xml
   
   ?xml version=1.0 encoding=ISO-8859-1?
   !DOCTYPE struts-config PUBLIC -//Apache Software 
   Foundation//DTD Struts
   Configuration 1.1//EN
   http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd;
   
   struts-config
   
 form-beans
 form-bean name=LogonBean
   type=com.labone.LogonBean /
 /form-beans
 
 action-mappings
 action path=/LogonAction
   type=com.labone.LogonAction
 name=LogonBean
 input=/logon.jsp
 scope=request
 validate=true
 forward name=OK  path=/display.jsp /
 forward name=NOK path=/logon.jsp /
 /action
 /action-mappings
 
 message-resources
   parameter=com.labone.Messages.ApplicationResources /
 
   /struts-config
   
   LogonBean.java
   
   package com.labone;
   
   

RE: html:errors/ not displaying message?

2002-08-20 Thread wbchmura


I am not sure how all of that works, but I have a feeling that its okay 
that way.  When I had the problem it was 
showing the same thing.  

Are you ABSOLUTELY sure the properties file is named right and is in 
your classes directory (not in your source if you have one)?  Can you 
put a copy in the classes directory and remove the package off the 
resource tag and try it for hahas.

The only reason I ask is that everytime - EVERYTIME - I have a problem 
with this it turns out to be something stupid I did and am overlooking 
(like a bad filename or putting it somewhere else or a hundred other 
things).





-Original Message-
From: Jerry.Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 3:52 PM
To: struts-user
Subject: RE: html:errors/ not displaying message?


I agree, it appears that the key is not being found.  The ActionForm 
adds
the message like this:

errors.add(userID, new ActionError(error.bad.userid));

In my ApplicationResources.properties, I have 

errors.header=
errors.footer=
errors.prefix=
errors.suffix=

error.bad.userid = Unknown User ID

What concerns(?) me is that the error that is being display has the key
listed as en_US.error.bad.userid.  This indicates to me that it is 
looking
for an ApplicationResources_en.properties - not the default
ApplicationResources.properties  In fact, I think I'll try to add an
'english' version of the file and see what happens.

jerry

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 20, 2002 2:54 PM
 To: [EMAIL PROTECTED]
 Subject: RE: html:errors/ not displaying message?
 
 
 The ?? Show that its not being found - within the ?? is the kjey its 
 looking for...
 
 
 
 
 -Original Message-
 From: kkamholz [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 20, 2002 3:44 PM
 To: struts-user
 Subject: RE: html:errors/ not displaying message?
 
 
 The question marks MIGHT be displayed because you don't have 
 errors.prefix
 or errors.suffix defined.  I think the errors tag uses those 
 when you're
 displaying errors by property.  I'm not sure though, so 
 hopefully one of 
 the
 guru's will chime in and tell us how stupid we are, hahaha.
 
 ~ Keith
 http://www.buffalo.edu/~kkamholz
 
 
 
 -Original Message-
 From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 20, 2002 3:36 PM
 To: 'Struts Users Mailing List'
 Subject: RE: html:errors/ not displaying message?
 
 
 Well, that's just it.  I don't remember either, and can't see 
 to find it 
 in
 the DTD (old age / bad eyes?).  I tried Sri's suggestion of using 
 html:html
 locale=true  but it didn't seem to help (I don't usually use the
 html:html tags).  I mean, this is so basic its embarassing, but I 
 can't
 seem to get the da*n error message to display, at least the 
 way I want 
 it.
 I'm now (still) getting ???en_US.error.bad.userid???  - kinda 
 worthless, 
 ya
 know?
 
 Jerry
 
  -Original Message-
  From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, August 20, 2002 2:29 PM
  To: 'Struts Users Mailing List'
  Subject: RE: html:errors/ not displaying message?
  
  
  Would it go in the message-resources tag in your 
 struts-config.xml?  I
  haven't done it, but i think i remember seeing that on this list.
  
  ~ Keith
  http://www.buffalo.edu/~kkamholz
  
  
  -Original Message-
  From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, August 20, 2002 3:23 PM
  To: 'Struts Users Mailing List'
  Subject: RE: html:errors/ not displaying message?
  
  
  Checked.  it's there.  I seem to remember a post sometime 
  ago about
  having to specify locale= , but can't seem to remember where 
  it needs to be
  coded.  I went to check the archives about an hour ago and 
  couldn't get into
  'em.  Anybody else remember something about this?
  
  Jerry
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, August 20, 2002 2:28 PM
   To: [EMAIL PROTECTED]
   Subject: RE: html:errors/ not displaying message?
   
   
   Could just not be finding your properties file...
   
   Should be in: 
   /classes/com/labone/Messages/ApplicationResources.properties
   
   
   
   -Original Message-
   From: Jerry.Jalenak [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, August 20, 2002 3:02 PM
   To: struts-user
   Subject: RE: html:errors/ not displaying message?
   
   
   OK, should've caught that one.  Also had a finger-check in the 
   ActionForm
   where I'm setting the error message.  Fixed 'em both.  Now 
   I'm getting a
   message on the logon.jsp, but it looks like this:
   
 ???en_US.error.bad.userid??? 
   
   I'm guessing it has something to do with localization?  Ideas? 
   
   Jerry
   
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 

RE: Advice Learning Struts

2002-08-20 Thread wbchmura


Yes, I love this list...

All I did was start small, keep refactoring the first project until you 
have a lot of best practices going, read everything you can find.

of course now there is chucks book on theserverside.com...  Sigh... when 
I was a kid there were no books on struts...
  



-Original Message-
From: James.Thomas [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 4:04 PM
To: struts-user
Cc: struts-user
Subject: Advice Learning Struts



Hi,

This group is very active which is a good thing.  I'd like to 
familiarize
myself with the usage of struts.  I have background in Java and JSP
etc, I also have access to BEA Weblogic 5.1 currently.  Just need a 
tip
as to the best way to get started with them.  Any recommendations for a
site that might have a clear explanation and examples that can be
implemented to give one some hands on.  I know about the main site and 
that
is where I was going to start, but was wondering if anyone knew of 
anything
else besides.  Thanks very much.

Jim Thomas



--
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]




Logging in 1.1b2

2002-08-13 Thread wbchmura


I just dropped in 1.1B2 and all of the sudden things stopped working.  I 
have two apps I tried it with... Both of which were running a nightly 
build from around august 1st.  One of them still works, but the other 
one does not.

I checked the archives and there was a thread discussing having an older 
log4j jar in the lib directory.  I do have one in the webapp that no 
longer works ( for Poolman).  I tried updating to the newest log4j and I 
still have this problem:

Any ideas?

PS. If i drop log4j into the other apps lib directory - it too blows a 
gasket!


2002-08-13 11:43:25 StandardContext[/twizard]: Servlet /twizard threw 
load() exception
javax.servlet.ServletException: Error instantiating servlet class 
org.apache.struts.action.ActionServlet
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:893)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3266)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395
)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at 
org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:23
2)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:155)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.lang.ExceptionInInitializerError: 
org.apache.commons.logging.LogConfigurationException: 
org.apache.commons.logging.LogConfigurationException: 
org.apache.commons.logging.LogConfigurationException: Class 
org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log
at 
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp
l.java:530)
at 
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp
l.java:285)
at 
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp
l.java:255)
at 
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:375)
at 
org.apache.struts.action.ActionServlet.clinit(ActionServlet.java:375)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:884)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3266)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395
)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at 
org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:23
2)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:155)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at 

RE: Logging in 1.1b2 - help me obi-wan

2002-08-13 Thread wbchmura


So pretty much this is the issue... I cannot seem to have log4j loading 
anywhere near my struts app and have it still work.

I need log4j for poolman (I think).  The struts book seems to show log4j 
still co-existing, so I dont understand why this all blow up on me now


-Original Message-
From: Chmura, William B. 
Sent: Tuesday, August 13, 2002 11:53 AM
To: struts-user
Subject: Logging in 1.1b2



I just dropped in 1.1B2 and all of the sudden things stopped working.  I 

have two apps I tried it with... Both of which were running a nightly 
build from around august 1st.  One of them still works, but the other 
one does not.

I checked the archives and there was a thread discussing having an older 

log4j jar in the lib directory.  I do have one in the webapp that no 
longer works ( for Poolman).  I tried updating to the newest log4j and I 

still have this problem:

Any ideas?

PS. If i drop log4j into the other apps lib directory - it too blows a 
gasket!


2002-08-13 11:43:25 StandardContext[/twizard]: Servlet /twizard threw 
load() exception
javax.servlet.ServletException: Error instantiating servlet class 
org.apache.struts.action.ActionServlet
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:893)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3266)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395
)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at 
org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:23
2)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:155)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.lang.ExceptionInInitializerError: 
org.apache.commons.logging.LogConfigurationException: 
org.apache.commons.logging.LogConfigurationException: 
org.apache.commons.logging.LogConfigurationException: Class 
org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log
at 
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp
l.java:530)
at 
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp
l.java:285)
at 
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp
l.java:255)
at 
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:375)
at 
org.apache.struts.action.ActionServlet.clinit(ActionServlet.java:375)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:884)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3266)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395
)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at 
org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:23
2)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:155)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at 

RE: nulls (and only nulls) in html:errors/

2002-08-13 Thread wbchmura


I second the don't let it kill your opinion.  I've had lots of issues in 
this area, but it was always something I was doing wrong and once it was 
fixed it was rock solid

I think I got the nulls once before.  I am not that familiar with the 
1.0x series, so this may not work under that.  Try adding:

The null=false to your message-resource like so:

message-resources parameter=applicationresources null=false/

When you run it see if you get ??keyname.thingee?? on screen.

Lemme know





-Original Message-
From: jsadove [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 12:49 PM
To: struts-user
Subject: RE: nulls (and only nulls) in html:errors/




Keith, Fabio,

Thanks much. I tried adding the errors.footer, errors.header keys but,
unfortunately, it didn't work. (BTW, yes I did bounce Tomcat each time 
and
verify in the log file that the properties file was correctly loaded)

PLEASE, anyone who can give further help. I'm getting deperately 
frustrated and
frustratingly desperate. It seems like such a simple thing, but
fraught with so many problems.

I tried the following variations (complete contents of properties file):

VARIATION 1:
errors.footer=/ulhr
errors.header=h3font color=redValidation Error/font/h3You must 
correct
 the following error
(s) before proceeding:ul
error.applname.required=liApplication Name is required/li
error.appldesc.required=there is nothing here

VARIATION 2:
errors.header=
errors.footer=
error.applname.required=liApplication Name is required/li
error.appldesc.required=there is nothing here


VARIATION 3:
error.applname.required=liApplication Name is required/li
error.appldesc.required=there is nothing here
errors.header=
errors.footer=

I have also been using GLOBAL_ERROR instead of a property name, since 
these
errors should appear at the top of the page and not associated with
any field:
errors.add(ActionErrors.GLOBAL_ERROR, new
ActionError(error.applname.required));





Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] on 08/13/2002 
11:28:29 AM

Please respond to Struts Users Mailing List 
[EMAIL PROTECTED]

To:   'Struts Users Mailing List' [EMAIL PROTECTED]
cc:(bcc: Joseph Sadove/DKBDS USA/DKB)

Subject:  RE: nulls (and only nulls) in html:errors/



Do you have errors.header and errors.footer defined in your properties 
file?

~ Keith
http://www.buffalo.edu/~kkamholz


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 11:27 AM
To: [EMAIL PROTECTED]
Subject: nulls (and only nulls) in html:errors/




I am running 1.02 of Struts on Tomcat 4.04.
I get nulls returned to my JSP when trying to set errors in an 
ActionForm.
I have scoured the mailing lists and have found lots of people getting 
nulls
on
either side of the error strings (apparently a Weblogic thing)
and there are people getting nothing, seemingly no one getting the 
string
null.

I will be vastly grateful to anyone who can help.
(Until this problem, I have thought struts --with Arron Bates nested
extensions-- were right up there next to sliced bread. Please help me
preserve the glow!)
I've appended below all the useful bits of code, I think.

Here are the contents of ApplicationResources.properties file:

error.applname.required=liApplication Name is required/li
error.appldesc.required=there is nothing here

Here are the relevant parts of the struts config file:

BEGIN CODE
  !-- bean definition --
  form-beans
 form-bean name=NewApplicationBean
type=dkb.irmis.struts.beans.NewApplicationBean /

  /form-beans

  !-- forwards --
...
  /global-forwards


  !-- actions --
  action-mappings

action path=/NewApp type=dkb.irmis.struts.actions.NewAppAction
  name=NewApplicationBean
input=/new_application.jsp
  scope=session
  forward name=newappform path=/new_application.jsp/
/action

  /action-mappings
/struts-config
END CODE

And here is the validate method:
BEGIN CODE
 public ActionErrors validate(ActionMapping mapping, 
HttpServletRequest
request) {

  ActionErrors errors = new ActionErrors();

if (addApplications.equals(ADD Applications) ) {
 addApplications = RESET Values;
 for (int i = 0; i  applicationList.size(); i++) {
if (
((NewApplicationObj)applicationList.get(i)).getApplicationDesc().length(
) 
0  )
 {

  if(
((NewApplicationObj)applicationList.get(i)).getApplicationName() == null 
||
((NewApplicationObj)applicationList.get(i)).getApplicationName().length(
) 
1 )
  {

   errors.add(applname, new
ActionError(error.applname.required) );

 }
  }
   }
 }

if ( errors.empty() ) {
return null;
 }
 return errors;

} // end validate
END CODE




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

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

RE: Logging in 1.1b2 - help me obi-wan

2002-08-13 Thread wbchmura


I am not using log4j in my application, but only in poolman (which I 
guess is part of my application after all).  (here comes the famous 
user-whine) But it was working before

The one I got down was the latest stable release of log4j today.

Only Poolman should be doing something with the initialization - there 
is nothing in my servlet (except anything for struts)...  Poolman has 
little in its config file for that...

I hate mondays




-Original Message-
From: chuckcavaness [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 1:00 PM
To: struts-user
Subject: RE: Logging in 1.1b2 - help me obi-wan


I'm surprised that downloading the newest version of 
log4j doesnt' fix your problem. The root cause in your 
stack trace:

[org.apache.commons.logging.impl.Log4JCategoryLog does 
not implement Log]

implies that the version of the log4j installed in your 
web app isnt' the latest. Are you initializing log4j in 
your ActionServlet? If so, try commenting all of that 
out and going with the log4j default initialization. 
This means get the latest and put it into the /lib dir. 
Then create a log4j.properties and discuss in my logging 
chapter. Put that in the /classes directory and see what 
happens.

I'll grab 1.1b2 and test it as well.

Chuck
 
 So pretty much this is the issue... I cannot seem to have log4j 
loading 
 anywhere near my struts app and have it still work.
 
 I need log4j for poolman (I think).  The struts book seems to show 
log4j 
 still co-existing, so I dont understand why this all blow up on me now
 
 
 -Original Message-
 From: Chmura, William B. 
 Sent: Tuesday, August 13, 2002 11:53 AM
 To: struts-user
 Subject: Logging in 1.1b2
 
 
 
 I just dropped in 1.1B2 and all of the sudden things stopped working.  
I 
 
 have two apps I tried it with... Both of which were running a nightly 
 build from around august 1st.  One of them still works, but the other 
 one does not.
 
 I checked the archives and there was a thread discussing having an 
older 
 
 log4j jar in the lib directory.  I do have one in the webapp that no 
 longer works ( for Poolman).  I tried updating to the newest log4j and 
I 
 
 still have this problem:
 
 Any ideas?
 
 PS. If i drop log4j into the other apps lib directory - it too blows a 

 gasket!
 
 
 2002-08-13 11:43:25 StandardContext[/twizard]: Servlet /twizard threw 
 load() exception
 javax.servlet.ServletException: Error instantiating servlet class 
 org.apache.struts.action.ActionServlet
   at 
 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
 a:893)
   at 
 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
   at 
 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
 ava:3266)
   at 
 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395
 )
   at 
 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
   at 
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
   at 
 org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
   at 
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
   at 
 org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
   at 
 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:23
 2)
   at 
 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
 pport.java:155)
   at 
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
   at 
 org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
   at 
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
   at 
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
   at 
 
org.apache.catalina.core.StandardService.start(StandardService.java:388)
   at 
 org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
   at 
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
   at 
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
   at java.lang.reflect.Method.invoke(Native Method)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 - Root Cause -
 java.lang.ExceptionInInitializerError: 
 org.apache.commons.logging.LogConfigurationException: 
 org.apache.commons.logging.LogConfigurationException: 
 org.apache.commons.logging.LogConfigurationException: Class 
 org.apache.commons.logging.impl.Log4JCategoryLog does not implement 
Log
   at 
 
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp
 l.java:530)
   at 
 
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp
 l.java:285)
   at 
 
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp
 l.java:255)
   at 
 

RE: Logging in 1.1b2 - help me obi-wan

2002-08-13 Thread wbchmura


I was thinking that too...

But then I when I was looking at it

 org.apache.commons.logging.impl.Log4JCategoryLog does not implement 
Log
   at 
 
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp
 l.java:530)

Seemed out of place for that to be the problem.  Could it be that the 
commons-logging is detecting the log4j jar file and trying to use that 
instead of the simple logging it comes with?





-Original Message-
From: chuckcavaness [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 1:00 PM
To: struts-user
Subject: RE: Logging in 1.1b2 - help me obi-wan


I'm surprised that downloading the newest version of 
log4j doesnt' fix your problem. The root cause in your 
stack trace:

[org.apache.commons.logging.impl.Log4JCategoryLog does 
not implement Log]

implies that the version of the log4j installed in your 
web app isnt' the latest. Are you initializing log4j in 
your ActionServlet? If so, try commenting all of that 
out and going with the log4j default initialization. 
This means get the latest and put it into the /lib dir. 
Then create a log4j.properties and discuss in my logging 
chapter. Put that in the /classes directory and see what 
happens.

I'll grab 1.1b2 and test it as well.

Chuck
 
 So pretty much this is the issue... I cannot seem to have log4j 
loading 
 anywhere near my struts app and have it still work.
 
 I need log4j for poolman (I think).  The struts book seems to show 
log4j 
 still co-existing, so I dont understand why this all blow up on me now
 
 
 -Original Message-
 From: Chmura, William B. 
 Sent: Tuesday, August 13, 2002 11:53 AM
 To: struts-user
 Subject: Logging in 1.1b2
 
 
 
 I just dropped in 1.1B2 and all of the sudden things stopped working.  
I 
 
 have two apps I tried it with... Both of which were running a nightly 
 build from around august 1st.  One of them still works, but the other 
 one does not.
 
 I checked the archives and there was a thread discussing having an 
older 
 
 log4j jar in the lib directory.  I do have one in the webapp that no 
 longer works ( for Poolman).  I tried updating to the newest log4j and 
I 
 
 still have this problem:
 
 Any ideas?
 
 PS. If i drop log4j into the other apps lib directory - it too blows a 

 gasket!
 
 
 2002-08-13 11:43:25 StandardContext[/twizard]: Servlet /twizard threw 
 load() exception
 javax.servlet.ServletException: Error instantiating servlet class 
 org.apache.struts.action.ActionServlet
   at 
 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
 a:893)
   at 
 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
   at 
 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
 ava:3266)
   at 
 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395
 )
   at 
 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
   at 
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
   at 
 org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
   at 
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
   at 
 org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
   at 
 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:23
 2)
   at 
 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
 pport.java:155)
   at 
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
   at 
 org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
   at 
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
   at 
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
   at 
 
org.apache.catalina.core.StandardService.start(StandardService.java:388)
   at 
 org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
   at 
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
   at 
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
   at java.lang.reflect.Method.invoke(Native Method)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 - Root Cause -
 java.lang.ExceptionInInitializerError: 
 org.apache.commons.logging.LogConfigurationException: 
 org.apache.commons.logging.LogConfigurationException: 
 org.apache.commons.logging.LogConfigurationException: Class 
 org.apache.commons.logging.impl.Log4JCategoryLog does not implement 
Log
   at 
 
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp
 l.java:530)
   at 
 
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp
 l.java:285)
   at 
 
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp
 l.java:255)
   at 
 org.apache.commons.logging.LogFactory.getLog(LogFactory.java:375)
   at 

RE: Logging in 1.1b2 - it was a fix for me

2002-08-13 Thread wbchmura

Well, I added both of those into my web-inf/lib and it all seems to work 
again.

Did you report it as a bug?  If not, I can enter it although it sounds 
like you understand the problem a little better than i do!

thanks!



-Original Message-
From: CHolman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 1:41 PM
To: struts-user
Subject: RE: Logging in 1.1b2


I am using log4j 1.2.4 and had a problem when using the 
logging-commons.jar
in the struts 1.1b2 lib.  I went to the commons site and downloaded the
commons-logging 1.0.1 commons-logging.jar and commons-logging-api.jar 
and
all is back to normal.  Looks like the Log4Jfactory is not in the struts
version.

Cal 

http://www.calandva.com/ 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 11:53
To: [EMAIL PROTECTED]
Subject: Logging in 1.1b2


I just dropped in 1.1B2 and all of the sudden things stopped working.  I
have two apps I tried it with... Both of which were running a nightly
build from around august 1st.  One of them still works, but the other
one does not.

I checked the archives and there was a thread discussing having an older
log4j jar in the lib directory.  I do have one in the webapp that no
longer works ( for Poolman).  I tried updating to the newest log4j and I
still have this problem:

Any ideas?

PS. If i drop log4j into the other apps lib directory - it too blows a
gasket!


2002-08-13 11:43:25 StandardContext[/twizard]: Servlet /twizard threw
load() exception
javax.servlet.ServletException: Error instantiating servlet class
org.apache.struts.action.ActionServlet
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:893)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3266)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395
)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:23
2)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:155)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at 
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at 
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at 
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.lang.ExceptionInInitializerError:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp
l.java:530)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp
l.java:285)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp
l.java:255)
at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:375)
at
org.apache.struts.action.ActionServlet.clinit(ActionServlet.java:375)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:884)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3266)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395
)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
at

RE: Populating select box dynamically

2002-08-13 Thread wbchmura


This came up the past two weeks with some good discussions on it.  

Check the archives... There are a bunch of ways to skin this particular 
cat...

(Maybe I should write a faq on it)




-Original Message-
From: oagady [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 1:43 PM
To: struts-user
Subject: Populating select box dynamically


Hello,

In my html:form I have two select boxes: one with the
list of the countries and another one with the list of
states in a country. When the user selects a country I
have to populate the select box with the states for
this country. The list of states I get from the
database. Could someone recommend me the way how I can
do this dynamically? I can write a javascript (which
will be called when the user selects the country) to
populate the state select box, but how can I get the
list of the states in this script from the database?
Is there any possibility to dynamically get data into
javascript from the database? Or there is another way
to implement those two select boxes? 

Please help.

Thanks 
Olga

__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.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: nulls (and only nulls) in html:errors/

2002-08-13 Thread wbchmura


I played with Struts 1.0 a while ago, then was sidetracked (expresso) 
then came back and jumped into 1.1x full speed.  I could not tell you 
what was supported under the old one (those brain cells have been 
reallocated).

I agree this is probably the best list I have ever been on.  



-Original Message-
From: jsadove [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 2:09 PM
To: struts-user
Subject: RE: nulls (and only nulls) in html:errors/




All,
Boy, what a nice list.
I am not going to get discouraged. Struts is still, in my view, up there 
with
sliced bread. I will keep trying to fix this and then I'll watch these 
lists
like a hawk for anyone with the same problem so I can spare them the 
agony. It's
more painful when you find a problem with something you love. (Am I 
getting
carried away, now?)

Anyway, WB, I think you expect that I have 1.1 running. Correct me if 
I'm wrong,
but I thought the message-resource parm in the config.xml was only good 
in 1.1.
As I mentioned, I am running 1.02. Please let me know I'm probably 
going to
drop this until I can port my (error-message-less) application over to 
1.1b.
(Fortunately, the app is only going to be used in a small technical 
setting, so
I can get away with this.)

Thanks hugely.

P.S.: But keep the help coming. Once I get this solved, I'm almost 
motivated to
write a comprehensive FAQ on the Error/Message processing in Struts. I 
think it
is badly needed.






[EMAIL PROTECTED] on 08/13/2002 01:10:24 PM

Please respond to Struts Users Mailing List 
[EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: Joseph Sadove/DKBDS USA/DKB)

Subject:  RE: nulls (and only nulls) in html:errors/




I second the don't let it kill your opinion.  I've had lots of issues in
this area, but it was always something I was doing wrong and once it was
fixed it was rock solid

I think I got the nulls once before.  I am not that familiar with the
1.0x series, so this may not work under that.  Try adding:

The null=false to your message-resource like so:

message-resources parameter=applicationresources null=false/

When you run it see if you get ??keyname.thingee?? on screen.

Lemme know





-Original Message-
From: jsadove [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 12:49 PM
To: struts-user
Subject: RE: nulls (and only nulls) in html:errors/




Keith, Fabio,

Thanks much. I tried adding the errors.footer, errors.header keys but,
unfortunately, it didn't work. (BTW, yes I did bounce Tomcat each time
and
verify in the log file that the properties file was correctly loaded)

PLEASE, anyone who can give further help. I'm getting deperately
frustrated and
frustratingly desperate. It seems like such a simple thing, but
fraught with so many problems.

I tried the following variations (complete contents of properties file):

VARIATION 1:
errors.footer=/ulhr
errors.header=h3font color=redValidation Error/font/h3You must
correct
 the following error
(s) before proceeding:ul
error.applname.required=liApplication Name is required/li
error.appldesc.required=there is nothing here

VARIATION 2:
errors.header=
errors.footer=
error.applname.required=liApplication Name is required/li
error.appldesc.required=there is nothing here


VARIATION 3:
error.applname.required=liApplication Name is required/li
error.appldesc.required=there is nothing here
errors.header=
errors.footer=

I have also been using GLOBAL_ERROR instead of a property name, since
these
errors should appear at the top of the page and not associated with
any field:
errors.add(ActionErrors.GLOBAL_ERROR, new
ActionError(error.applname.required));





Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] on 08/13/2002
11:28:29 AM

Please respond to Struts Users Mailing List
[EMAIL PROTECTED]

To:   'Struts Users Mailing List' [EMAIL PROTECTED]
cc:(bcc: Joseph Sadove/DKBDS USA/DKB)

Subject:  RE: nulls (and only nulls) in html:errors/



Do you have errors.header and errors.footer defined in your properties
file?

~ Keith
http://www.buffalo.edu/~kkamholz


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 11:27 AM
To: [EMAIL PROTECTED]
Subject: nulls (and only nulls) in html:errors/




I am running 1.02 of Struts on Tomcat 4.04.
I get nulls returned to my JSP when trying to set errors in an
ActionForm.
I have scoured the mailing lists and have found lots of people getting
nulls
on
either side of the error strings (apparently a Weblogic thing)
and there are people getting nothing, seemingly no one getting the
string
null.

I will be vastly grateful to anyone who can help.
(Until this problem, I have thought struts --with Arron Bates nested
extensions-- were right up there next to sliced bread. Please help me
preserve the glow!)
I've appended below all the useful bits of code, I think.

Here are the contents of ApplicationResources.properties file:

error.applname.required=liApplication Name is required/li

RE: Logging in 1.1b2 - it was a fix for me

2002-08-13 Thread wbchmura


Is it a problem with that or with Struts?

All I know is its working here and I am staying home the rest of the 
week!



-Original Message-
From: CHolman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 2:46 PM
To: struts-user
Subject: RE: Logging in 1.1b2 - it was a fix for me


I am not sure how to log a bug - they need to add the current
commons-logging jar(s) to the build.

Cal 

http://www.calandva.com/ 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 14:06
To: [EMAIL PROTECTED]
Subject: RE: Logging in 1.1b2 - it was a fix for me

Well, I added both of those into my web-inf/lib and it all seems to work
again.

Did you report it as a bug?  If not, I can enter it although it sounds
like you understand the problem a little better than i do!

thanks!



-Original Message-
From: CHolman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 1:41 PM
To: struts-user
Subject: RE: Logging in 1.1b2


I am using log4j 1.2.4 and had a problem when using the
logging-commons.jar
in the struts 1.1b2 lib.  I went to the commons site and downloaded the
commons-logging 1.0.1 commons-logging.jar and commons-logging-api.jar
and
all is back to normal.  Looks like the Log4Jfactory is not in the struts
version.

Cal

http://www.calandva.com/

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 11:53
To: [EMAIL PROTECTED]
Subject: Logging in 1.1b2


I just dropped in 1.1B2 and all of the sudden things stopped working.  I
have two apps I tried it with... Both of which were running a nightly
build from around august 1st.  One of them still works, but the other
one does not.

I checked the archives and there was a thread discussing having an older
log4j jar in the lib directory.  I do have one in the webapp that no
longer works ( for Poolman).  I tried updating to the newest log4j and I
still have this problem:

Any ideas?

PS. If i drop log4j into the other apps lib directory - it too blows a
gasket!


2002-08-13 11:43:25 StandardContext[/twizard]: Servlet /twizard threw
load() exception
javax.servlet.ServletException: Error instantiating servlet class
org.apache.struts.action.ActionServlet
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:893)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3266)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395
)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:23
2)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:155)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.lang.ExceptionInInitializerError:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp
l.java:530)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp
l.java:285)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp
l.java:255)
at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:375)
at
org.apache.struts.action.ActionServlet.clinit(ActionServlet.java:375)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:884)
  

RE: App will hang if it runs over night

2002-08-12 Thread wbchmura


Thanks!  I've been doing the same thing... It sure looked right...

If I get a chance I will look into the source and see why it would not 
work this way...




-Original Message-
From: janof [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 7:23 AM
Cc: struts-user
Subject: Re: App will hang if it runs over night


Thanks,

it works for me now too, although it's the syntax that I wouldn't 
expect, since I thought that this is the right way :

set-property property=autoReconnect value=true/

Jf

Billy Ng wrote:
 The problem is totally gone after I added the autoReconnect parameter  

 in the mysql's url.  Here is the example
 
 data-sources
  data-source autoCommit=false
   description=Example Data
   driverClass=org.gjt.mm.mysql.Driver
   maxCount=4
   minCount=2
   user=ie
   password=foobar
   
url=jdbc:mysql://localhost:3306/ieDB?autoReconnect=true/
 /data-sources
 
 
 Billy Ng
 
 From: [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List 
[EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: App will hang if it runs over night
 Date: Fri, 9 Aug 2002 09:28:29 -0400


 Hey,

 I am having the same problem and tried the same solution to no 
effect.
 I've upgraded to the newest stable release of MM.Mysql and that did 
not
 help.

 I am fairly confident that it is a connection timing out, but the
 autoReconnect has not helped at all.

 I put the autoreconnect in a set-property property=autoReconnect
 value=true/

 After awhile, I get a communications link failure...





 -Original Message-
 From: janof [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 09, 2002 8:05 AM
 To: struts-user
 Cc: Stephen.Chambers; nuil
 Subject: Re: App will hang if it runs over night


 Billy, Edwin, Steve or anybody else:

 Where do I put this parameter (autoReconnect) in struts-config.xml ? 
Can

 you give me an example ? It doesn't seem to work for me.

 Thanks.

 Jano

 Billy Ng wrote:
  Thanks!
 
  Billy Ng
 
  From: E.M. van Nuil [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Subject: Re: App will hang if it runs over night
  Date: Wed, 07 Aug 2002 15:48:27 +0200
 
  Thanks,
 
  This seems to be the solution to my problem. I just looked at the
 site of
  the mm.mysql driver and the author writes :
  MySQL closes connections after idle times. Your connection pool
 needs to
  refresh connections, or (with a performance penalty), you can 
add
  autoReconnect=true to your JDBC URL. This is covered in the
  documentation
  with the latest driver versions.
 
  Is there a way to refresh connections in the connection pool of
 struts ??
  I'll just use the autoReconnect for now.
 
  Edwin
 
  [EMAIL PROTECTED] wrote:
 
  
   I had this before. You need to set autoReconnect=true within 
your
   connection url for the mysql driver. Do a google to do a search 
on
 the
   exact syntax or you can look on the mysql site.
  
   Steve
  
  
  
  
   E.M. van
   NuilTo: Struts Users
  Mailing List
   [EMAIL PROTECTED]
   nuil@oblivion   cc:
   .nl Subject: Re: App 
will
  hang if
   it runs over night
  
   08/07/2002
   08:13 AM
   Please respond
   to Struts
   Users Mailing
   List
  
  
  
  
  
  
   This looks like the same problem I'm having. I posted this a few
  days ago,
   but still no response. I mailed Craig my trace dumps and he is
  looking at
   the problem. But I hadn't thought the problem was with the MySQL
 driver
   but
  
   with my beans.
   Can you give some more info ?
  
   Edwin
  
   Billy Ng wrote:
  
   My app will be unable to access the mysql database if I leave 
it
 on
  over
   night.  I cannot even shut Struts down when this happens.  Did
 anybody
   experience this before?
  
   Thanks!
  
   Billy Ng
  
  
   --
   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]
 
 
 
 
 
  _
  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]



 -- 
 To unsubscribe, e-mail:   
 mailto:[EMAIL 

RE: Does anyone know when next Struts1.1B Next Release???

2002-08-09 Thread wbchmura

I'm still on a nightly build from about a week ago, but I will update.

Fortunately I have three apps in development so i can just keep dropping 
a newer nightly build in and seeing what happens!



-Original Message-
From: craigmcc [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 08, 2002 8:44 PM
To: struts-user
Subject: RE: Does anyone know when next Struts1.1B Next Release???




On Thu, 8 Aug 2002, Martin Cooper wrote:

 Date: Thu, 8 Aug 2002 17:42:42 -0700
 From: Martin Cooper [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: RE: Does anyone know when next Struts1.1B Next Release???



  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, August 08, 2002 8:38 AM
  To: [EMAIL PROTECTED]
  Subject: RE: Does anyone know when next Struts1.1B Next Release???
 
 
 
  Oh boy here we go again...  :)
 
  I don't know when, but someone committed an update to CVS last night
  updating the release plan for 1.1b2 so it must be soon

 That someone would be me. :-) The release plan calls for Beta 2 to 
happen in
 a matter of days. As for 1.1 Final, that's still anyone's guess at 
this
 point.


But the more people that download and test recent nightly builds (and 
the
beta 2 build when it comes out), and report bugs, the faster we'll all 
get
there.

 --
 Martin Cooper


Craig



 
 
 
 
 
  -Original Message-
  From: brun1232001 [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, August 08, 2002 11:28 AM
  To: struts-user
  Subject: Does anyone know when next Struts1.1B Next Release???
 
 
  Does anyone know when the next 1.1 Beta release is
  expected?
 
  Thanks,
  Tom
 
  __
  Do You Yahoo!?
  HotJobs - Search Thousands of New Jobs
  http://www.hotjobs.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]



 --
 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: App will hang if it runs over night

2002-08-09 Thread wbchmura


Hey,

I am having the same problem and tried the same solution to no effect.  
I've upgraded to the newest stable release of MM.Mysql and that did not 
help.

I am fairly confident that it is a connection timing out, but the 
autoReconnect has not helped at all.

I put the autoreconnect in a set-property property=autoReconnect 
value=true/

After awhile, I get a communications link failure...





-Original Message-
From: janof [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 8:05 AM
To: struts-user
Cc: Stephen.Chambers; nuil
Subject: Re: App will hang if it runs over night


Billy, Edwin, Steve or anybody else:

Where do I put this parameter (autoReconnect) in struts-config.xml ? Can 

you give me an example ? It doesn't seem to work for me.

Thanks.

Jano

Billy Ng wrote:
 Thanks!
 
 Billy Ng
 
 From: E.M. van Nuil [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List 
[EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: App will hang if it runs over night
 Date: Wed, 07 Aug 2002 15:48:27 +0200

 Thanks,

 This seems to be the solution to my problem. I just looked at the 
site of
 the mm.mysql driver and the author writes :
 MySQL closes connections after idle times. Your connection pool 
needs to
 refresh connections, or (with a performance penalty), you can add
 autoReconnect=true to your JDBC URL. This is covered in the 
 documentation
 with the latest driver versions.

 Is there a way to refresh connections in the connection pool of 
struts ??
 I'll just use the autoReconnect for now.

 Edwin

 [EMAIL PROTECTED] wrote:

 
  I had this before. You need to set autoReconnect=true within your
  connection url for the mysql driver. Do a google to do a search on 
the
  exact syntax or you can look on the mysql site.
 
  Steve
 
 
 
 
  E.M. van
  NuilTo: Struts Users 
 Mailing List
  [EMAIL PROTECTED]
  nuil@oblivion   cc:
  .nl Subject: Re: App will 
 hang if
  it runs over night
 
  08/07/2002
  08:13 AM
  Please respond
  to Struts
  Users Mailing
  List
 
 
 
 
 
 
  This looks like the same problem I'm having. I posted this a few 
 days ago,
  but still no response. I mailed Craig my trace dumps and he is 
 looking at
  the problem. But I hadn't thought the problem was with the MySQL 
driver
  but
 
  with my beans.
  Can you give some more info ?
 
  Edwin
 
  Billy Ng wrote:
 
  My app will be unable to access the mysql database if I leave it 
on 
 over
  night.  I cannot even shut Struts down when this happens.  Did 
anybody
  experience this before?
 
  Thanks!
 
  Billy Ng
 
 
  --
  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]
 
 
 
 
 
 _
 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]



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




RE: App will hang if it runs over night

2002-08-09 Thread wbchmura


I just implemented poolman on a struts application.  It took me about 20 
minutes to integrate it into an existing app and it really worked well.  
It does caching which was something I was looking for.



-Original Message-
From: janof [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 8:50 AM
To: struts-user
Subject: Re: App will hang if it runs over night


:((

Same here. I guess I'll have to build my own connection pooling or use 
something I find on the net.

Also I was wondering if PostgreSQL is having the same problem, any idea 
? Maybe it's worth changing Db platforms.

Jano

[EMAIL PROTECTED] wrote:
 Hey,
 
 I am having the same problem and tried the same solution to no effect. 
 
 I've upgraded to the newest stable release of MM.Mysql and that did 
not 
 help.
 
 I am fairly confident that it is a connection timing out, but the 
 autoReconnect has not helped at all.
 
 I put the autoreconnect in a set-property property=autoReconnect 
 value=true/
 
 After awhile, I get a communications link failure...
 
 
 
 
 
 -Original Message-
 From: janof [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 09, 2002 8:05 AM
 To: struts-user
 Cc: Stephen.Chambers; nuil
 Subject: Re: App will hang if it runs over night
 
 
 Billy, Edwin, Steve or anybody else:
 
 Where do I put this parameter (autoReconnect) in struts-config.xml ? 
Can 
 
 you give me an example ? It doesn't seem to work for me.
 
 Thanks.
 
 Jano
 
 Billy Ng wrote:
 
Thanks!

Billy Ng


From: E.M. van Nuil [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List 

 [EMAIL PROTECTED]
 
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: App will hang if it runs over night
Date: Wed, 07 Aug 2002 15:48:27 +0200

Thanks,

This seems to be the solution to my problem. I just looked at the 

 site of
 
the mm.mysql driver and the author writes :
MySQL closes connections after idle times. Your connection pool 

 needs to
 
refresh connections, or (with a performance penalty), you can add
autoReconnect=true to your JDBC URL. This is covered in the 
documentation
with the latest driver versions.

Is there a way to refresh connections in the connection pool of 

 struts ??
 
I'll just use the autoReconnect for now.

Edwin

[EMAIL PROTECTED] wrote:


I had this before. You need to set autoReconnect=true within your
connection url for the mysql driver. Do a google to do a search on 

 the
 
exact syntax or you can look on the mysql site.

Steve




E.M. van
NuilTo: Struts Users 

Mailing List

[EMAIL PROTECTED]
nuil@oblivion   cc:
.nl Subject: Re: App will 

hang if

it runs over night

08/07/2002
08:13 AM
Please respond
to Struts
Users Mailing
List






This looks like the same problem I'm having. I posted this a few 

days ago,

but still no response. I mailed Craig my trace dumps and he is 

looking at

the problem. But I hadn't thought the problem was with the MySQL 

 driver
 
but

with my beans.
Can you give some more info ?

Edwin

Billy Ng wrote:


My app will be unable to access the mysql database if I leave it 

 on 
 
over

night.  I cannot even shut Struts down when this happens.  Did 

 anybody
 
experience this before?

Thanks!

Billy Ng


--
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]





_
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]
 
 
 
 --
 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: Newbie question on displaying lists

2002-08-09 Thread wbchmura


its created automatically and passed to your action.

There should be a big hubbub in the archives on this topic.  I know we 
talked about it alot a few weeks ago...




-Original Message-
From: ray.offiah [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 11:28 AM
To: struts-user
Subject: Re: Newbie question on displaying lists


Thanks ... I think option 1 is my best bet.

But in the struts-config, how do I define the corresponding ActionForm; 
since I won't be submitting any information, do I really need to define 
one 
for this page?

At 09:32 09/08/2002 -0500, you wrote:

Couple of ways I have handled this...

1) Don't go to a page directly (*.jsp), go to an Action (*.do) first to
prep the form and put it in whatever scope you have it configured for
(request, session, etc).  Some people don't care for these preparing
actions, though.  Like any design you have to balance the pros and 
cons.

2) The form could directly call your business layer to get the data.  I
don't really like this, but have done it for short, static lists 
before.

There are probably other ways, I'm sure others have used different 
methods.

Tim





 

 Ray 

 ray_offiah@ya 

 hoo.co.uk 

 

 08/09/2002 

 09:09 AM   To: 
 [EMAIL PROTECTED] 

 Please respond 
 cc: 

 to 
 Struts 

 Users 
 Mailing 

 List 

   Subject: Newbie question 
on 
 displaying lists
 




Caterpillar: Confidential Green  Retain Until: 09/08/2002
  Retention Category:  G90 -
  Information and Reports




Hello there  :-)

I'm playing around with struts at the moment (very impressive work), 
but I
seem to have got myself into a little trouble.

I'm writing a web application, that lists the contents of a database 
table
as soon as you hit the page.

Now so far, I've been working on just submitting forms, which seems to 
be
Ok.

But what is the approach, if I have to retrieve information and display 
it
*before* anything gets submitted?

Do I build my display page as a form; how do I populate it before
submission?

If someone could point me in the right direction, that would be great.

Thanks in advance:-)

Ray


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.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]


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.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: Struts Persistence

2002-08-09 Thread wbchmura

U - I remember that tape drive...  (Did the Vic20 have one also?  I 
had one on the C-64).

Damn I feel old now...

My first ten mb hard drive was years later...



-Original Message-
From: Simon.Chappell [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 12:49 PM
To: struts-user
Subject: RE: Struts  Persistence


My first four computers did not have hard drives. My first two didn't 
even have floppy drives, you had to save and load from audio tape!

I think that computer number 5 had a 40Mb HDD. Computer number 6 is now 
gone and I don't remember any of the specs. Computer number 7 had a 4Gb 
HDD and now number 8 has a 60Gb HDD (it also has 1.5Gb of RAM, but I 
digress! :-).

Simon

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


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 11:24 AM
To: Struts Users Mailing List
Subject: RE: Struts  Persistence




On Fri, 9 Aug 2002, James Mitchell wrote:

 Date: Fri, 9 Aug 2002 11:43:58 -0400
 From: James Mitchell [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: RE: Struts  Persistence

 HAHAHAYes, and that's fine if you're not trying to backup 17
 Gigsheesh.


Friday Alert

I'm old enough to remember being absolutely giddy over the
amount of space available on my first hard disk drive -- ten whole
*mega*bytes!  Whatever would I do with all of that space?

/Friday Alert

Craig


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




  -Original Message-
  From: Eddie Bush [mailto:[EMAIL PROTECTED]]
  Sent: Friday, August 09, 2002 11:37 AM
  To: Struts Users Mailing List
  Subject: Re: Struts  Persistence
 
 
  James Mitchell wrote:
 
  (James) Get that Linux box up?!  :-)
  
  LOL..no I started consolidating my Laptop HD and noticed
  that I didn't
  have enough room on my file server to backup what I had.  
So I'll have to
  either get another 80 Gig or take the time to go through and
  delete all that
  Free Software I seem to keep collecting.
  
  Hey, I wonder what 'format c:\' does.  Oh SHI#!!!  
STOP STOP STO
  
  Ever heard of CD-R/CD-RW?  They really are quite handy :-)  ... and
  CD-R/Ws (disks and writers too) are really quite cheap!
 
 
 
  --
  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: Struts Persistence

2002-08-09 Thread wbchmura

2400 baud!  Consider yourself lucky...  I started on 300...





-Original Message-
From: stu.strutsusers [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 1:48 PM
To: struts-user
Subject: RE: Struts  Persistence


On Fri, 9 Aug 2002, Chappell, Simon P wrote:

I didn't use computers for much (or owned one myself) until I got to
college, so my first had about 250Mb HDD and 8Mb of RAM. I do remember
when I got my first 1 Gb drive. Now I have 1 Gb of RAM.

I remember the first time I got to dial-in. It was a 2400 baud 
connection.
Type, wait wait wait... Type, wait wait wait ...




-- stu: www.stuology.net
It just no longer is plain simple safe fun
when it's the psycho chimp that has the ray gun

Stuology -- A million monkeys can't be wrong

 My first four computers did not have hard drives. My first two didn't
 even have floppy drives, you had to save and load from audio tape!

 I think that computer number 5 had a 40Mb HDD. Computer number 6 is 
now
 gone and I don't remember any of the specs. Computer number 7 had a 
4Gb
 HDD and now number 8 has a 60Gb HDD (it also has 1.5Gb of RAM, but I
 digress! :-).

 Simon

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


 
 Friday Alert
 
 I'm old enough to remember being absolutely giddy over the
 amount of space available on my first hard disk drive -- ten whole
 *mega*bytes!  Whatever would I do with all of that space?
 
 /Friday Alert
 
 Craig
 
 



--
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 Persistence

2002-08-09 Thread wbchmura


Absolutely nothing


-Original Message-
From: dhill [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 1:54 PM
To: struts-user
Subject: RE: Struts  Persistence


No offence .. but what does this thread have to do with Struts?

-Original Message-
From: Melissa L Kelley [mailto:[EMAIL PROTECTED]]
Sent: August 9, 2002 1:48 PM
To: Struts Users Mailing List
Subject: RE: Struts  Persistence


On Fri, 9 Aug 2002, Chappell, Simon P wrote:

I didn't use computers for much (or owned one myself) until I got to
college, so my first had about 250Mb HDD and 8Mb of RAM. I do remember
when I got my first 1 Gb drive. Now I have 1 Gb of RAM.

I remember the first time I got to dial-in. It was a 2400 baud 
connection.
Type, wait wait wait... Type, wait wait wait ...




-- stu: www.stuology.net
It just no longer is plain simple safe fun
when it's the psycho chimp that has the ray gun

Stuology -- A million monkeys can't be wrong

 My first four computers did not have hard drives. My first two didn't
 even have floppy drives, you had to save and load from audio tape!

 I think that computer number 5 had a 40Mb HDD. Computer number 6 is 
now
 gone and I don't remember any of the specs. Computer number 7 had a 
4Gb
 HDD and now number 8 has a 60Gb HDD (it also has 1.5Gb of RAM, but I
 digress! :-).

 Simon

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


 
 Friday Alert
 
 I'm old enough to remember being absolutely giddy over the
 amount of space available on my first hard disk drive -- ten whole
 *mega*bytes!  Whatever would I do with all of that space?
 
 /Friday Alert
 
 Craig
 
 



--
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: Struts Persistence

2002-08-09 Thread wbchmura


Cool - I am starting to feel younger again...

Thanks Martin!


-Original Message-
From: martin.cooper [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 4:17 PM
To: struts-user
Subject: RE: Struts  Persistence


Whoa, this thread is making me feel sooo old!

In my first job, I had to write the code on coding sheets, which were 
then
given to a pool of drones who turned the code into punched cards. The 
boxes
of cards would then go to the sysops, who would eventually find time to 
feed
them into an ICL mainframe. Then I got back a code listing with all my
compilation errors. Once I'd finally got the code to run, the usual 
early
results were a two inch thick core dump. Talk about a long 
edit-compile-run
cycle!

But things improved when I went back to uni and got to play with a 
DEC-10
which actually had - gasp! - terminals. Anyone remember VTeco? BCPL on a
36-bit machine - those were the days.

--
Martin Cooper


 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 09, 2002 11:36 AM
 To: Struts Users Mailing List
 Subject: RE: Struts  Persistence
 
 
 
 
 On Fri, 9 Aug 2002, Chappell, Simon P wrote:
 
  Date: Fri, 9 Aug 2002 11:49:28 -0500
  From: Chappell, Simon P [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Subject: RE: Struts  Persistence
 
  My first four computers did not have hard drives. My first 
 two didn't
  even have floppy drives, you had to save and load from 
 audio tape!
 
 
 Those were the days ... I remember toggling the 30-step bootstrap code
 into a PDP-8 (a 12-bit computer, forsooth!) using the front panel
 switches ...  :-)
 
 Of course, that particular machine was actually pretty cool 
 for its day --
 it had DecTapes on it, which had addressible segments like a 
 disk.  The
 random access seek times were measured in minutes instead of 
 milliseconds,
 but what the hey ...
 
 Craig
 
  I think that computer number 5 had a 40Mb HDD. Computer 
 number 6 is now
  gone and I don't remember any of the specs. Computer number 
 7 had a 4Gb
  HDD and now number 8 has a 60Gb HDD (it also has 1.5Gb of RAM, but I
  digress! :-).
 
  Simon
 
  -
  Simon P. Chappell [EMAIL PROTECTED]
  Java Programming Specialist  www.landsend.com
  Lands' End, Inc.   (608) 935-4526
 
 
  -Original Message-
  From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
  Sent: Friday, August 09, 2002 11:24 AM
  To: Struts Users Mailing List
  Subject: RE: Struts  Persistence
  
  
  
  
  On Fri, 9 Aug 2002, James Mitchell wrote:
  
   Date: Fri, 9 Aug 2002 11:43:58 -0400
   From: James Mitchell [EMAIL PROTECTED]
   Reply-To: Struts Users Mailing List 
 [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Subject: RE: Struts  Persistence
  
   HAHAHAYes, and that's fine if you're not trying to backup 17
   Gigsheesh.
  
  
  Friday Alert
  
  I'm old enough to remember being absolutely giddy over the
  amount of space available on my first hard disk drive -- ten whole
  *mega*bytes!  Whatever would I do with all of that space?
  
  /Friday Alert
  
  Craig
  
  
   James Sasquatch on crack Mitchell
   Software Engineer\Struts Evangelist
   Struts-Atlanta, the Open Minded Developer Network
   http://www.open-tools.org/struts-atlanta
  
  
  
  
-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 11:37 AM
To: Struts Users Mailing List
Subject: Re: Struts  Persistence
   
   
James Mitchell wrote:
   
(James) Get that Linux box up?!  :-)

LOL..no I started consolidating my Laptop HD and noticed
that I didn't
have enough room on my file server to backup what I had.
  So I'll have to
either get another 80 Gig or take the time to go through and
delete all that
Free Software I seem to keep collecting.

Hey, I wonder what 'format c:\' does.  Oh SHI#!!!
  STOP STOP STO

Ever heard of CD-R/CD-RW?  They really are quite handy 
 :-)  ... and
CD-R/Ws (disks and writers too) are really quite cheap!
   
   
   
--
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]



--
To unsubscribe, e-mail:   

RE: prevent of generating validation errors, when using form the first time

2002-08-02 Thread wbchmura


I like this idea... Elegant simplicity...

In a few of my cases however I need to populate select boxes from a DB..



-Original Message-
From: kkamholz [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 8:39 AM
To: struts-user
Subject: RE: prevent of generating validation errors, when using form
the first time


I'm not sure if this is frowned upon, but I just have a link straight to 
my
JSP.  I don't go through an action unless I have to.  Why make the
application do the extra work?

~ Keith
http://www.buffalo.edu/~kkamholz



-Original Message-
From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 12:10 AM
To: [EMAIL PROTECTED]
Subject: Re: prevent of generating validation errors, when using form
the first time


Subject: Re: prevent of generating validation errors, when using form 
the
first time
From: Selvamohan Neethiraj [EMAIL PROTECTED]
 ===
I just got into this mailing list. But, I see this question pop-up many
times and I really did not see this as an issue.

The Action is invoked only when the corresponding HTML form is submitted 
to
the Controller Servlet.  The first time, when the HTML (or JSP) is 
displayed
to the user via HTML, I am assuming that you have forwarded from a 
previous
action. If your previous action had passed the control to the current 
HTML,
the ActionForm associated with the HTML (or JSP) should never get 
invoked.

Isn't this correct ?

Thanks,
Selva-

Selvamohan Neethiraj
Senior Software Engineer,
TEOCO, Fairfax, VA 20165



Albrecht Berger [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 Hello,
 how can I prevent that errors are generated by my validator when a 
form
 is displayed the first time ?

 Thx berger



 --
 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: prevent of generating validation errors, when using form the first time

2002-08-02 Thread wbchmura


The FormBean is created when the action expecting it is called.  It does 
not matter if it was called from a form or not.

In some of my cases I call the action directly so that it can populate a 
select box before showing the form.



-Original Message-
From: struts [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 12:10 AM
To: struts-user
Subject: Re: prevent of generating validation errors, when using form
the first time


Subject: Re: prevent of generating validation errors, when using form 
the first time
From: Selvamohan Neethiraj [EMAIL PROTECTED]
 ===
I just got into this mailing list. But, I see this question pop-up many
times and I really did not see this as an issue.

The Action is invoked only when the corresponding HTML form is submitted 
to
the Controller Servlet.  The first time, when the HTML (or JSP) is 
displayed
to the user via HTML, I am assuming that you have forwarded from a 
previous
action. If your previous action had passed the control to the current 
HTML,
the ActionForm associated with the HTML (or JSP) should never get 
invoked.

Isn't this correct ?

Thanks,
Selva-

Selvamohan Neethiraj
Senior Software Engineer,
TEOCO, Fairfax, VA 20165



Albrecht Berger [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 Hello,
 how can I prevent that errors are generated by my validator when a 
form
 is displayed the first time ?

 Thx berger



 --
 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: prevent of generating validation errors, when using form the first time

2002-08-02 Thread wbchmura


#1 is not that bad, and in a little of ways easier and less error-prone 
that the second.  All in all I am still undecided.




-Original Message-
From: berger1517 [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 5:21 PM
To: struts-user
Subject: Re: prevent of generating validation errors, when using form
the first time


 I've done this two ways:

 #1 - Have two action definitions that point at the same ActionObject.

 addNewCustomer.do
 submitNewCustomer.do

hmm I don't like this one, I don't want to have duplicate definitions in 
my
config.

 #2 - Make the validate() method figure out if its an initial display.
 Have a hidden field in your form that it can check to see if it is
 populated.  If not, skip the rest of the validation and dont give any
 errors.

I was thinking of #2, too.
This is a way which would solve the problem, but
it isn't very elegant.
But if there is no other way, I have to do it like that.

Thx
berger



--
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: web app sub-directories

2002-08-02 Thread wbchmura

As a complete aside...

It has been suggested to me to break them up into display types (I am 
not sure what to call them, this is the best I can come up with on 0.5 
cups of coffee).

Basically...  /jsp/html, /jsp/wml, /jsp/xml

Of course if your just doing html you dont need to do this...


-Original Message-
From: tom.lister [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 4:51 AM
To: struts-user
Subject: web app sub-directories


Hi
when building the root jsp directory is ti best to have all pages in one
directory or to put them into sub-directories according to functions 
(e.g.
/staticdata, /audit etc.). The reason for asking in that in using
subdirectories the actions seem to take the context of the last page.


:-)
Tom Lister
* 020 7612 3030
* [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]



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




RE: iterate tag

2002-08-02 Thread wbchmura


I dont think so, but what are you trying to do specifically... There are 
a few pager taglibs and one that does grouping also...



-Original Message-
From: sr.2002g [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 8:47 AM
To: struts-user
Subject: iterate tag


Hello,


Is there a way to break out of the iterate tag?? something like the 
break in the for loop?

Thanks,
Sanjana


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




RE: iterate tag

2002-08-02 Thread wbchmura


If you were to do that, why bother bringing the data back in the first 
place?  Filter it out at the database level...

Maybe Sanjana will tell us when he drops by...


-Original Message-
From: kkamholz [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 10:40 AM
To: struts-user
Subject: RE: iterate tag


The only thing I can think of is extending/modifying the iterate tag to
create a pretty unflexible break condition.  Maybe you could add a 
'break'
attribute, and if the next element of the iteration is equal to the 
value
specified in the 'break' attribute, the iteration is stopped.  This 
seems
like it could work, but might be more trouble than it's worth.

~ Keith
http://www.buffalo.edu/~kkamholz



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 10:09 AM
To: [EMAIL PROTECTED]
Subject: RE: iterate tag



I dont think so, but what are you trying to do specifically... There are 

a few pager taglibs and one that does grouping also...



-Original Message-
From: sr.2002g [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 8:47 AM
To: struts-user
Subject: iterate tag


Hello,


Is there a way to break out of the iterate tag?? something like the 
break in the for loop?

Thanks,
Sanjana


--
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: iterate tag

2002-08-02 Thread wbchmura


Yeah, I can think of a few also... It was more for Sanjana's benefit as 
a suggestion...

I think I will leave at noon today...



-Original Message-
From: kkamholz [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 11:01 AM
To: struts-user
Subject: RE: iterate tag


It was just a thought, the only thing that came to mind.  I'm not sure 
what
you mean by filtering it out at the database level though.  There are 
lost
of iteration situations that are independent of database operations 
where it
could be useful, I think.

~ Keith
http://www.buffalo.edu/~kkamholz



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 11:04 AM
To: [EMAIL PROTECTED]
Subject: RE: iterate tag



If you were to do that, why bother bringing the data back in the first 
place?  Filter it out at the database level...

Maybe Sanjana will tell us when he drops by...


-Original Message-
From: kkamholz [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 10:40 AM
To: struts-user
Subject: RE: iterate tag


The only thing I can think of is extending/modifying the iterate tag to
create a pretty unflexible break condition.  Maybe you could add a 
'break'
attribute, and if the next element of the iteration is equal to the 
value
specified in the 'break' attribute, the iteration is stopped.  This 
seems
like it could work, but might be more trouble than it's worth.

~ Keith
http://www.buffalo.edu/~kkamholz



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 10:09 AM
To: [EMAIL PROTECTED]
Subject: RE: iterate tag



I dont think so, but what are you trying to do specifically... There are 


a few pager taglibs and one that does grouping also...



-Original Message-
From: sr.2002g [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 8:47 AM
To: struts-user
Subject: iterate tag


Hello,


Is there a way to break out of the iterate tag?? something like the 
break in the for loop?

Thanks,
Sanjana


--
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: Forwards in strugs-config.xml

2002-08-02 Thread wbchmura


Is the gforward= valid?  I always thought that you called global 
forwards from you actions and you did not specify them in your action 
config part thingee...




-Original Message-
From: AKulp [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 11:32 AM
To: struts-user
Subject: Forwards in strugs-config.xml


I'm afraid I can see the answer, but wanted to be sure.  In the
strugs-config.xml you can specify global-fowards.  This seems like a 
great
way to set a logical name for the view resources.  Unfortunately it is
rather redundant to define logon as /logon.jsp in global-forwards, 
just
to redefine it as success in a mapping for /logoff later on.  It would 
be
nice to be able to make action forwards be relative to an 
already-defined
global forward.  I hope this is making sense!

For example (hypothetical):

global-forwards
forward name=logon path=/logon.jsp/
forward name=home path=/index.jsp/
/global-forwards

action
path=/logoff
type=com.carefinder.action.LogoffAction
forward name=success gforward=logon/
/action

In this case, specifying a gforward of success in the Action Servlet,
would resolve to the global-forward defined for logon which would be
/logon.jsp.  Otherwise later when I put my JSP's into my WEB-INF 
folder, I
need to remember to change it in the global-forward and all action 
forwards
that use them.  Is this already possible in some creative (or directly
supported) way?  Is this just not a good idea for some reason I'm not
thinking of?  Any comments appreciated (well friendly ones anyway...  
;-) )!

Thanks!
-Arian

Arian Kulp
Java Developer
AEGON Financial Partners
[EMAIL PROTECTED]
319.298.4117




--
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: iterate tag

2002-08-02 Thread wbchmura


If you have to show all the states, the Display Tag library will let you 
group...


New YorkType1   Projectname 1
Projectname 2
projectname 3
Type2   Projectname 1
Projectname 2
Vermont Type1   Projectname 1

etc.etc



-Original Message-
From: sr.2002g [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 11:32 AM
To: struts-user
Subject: Re: iterate tag


Sorry for the late reply... got pulled into a meeting I guess I 
should
explain what i am trying to do

I have an ArrayList that I am using to populate the List page. The 
ArrayList
contains projects based on type for every state. I need to iterate 
through
the list and display it in such a way so that for every state I display 
the
state name once and then multiple rows for every project in that state 
for
eg

state1 type1detail1
   detail2
   type2detail3
state2  type1 detail1

to achieve this, i have another arraylist that contains all the states.I
iterate through this state arraylist and if the state name in the 
project
arraylist matches the state name in the state arraylist I dont display 
the
state name again.

I am using the logic:iterate and logic:match tags to get this for now. 
What
I was wondering was, if there is an easy way to break out of the iterate 
if
the state doesnt match without using the match tag

I guess there isnt unless I write my own tag and it seems like it is 
more
trouble than it is worth

- Original Message -
From: Rajesh Kalluri [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, August 02, 2002 11:15 AM
Subject: RE: iterate tag


 Hi Sanjana,

 Does breaking out of logic:iterate tag mean you only want to print a
portion
 of what you have in your collection
 based on some condition.

 If that is the case after you filter out the result set as much as you 
can
 on the database level, you can use logic:equal or logic:match and such
tags
 to spit out only what you need inside the logic:iterate tag.

 HTH
 Rajesh

 -Original Message-
 From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 02, 2002 11:01 AM
 To: 'Struts Users Mailing List'
 Subject: RE: iterate tag


 It was just a thought, the only thing that came to mind.  I'm not sure
what
 you mean by filtering it out at the database level though.  There are 
lost
 of iteration situations that are independent of database operations 
where
it
 could be useful, I think.

 ~ Keith
 http://www.buffalo.edu/~kkamholz



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 02, 2002 11:04 AM
 To: [EMAIL PROTECTED]
 Subject: RE: iterate tag



 If you were to do that, why bother bringing the data back in the first
 place?  Filter it out at the database level...

 Maybe Sanjana will tell us when he drops by...


 -Original Message-
 From: kkamholz [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 02, 2002 10:40 AM
 To: struts-user
 Subject: RE: iterate tag


 The only thing I can think of is extending/modifying the iterate tag 
to
 create a pretty unflexible break condition.  Maybe you could add a
 'break'
 attribute, and if the next element of the iteration is equal to the
 value
 specified in the 'break' attribute, the iteration is stopped.  This
 seems
 like it could work, but might be more trouble than it's worth.

 ~ Keith
 http://www.buffalo.edu/~kkamholz



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 02, 2002 10:09 AM
 To: [EMAIL PROTECTED]
 Subject: RE: iterate tag



 I dont think so, but what are you trying to do specifically... There 
are

 a few pager taglibs and one that does grouping also...



 -Original Message-
 From: sr.2002g [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 02, 2002 8:47 AM
 To: struts-user
 Subject: iterate tag


 Hello,


 Is there a way to break out of the iterate tag?? something like the
 break in the for loop?

 Thanks,
 Sanjana


 --
 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]



--
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: iterate tag

2002-08-02 Thread wbchmura


When did he add the example...  Would have saved me some typing on my 
reply!

PS. A tip for avoiding getting pulled into meetings is when you think 
they are coming to get you, curl into a ball under your desk and sob 
uncontrollably until they leave.  :)


-Original Message-
From: rkalluri [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 11:42 AM
To: struts-user
Subject: RE: iterate tag



http://edhill.its.uiowa.edu/display-examples-0.8/example-grouping.jsp


-Original Message-
From: SR [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 11:32 AM
To: Struts Users Mailing List
Subject: Re: iterate tag


Sorry for the late reply... got pulled into a meeting I guess I 
should
explain what i am trying to do

I have an ArrayList that I am using to populate the List page. The 
ArrayList
contains projects based on type for every state. I need to iterate 
through
the list and display it in such a way so that for every state I display 
the
state name once and then multiple rows for every project in that state 
for
eg

state1 type1detail1
   detail2
   type2detail3
state2  type1 detail1

to achieve this, i have another arraylist that contains all the states.I
iterate through this state arraylist and if the state name in the 
project
arraylist matches the state name in the state arraylist I dont display 
the
state name again.

I am using the logic:iterate and logic:match tags to get this for now. 
What
I was wondering was, if there is an easy way to break out of the iterate 
if
the state doesnt match without using the match tag

I guess there isnt unless I write my own tag and it seems like it is 
more
trouble than it is worth

- Original Message -
From: Rajesh Kalluri [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, August 02, 2002 11:15 AM
Subject: RE: iterate tag


 Hi Sanjana,

 Does breaking out of logic:iterate tag mean you only want to print a
portion
 of what you have in your collection
 based on some condition.

 If that is the case after you filter out the result set as much as you 
can
 on the database level, you can use logic:equal or logic:match and such
tags
 to spit out only what you need inside the logic:iterate tag.

 HTH
 Rajesh

 -Original Message-
 From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 02, 2002 11:01 AM
 To: 'Struts Users Mailing List'
 Subject: RE: iterate tag


 It was just a thought, the only thing that came to mind.  I'm not sure
what
 you mean by filtering it out at the database level though.  There are 
lost
 of iteration situations that are independent of database operations 
where
it
 could be useful, I think.

 ~ Keith
 http://www.buffalo.edu/~kkamholz



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 02, 2002 11:04 AM
 To: [EMAIL PROTECTED]
 Subject: RE: iterate tag



 If you were to do that, why bother bringing the data back in the first
 place?  Filter it out at the database level...

 Maybe Sanjana will tell us when he drops by...


 -Original Message-
 From: kkamholz [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 02, 2002 10:40 AM
 To: struts-user
 Subject: RE: iterate tag


 The only thing I can think of is extending/modifying the iterate tag 
to
 create a pretty unflexible break condition.  Maybe you could add a
 'break'
 attribute, and if the next element of the iteration is equal to the
 value
 specified in the 'break' attribute, the iteration is stopped.  This
 seems
 like it could work, but might be more trouble than it's worth.

 ~ Keith
 http://www.buffalo.edu/~kkamholz



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 02, 2002 10:09 AM
 To: [EMAIL PROTECTED]
 Subject: RE: iterate tag



 I dont think so, but what are you trying to do specifically... There 
are

 a few pager taglibs and one that does grouping also...



 -Original Message-
 From: sr.2002g [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 02, 2002 8:47 AM
 To: struts-user
 Subject: iterate tag


 Hello,


 Is there a way to break out of the iterate tag?? something like the
 break in the for loop?

 Thanks,
 Sanjana


 --
 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]



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

RE: ActionErrors in ActionForm and JSP not showing up...

2002-08-01 Thread wbchmura

Okay, so it behaves more like a package then...  I see...

Thanks!

-Original Message-
From: developer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 6:57 PM
To: struts-user
Subject: Re: ActionErrors in ActionForm and JSP not showing up...


Well actually you could have a resources directory under 
WEB-INF/classes
but you have to set it up like this:
message-resources parameter=resources.ApplicationResources 
null=false
/

and you'll be ready to go.



- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 31, 2002 4:39 PM
Subject: RE: ActionErrors in ActionForm and JSP not showing up...



 Nope, never knew that existed...   Okay, it did do something...
 I get:

 ???en_US.error.requestform.company.required???

 Which is what you were talking about...

 For the 33rd time I checked my config for my resources and the file is
 where the config says it should be  I also checked for the 50th 
time
 that the key was what I was looking for...

 error.requestform.company.required=You must select a company

 (I am cutting and pasting here)

 message-resources
 parameter=/WEB-INF/resources/applicationresources.properties
 null=false/

 I also tried moving it back into my classes directory and not 
specifying
 an alternate location...

 No dice, same errors...
 Nothing in the log files...

 So now I know its either not finding the whole resources file or the
 keys dont match for that error...  If I make it a bad filename, I dont
 see any errors also...

 AAARHH












 -Original Message-
 From: martin.cooper [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 31, 2002 3:38 PM
 To: struts-user
 Subject: RE: ActionErrors in ActionForm and JSP not showing up...


 Have you tried setting 'null=false' in your message-resources 
entry
 in
 struts-config.xml? That would at least tell you whether the problem is
 related to picking up the resource string or is something else.

 If the resource string wasn't picked up for some reason, you'll see
 those
 odd ???.key.??? strings where your resource string should be, 
instead
 of
 nothing at all. Horrible for production, but an invaluable debugging
 tool.
 :-)

 --
 Martin Cooper


  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, July 31, 2002 6:35 AM
  To: [EMAIL PROTECTED]
  Subject: RE: ActionErrors in ActionForm and JSP not showing up...
 
 
 
  Yes, the page that displays them is the same one that the errant
  information is missing from.
  Yes, I am also using Tiles on all these pages...
 
 
  The logic:messagesPresent tag works fine and activates when
  an error
  should be appearing, but the html:errors tag seems awry.
  Or I am.  Or
  both of us...
 
  Any help would be greatly appreciated ...
 
  This is my form-beans and action from the struts-config.xml
 
  form-beans
  form-bean name=FormPremadeReport
  type=com.ebind.twizard.reports.struts.FormPremadeReport /
  /form-beans
 
  action path=/premadeReport
  type=com.ebind.twizard.reports.struts.ActionPremadeReport
  parameter=reportType
  name=FormPremadeReport
  scope=request
  validate=true
  input=twizard.premade
  forward name=continue path=twizard.premade redirect=false /
  forward name=displayRedReport path=twizard.reportdisplay.ranged
  redirect=false /
  forward name=displayYellowReport
  path=twizard.reportdisplay.ranged
  redirect=false /
  forward name=displayGreenReport
  path=twizard.reportdisplay.ranged
  redirect=false /
  forward name=success path=twizard.reportdisplay.ranged
  redirect=false /
  /action
 
 
  logic:messagesPresent
  !-- Errors detected --
  font color=Red
  Reported Errors:br
  html:errors property=company/
  /font
  /logic:messagesPresent
 
  html:form action=/premadeReport.do
  name=FormPremadeReport
  type=com.ebind.twizard.reports.struts.FormPremadeReport
  scope=request
 
 
 
 
 
 
 
 
  -Original Message-
  From: martin.cooper [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, July 30, 2002 9:22 PM
  To: struts-user
  Subject: RE: ActionErrors in ActionForm and JSP not showing up...
 
 
  Is the page that's supposed to display the errors returned
  from the same
  request that found them? This may not be the case if you are using
  frames,
  redirect or Tiles. The errors are saved as a request attribute, so 
if
  it's
  not the same request, the errors will be gone.
 
  --
  Martin Cooper
 
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, July 30, 2002 7:21 AM
   To: [EMAIL PROTECTED]
   Subject: ActionErrors in ActionForm and JSP not showing up...
  
  
  
  
  if (this.companySelection == null ||
   this.companySelection.equals()) {
  System.out.println(FormPremadeReport:validate 
   No Company
   Selected);
  errors.add(ActionErrors.GLOBAL_ERROR, new
   ActionError(error.requestform.company.required));
  }
  

RE: Struts directory structure

2002-08-01 Thread wbchmura


I agree on the internationalization aspects... I am looking into those 
now and what fun it will bring...

In an earlier draft of the document I had a bunch of illustrations, but 
as it evolved I took them out until I get to a point where it is 
somewhat stable.  

Its an interesting point you have about breaking out the struts 
directory more.  I intentionally avoided all of the that due to 
arguments over what would go where in the MVC...  I am no expert on it 
at all, so I don't have a big opinion on that part.  In my limited 
experience I think that some of the parts of the MVC in struts blend 
together somewhat.  Like I said I am new to MVC so please nobody crucify 
me for saying something wrong about it.

Can you give me some examples of what would go in each of your 
struts.model, struts.controller, and struts.view directories?  Maybe 
that would help me see

All in all, I am really just started trying to get a good best practices 
document down for internal use, but if I can give it back to the 
community also then excellent.



-Original Message-
From: Sandra.Heligon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 4:47 AM
To: struts-user
Subject: RE: Struts directory structure


You don't have to apologize for the errors, I say again
it is good to help struts users with a such document.

I think that perhaps it will be good to detail the Struts
directory structure, perhaps something like this:

 - com.explosivo.emp.admin.struts
- com.explosivo.emp.admin.struts.controller //
Action classes
- com.explosivo.emp.admin.struts.view   //
Form classes
- com.explosivo.emp.admin.struts.model
(only Beans specific to the application would be placed
 in the Directory but normally the model is independent of
 the application type. That's why I am not sure that a such
 directory must exist. Specific application classes will 
 be placed in the com.explosivo.emp.admin.logic directory)

My question is where the common struts classes (RequestProcessor 
subclass,
or BaseAction subclass, etc...) must be placed ?
Perhaps like this:

 - com.explosivo.emp.common.servlet (ServletContextListener,
HttpSessionListener classes)
 - com.explosivo.emp.common.struts
 - com.explosivo.emp.common.struts.controller   (RequestPorcessor
subclass)
 - com.explosivo.emp.common.struts.action   (BaseAction
subclass)
 - com.explosivo.emp.common.logic   

It will be good to have feedbacks from users that used 
internationalisation
and also multiple sub-applications features.
It is important that the structure allow to add these features in the
future.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: 31 July 2002 20:20
To: [EMAIL PROTECTED]
Subject: RE: Struts directory structure



See below for comments...

Most of what you picked up are typos and other errors... I will make the 

changes to the document, but I clarified them below...

-Original Message-
From: Sandra.Heligon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 1:12 PM
To: struts-user
Subject: RE: Struts directory structure


Hi,

Your initiative is very very interesting, thanks a lot.

I have some questions, sorry if my questions
are stupid.

I don't understand well the signification of the emp abbreviation.
explosivo is used to refer to the global project in which APP101
is the web application, is it true ?
It will be good to have a glossary that fix all abbreviations or
name (APP101, emp, explosivo etc...).


 Sorry, emp used to be called APP101 - it was renamed...  Its a work 
in progress. Sorry for the confusion



Why do you write /web-inf/src/jsp/emp/html and not /web-inf/src/jsp/html
is it in order to introduce multiple sub applications in the future ?
In the source code you speak about com.explosivo.emp.admin but in the
scheme we see com.explosivo.admin no emp reference.


 Again, something screwy in the docs...  Should be 
com.explosivo.emp.admin





In the overall structure section you say /web-inf/conf The configuration
data is here (validator.xml, *.tld, etc).
And in the Utility directories part you speak about /WEB-INF/tld.
Always the same question is the project composed of multiple web
applications ?
and tld of the application (app.tld) will be stored in the web-inf/conf.

 Yes, TLD's go into the TLD directory (it was a last minute add on)




If I well understand the Struts classes (Action, RequestProcessor,
ActionForm, ...)
are in the whole project structure under each Struts sub-directory
com.explosivo.emp.admin.struts
or com.explosivo.emp.billing.admin.
I don't well understand how the controller / View / Model classes are
organized.


 Okay, let me see if I can explain this.  Mind you that this is not 
the end all be all of layouts... and your milage will vary.

For each logical section of the application we have a directory (admin, 

RE: html select field change on the fly

2002-08-01 Thread wbchmura


I just finished an application that did this very thing.  In my case it 
was companies - groups - areas...

We did it by using javascript and a dispatchaction.  We had a lot of 
data so embedding it all in the page was going to be yucky...  In a 
nutshell here is what I did:

* The user links to the action to get the form

* The action builds a select for the companies and returns a continue 
mapping. 

* The form displays and checks for the presence of each (company, group, 
area) and displays a select box if any are present.  In this case only 
group shows up

* The user selects a Company...  An onclick event sets a hidden field 
called action to companyChange and submits the form automatically

* The action sees that the companyChanged and populates a group select 
based on the new company and continues.  It also removes any area 
selects present.

* The form checks to see if (company, group, area) are present - in this 
case company and group are so they get displayed.

* The user selects a group and the onclick sets the action field to 
groupChanged.  Submits it.

* The action sees that the groupChanged and populates an area select 
based on the new company/group and continues. .

* The form checks to see if (company, group, area) are present - in this 
case all are present and they are all displayed

* If the user goes and changes say the company then it registers as a 
companyChanged and the action will remove the group and area and start 
over.

Its really not that bad...


I've also seen it done for states where its all in the page...  I think 
it was verizon or someone, where you selected the state and then a 
region...  It was all in javascript in the page itself...

Hmmm







-Original Message-
From: Nicolas.Desjardins [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 9:42 AM
To: struts-user
Subject: html select field change on the fly


Hi,
 
I have a form in witch there is 2 html select box (drop down lists).  
The
first one is a list of organisations, and the second is the list of the
divisions.  Is there a struts way of, when there is an organisation 
selected
in the first select, to change on the fly the second select with the
divisions of that organisation.  It's a common problem that appear when 
you
select a country and you want only the states of that country to appear 
in
the state choice and I can't find a practical solution to the problem.
 
Thx all,

---
Nicolas Desjardins
Analyste Programmeur / Analyst Programmer
TI-Télécom, EFRIC_2x4DS
* (514) 937-0102 ext. 6083
*  
mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 

All you need is ignorance and confidence; then success is sure.
-- Mark Twain

 



--
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: html select field change on the fly

2002-08-01 Thread wbchmura


Here is the JSP code for one of the pages that uses this...


script language=JavaScript
function selectChange(txt) {
document.FormDrillDownReport.elements[0].value = 'changed' + txt;
document.FormDrillDownReport.submit();
}
/script

html:form action=/drillDownReport.do 
name=FormDrillDownReport 
type=com.ebind.twizard.reports.struts.FormDrillDownReport
scope=request

html:hidden property=action value=/

logic:present name=companyList
  Select Company 
  html:select property=companySelection 
onchange=selectChange('Company'); 
html:option value=Select a company/html:option
html:options collection=companyList property=orglevel2id 
labelProperty=orglevel2name/
  /html:selectP
/logic:present
  
logic:present name=groupList  
!-- Hello --
  Select Group 
  html:select property=groupSelection 
onchange=selectChange('Group');
html:option value=Select a group/html:option
html:options collection=groupList property=orglevel3id 
labelProperty=orglevel3name/
  /html:selectP
/logic:present

logic:present name=areaList   
  Select Area 
  html:select property=areaSelection
html:option value=Select an area or Run the 
Report/html:option
html:options collection=areaList property=orglevel4id 
labelProperty=orglevel4name/
  /html:selectP
/logic:present

P/

Days to limit report to:
html:select property=dateRangeSelection
html:option value=30Next 30 days/html:option
html:option value=60Next 60 days/html:option
html:option value=90Next 90 days /html:option
html:option value=365Next 365 days/html:option
html:option value=0Past Due training only/html:option
/html:select
P/
STRONGNote: The day ranges shown above represents the number of days 
from today./STRONG  
P/

html:submit property=submitButton value=Run Report 
onclick=JavaScript:document.FormDrillDownReport.elements[0].value='sear
ch';
style=font-weight:bold; color:#FFF; background-color:#036; 
border-style:outset; border-color:#69F;/
/html:form

-Original Message-
From: Nicolas.Desjardins [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 10:16 AM
To: struts-user
Subject: RE: html select field change on the fly


I've seen the javascript solution all over the internet and i dont find 
it
elegant. Your's seems really neat and flexible and i want all my data to
stay in the DB. 

I'll try to do something like this thanks a lot!

Nic

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 10:12 AM
To: [EMAIL PROTECTED]
Subject: RE: html select field change on the fly



I just finished an application that did this very thing.  In my case it 
was companies - groups - areas...

We did it by using javascript and a dispatchaction.  We had a lot of 
data so embedding it all in the page was going to be yucky...  In a 
nutshell here is what I did:

* The user links to the action to get the form

* The action builds a select for the companies and returns a continue 
mapping. 

* The form displays and checks for the presence of each (company, group, 

area) and displays a select box if any are present.  In this case only 
group shows up

* The user selects a Company...  An onclick event sets a hidden field 
called action to companyChange and submits the form automatically

* The action sees that the companyChanged and populates a group select 
based on the new company and continues.  It also removes any area 
selects present.

* The form checks to see if (company, group, area) are present - in this 

case company and group are so they get displayed.

* The user selects a group and the onclick sets the action field to 
groupChanged.  Submits it.

* The action sees that the groupChanged and populates an area select 
based on the new company/group and continues. .

* The form checks to see if (company, group, area) are present - in this 

case all are present and they are all displayed

* If the user goes and changes say the company then it registers as a 
companyChanged and the action will remove the group and area and start 
over.

Its really not that bad...


I've also seen it done for states where its all in the page...  I think 
it was verizon or someone, where you selected the state and then a 
region...  It was all in javascript in the page itself...

Hmmm







-Original Message-
From: Nicolas.Desjardins [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 9:42 AM
To: struts-user
Subject: html select field change on the fly


Hi,
 
I have a form in witch there is 2 html select box (drop down lists).  
The
first one is a list of organisations, and the second is the list of the
divisions.  Is there a struts way of, when there is an organisation 
selected
in the first select, to change on the fly the second select with the
divisions of that organisation.  It's a common problem that appear when 

RE: Struts directory structure

2002-08-01 Thread wbchmura


Pretty much the same thing I am trying to do.  

I am completely unqualified to tell you if your structure is a good idea 
or not.  I have not done much with listeners (IOW: Nothing) and 
extending the servlets. 

All in all that I try to be somewhat vauge when it comes to outlining 
recommendations as not everything fits all situations.  So possibly 
extending the struts directory could be good if the apps complexity in 
that section gets overwhelming...  I also use a naming convention that 
starts off each filename with soemthing identifiable...

ActionShowReport
FormReportSelection
BeanRequestData

I like things that sort nicely... :)



-Original Message-
From: Sandra.Heligon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 10:43 AM
To: struts-user
Subject: RE: Struts directory structure


I am also no expert on Struts and MVC but I am trying
to write an internal tutorial for my application and I search
to summarize best practices for Apache/Tomcat/Struts development
(advice about thread-safe Action, BaseAction class, etc...).
If someone wrote a such document thanks to send it.
We find a lot of good practices in the Struts catalog
http://husted.com/struts/catalog.htm 
or Chuck's book. 

For the Struts directory, 

 - com.explosivo.common.Servlet
This package would contain classes common to all 
logical sections like ExplosivoServletContextListener or
  ExplosivoHttpSessionListener classes.
 
 - com.explosivo.common.Struts
- com.explosivo.common.Struts.controller
This package would contain RequestProcessor subclass and/or 
BaseAction class. And other Action common to all logical
section LoginAction, LogoutAction.
The BaseAction extends the Struts Action with common methods
like getSessionObject(), setSessionObject() etc...

- com.explosivo.common.Struts.view
Perhaps a base class for ActionForm

 For each logical section (example admin):
 - com.explosivo.admin.Struts 
- com.explosivo.common.Struts.controller
This package would contain all the Action classes
specific to the logical section.

- com.explosivo.common.Struts.view
This package would contain the ActionForm or DynaActionForm
specific to the logical section.

I am not sure that it is a good tree structure, thanks for feedbacks.
Is it more easily understood ?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: 01 August 2002 16:02
To: [EMAIL PROTECTED]
Subject: RE: Struts directory structure



I agree on the internationalization aspects... I am looking into those 
now and what fun it will bring...

In an earlier draft of the document I had a bunch of illustrations, but 
as it evolved I took them out until I get to a point where it is 
somewhat stable.  

Its an interesting point you have about breaking out the struts 
directory more.  I intentionally avoided all of the that due to 
arguments over what would go where in the MVC...  I am no expert on it 
at all, so I don't have a big opinion on that part.  In my limited 
experience I think that some of the parts of the MVC in struts blend 
together somewhat.  Like I said I am new to MVC so please nobody crucify 

me for saying something wrong about it.

Can you give me some examples of what would go in each of your 
struts.model, struts.controller, and struts.view directories?  Maybe 
that would help me see

All in all, I am really just started trying to get a good best practices 

document down for internal use, but if I can give it back to the 
community also then excellent.



-Original Message-
From: Sandra.Heligon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 4:47 AM
To: struts-user
Subject: RE: Struts directory structure


You don't have to apologize for the errors, I say again
it is good to help struts users with a such document.

I think that perhaps it will be good to detail the Struts
directory structure, perhaps something like this:

 - com.explosivo.emp.admin.struts
- com.explosivo.emp.admin.struts.controller //
Action classes
- com.explosivo.emp.admin.struts.view   //
Form classes
- com.explosivo.emp.admin.struts.model
(only Beans specific to the application would be placed
 in the Directory but normally the model is independent of
 the application type. That's why I am not sure that a such
 directory must exist. Specific application classes will 
 be placed in the com.explosivo.emp.admin.logic directory)

My question is where the common struts classes (RequestProcessor 
subclass,
or BaseAction subclass, etc...) must be placed ?
Perhaps like this:

 - com.explosivo.emp.common.servlet (ServletContextListener,
HttpSessionListener classes)
 - 

RE: prevent of generating validation errors, when using form the first time

2002-08-01 Thread wbchmura


I've done this two ways:

#1 - Have two action definitions that point at the same ActionObject. 

addNewCustomer.do
submitNewCustomer.do

The only difference is that addNewCustomer.do has validate=false and is 
what you call for all the initial displays of the form.  The submit has 
validate=true and is what your form should submit to...


#2 - Make the validate() method figure out if its an initial display.  
Have a hidden field in your form that it can check to see if it is 
populated.  If not, skip the rest of the validation and dont give any 
errors.


Hope that helps





-Original Message-
From: berger1517 [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 4:47 PM
To: struts-user
Subject: prevent of generating validation errors, when using form the
first time


Hello,
how can I prevent that errors are generated by my validator when a form
is displayed the first time ?

Thx berger



--
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: ActionErrors in ActionForm and JSP not showing up...

2002-07-31 Thread wbchmura


Yes, the page that displays them is the same one that the errant 
information is missing from.
Yes, I am also using Tiles on all these pages...  


The logic:messagesPresent tag works fine and activates when an error 
should be appearing, but the html:errors tag seems awry.  Or I am.  Or 
both of us...

Any help would be greatly appreciated ...

This is my form-beans and action from the struts-config.xml

form-beans
form-bean name=FormPremadeReport 
type=com.ebind.twizard.reports.struts.FormPremadeReport /
/form-beans

action path=/premadeReport
type=com.ebind.twizard.reports.struts.ActionPremadeReport
parameter=reportType
name=FormPremadeReport
scope=request
validate=true
input=twizard.premade
forward name=continue path=twizard.premade redirect=false /
forward name=displayRedReport path=twizard.reportdisplay.ranged 
redirect=false /
forward name=displayYellowReport path=twizard.reportdisplay.ranged 
redirect=false /
forward name=displayGreenReport path=twizard.reportdisplay.ranged 
redirect=false /
forward name=success path=twizard.reportdisplay.ranged 
redirect=false /
/action


logic:messagesPresent
!-- Errors detected --
font color=Red
Reported Errors:br
html:errors property=company/
/font
/logic:messagesPresent

html:form action=/premadeReport.do
name=FormPremadeReport
type=com.ebind.twizard.reports.struts.FormPremadeReport
scope=request








-Original Message-
From: martin.cooper [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 30, 2002 9:22 PM
To: struts-user
Subject: RE: ActionErrors in ActionForm and JSP not showing up...


Is the page that's supposed to display the errors returned from the same
request that found them? This may not be the case if you are using 
frames,
redirect or Tiles. The errors are saved as a request attribute, so if 
it's
not the same request, the errors will be gone.

--
Martin Cooper


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 30, 2002 7:21 AM
 To: [EMAIL PROTECTED]
 Subject: ActionErrors in ActionForm and JSP not showing up...
 
 
 
 
if (this.companySelection == null || 
 this.companySelection.equals()) {
System.out.println(FormPremadeReport:validate  
 No Company 
 Selected);
errors.add(ActionErrors.GLOBAL_ERROR, new 
 ActionError(error.requestform.company.required));
}
return errors;
 
 
 I have the above code in my ActionFormValidate...  When I submit the 
 form it passes the IF (as it should) and returns me to the HTML form 
 page.  BUT my JSP for:
 
   logic:messagesPresent
   !-- Errors detected --
   font color=Redhtml:errors//font
   /logic:messagesPresent
 
 Sends back the comment and font tags, but nothing after that...
 
 Any ideas?  I do have the application properties for all the 
 settings, 
 plus the shown resource above...
 
 
 
 
 
 
 
 --
 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: ActionErrors in ActionForm and JSP not showing up...

2002-07-31 Thread wbchmura


It may sound obvious, but I did check that over and over again!  Same 
thought I had.  I even went as far as to copy and paste it over the 
existing one just in case my cursed eyes were missing a mis-spelling!




-Original Message-
From: Christopher.Homer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 9:16 AM
To: struts-user
Subject: RE: ActionErrors in ActionForm and JSP not showing up...


I know it sounds obvious, but are you sure you have placed
error.requestform.company.required in your 
ApplicationResources.properties
file?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: 31 July 2002 14:24
To: [EMAIL PROTECTED]
Subject: RE: ActionErrors in ActionForm and JSP not showing up...



I did not think you needed a saveErrors in an actionForms validate 
method... You return the error list from there... 

-Original Message-
From: emr [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 30, 2002 5:58 PM
To: struts-user
Subject: Re: ActionErrors in ActionForm and JSP not showing up...


On Tue, Jul 30, 2002 at 03:47:10PM -0400, 
[EMAIL PROTECTED] wrote:
 
 Yep... I've got that tag in there...  Also, I started off with setting 

a 
 specific a field, but had no luck (I even just tried setting it in 
 specifically on both ends...)
 
 Sigh.

You should add a

saveErrors(request, errors);

before returning.

Hope this helps,
Erich

 I have fixed every other part of my app that needs fixing avoiding 
this 
 problem...
 
 
 
 -Original Message-
 From: AKulp [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 30, 2002 3:18 PM
 To: struts-user
 Subject: RE: ActionErrors in ActionForm and JSP not showing up...
 
 
   Just a thought, but have you remembered to define the tag libary 
 for
 HTML?  I had a similiar error once.  I think with that you would see
 html:errors/ show up in the final HTML though.  The other thing, is 
 the
 use of ActionErrors.GLOBAL_ERROR.  I haven't used it so it may just be 


 my
 ignorance, but you may want to change it to reference a specific field 


 on
 the form and see if it comes through.
 
   -Arian
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, July 30, 2002 10:29 AM
  To: [EMAIL PROTECTED]
  Subject: RE: ActionErrors in ActionForm and JSP not showing up...
  
  
  
  Hey Keith,
  
  I know about the logic tag, I just added it there so I could get an 
 idea 
  if the errors were making it into the page...
  
  When I started on this, it was just the font and error tags...
  
  PS. I am on a nightly build dated the 29th
  
  -Original Message-
  From: kkamholz [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, July 30, 2002 10:15 AM
  To: struts-user
  Subject: RE: ActionErrors in ActionForm and JSP not showing up...
  
  
  You don't need the logic:messagesPresent.  It automatically checks 


 to 
  see
  if errors are present, so you can just use the font tag and the
  html:errors/.  If there are no errors, it won't write anything 
out.  
 I
  don't know if this would solve your issue, but maybe it has 
something 
 to 
  do
  with it.
  
  ~ Keith
  http://www.buffalo.edu/~kkamholz
  
  
  
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, July 30, 2002 10:21 AM
  To: [EMAIL PROTECTED]
  Subject: ActionErrors in ActionForm and JSP not showing up...
  
  
  
  
 if (this.companySelection == null || 
  this.companySelection.equals()) {
 System.out.println(FormPremadeReport:validate  No 
Company 
 
  Selected);
 errors.add(ActionErrors.GLOBAL_ERROR, new 
  ActionError(error.requestform.company.required));
 }
 return errors;
  
  
  I have the above code in my ActionFormValidate...  When I submit the 


  form it passes the IF (as it should) and returns me to the HTML form 


  page.  BUT my JSP for:
  
  logic:messagesPresent
  !-- Errors detected --
  font color=Redhtml:errors//font
  /logic:messagesPresent
  
  Sends back the comment and font tags, but nothing after that...
  
  Any ideas?  I do have the application properties for all the 
settings, 
 
  plus the shown resource above...
  
  
  
  
  
  
  
  --
  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]
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]

RE: Struts directory structure

2002-07-31 Thread wbchmura


Check out this

http://www.explosivo.com/bill/downloads/tomcat

The file named struts-directory-layout is a document I have been working 
on to try to answer this sort of question and to set up some standards 
internally.

Feedback is appreciated...

Thanks




-Original Message-
From: Sandra.Heligon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 6:09 AM
To: struts-user
Subject: Struts directory structure



I am trying to organize the Struts files structure for my
application.
The files structure will be placed in the
$CATALINA_HOME\webapps\MyWebApp\WEB-INF\src
directory.

Has someone any comment or advice about the following structure:

src
- MyDomain
- MyWebApp
- Controller
MyRequestProcessor.java
MyListener.java
Action

- View
ActionForm

- Model 
JavaBean sources

- Common

The Model directory has only to contain Java sources linked to the
web application.
The JavaBean classes shared between multiple applications (web or
simple Java application)
must be placed in an other directory common perhaps ?

If someone has other structure proposition, I am very interested.
Thanks a lot in advance.

 

--
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]




AAARRRGGGGG - ActionErrors in ActionForm and JSP not showing up...

2002-07-31 Thread wbchmura


Any one have any other ideas?  I cannot figure this one out!



-Original Message-
From: Chmura, William B. 
Sent: Wednesday, July 31, 2002 9:35 AM
To: struts-user
Subject: RE: ActionErrors in ActionForm and JSP not showing up...



Yes, the page that displays them is the same one that the errant 
information is missing from.
Yes, I am also using Tiles on all these pages...  


The logic:messagesPresent tag works fine and activates when an error 
should be appearing, but the html:errors tag seems awry.  Or I am.  Or 

both of us...

Any help would be greatly appreciated ...

This is my form-beans and action from the struts-config.xml

form-beans
form-bean name=FormPremadeReport 
type=com.ebind.twizard.reports.struts.FormPremadeReport /
/form-beans

action path=/premadeReport
type=com.ebind.twizard.reports.struts.ActionPremadeReport
parameter=reportType
name=FormPremadeReport
scope=request
validate=true
input=twizard.premade
forward name=continue path=twizard.premade redirect=false /
forward name=displayRedReport path=twizard.reportdisplay.ranged 
redirect=false /
forward name=displayYellowReport path=twizard.reportdisplay.ranged 
redirect=false /
forward name=displayGreenReport path=twizard.reportdisplay.ranged 
redirect=false /
forward name=success path=twizard.reportdisplay.ranged 
redirect=false /
/action


logic:messagesPresent
!-- Errors detected --
font color=Red
Reported Errors:br
html:errors property=company/
/font
/logic:messagesPresent

html:form action=/premadeReport.do
name=FormPremadeReport
type=com.ebind.twizard.reports.struts.FormPremadeReport
scope=request








-Original Message-
From: martin.cooper [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 30, 2002 9:22 PM
To: struts-user
Subject: RE: ActionErrors in ActionForm and JSP not showing up...


Is the page that's supposed to display the errors returned from the same
request that found them? This may not be the case if you are using 
frames,
redirect or Tiles. The errors are saved as a request attribute, so if 
it's
not the same request, the errors will be gone.

--
Martin Cooper


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 30, 2002 7:21 AM
 To: [EMAIL PROTECTED]
 Subject: ActionErrors in ActionForm and JSP not showing up...
 
 
 
 
if (this.companySelection == null || 
 this.companySelection.equals()) {
System.out.println(FormPremadeReport:validate  
 No Company 
 Selected);
errors.add(ActionErrors.GLOBAL_ERROR, new 
 ActionError(error.requestform.company.required));
}
return errors;
 
 
 I have the above code in my ActionFormValidate...  When I submit the 
 form it passes the IF (as it should) and returns me to the HTML form 
 page.  BUT my JSP for:
 
   logic:messagesPresent
   !-- Errors detected --
   font color=Redhtml:errors//font
   /logic:messagesPresent
 
 Sends back the comment and font tags, but nothing after that...
 
 Any ideas?  I do have the application properties for all the 
 settings, 
 plus the shown resource above...
 
 
 
 
 
 
 
 --
 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: ActionErrors in ActionForm and JSP not showing up...

2002-07-31 Thread wbchmura


Nope, never knew that existed...   Okay, it did do something...
I get:

???en_US.error.requestform.company.required??? 

Which is what you were talking about...

For the 33rd time I checked my config for my resources and the file is 
where the config says it should be  I also checked for the 50th time 
that the key was what I was looking for...

error.requestform.company.required=You must select a company

(I am cutting and pasting here)

message-resources 
parameter=/WEB-INF/resources/applicationresources.properties 
null=false/

I also tried moving it back into my classes directory and not specifying 
an alternate location...

No dice, same errors...
Nothing in the log files...

So now I know its either not finding the whole resources file or the 
keys dont match for that error...  If I make it a bad filename, I dont 
see any errors also...

AAARHH












-Original Message-
From: martin.cooper [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 3:38 PM
To: struts-user
Subject: RE: ActionErrors in ActionForm and JSP not showing up...


Have you tried setting 'null=false' in your message-resources entry 
in
struts-config.xml? That would at least tell you whether the problem is
related to picking up the resource string or is something else.

If the resource string wasn't picked up for some reason, you'll see 
those
odd ???.key.??? strings where your resource string should be, instead 
of
nothing at all. Horrible for production, but an invaluable debugging 
tool.
:-)

--
Martin Cooper


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 31, 2002 6:35 AM
 To: [EMAIL PROTECTED]
 Subject: RE: ActionErrors in ActionForm and JSP not showing up...
 
 
 
 Yes, the page that displays them is the same one that the errant 
 information is missing from.
 Yes, I am also using Tiles on all these pages...  
 
 
 The logic:messagesPresent tag works fine and activates when 
 an error 
 should be appearing, but the html:errors tag seems awry.  
 Or I am.  Or 
 both of us...
 
 Any help would be greatly appreciated ...
 
 This is my form-beans and action from the struts-config.xml
 
 form-beans
 form-bean name=FormPremadeReport 
 type=com.ebind.twizard.reports.struts.FormPremadeReport /
 /form-beans
 
 action path=/premadeReport
 type=com.ebind.twizard.reports.struts.ActionPremadeReport
 parameter=reportType
 name=FormPremadeReport
 scope=request
 validate=true
 input=twizard.premade
 forward name=continue path=twizard.premade redirect=false /
 forward name=displayRedReport path=twizard.reportdisplay.ranged 
 redirect=false /
 forward name=displayYellowReport 
 path=twizard.reportdisplay.ranged 
 redirect=false /
 forward name=displayGreenReport 
 path=twizard.reportdisplay.ranged 
 redirect=false /
 forward name=success path=twizard.reportdisplay.ranged 
 redirect=false /
 /action
 
 
 logic:messagesPresent
 !-- Errors detected --
 font color=Red
 Reported Errors:br
 html:errors property=company/
 /font
 /logic:messagesPresent
 
 html:form action=/premadeReport.do
 name=FormPremadeReport
 type=com.ebind.twizard.reports.struts.FormPremadeReport
 scope=request
 
 
 
 
 
 
 
 
 -Original Message-
 From: martin.cooper [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 30, 2002 9:22 PM
 To: struts-user
 Subject: RE: ActionErrors in ActionForm and JSP not showing up...
 
 
 Is the page that's supposed to display the errors returned 
 from the same
 request that found them? This may not be the case if you are using 
 frames,
 redirect or Tiles. The errors are saved as a request attribute, so if 
 it's
 not the same request, the errors will be gone.
 
 --
 Martin Cooper
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, July 30, 2002 7:21 AM
  To: [EMAIL PROTECTED]
  Subject: ActionErrors in ActionForm and JSP not showing up...
  
  
  
  
 if (this.companySelection == null || 
  this.companySelection.equals()) {
 System.out.println(FormPremadeReport:validate  
  No Company 
  Selected);
 errors.add(ActionErrors.GLOBAL_ERROR, new 
  ActionError(error.requestform.company.required));
 }
 return errors;
  
  
  I have the above code in my ActionFormValidate...  When I 
 submit the 
  form it passes the IF (as it should) and returns me to the 
 HTML form 
  page.  BUT my JSP for:
  
  logic:messagesPresent
  !-- Errors detected --
  font color=Redhtml:errors//font
  /logic:messagesPresent
  
  Sends back the comment and font tags, but nothing after that...
  
  Any ideas?  I do have the application properties for all the 
  settings, 
  plus the shown resource above...
  
  
  
  
  
  
  
  --
  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: 
 

RE: ActionErrors in ActionForm and JSP not showing up...

2002-07-31 Thread wbchmura


And a resources directory seemed like such a good idea at the time...

This worked!  I have error messages again...

Thanks for the fix, 
Thanks Martin for that null=false thing - that will come in handy
Thanks everyone else that suggested

Finally all the bugs are out!



-Original Message-
From: jmitchtx [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 4:42 PM
To: struts-user
Subject: RE: ActionErrors in ActionForm and JSP not showing up...


Here's the problem...

 message-resources
 parameter=/WEB-INF/resources/applicationresources.properties
 ^^
 null=false/


this should have been in your /WEB-INF/classes folder
and you don't need to put '.properties'

try this
1. move the applicationresources.properties file to /WEB-INF/classes
2. change your struts-config.xml entry to this...

 message-resources parameter=applicationresources null=false/


BTWcase matters so if applicationresources is actually
ApplicationResources, then be sure to change it...

HTH

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




 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 31, 2002 4:40 PM
 To: [EMAIL PROTECTED]
 Subject: RE: ActionErrors in ActionForm and JSP not showing up...



 Nope, never knew that existed...   Okay, it did do something...
 I get:

 ???en_US.error.requestform.company.required???

 Which is what you were talking about...

 For the 33rd time I checked my config for my resources and the file is
 where the config says it should be  I also checked for the 50th 
time
 that the key was what I was looking for...

 error.requestform.company.required=You must select a company

 (I am cutting and pasting here)

 message-resources
 parameter=/WEB-INF/resources/applicationresources.properties
 null=false/

 I also tried moving it back into my classes directory and not 
specifying
 an alternate location...

 No dice, same errors...
 Nothing in the log files...

 So now I know its either not finding the whole resources file or the
 keys dont match for that error...  If I make it a bad filename, I dont
 see any errors also...

 AAARHH












 -Original Message-
 From: martin.cooper [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 31, 2002 3:38 PM
 To: struts-user
 Subject: RE: ActionErrors in ActionForm and JSP not showing up...


 Have you tried setting 'null=false' in your message-resources 
entry
 in
 struts-config.xml? That would at least tell you whether the problem is
 related to picking up the resource string or is something else.

 If the resource string wasn't picked up for some reason, you'll see
 those
 odd ???.key.??? strings where your resource string should be, 
instead
 of
 nothing at all. Horrible for production, but an invaluable debugging
 tool.
 :-)

 --
 Martin Cooper


  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, July 31, 2002 6:35 AM
  To: [EMAIL PROTECTED]
  Subject: RE: ActionErrors in ActionForm and JSP not showing up...
 
 
 
  Yes, the page that displays them is the same one that the errant
  information is missing from.
  Yes, I am also using Tiles on all these pages...
 
 
  The logic:messagesPresent tag works fine and activates when
  an error
  should be appearing, but the html:errors tag seems awry.
  Or I am.  Or
  both of us...
 
  Any help would be greatly appreciated ...
 
  This is my form-beans and action from the struts-config.xml
 
  form-beans
  form-bean name=FormPremadeReport
  type=com.ebind.twizard.reports.struts.FormPremadeReport /
  /form-beans
 
  action path=/premadeReport
  type=com.ebind.twizard.reports.struts.ActionPremadeReport
  parameter=reportType
  name=FormPremadeReport
  scope=request
  validate=true
  input=twizard.premade
  forward name=continue path=twizard.premade redirect=false /
  forward name=displayRedReport path=twizard.reportdisplay.ranged
  redirect=false /
  forward name=displayYellowReport
  path=twizard.reportdisplay.ranged
  redirect=false /
  forward name=displayGreenReport
  path=twizard.reportdisplay.ranged
  redirect=false /
  forward name=success path=twizard.reportdisplay.ranged
  redirect=false /
  /action
 
 
  logic:messagesPresent
  !-- Errors detected --
  font color=Red
  Reported Errors:br
  html:errors property=company/
  /font
  /logic:messagesPresent
 
  html:form action=/premadeReport.do
  name=FormPremadeReport
  type=com.ebind.twizard.reports.struts.FormPremadeReport
  scope=request
 
 
 
 
 
 
 
 
  -Original Message-
  From: martin.cooper [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, July 30, 2002 9:22 PM
  To: struts-user
  Subject: RE: ActionErrors in ActionForm and JSP not showing up...
 
 
  Is the page that's supposed to display the errors returned
  from the same
  request that 

ActionErrors in ActionForm and JSP not showing up...

2002-07-30 Thread wbchmura



   if (this.companySelection == null || 
this.companySelection.equals()) {
   System.out.println(FormPremadeReport:validate  No Company 
Selected);
   errors.add(ActionErrors.GLOBAL_ERROR, new 
ActionError(error.requestform.company.required));
   }
   return errors;


I have the above code in my ActionFormValidate...  When I submit the 
form it passes the IF (as it should) and returns me to the HTML form 
page.  BUT my JSP for:

logic:messagesPresent
!-- Errors detected --
font color=Redhtml:errors//font
/logic:messagesPresent

Sends back the comment and font tags, but nothing after that...

Any ideas?  I do have the application properties for all the settings, 
plus the shown resource above...







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




  1   2   3   >