RE: Calling mapping from Action

2002-08-26 Thread avasey


Yes thanks that helped - actually stupid mistake on my part.



|+---
||  palfors@delph|
||  ion.com  |
||   |
||  23/08/2002   |
||  04:39 PM |
||  Please   |
||  respond to   |
||  struts-user  |
||   |
|+---
  |
  ||
  |   To: [EMAIL PROTECTED]   |
  |   cc: (bcc: Aisling Vasey/scs/Linernet)|
  |   Subject: RE: Calling mapping from Action |
  ||
  |




if your path is /cutOffInit.do then you must have an action called
cutOffInit
for example:

action path=/cutOffInit
type=com.myCompany.CutOffInitAction
name=cutOffForm
scope=session
validate=false
  forward name=success path=/next.jsp/
/action

verify that the forward's path matches the action exactly...

HTH,
 pete

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 23, 2002 2:11 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Calling mapping from Action



Yes with no luck.



|+
||  jcheng@johnche|
||  ng.dhs.org|
|||
||  22/08/2002|
||  07:37 PM  |
||  Please respond|
||  to|
||  struts-user;  |
||  Please respond|
||  to jcheng |
|||
|+
  |
  ||
  |   To: [EMAIL PROTECTED]   |
  |   cc: (bcc: Aisling Vasey/scs/Linernet)|
  |   Subject: RE: Calling mapping from Action |
  ||
  |




 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 22, 2002 10:23 AM
 To: [EMAIL PROTECTED]
 Subject: Calling mapping from Action



 Hi
 Excuse the silly question but how do I specify one of my
 Action mappings as a
 forward for another mapping using Struts 1.0.2 ?
 Currently I am trying forward name=cutOffSearch
 path=/cutOffInit.do / as a
 forward for my Action in my xml file but I just get file not found and
 variations of this produce invalid mapping errors.
 Is this possible ?
 thanks very much
 Aisling


Have you tried using /cutOffInit instead of /cutOffInit.do?

Example:

  forward name=cutOffSearch path=/cutOffInit /



--
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 and OSWorkflow

2002-08-26 Thread Matthias Bauer

The library works with struts 1.1, but the following modifications need to be 
done to the test application:

1. In web.xml, the init-parameter mapping is not used anymore. Instead, you
must add className=com.livinglogic.struts.workflow.ApplicationMapping in
every action in struts-config.xml.

2. Also, the *common.jar files needed in struts 1.1 must be present in the
.war deployed with the sample application.

Aside from this, there is a minor bug in the web.xml file of the test 
application that causes the server to choke, if it parses web.xml with a 
validating parser: The second servlet-mapping section has to be placed 
directly beneath the first one. I will soon put a bugfix release on the web page.

--- Matthias


Frederic Laub wrote:
 Your Struts Workflow Extension seems very interesting but does it does work
 with struts 1.1?
 In the example only struts 1.0 is mentionned.
 
 Frederic
 
 -Original Message-
 From: Matthias Bauer [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 23, 2002 11:44 AM
 To: Struts Users Mailing List
 Subject: Re: struts and OSWorkflow
 
 
 Depending on the way how you define workflow, there is a Struts Workflow
 Extension that may fulfill your needs:
 
 It mainly focuses on the developer's needs to prevent the user from leaving
 the
 normal sequence of actions in a, for instance, wizard like application.
 
 Let's look at an example: The workflow extension can guarantee that the user
 traverses an application by executing Action A before executing Action B.
 This
 way you don't need to check in Action B, if the data that Action A has put
 into
 the session is already available, because you can rely on the fact that
 Action B
 can only be executed, if Action A has been executed before. I. e. you can
 design
 your web application more like a classical GUI application where you have
 modal
 dialogs and where you can be perfectly sure, that nobody can send a request
 you
 do never expect at this point in time. The baseline is: Your action code
 becomes
 far less complex and your application is more robust.
 
 In case you want to check it out: www.livinglogic.de/Struts/
 
 --- Matthias
 
 
 VEDRE, RANAPRATAP REDDY wrote:
 
we are trying to integrate OSWorkflow with struts for one of our projects.
Does any of you know any other workflow engine that works well with
 
 struts.
 
The struts workflow extension did not satisfy our needs.

any input about how OSWorkflow and struts can be integrated are welcome.

OSWorkflow link : http://opensymphony.com/osworkflow

 Thanks,
  -Rana

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




Status of Struts integration with container managed security and alternatives

2002-08-26 Thread Michael

I've recently played with the container managed security of J2EE (using
Tomcat) and the attempt at integrating it into Struts 1.1.  I see that a
roles attribute has been added to the action tag in the struts
config XML file.  The problem is with tag is that it doesn't work.  I
posted a couple questions about this and didn't get much of a response
so my impression is no one is using this feature.  So my question is any
work being done on this?  And what are the alternatives?  I know I can
protect the actions using the normal J2EE container managed security
mechanism.  The only problem I see with that is that I now have to keep
the actions in my struts config xml file in sync with the actions in my
web.xml file.  Are there any other solutions?

Michael


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




RE : Status of Struts integration with container managed security and alternatives

2002-08-26 Thread Michael

 tag in the struts config XML file.  The problem is with tag 
 is that it doesn't work.  I posted a couple questions about 

A slight clarification I meant to add.  The roles attribute will prevent
the user from using the action if the user doesn't belong to the roles
specified.  However that alone is not enough to be useful.  I don't
think anyone can use this feature the way it is currently functioning.
If the user hasn't authenticated the user is given an error page.  From
Craig's comments, it doesn't seem possible to redirect the user to a
login page.   To accomplish this, the security must be specified in the
web.xml file.

Michael



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




[ANNOUNCE| Struts Workflow Extension Package V0.9.1

2002-08-26 Thread Matthias Bauer

To all struts users!

I just released the Bugfix-Version 0.9.1 of the Struts Workflow Extension Package.

It fixes a bug in the test application's web.xml file, some users have stumbled 
over.

Also the web site http://www.livinglogic.de/Struts/ has been updated to describe 
how to use the extension together with Struts 1.1.

--- Matthias


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




RE: Problem with Struts 1.1b2 and Weblogic

2002-08-26 Thread Lajos Papp

Hi,

 I upgraded to Struts 1.1b2 from an earlier version of Struts 1.1 and
 Weblogic gives an error at startup.
 Not sure if thats to do with Struts, Weblogic or both.

It's definitely not to do with struts. The 1.1b2 struts-example.war is
deployable with WLS 7.0 without any problem.

 Weblogic wasnt giving any problem with the earlier version of 1.1
 
 ...
 could not be handled by the ClassLoader with classpath
 C:\bea\user_projects\mydomain\applications\mediamania;C:\bea\user_pr
 oject.

I have got this error message with an earlier struts version on WLS 7.0.
I could fix this error, with undeploying the application and redeploy it
under a new name. 
Be careful, if you kill the WLS process it will remain some jar files in
the .wlnotdelete directory, and I think this is the main reason for
the classpath problem.

 One more question
 --
 In the error message classpaths are printed on the console like
 commons-digester21941.jar, commons-pool21944.jar and so on Why is
 the number appended to the end?

The Weblogic server will copy all the jar files from the WEB-INF/lib
directory where you deployed from, into some internal directory
(.wlnotdelete). But this copy is not only a simple copy. The WLS
rename the file (some numbers appended at the end), and looks into the
jar files, and will modify the META-INF/MANIFEST.MF if it contains any
Class-Path entry. He needs it because the changed file names. 
Look the original MANIFEST.MF (from struts.jar) and the other one, found
in the struts52807.jar: 

Original:

Class-Path: commons-beanutils.jar commons-collections.jar commons-dbcp
 .jar commons-digester.jar commons-logging.jar commons-pool.jar common
 s-services.jar commons-validator.jar jakarta-oro.jar

Modified:
-
Class-Path: commons-beanutils52801.jar;commons-collections52812.jar

Note that the WLS's class-path is shorter, and uses ; as separator (on
my NT machine)

Another interesting thing is that WLS makes 2 copies of the jar files.
The first one (struts52793.jar) has no file attributes set, but the
second one (struts52807.jar) is archive. Only the second one is used
in the classpath. 

Lajos Papp

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




Re: Message Resources Placement

2002-08-26 Thread John Yu


speculation reason=I haven't used eclipse w/ sysdeo plugin
I suspect the problem is that the plugin adds struts.jar to the system (ie. 
tomcat's) classpath. So, all Struts' classes don't see WEB-INF/classes.
/speculation


At 06:05 am 26-08-2002, you wrote:
I think I've solved it!!!  Short story: add your /classes folder to 
tomcat's classpath.  Long story below (gurus please see questions at bottom):

I'm using struts 1.0.2, tomcat 4.0.4, and eclipse with the sysdeo tomcat 
plugin as a development environment.  The way struts finds/loads the 
messages file is by using the classloader and the getResourceAsStream() 
method.  That means the messages file must be on the runtime classpath for 
the classloader to be able to see it.

Now, I had some struts projects that worked and some new ones that 
couldn't use the bean:message tag without throwing the error I described 
previously.  All I did was (through eclipse) add my new project to 
tomcat's classpath.  I'm not sure what the plugin does behind the scenes 
but I imagine it starts tomcat with something like:
java tomcat -cp /myapp/classes

Can someone confirm that this is what is going on?  When I deploy my app
outside of my development environment will I need to start tomcat with 
this type of statement?  I assumed webapps were automatically on the 
containers runtime classpath, is that wrong?

Dave

Hi. I'm having the exact same problem, so I can't help you. But I am 
interested in the solution!  If you solve it, please let me know.  Here's 
my previous (unanswered) post, in case you're interested:


I'm using v. 1.02 and Sun J2EE SDK 1.3.1 (Tomcat) and have been trying to 
get Struts to start up without much luck because of 
ApplicationResources.properties. Currently, I have extended ActionServlet 
to spy on what init() is doing, and I see the log message:
Loading application resources from resource ApplicationResources.properties
Looks good! The file is in the same directory as the new servlet 
(/WEB-INF/classes) so it can't be a path problem.
However, my first action (init.do) simply loads a JSP that includes the code:
logic:notPresent name=org.apache.struts.action.MESSAGE 
scope=application
font color=red
ERROR: Application resources not loaded -- check servlet container
logs for error messages.
/font
/logic:notPresent
Which does its job and displays this error message. Why?
I even tried:
% out.println(config file =  + config.getInitParameter(application)); %
and it printed config file = null.
Also, if I try to display a message then it gives a message with key XXX 
not found, as I would expect, given the above behavior.


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




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


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

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

Scioworks Camino - Don't develop Struts Apps without it!


Application Context Access

2002-08-26 Thread petra staub


I dont understand the following:

I have a struts application, lets call it MyApp,
which actions call jsp pages under MyApp/WEB-INF/pages.
additionally, I have images stored in the root of my
application (MyApp/images).

Why cant I access the images in MyApp using the relative
path /images? If I do so in a jsp file (eg. MyApp/WEB-INF/
pages/home.jsp) forwarded from my action, the relative
directory /images is not known...I have to use /MyApp/images/.
From a jsp in the root (e.g. MyApp/home.jsp) every works fine
with images accessed by /images.

Does anyone has a quick explanation for me? :)

thanks a lot!




_
Mit MSN Fotos können Sie kinderleicht Ihre Fotos ausdrucken und Freunden zur 
Verfügung stellen: http://photos.msn.de


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




BeanUtils

2002-08-26 Thread petra staub

hi,

I know this is a struts-maillist but as the beanutils are
commonly used with struts (and I didnt get any feedback in
the commons-user list) I dare to ask my question here. :)

i recently came over the very useful classes
of the BeanUtils package. however, i have some problems...

for testing, i simply wanted to use the copyProperties
method to populate the values of one object to an other
(empty) object.

i created a class with different properties (int, float,
String, Hashtable, Vector) and the corresponding getters/
setters.

everything worked fine (the values were copied :) ) except
for the Vector which gave me an error:

Error in PropertyUtils.copyProperties():
Property vecElem has no getter method

however, I have a method public Vector getVecElem() and even
(for other usage) public Object getVecElem(int idx).

I also tried to used the ArrayList instead of a Vector what helps
to get rid of the error message, however, the values are not
copied.

Are Lists not supported with the BeanUtils? Am I simply doing
something wrong? Maybe someone can help me newbie...

Thanks a lot!



_
Mit MSN Fotos können Sie kinderleicht Ihre Fotos ausdrucken und Freunden zur 
Verfügung stellen: http://photos.msn.de


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




RE: using O/R mapping tools

2002-08-26 Thread Galbreath, Mark

Close:

http://i5.nyu.edu/~mm64/x52.9755/bottle.html


-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 23, 2002 5:49 PM

Lord!  What drivel!  I suggest you read Must We Mean What We Say? by 
Stanley Cavell.  That is a tried and true primer for people stuck inside 
the catacombs of medieval linguistics.  I have never seen Mark's 
site.  Good, eh?  I am not surprised.  What is the url, 
www.100bottles.com?  lol.  Have a good weekend.

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




Question regarding sessions

2002-08-26 Thread Michael Delamere

Hi,

I know that this isn´t a struts specific question but I really could do with
your help.  And this list is a guarantee for competent answers :-) !

My question is: how much should I save in a session?

Scenario:

I have a catalogue with say five levels:

e.g.
alcohol
   - wines
  - red wine
   - bordeaux
   - borgougne
- grapes bla
- grapes blub
   - Loire
  - white wine
  - rose

All of these levels are displayed as a tree on the catalogue page.  The
question I have is as follows: should I save the comlpete tree (with
description) in the session so that I only have to retrieve a particular
level at any given time or should I just save the state of the tree (for
example in a state object which also contains the shopping basket and
user_id etc), which would just consist of the last node of the tree
(node_id)?

Lets say I have put something in the shopping basket and want to return back
to the tree.  Should I rebuild the whole tree by asking the service layer to
return the tree depending on the last node_id or should I re-display the
tree from the session?

Any help on this matter would be very appreciated because it is always good
to hear opinions from others.  I know that this has nothing to with struts
but please

Regards,

Michael



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




DynaActionForm - docs somewhere? Bean Creating Exception?

2002-08-26 Thread Fabian Sommer

Hello!
I try to use DynaActionForms for the first time. I tried to do it the
way explained below, but all I get from Tomcat is this errormessage:
Exception creating bean of class null: {1}
Does anybody know the meaning of this errormessage?
Are there some docs on the use of DynaActionForms somewhere out there?
They seem to miss within actual struts docu...
Thx, Fabian

 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 23, 2002 5:56 PM
 To: Struts Users Mailing List
 Subject: Re: ActionForm and DynaActionForm
 
 
 
 On Fri, 23 Aug 2002, Ashish Kulkarni wrote:
 
  Date: Fri, 23 Aug 2002 07:48:12 -0700 (PDT)
  From: Ashish Kulkarni [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Subject: Re: ActionForm and DynaActionForm
 
 
  Hi,
 
  So does this mean that if i am using DynaActionForm i dont need to
  define any action form .i.e. a class which extends ActionForm and
has
  all the get and set methods for input fields???
 
 If you don't need custom reset() or validate() methods, that is
correct --
 you do not need to create an ActionForm class of your own.
 
 If you do need custom reset() or validate() methods, then you can
still
 subclass DynaActionForm, but you only have to implement those two
methods.
 
  so in this case how can
  i access these fields on in my Action class, normally in my
ActionClass
  i will get the values set in the fields from ActionForm class like
  testform data = (testform) form; where testform is the class which
  extends ActionForm and has get and set method, so in DynaActionForm
if i
  dont have to define ActionForm, how can i get the values in Action
class
 
  Ashish
 
 
 DynaActionForm is an implementation of the DynaBean interface from
 commons-beanutils -- see online JavaDocs at
 http://jakarta.apache.org/commons/beanutils/api.  So, if you've
declared
 your form bean like this:
 
   form-bean name=logonForm ...
 form-property name=username type=java.lang.String/
 form-property name=password type=java.lang.String/
   /form-bean
 
 then, in your LogonAction, you can access the properties like this:
 
   DynaActionForm daf = (DynaActionForm) form; // Save casting every
time
   String username = (String) daf.get(username);
   String password = (String) daf.get(password));
 
 There are also get() methods for accessing indexed and mapped
properties,
 as well as set() methods to update all these things.
 
 You can also use PropertyUtils and BeanUtils to access properties in a
 DynaBean, because they call the get() and set() methods for you
 transparently on a DynaBean.
 
 Craig
 
 
   Craig R. McClanahan wrote:
 
  On Fri, 23 Aug 2002, John Yu wrote:
 
   Date: Fri, 23 Aug 2002 09:51:57 +0800
   From: John Yu
   Reply-To: Struts Users Mailing List
   To: Struts Users Mailing List
   Subject: Re: ActionForm and DynaActionForm
  
   Use ActionForm if you inherit your own JavaBean-compliant
FormBeans.
  
   Use DynaActionForm if you don't want to code the tedious
getter/setter
   methods but rely on the DynaActionForm's dynamic properties (think
   name-value pairs, something like HashMap). (Note: DynaActionForm
is
   *psuedo* JavaBean-compliant. It behaves as if it's a JavaBean with
the
   BeanUtils library.)
  
   To use DynaActionForm, you need to specify the elements
   inside the config element and specify 'dynamic=true'.
  
 
  Note that dynamic=true is no longer required in 1.1-b2. It was a
hack
  to get around some developer laziness at the time this code was
 initially
  created :-).
 
  Craig
 


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




Re: BeanUtils

2002-08-26 Thread petra staub

concerning my own question:

so far i realized that it has to do with my mapping somehow.
before i had mapped *.do to my actionservlet and then
images/someimg.gif worked and now, as i switched over to use
/do/ for mapping, it doesn't work anymore with images/someimg.gif
and i have to use MyApp/images/someimg.gif...

any ideas, suggestions?

thanks!


_
Mit MSN Fotos können Sie kinderleicht Ihre Fotos ausdrucken und Freunden zur 
Verfügung stellen: http://photos.msn.de


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




Re: Application Context Access

2002-08-26 Thread petra staub

concerning my own question:

so far i realized that it has to do with my mapping somehow.
before i had mapped *.do to my actionservlet and then
images/someimg.gif worked and now, as i switched over to use
/do/ for mapping, it doesn't work anymore with images/someimg.gif
and i have to use MyApp/images/someimg.gif...

any ideas, suggestions?

thanks!

_
Testen Sie MSN Messenger für Ihren Online-Chat mit Freunden: 
http://messenger.msn.de


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




Re: DynaActionForm - docs somewhere? Bean Creating Exception?

2002-08-26 Thread mailinglist



 Hello!
 I try to use DynaActionForms for the first time. I tried to do it the
 way explained below, but all I get from Tomcat is this errormessage:
 Exception creating bean of class null: {1}
 Does anybody know the meaning of this errormessage?
 Are there some docs on the use of DynaActionForms somewhere out there?
 They seem to miss within actual struts docu...
 Thx, Fabian

You can download and read Chuck's preview:
http://www.theserverside.com/resources/strutsreview.jsp


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




Re: Question regarding sessions

2002-08-26 Thread Michael Delamere

Hi,

would the problem with that not be, that if the tree changes at any given
time, that this would not be reflected in the singleton instance of the
tree?

I suppose that I have answered the question myself!?

What I was talking about was reflecting the state of the tree (catalogue)
for each user in a session.  The options here would be to either save the
partial tree (the sections that are open) including descriptions or to
simply save the last node of the tree for rebuilding it at a later stage.

I suppose the fact that descriptions or availability can change really
answers the question in itself!  I was hoping that someone might have had
some experience with this matter and could give me some tips based on this
experience.

The same goes with the shopping basket. The question was, saving product
objects with prices, descriptions etc in a vector and retrieving them again
out of the session when the user wants to have a look at what he has added
into the basket.  Of course, again here, if there is a threat that details
or availablity may change, then there is no point in saving whole product
objects in the session.  This is probably also very memory consuming?!

Sorry, I´m just thinking out loud in the hope that someone will cry out with
something obvious!

Regards,

Michael


- Original Message -
From: Robert Taylor [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, August 26, 2002 1:39 PM
Subject: RE: Question regarding sessions


 Michael,

 If the wine catalog is read only and displayed for all users, then you may
 want to consider retrieving the entire tree and caching it in
 javax.servlet.ServletContext. This way, you have a single instance of the
 tree available to all users who at any one time may experience a different
 view of the tree at the expense of a single database hit when your
 application is initialized. Your users benefit from the speed at which the
 tree is displayed and your system consumes less memory.

 HTH,

 robert

  -Original Message-
  From: Michael Delamere [mailto:[EMAIL PROTECTED]]
  Sent: Monday, August 26, 2002 7:31 AM
  To: Struts Users Mailing List
  Subject: Question regarding sessions
 
 
  Hi,
 
  I know that this isn´t a struts specific question but I really
  could do with
  your help.  And this list is a guarantee for competent answers :-) !
 
  My question is: how much should I save in a session?
 
  Scenario:
 
  I have a catalogue with say five levels:
 
  e.g.
  alcohol
 - wines
- red wine
 - bordeaux
 - borgougne
  - grapes bla
  - grapes blub
 - Loire
- white wine
- rose
 
  All of these levels are displayed as a tree on the catalogue page.  The
  question I have is as follows: should I save the comlpete tree (with
  description) in the session so that I only have to retrieve a particular
  level at any given time or should I just save the state of the tree (for
  example in a state object which also contains the shopping basket and
  user_id etc), which would just consist of the last node of the tree
  (node_id)?
 
  Lets say I have put something in the shopping basket and want to
  return back
  to the tree.  Should I rebuild the whole tree by asking the
  service layer to
  return the tree depending on the last node_id or should I re-display the
  tree from the session?
 
  Any help on this matter would be very appreciated because it is
  always good
  to hear opinions from others.  I know that this has nothing to with
struts
  but please
 
  Regards,
 
  Michael
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


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



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




RE: Question regarding sessions

2002-08-26 Thread Robert Taylor

A general strategy for sessions is to minimize the amount you have to store
in them because the user is unpredictable and can cause your system to
consume resources unneccessarily by loading up the session and then leaving
(this can be controlled to some degree by using session time out and other
techniques). By minimize, I mean storing a primary key instead of the entire
object graph. Yes, this requires a database hit to retrieve the detailed
information, but at least you have control over when the hit occurs.

As far as using the ServletContext, you would only want to store static data
here or provide the ability to refresh objects whose state is updated
infrequently.

Your question is quite common and you may want to search the mailing list
archives for more solutions. The bottom line, is there is no simple answer.
You have to weigh the pros and cons for your situation. You may want to
check Sun's site and their Blueprints section for additional strategies. The
J2EE interest list would be another good source for general server side
programming questions. Oh yeah, theserverside.com is another good
resource and Google and UseNet are also good resources.

Good luck.

robert

 -Original Message-
 From: Michael Delamere [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 26, 2002 8:15 AM
 To: Struts Users Mailing List
 Subject: Re: Question regarding sessions


 Hi,

 would the problem with that not be, that if the tree changes at any given
 time, that this would not be reflected in the singleton instance of the
 tree?

 I suppose that I have answered the question myself!?

 What I was talking about was reflecting the state of the tree (catalogue)
 for each user in a session.  The options here would be to either save the
 partial tree (the sections that are open) including descriptions or to
 simply save the last node of the tree for rebuilding it at a later stage.

 I suppose the fact that descriptions or availability can change really
 answers the question in itself!  I was hoping that someone might have had
 some experience with this matter and could give me some tips based on this
 experience.

 The same goes with the shopping basket. The question was, saving product
 objects with prices, descriptions etc in a vector and retrieving
 them again
 out of the session when the user wants to have a look at what he has added
 into the basket.  Of course, again here, if there is a threat that details
 or availablity may change, then there is no point in saving whole product
 objects in the session.  This is probably also very memory consuming?!

 Sorry, I´m just thinking out loud in the hope that someone will
 cry out with
 something obvious!

 Regards,

 Michael


 - Original Message -
 From: Robert Taylor [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Monday, August 26, 2002 1:39 PM
 Subject: RE: Question regarding sessions


  Michael,
 
  If the wine catalog is read only and displayed for all users,
 then you may
  want to consider retrieving the entire tree and caching it in
  javax.servlet.ServletContext. This way, you have a single
 instance of the
  tree available to all users who at any one time may experience
 a different
  view of the tree at the expense of a single database hit when your
  application is initialized. Your users benefit from the speed
 at which the
  tree is displayed and your system consumes less memory.
 
  HTH,
 
  robert
 
   -Original Message-
   From: Michael Delamere [mailto:[EMAIL PROTECTED]]
   Sent: Monday, August 26, 2002 7:31 AM
   To: Struts Users Mailing List
   Subject: Question regarding sessions
  
  
   Hi,
  
   I know that this isn´t a struts specific question but I really
   could do with
   your help.  And this list is a guarantee for competent answers :-) !
  
   My question is: how much should I save in a session?
  
   Scenario:
  
   I have a catalogue with say five levels:
  
   e.g.
   alcohol
  - wines
 - red wine
  - bordeaux
  - borgougne
   - grapes bla
   - grapes blub
  - Loire
 - white wine
 - rose
  
   All of these levels are displayed as a tree on the catalogue
 page.  The
   question I have is as follows: should I save the comlpete tree (with
   description) in the session so that I only have to retrieve a
 particular
   level at any given time or should I just save the state of
 the tree (for
   example in a state object which also contains the shopping basket and
   user_id etc), which would just consist of the last node of the tree
   (node_id)?
  
   Lets say I have put something in the shopping basket and want to
   return back
   to the tree.  Should I rebuild the whole tree by asking the
   service layer to
   return the tree depending on the last node_id or should I
 re-display the
   tree from the session?
  
   Any help on this matter would be very appreciated because it is
   always good
 

please, help! debugging Struts with VisualAge for Java and Tomcat

2002-08-26 Thread Patria Lukman

Hello everyone

I really don't want to bother you people, since this
question might be addressed to VisualAge users...
But I figure out that in this list there might be some
people using it as a development tool.
I have VAJ 3.5 Professional edition and Tomcat 4.0.b
integrated with it...
How can debug a Struts application using VAJ debugging
facilities? I have followed the articles found in the
Net but without much avail...
Thank you very much for your time.
P


__ 
Post your ad for free now! http://personals.yahoo.ca

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




RE: DynaActionForm - docs somewhere? Bean Creating Exception?

2002-08-26 Thread Fabian Sommer

Whoever you are - could you please point me to the chapter where I find
help in understanding DynaActionForms? And are there any error-codes
explained?
Thx, Fabian

 -Original Message-
 From: mailinglist [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 26, 2002 1:50 PM
 To: Struts Users Mailing List
 Subject: Re: DynaActionForm - docs somewhere? Bean Creating Exception?
 
 
 
  Hello!
  I try to use DynaActionForms for the first time. I tried to do it
the
  way explained below, but all I get from Tomcat is this errormessage:
  Exception creating bean of class null: {1}
  Does anybody know the meaning of this errormessage?
  Are there some docs on the use of DynaActionForms somewhere out
there?
  They seem to miss within actual struts docu...
  Thx, Fabian
 
 You can download and read Chuck's preview:
 http://www.theserverside.com/resources/strutsreview.jsp
 
 
 --
 To unsubscribe, e-mail:   mailto:struts-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:struts-user-
 [EMAIL PROTECTED]


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




RE: Question regarding sessions

2002-08-26 Thread Robert Parker

Members Equity Email System


-Original Message-
From: Michael Delamere [mailto:[EMAIL PROTECTED]]
Sent: Monday, 26 August 2002 10:15PM
To: Struts Users Mailing List
Subject: Re: Question regarding sessions


[snip]

The same goes with the shopping basket. The question was, saving product
objects with prices, descriptions etc in a vector and retrieving them again
out of the session when the user wants to have a look at what he has added
into the basket.  Of course, again here, if there is a threat that details
or availablity may change, then there is no point in saving whole product
objects in the session.  This is probably also very memory consuming?!

I have previously stored just the product key (id), name, price and quantity
in the shopping basket (session), ie, just the minimum. You will always need
the key. The name is useful so that you can always show a sumary of what is
in the basket. You need to store the price to avoid the situation of the
prices changing during a session (dont want to give customers a nasty
suprise). Quantity - always need this.

If the user requests a detiled shopping basket display, wear the cost of
doing a database lookup for the descriptions etc...

Stock control. You have two choices, check for stock at product selection
time, ie into the basket, or at checkout. If you decrement the stock count
at product selection time, you can use a session listener to check if there
are any items in the basket when the session expires. That way you can
're-stock' the shelves where you have abandoned shopping baskets. If you
decrement the stock level at checkout time, you run the risk of running out
- its as if somebody stole items out of your users shopping baskets as they
were waiting at the checkout..

regards

Rob



MEMBERS EQUITY PTY LTD ABN 56 070 887 679



This email and any attachments are confidential. If you are not the

intended recipient, you must not disclose, distribute, copy or use the

information contained in this e-mail or any attachments. If you have

received this email in error, please tell us immediately by return email

and delete this e-mail and any attachments.



This message should not be removed.



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


RE: How to access current Tiles definition name?

2002-08-26 Thread Holman, Cal

Christian I don't think you can read the definition but you can get to the
attributes.  To change the menu look based on the page being displayed I use
an additional parameter in each page definition - 'page'.  The jsp then
looks for the 'page' and modifies the menu to display the page being
displayed.  To modify the stylesheet and base template on the fly, I modify
the base definition substituting the template and style attributes on the
fly.  

There are a couple of examples of Tile reading and modifying the definitions
in the Tiles war.  There is a TilesAction that is initiated off the tiles
definition with the controllerUrl parameter or a path parameter pointing to
a TilesAction.

Cal 

http://www.calandva.com/   

-Original Message-
From: Christian Oldiges [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 22, 2002 16:44
To: Struts Users Mailing List
Subject: How to access current Tiles definition name?

Hi!

Is it possible to retrieve the tiles definition name within a JSP that
is part of the currently processed definition?

Example:

definition name=rootLayout path=/layouts/rootLayout.jsp
put name=menuvalue=/tiles/menu.jsp /
put name=content value=/tiles/content/empty.jsp /
put name=rightBarvalue=/tiles/newsbar.jsp /
/definition

definition name=site.page1 extends=rootLayout 
put name=title   value=blabla /
put name=content value=/tiles/content/page1.jsp /
/definition

definition name=site.page2 extends=rootLayout 
put name=title   value=blabla /
put name=content value=/tiles/content/page2.jsp /
/definition

Now within /tiles/menu.jsp I want to find out which tiles definition
is active. site.page1 or site.page2

TIA,
Christian


--
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: DynaActionForm - docs somewhere? Bean Creating Exception?

2002-08-26 Thread Fabian Sommer

   Exception creating bean of class null: {1}
   Does anybody know the meaning of this errormessage?
   Are there some docs on the use of DynaActionForms somewhere out
 there?
   They seem to miss within actual struts docu...
   Thx, Fabian
 
  You can download and read Chuck's preview:
  http://www.theserverside.com/resources/strutsreview.jsp
 
Got it myself now:
I have to add the DynaActionForm-class for the bean - I should have
gotten this earlier... ;)

form-bean name=wauswahl
type=org.apache.struts.action.DynaActionForm
form-property name=wid type=java.lang.String/
/form-bean




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




Editable/non-editable fields

2002-08-26 Thread Tom Klaasen

Hi all,

It's been some time, but it seems I'm back :)

I'm currently working on a project where lots of forms are used. The forms are backed 
up by a DB. Somewhere in the DB, there is a table which tells me which fields should 
be editable and which shouldn't (they should only be displayed).

Until now, we were looking in the db manually, and changing tags if some field changed 
from editable to non-editable.

We want to change that: let our application look in the db and decide whether the 
current property should be editable or not.

I've already implemented this for html:text fields (which was fairly trivial), but now 
I want to do this for html:select fields also. This seems to be less trivial to say 
the least.

I just looked around on the net and found http://struts.application-servers.com, but 
it seems to be too restricting in terms of layout and granularity.

Does anybody has any pointers on solutions for editable/non-editable fields? Basically 
I want one tag that can decide whether it's editable or not (based on business logic 
that I provide). Eg a text tag that is editable would generate the same output as 
html:text, if it's not editable it would be a bean:write followed by a html:hidden.

(I've used struts some months ago, and I'm not totally up to speed with its recent 
developments, so please forgive me if this is a trivial question.)

Any pointers are appreciated!

Thanks,
tomK


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




Populating values in checkbox incrementally and dynamically

2002-08-26 Thread Anoop

Hi,

The task is to populate values onto the checkbox dynamically and
incrementally from an array. I have something like this in my jsp-

logic:iterate id=user name=user
 html:multibox name=UserDetail property=status
bean:write name=UserDetail property=status/
  /html:multibox
/logic:iterate

getStatus() in my UserDetail bean returns an array of string.

Here, I need the value for my checkbox to be in incremental fashion. Like,
1,2,3.

I want my final HTML to look like:

input type=checkbox name=status value=1
input type=checkbox name=status value=2
input type=checkbox name=status value=3 ...


Thanks a lot,

Anoop.



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




RE: Editable/non-editable fields

2002-08-26 Thread Kevin A. Smith

Could you set the disabled attribute on the controls? This would still display the 
info to the user, but they wouldn't be able to edit it. On a previous project, we 
hacked some of the Struts tags to support this attribute, it wasn't that hard. Maybe a 
few days of work.

-Original Message-
From: Tom Klaasen [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 9:09 AM
To: [EMAIL PROTECTED]
Subject: Editable/non-editable fields


Hi all,

It's been some time, but it seems I'm back :)

I'm currently working on a project where lots of forms are used. The forms are backed 
up by a DB. Somewhere in the DB, there is a table which tells me which fields should 
be editable and which shouldn't (they should only be displayed).

Until now, we were looking in the db manually, and changing tags if some field changed 
from editable to non-editable.

We want to change that: let our application look in the db and decide whether the 
current property should be editable or not.

I've already implemented this for html:text fields (which was fairly trivial), but now 
I want to do this for html:select fields also. This seems to be less trivial to say 
the least.

I just looked around on the net and found http://struts.application-servers.com, but 
it seems to be too restricting in terms of layout and granularity.

Does anybody has any pointers on solutions for editable/non-editable fields? Basically 
I want one tag that can decide whether it's editable or not (based on business logic 
that I provide). Eg a text tag that is editable would generate the same output as 
html:text, if it's not editable it would be a bean:write followed by a html:hidden.

(I've used struts some months ago, and I'm not totally up to speed with its recent 
developments, so please forgive me if this is a trivial question.)

Any pointers are appreciated!

Thanks,
tomK


--
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: Editable/non-editable fields

2002-08-26 Thread Sri Sankaran

If I understand you question correctly, you want to dynamically determine whether to 
display the data in an editable manner or not.

You could save the condition (that determines whether to allow edits or not) in the 
form bean and then do something like:

logic:equal property=canEdit value=true
  %-- Editable version goes here --%
/logic:equal
logic:equal property=canEdit value=false
  %-- Non-editable version goes here --%
/logic:equal

At any given time either the editable or the non-editable version will be displayed.  
There are a variety of tags in the logic library.  You can try equal, match, present 
etc.

Sri

-Original Message-
From: Tom Klaasen [mailto:[EMAIL PROTECTED]] 
Sent: Monday, August 26, 2002 9:09 AM
To: [EMAIL PROTECTED]
Subject: Editable/non-editable fields


Hi all,

It's been some time, but it seems I'm back :)

I'm currently working on a project where lots of forms are used. The forms are backed 
up by a DB. Somewhere in the DB, there is a table which tells me which fields should 
be editable and which shouldn't (they should only be displayed).

Until now, we were looking in the db manually, and changing tags if some field changed 
from editable to non-editable.

We want to change that: let our application look in the db and decide whether the 
current property should be editable or not.

I've already implemented this for html:text fields (which was fairly trivial), but now 
I want to do this for html:select fields also. This seems to be less trivial to say 
the least.

I just looked around on the net and found http://struts.application-servers.com, but 
it seems to be too restricting in terms of layout and granularity.

Does anybody has any pointers on solutions for editable/non-editable fields? Basically 
I want one tag that can decide whether it's editable or not (based on business logic 
that I provide). Eg a text tag that is editable would generate the same output as 
html:text, if it's not editable it would be a bean:write followed by a html:hidden.

(I've used struts some months ago, and I'm not totally up to speed with its recent 
developments, so please forgive me if this is a trivial question.)

Any pointers are appreciated!

Thanks,
tomK


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




If-Then-Else in Validator?

2002-08-26 Thread Jerry Jalenak

Hi All,

I have a single form that, based on a bean property value, will display 1 of
4 possible input forms (this is used for data entry purposes).  There is
only one action associated with the form.  In simple terms, it looks like
this:

html:form action=DataEntry.do method=post
logic:equals property=TableName value=table1
... display input form for table1
/logic:equals
logic:equals property=TableName value=table2
... display input form for table2
/logic:equals
logic:equals property=TableName value=table3
... display input form for table3
/logic:equals
logic:equals property=TableName value=table4
... display input form for table4
/logic:equals


There are no common fields between the input forms.  I would like to use
Validator to handle all of my form validation, but cannot figure out how to
do so.  If I declare (in struts-config) that my form-bean is of type
DynaValidatorForm, then I must validate all of the fields in the form-bean,
whether they are required or not.  If I use DynaValidatorActionForm, I don't
know which fields to validate since the table can be different each time.  I
do have a html:hidden tag at the end of each table that contains the table
name.  Is there an If-Then-Else construct in validator that I can use to
check the hidden text field and then perform the appropriate field
validation?  The only other option that I can see is to split the table into
4 separate forms, and then use DynaValidatorForm

Any other ideas?

Thanks in advance.

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496
[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at (800)388-4675.



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




submit form from popup window to parent window

2002-08-26 Thread jeffrey . reid

Hi all,

I have a form that appears in a popup window (created via a call to IE's
showModalDialog()), that I would like to submit back to the parent window.
The target attribute on the html:form tag only seems to allow you to
specify which frame you want to submit to, not which window.  Does anyone
know how to do this?

Thanks, Jeff.



This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase  Co., its
subsidiaries and affiliates.


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




Re: RE: Editable/non-editable fields

2002-08-26 Thread Tom Klaasen

Hi Sri,


Thanks for your reply.

There are a few problems though:

1) I don't like to have a myriad of logic:equal in the jsp's. They tend to become 
unmaintainable.
2) More important, there won't be one global canEdit property: each field would have 
to decide for itself whether it's editable or not. Something like
blah:text name=myName property=myProperty/
would look in the DB to decide whether myName.myProperty is editable or not. It's all 
about granularity (the same problem I'm having with the layout: taglib).


Thanks though!

tomK



 Struts Users Mailing List [EMAIL PROTECTED] wrote:


If I understand you question correctly, you want to dynamically 
determine whether to display the data in an editable manner or not.

You could save the condition (that determines whether to allow edits or 
not) in the form bean and then do something like:


  


  


At any given time either the editable or the non-editable version will 
be displayed.  There are a variety of tags in the  library.  You 
can try equal, match, present etc.

Sri

-Original Message-
From: Tom Klaasen [mailto:[EMAIL PROTECTED]] 
Sent: Monday, August 26, 2002 9:09 AM
To: [EMAIL PROTECTED]
Subject: Editable/non-editable fields


Hi all,

It's been some time, but it seems I'm back :)

I'm currently working on a project where lots of forms are used. The 
forms are backed up by a DB. Somewhere in the DB, there is a table which 
tells me which fields should be editable and which shouldn't (they 
should only be displayed).

Until now, we were looking in the db manually, and changing tags if some 
field changed from editable to non-editable.

We want to change that: let our application look in the db and decide 
whether the current property should be editable or not.

I've already implemented this for html:text fields (which was fairly 
trivial), but now I want to do this for html:select fields also. This 
seems to be less trivial to say the least.

I just looked around on the net and found 
http://struts.application-servers.com, but it seems to be too 
restricting in terms of layout and granularity.

Does anybody has any pointers on solutions for editable/non-editable 
fields? Basically I want one tag that can decide whether it's editable 
or not (based on business logic that I provide). Eg a text tag that is 
editable would generate the same output as html:text, if it's not 
editable it would be a bean:write followed by a html:hidden.

(I've used struts some months ago, and I'm not totally up to speed with 
its recent developments, so please forgive me if this is a trivial 
question.)

Any pointers are appreciated!

Thanks,
tomK


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



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




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




Re: RE: Editable/non-editable fields

2002-08-26 Thread Tom Klaasen

Hi Kevin,


Thanks for your reply!

This seems to be a good second-choice solution in case the other one won't work. 
However, I'm afraid it would clutter the layout and confuse the user to have disabled 
and non-disabled fields mixed together. A non-editable field should be a html string 
instead of a html input ...


Thanks again

tomK


 Struts Users Mailing List [EMAIL PROTECTED] wrote:


Could you set the disabled attribute on the controls? This would still 
display the info to the user, but they wouldn't be able to edit it. On a 
previous project, we hacked some of the Struts tags to support this 
attribute, it wasn't that hard. Maybe a few days of work.

-Original Message-
From: Tom Klaasen [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 9:09 AM
To: [EMAIL PROTECTED]
Subject: Editable/non-editable fields


Hi all,

It's been some time, but it seems I'm back :)

I'm currently working on a project where lots of forms are used. The 
forms are backed up by a DB. Somewhere in the DB, there is a table which 
tells me which fields should be editable and which shouldn't (they 
should only be displayed).

Until now, we were looking in the db manually, and changing tags if some 
field changed from editable to non-editable.

We want to change that: let our application look in the db and decide 
whether the current property should be editable or not.

I've already implemented this for html:text fields (which was fairly 
trivial), but now I want to do this for html:select fields also. This 
seems to be less trivial to say the least.

I just looked around on the net and found 
http://struts.application-servers.com, but it seems to be too 
restricting in terms of layout and granularity.

Does anybody has any pointers on solutions for editable/non-editable 
fields? Basically I want one tag that can decide whether it's editable 
or not (based on business logic that I provide). Eg a text tag that is 
editable would generate the same output as html:text, if it's not 
editable it would be a bean:write followed by a html:hidden.

(I've used struts some months ago, and I'm not totally up to speed with 
its recent developments, so please forgive me if this is a trivial 
question.)

Any pointers are appreciated!

Thanks,
tomK


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



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




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




i18n of internal messages

2002-08-26 Thread [EMAIL PROTECTED]

Hi,

I need to customise some internal messages 
(org.apache.struts.taglib.LocalStrings.properties,
org.apache.struts.util.LocalStrings.properties...).

I first apply the rules for i18n :
I created a ApplicationResources_fr_FR.properties
I put it in the WEB-INF/classes directory and put the following code in my web.wml file
web-app
servlet
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
param-nameapplication/param-name
param-valueApplicationResources/param-value

It works fine for keys like struts.welcome but messages for keys like lookup.bean 
(member of
org.apache.struts.util.LocalStrings.properties) can't be overwritten.

I secondly tried to put a LocalStrings_fr_FR.properties in the WEB-INF/classes 
directory but it doesn't work either.

I've not managed to understand how the internal messages location was set.

Is there a better solution than replacing the original messages files in the my 
struts.jar file ?


--

Faites un voeu et puis Voila ! www.voila.fr


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




RE: submit form from popup window to parent window

2002-08-26 Thread Galbreath, Mark

Jeff,

See the documentation for window.opener.  opener is a reference to the
spawning window from the popup.

Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 9:25 AM

I have a form that appears in a popup window (created via a call to IE's
showModalDialog()), that I would like to submit back to the parent window.
The target attribute on the html:form tag only seems to allow you to
specify which frame you want to submit to, not which window.  Does anyone
know how to do this?

Thanks, Jeff.

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




Re: Question regarding sessions

2002-08-26 Thread Michael Delamere

thanks to all who answered.

Regards,

Michael


- Original Message -
From: Robert Parker [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, August 26, 2002 2:55 PM
Subject: RE: Question regarding sessions


 Members Equity Email System


 -Original Message-
 From: Michael Delamere [mailto:[EMAIL PROTECTED]]
 Sent: Monday, 26 August 2002 10:15PM
 To: Struts Users Mailing List
 Subject: Re: Question regarding sessions


 [snip]

 The same goes with the shopping basket. The question was, saving product
 objects with prices, descriptions etc in a vector and retrieving them
again
 out of the session when the user wants to have a look at what he has
added
 into the basket.  Of course, again here, if there is a threat that
details
 or availablity may change, then there is no point in saving whole product
 objects in the session.  This is probably also very memory consuming?!

 I have previously stored just the product key (id), name, price and
quantity
 in the shopping basket (session), ie, just the minimum. You will always
need
 the key. The name is useful so that you can always show a sumary of what
is
 in the basket. You need to store the price to avoid the situation of the
 prices changing during a session (dont want to give customers a nasty
 suprise). Quantity - always need this.

 If the user requests a detiled shopping basket display, wear the cost of
 doing a database lookup for the descriptions etc...

 Stock control. You have two choices, check for stock at product selection
 time, ie into the basket, or at checkout. If you decrement the stock count
 at product selection time, you can use a session listener to check if
there
 are any items in the basket when the session expires. That way you can
 're-stock' the shelves where you have abandoned shopping baskets. If you
 decrement the stock level at checkout time, you run the risk of running
out
 - its as if somebody stole items out of your users shopping baskets as
they
 were waiting at the checkout..

 regards

 Rob








 --
 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 logic:iterate question

2002-08-26 Thread Bryan Hilterbrand

I figured out my problem...I had a small logic error elsewhere in my code,
so
the form was returning a null for the String array.  Struts does NOT like
null
arrays, and it was apparently going into the ozone.  It would be nice if
Struts
detected nulls and threw some sort of an error.

Bryan

- Original Message -

This code appears to get Tomcat and/or Struts all confused:

JSP
---
bean:define id=userInfo name=userInfoForm /
  [...]
  table
tr
  td align=right class=fieldCaptionName:/td
  tdbean:write name=userInfo property=userName//td
/tr
tr
  td align=right class=fieldCaptionGroup(s):/td
  td
logic:iterate id=group name=userInfo property=groupDescs
  bean:write name=group /
/logic:iterate
  /td
/tr
  /table


Form

public class UserInfoForm extends ActionForm {

private String userName;
private String[] groupDescs;
   [...]
public String getUserName() {
return userName;
}

public String[] getGroupDescs() {
return groupDescs;
}
   [...]
}


When I go to the page, I get a blank page -- there is no error on the page,
and no exception shows up in the Tomcat window.  If I view source, then
all I see is the header stuff.  If I comment out the logic:iterate loop,
then the
rest of the page works fine.  I tried returning an Iterator instead of a
String
array, but that didn't make any difference.

I'm using Struts 1.0.2 on Tomcat 4.0.4.

Any help will be greatly appreciated!

Bryan




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




RE: RE: Editable/non-editable fields

2002-08-26 Thread Kevin A. Smith

We went back and forth on this on my project, also. What was finally agreed upon was 
that it might be less confusing for the user to see an input field grayed out a la 
Windows, than to see input fields replaced with text strings, looking like field 
labels.

Just my $0.02 worth . . .

--Kevin

-Original Message-
From: Tom Klaasen [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 9:37 AM
To: Struts Users Mailing List
Subject: Re: RE: Editable/non-editable fields


Hi Kevin,


Thanks for your reply!

This seems to be a good second-choice solution in case the other one won't work. 
However, I'm afraid it would clutter the layout and confuse the user to have disabled 
and non-disabled fields mixed together. A non-editable field should be a html string 
instead of a html input ...


Thanks again

tomK


 Struts Users Mailing List [EMAIL PROTECTED] wrote:


Could you set the disabled attribute on the controls? This would still 
display the info to the user, but they wouldn't be able to edit it. On a 
previous project, we hacked some of the Struts tags to support this 
attribute, it wasn't that hard. Maybe a few days of work.

-Original Message-
From: Tom Klaasen [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 9:09 AM
To: [EMAIL PROTECTED]
Subject: Editable/non-editable fields


Hi all,

It's been some time, but it seems I'm back :)

I'm currently working on a project where lots of forms are used. The 
forms are backed up by a DB. Somewhere in the DB, there is a table which 
tells me which fields should be editable and which shouldn't (they 
should only be displayed).

Until now, we were looking in the db manually, and changing tags if some 
field changed from editable to non-editable.

We want to change that: let our application look in the db and decide 
whether the current property should be editable or not.

I've already implemented this for html:text fields (which was fairly 
trivial), but now I want to do this for html:select fields also. This 
seems to be less trivial to say the least.

I just looked around on the net and found 
http://struts.application-servers.com, but it seems to be too 
restricting in terms of layout and granularity.

Does anybody has any pointers on solutions for editable/non-editable 
fields? Basically I want one tag that can decide whether it's editable 
or not (based on business logic that I provide). Eg a text tag that is 
editable would generate the same output as html:text, if it's not 
editable it would be a bean:write followed by a html:hidden.

(I've used struts some months ago, and I'm not totally up to speed with 
its recent developments, so please forgive me if this is a trivial 
question.)

Any pointers are appreciated!

Thanks,
tomK


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



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




--
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: question about logic:notPresent in struts-blank of struts1.02

2002-08-26 Thread James Mitchell

No, the logic:present and logic:notPresent simply check for the existence of
some object in some scope.

The org.apache.struts.action.MESSAGE just provides for a unique key so
that one's application objects does not overwrite the frameworks.

Hope that helps


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




 -Original Message-
 From: wu qihua [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, August 25, 2002 11:20 PM
 To: [EMAIL PROTECTED]
 Subject: question about logic:notPresent in struts-blank of struts1.02


the snippet is the following,and I think it means that if
 there not exist
 a MESSAGE class in the pacakge org.apache.struts.action,then will show
 error.but when I look into the struts.jar in the lib directory,the really
 did not exist that class,but inthe display page  there is not such error
 message.Should struts search other lib other  then struts.jar?if
 really,then
 which directory did it
 search except lib.


 logic:notPresent name=org.apache.struts.action.MESSAGE
 scope=application
 ERROR:  Application resources not loaded -- check servlet container
 logs for error messages.
 /logic:notPresent





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


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




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




RE: Application Context Access

2002-08-26 Thread James Mitchell

This may not be the problem, but are you using html:base?

Reason I ask:
html:base and putting jsp under WEB-INF do not play well together.  In fact,
according to the spec, they should not play at all.

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




 -Original Message-
 From: petra staub [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 26, 2002 7:47 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Application Context Access


 concerning my own question:

 so far i realized that it has to do with my mapping somehow.
 before i had mapped *.do to my actionservlet and then
 images/someimg.gif worked and now, as i switched over to use
 /do/ for mapping, it doesn't work anymore with images/someimg.gif
 and i have to use MyApp/images/someimg.gif...

 any ideas, suggestions?

 thanks!

 _
 Testen Sie MSN Messenger für Ihren Online-Chat mit Freunden:
 http://messenger.msn.de


 --
 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: RE: Editable/non-editable fields

2002-08-26 Thread Sukhenko, Mikhail (Contr)

The grayed out feature does not work on all the web browsers though. Be
careful with that. I think even Netscape does not support it.

-Original Message-
From: Kevin A. Smith [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 9:51 AM
To: Struts Users Mailing List
Subject: RE: RE: Editable/non-editable fields


We went back and forth on this on my project, also. What was finally agreed
upon was that it might be less confusing for the user to see an input field
grayed out a la Windows, than to see input fields replaced with text
strings, looking like field labels.

Just my $0.02 worth . . .

--Kevin

-Original Message-
From: Tom Klaasen [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 9:37 AM
To: Struts Users Mailing List
Subject: Re: RE: Editable/non-editable fields


Hi Kevin,


Thanks for your reply!

This seems to be a good second-choice solution in case the other one won't
work. However, I'm afraid it would clutter the layout and confuse the user
to have disabled and non-disabled fields mixed together. A non-editable
field should be a html string instead of a html input ...


Thanks again

tomK


 Struts Users Mailing List [EMAIL PROTECTED] wrote:


Could you set the disabled attribute on the controls? This would still 
display the info to the user, but they wouldn't be able to edit it. On a 
previous project, we hacked some of the Struts tags to support this 
attribute, it wasn't that hard. Maybe a few days of work.

-Original Message-
From: Tom Klaasen [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 9:09 AM
To: [EMAIL PROTECTED]
Subject: Editable/non-editable fields


Hi all,

It's been some time, but it seems I'm back :)

I'm currently working on a project where lots of forms are used. The 
forms are backed up by a DB. Somewhere in the DB, there is a table which 
tells me which fields should be editable and which shouldn't (they 
should only be displayed).

Until now, we were looking in the db manually, and changing tags if some 
field changed from editable to non-editable.

We want to change that: let our application look in the db and decide 
whether the current property should be editable or not.

I've already implemented this for html:text fields (which was fairly 
trivial), but now I want to do this for html:select fields also. This 
seems to be less trivial to say the least.

I just looked around on the net and found 
http://struts.application-servers.com, but it seems to be too 
restricting in terms of layout and granularity.

Does anybody has any pointers on solutions for editable/non-editable 
fields? Basically I want one tag that can decide whether it's editable 
or not (based on business logic that I provide). Eg a text tag that is 
editable would generate the same output as html:text, if it's not 
editable it would be a bean:write followed by a html:hidden.

(I've used struts some months ago, and I'm not totally up to speed with 
its recent developments, so please forgive me if this is a trivial 
question.)

Any pointers are appreciated!

Thanks,
tomK


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



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




--
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: RE: Editable/non-editable fields

2002-08-26 Thread Kevin A. Smith

That is true. But I believe that Netscape supports the disabled attribute in some 
other way, I think. Its been over a year since I worked on the project I'm referring 
to, so I could very well be mistaken.

--Kevin

-Original Message-
From: Sukhenko, Mikhail (Contr) [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 10:08 AM
To: 'Struts Users Mailing List'
Subject: RE: RE: Editable/non-editable fields


The grayed out feature does not work on all the web browsers though. Be
careful with that. I think even Netscape does not support it.

-Original Message-
From: Kevin A. Smith [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 9:51 AM
To: Struts Users Mailing List
Subject: RE: RE: Editable/non-editable fields


We went back and forth on this on my project, also. What was finally agreed
upon was that it might be less confusing for the user to see an input field
grayed out a la Windows, than to see input fields replaced with text
strings, looking like field labels.

Just my $0.02 worth . . .

--Kevin

-Original Message-
From: Tom Klaasen [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 9:37 AM
To: Struts Users Mailing List
Subject: Re: RE: Editable/non-editable fields


Hi Kevin,


Thanks for your reply!

This seems to be a good second-choice solution in case the other one won't
work. However, I'm afraid it would clutter the layout and confuse the user
to have disabled and non-disabled fields mixed together. A non-editable
field should be a html string instead of a html input ...


Thanks again

tomK


 Struts Users Mailing List [EMAIL PROTECTED] wrote:


Could you set the disabled attribute on the controls? This would still 
display the info to the user, but they wouldn't be able to edit it. On a 
previous project, we hacked some of the Struts tags to support this 
attribute, it wasn't that hard. Maybe a few days of work.

-Original Message-
From: Tom Klaasen [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 9:09 AM
To: [EMAIL PROTECTED]
Subject: Editable/non-editable fields


Hi all,

It's been some time, but it seems I'm back :)

I'm currently working on a project where lots of forms are used. The 
forms are backed up by a DB. Somewhere in the DB, there is a table which 
tells me which fields should be editable and which shouldn't (they 
should only be displayed).

Until now, we were looking in the db manually, and changing tags if some 
field changed from editable to non-editable.

We want to change that: let our application look in the db and decide 
whether the current property should be editable or not.

I've already implemented this for html:text fields (which was fairly 
trivial), but now I want to do this for html:select fields also. This 
seems to be less trivial to say the least.

I just looked around on the net and found 
http://struts.application-servers.com, but it seems to be too 
restricting in terms of layout and granularity.

Does anybody has any pointers on solutions for editable/non-editable 
fields? Basically I want one tag that can decide whether it's editable 
or not (based on business logic that I provide). Eg a text tag that is 
editable would generate the same output as html:text, if it's not 
editable it would be a bean:write followed by a html:hidden.

(I've used struts some months ago, and I'm not totally up to speed with 
its recent developments, so please forgive me if this is a trivial 
question.)

Any pointers are appreciated!

Thanks,
tomK


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



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




--
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: Application Context Access

2002-08-26 Thread petra staub

No, currently I use no struts related taglib only
pure JSTL.

But maybe someone can simply explain me, what is
actually going on... ;)

if i have following mapping in web.xml

  servlet-mapping
servlet-nameaction/servlet-name
url-pattern/do/*/url-pattern
  /servlet-mapping

i thought that *only* url which meet this pattern
are processed by the action servlet, such as
...MyApp/do/callMyAction.

if i now have in my html code something like

img src=images/myIcon.gif

why is it somehow processed/influenced by my mapping?
normally, this image (myIcon.gif) should be directly
accessible (the directory is in the root of the
application) through this relative path, isnt it?

however...of course i could add everywhere the application
name in front (img src=/MyApp/images/myIcon.gif) but
what seems to me quite a work-around i dont like really...




_
Senden und empfangen Sie MSN Hotmail über Ihren PocketPC: 
http://pocketpc.msn.de


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




Re: How to Build error messages dynamically??

2002-08-26 Thread vivraji

Oops. I found where the problem is:


ActionErrors errors = new ActionErrors();
errors.add(ActionErrors.GLOBAL_ERROR,
 new ActionError(error.tablemessage, (String)Pass My message));
saveErrors(request, errors);

Pass the message as a String Object or Integer Object is what is 
expected :)

Thank you Phil.

- Vivek


--- In [EMAIL PROTECTED], Phil Steitz [EMAIL PROTECTED] wrote:
 Vivek Sundararaman wrote:
 
 Hello all
 
 I would appreciate any/ all help for my problem.
 
 We are storing all the errors  messages displayed to the users in 
a
 database.
 We are having a controller making the calls to the database and
 returning the presentation layer asset of errors or messages to be
 displayed.
 
 In my actionclass, after I make the call to the controller, based 
on the
 success or failure of the call, I build the actionerrors with the
 message sent back from controller call. These messages are not
 maintained in the appresources.properties 
 The code in my actionclass looks like:
 
 ActionErrors errors = new ActionErrors();
 errors.add(ActionErrors.GLOBAL_ERROR,
new ActionError
(error.tablemessage, Pass
 My message));
 saveErrors(request, errors);
 
 In my appresources.properties
 error.tablemessage={0}
 
 In my jsp
 html:errors/
 
 This does not print the error messagePass My message on the page.
 
 How to make a dynamic error or message appear in the page?
 
 (I tried to look in the archives for answers, but couldn't find 
one. May
 be I missed it too.)
 
 Thank you
 Vivek
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:struts-user-unsubscribe@j...
 For additional commands, e-mail: mailto:struts-user-help@j...
 
 Vivek,
 
 I have used syntax nearly identical to yours successfully in Struts 
 1.02.   Could be a problem with your jsp or control flow.   Do you 
see 
 the errors header and footer displayed or are you getting a blank 
page?
  
 I would suggest the following:
 
 0.  Inspect your container logs
 1.  Verify that you have the struts bean and html tag libs 
referenced in 
 your jsp and there are no other problems in the jsp
 2.  Add some logging to verify that the ActionErrors constructor is 
 getting the actual parameters that you think it is getting
 3.  Add logging to verify that the saveErrors is getting executed
 
 
 hth,
 
 Phil
 
 
 --
 To unsubscribe, e-mail:   mailto:struts-user-unsubscribe@j...
 For additional commands, e-mail: mailto:struts-user-help@j...


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




Re: RE: RE: Editable/non-editable fields

2002-08-26 Thread Tom Klaasen

Thanks Kevin, I'll take it up with the user base if they like that.

And for the browser compatibility: we're working on an intranet here, so the browsers 
are standardized anyways (which relieves me of tons of headaches :) )

Thanks to all for your helpfulness!


tomK



 Struts Users Mailing List [EMAIL PROTECTED] wrote:


That is true. But I believe that Netscape supports the disabled 
attribute in some other way, I think. Its been over a year since I 
worked on the project I'm referring to, so I could very well be 
mistaken.

--Kevin

-Original Message-
From: Sukhenko, Mikhail (Contr) [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 10:08 AM
To: 'Struts Users Mailing List'
Subject: RE: RE: Editable/non-editable fields


The grayed out feature does not work on all the web browsers though. 
Be
careful with that. I think even Netscape does not support it.

-Original Message-
From: Kevin A. Smith [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 9:51 AM
To: Struts Users Mailing List
Subject: RE: RE: Editable/non-editable fields


We went back and forth on this on my project, also. What was finally 
agreed
upon was that it might be less confusing for the user to see an input 
field
grayed out a la Windows, than to see input fields replaced with text
strings, looking like field labels.

Just my $0.02 worth . . .

--Kevin

-Original Message-
From: Tom Klaasen [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 9:37 AM
To: Struts Users Mailing List
Subject: Re: RE: Editable/non-editable fields


Hi Kevin,


Thanks for your reply!

This seems to be a good second-choice solution in case the other one 
won't
work. However, I'm afraid it would clutter the layout and confuse the 
user
to have disabled and non-disabled fields mixed together. A non-editable
field should be a html string instead of a html input ...


Thanks again

tomK


 Struts Users Mailing List  wrote:

   
Could you set the disabled attribute on the controls? This would 
still 
display the info to the user, but they wouldn't be able to edit it. On 
a 
previous project, we hacked some of the Struts tags to support this 
attribute, it wasn't that hard. Maybe a few days of work.

-Original Message-
From: Tom Klaasen [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 9:09 AM
To: [EMAIL PROTECTED]
Subject: Editable/non-editable fields


Hi all,

It's been some time, but it seems I'm back :)

I'm currently working on a project where lots of forms are used. The 
forms are backed up by a DB. Somewhere in the DB, there is a table 
which 
tells me which fields should be editable and which shouldn't (they 
should only be displayed).

Until now, we were looking in the db manually, and changing tags if 
some 
field changed from editable to non-editable.

We want to change that: let our application look in the db and decide 
whether the current property should be editable or not.

I've already implemented this for html:text fields (which was fairly 
trivial), but now I want to do this for html:select fields also. This 
seems to be less trivial to say the least.

I just looked around on the net and found 
http://struts.application-servers.com, but it seems to be too 
restricting in terms of layout and granularity.

Does anybody has any pointers on solutions for editable/non-editable 
fields? Basically I want one tag that can decide whether it's editable 
or not (based on business logic that I provide). Eg a text tag that is 
editable would generate the same output as html:text, if it's not 
editable it would be a bean:write followed by a html:hidden.

(I've used struts some months ago, and I'm not totally up to speed with 

its recent developments, so please forgive me if this is a trivial 
question.)

Any pointers are appreciated!

Thanks,
tomK


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



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




--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



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




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




RE: Application Context Access

2002-08-26 Thread James Mitchell

You've got to keep in mind the relative reference of your images.

By configuring:
 /do/callMyAction

with application:
 MyApp

and using:

 img src=images/myIcon.gif

Your saying that you have a structure like this:

/MyApp
   + do
 + images
   '---myIcon.gif
   '---myOtherIcon.gif

Unless you plan to change all your image references to
src=../images/blah.gif
you will need to use base href=something

That's the purpose of the html:base, it does it for you automatically.
I do not know the JSTL equivalent, but you'll need something.

Good luck.


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




 -Original Message-
 From: petra staub [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 26, 2002 10:21 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Application Context Access


 No, currently I use no struts related taglib only
 pure JSTL.

 But maybe someone can simply explain me, what is
 actually going on... ;)

 if i have following mapping in web.xml

   servlet-mapping
 servlet-nameaction/servlet-name
 url-pattern/do/*/url-pattern
   /servlet-mapping

 i thought that *only* url which meet this pattern
 are processed by the action servlet, such as
 ...MyApp/do/callMyAction.

 if i now have in my html code something like

 img src=images/myIcon.gif

 why is it somehow processed/influenced by my mapping?
 normally, this image (myIcon.gif) should be directly
 accessible (the directory is in the root of the
 application) through this relative path, isnt it?

 however...of course i could add everywhere the application
 name in front (img src=/MyApp/images/myIcon.gif) but
 what seems to me quite a work-around i dont like really...




 _
 Senden und empfangen Sie MSN Hotmail über Ihren PocketPC:
 http://pocketpc.msn.de


 --
 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: Editable/non-editable fields

2002-08-26 Thread Gilles . Vandaele


Hi all;
This list works too hard, some solutions comes out before I finish to type!

How can you set the disabled attribute on the controls (in order to see
an input field grayed out)?
If I put an 'html:text disabled=true...' the DISABLED attribute doesn't
appear in my HTML INPUT tag!


Gilles Vandaele
0498 52 64 12
[EMAIL PROTECTED]




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




Implementing sub-apps with WEB-INF hidden jsp's

2002-08-26 Thread Greg Hess

Hi All,

I am trying to take advantage of the new sub-application support with Struts
1.1b. There are several developers working on my current project and we all
have our own modules. This functionality will help us greatly with our
module integration. I am just trying to get up to speed on how to use this
functionality and have read a couple good threads in the archives. I have
followed the simple instructions, basically insert a new config init-param
to the struts servlet entry in the web.xml:

servlet
servlet-nameaction/servlet-name

servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
param-nameconfig/param-name
param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
 param-nameconfig/admin/param-name
 param-value/WEB-INF/struts-config-admin.xml/param-value
/init-param
init-param
param-namedebug/param-name
param-value0/param-value
/init-param
init-param
param-namedetail/param-name
param-value0/param-value
/init-param
load-on-startup3/load-on-startup
  /servlet

All my pages are nested within the WEB-INF directory and I have read that I
need to specify the pagePattern and forwardPattern in the controller
of the struts-config.xml in order to implement sub-apps. The thread stated I
specify /WEB-INF/$A$P.

Could anyone provide an example of this setting and what it is doing, I
cannot find documentation relating to this in the User Guide.

I am also using the secure plug-in for http/https switching and the
validator plug-in.

Will all the sub-apps be able to use there own RequestProcessor or will they
all have to use the SecureRequestProcessor ?

Will all the sub-apps be able to specify there own validation-rules and
validation.xml eg:validation-rules-adim.xml/validation-admin.xml?


Thanks for your time,

Greg



RE: Editable/non-editable fields

2002-08-26 Thread Kevin A. Smith

Gilles - 

This is the was the hacking my project team had to do. The html tags don't support 
this attribute so it doesn't show up in the final rendered HTML. We had to hack the 
tag code to add support for this.

--Kevin

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 10:37 AM
To: Struts Users Mailing List
Subject: Re: Editable/non-editable fields



Hi all;
This list works too hard, some solutions comes out before I finish to type!

How can you set the disabled attribute on the controls (in order to see
an input field grayed out)?
If I put an 'html:text disabled=true...' the DISABLED attribute doesn't
appear in my HTML INPUT tag!


Gilles Vandaele
0498 52 64 12
[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]




Iterate tag within an iterate tag

2002-08-26 Thread Darryl Nortje

Went through the achives to find out if having an iterate tag within an
iterate tag is possible. Didn't find anything.

So basically, my question is 1) is it possible. and 2) if so, how.

This is what I've done, but it's not working..

logic:iterate name=results id=collElem
I am then able to access all this collections getters if they are returning
String via the bean:write tag like this
bean:write name=collElem property=key/

if the getter returns a collection, how do I iterate through that result

the getter in the bean is (in this case) getAttDetails() for the collection
that I now need to iterate through.

If I do this bean:write name=collElem property=attDetails/ in the
first iterate tag it prints out the following to my jsp
[com.ag.armata.contentserver.OptionBean@475d,
com.ag.armata.contentserver.OptionBean@6275], which looks to me like it's
just simply calling the toString() method on the object. What I, in essence
want to do is this

logic:iterate name=results id=collElem
bean:write name=collElem property=key/
logic:iterate name=bean:write name=collElem
property=attDetails/ id=attDets
bean:write name=attDets property=key/ = bean:write
name=attDets property=value/
/logic:iterate
/logic:iterate
 This obviously does not work...
Does anyone know how to do what I've tried to explain as best as possible
here.

Thanks
Darryl

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




RE: Editable/non-editable fields

2002-08-26 Thread Gilles . Vandaele


I don't understand your The html tags don't support this attribute 

The struts tag html:text do have an attribute 'disabled' , so wat is it for
, if its not rendered in the 'DISABLED' attribute of the INPUT tag?

Gilles Vandaele
0498 52 64 12
[EMAIL PROTECTED]


   
  
   Kevin A. Smith
  
   [EMAIL PROTECTED] To:Struts Users Mailing List   
  
   m  [EMAIL PROTECTED]
  
cc:
  
   26/08/2002 16:49 Subject:  RE: Editable/non-editable fields 
  
   
  
Please respond to Struts Users Mailing 
List  
   
  
   
  
   
  




Gilles -

This is the was the hacking my project team had to do. The html tags don't
support this attribute so it doesn't show up in the final rendered HTML. We
had to hack the tag code to add support for this.

--Kevin

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 10:37 AM
To: Struts Users Mailing List
Subject: Re: Editable/non-editable fields



Hi all;
This list works too hard, some solutions comes out before I finish to type!

How can you set the disabled attribute on the controls (in order to see
an input field grayed out)?
If I put an 'html:text disabled=true...' the DISABLED attribute doesn't
appear in my HTML INPUT tag!


Gilles Vandaele
0498 52 64 12
[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: Editable/non-editable fields

2002-08-26 Thread Kevin A. Smith

Gilles - 

My memory is a bit foggy, but I believe that the disabled attribute on the tags 
meant something different than the HTML disabled attribute. There wasn't a 1:1 
correspondance.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 10:59 AM
To: Struts Users Mailing List
Subject: RE: Editable/non-editable fields



I don't understand your The html tags don't support this attribute 

The struts tag html:text do have an attribute 'disabled' , so wat is it for
, if its not rendered in the 'DISABLED' attribute of the INPUT tag?

Gilles Vandaele
0498 52 64 12
[EMAIL PROTECTED]


   
  
   Kevin A. Smith
  
   [EMAIL PROTECTED] To:Struts Users Mailing List   
  
   m  [EMAIL PROTECTED]
  
cc:
  
   26/08/2002 16:49 Subject:  RE: Editable/non-editable fields 
  
   
  
Please respond to Struts Users Mailing 
List  
   
  
   
  
   
  




Gilles -

This is the was the hacking my project team had to do. The html tags don't
support this attribute so it doesn't show up in the final rendered HTML. We
had to hack the tag code to add support for this.

--Kevin

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 10:37 AM
To: Struts Users Mailing List
Subject: Re: Editable/non-editable fields



Hi all;
This list works too hard, some solutions comes out before I finish to type!

How can you set the disabled attribute on the controls (in order to see
an input field grayed out)?
If I put an 'html:text disabled=true...' the DISABLED attribute doesn't
appear in my HTML INPUT tag!


Gilles Vandaele
0498 52 64 12
[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: Re: Editable/non-editable fields

2002-08-26 Thread Tom Klaasen

Are you sure your web server is picking up the latest version of your code? (try 
adding !-- hi, this is a new version --, if it doesn't appear in your final html, 
you've got an answer :) )

From a quick inspection of the code I have here (struts 1.0.2), the disabled 
attribute should work (didn't test it yet though)


hth,
tomK


 Struts Users Mailing List [EMAIL PROTECTED] wrote:


Hi all;
This list works too hard, some solutions comes out before I finish to type!

How can you set the disabled attribute on the controls (in order to see
an input field grayed out)?
If I put an '
For additional commands, e-mail: 




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




RE: Implementing sub-apps with WEB-INF hidden jsp's

2002-08-26 Thread James Mitchell

You might try reading this before proceeding.

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

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




 -Original Message-
 From: Greg Hess [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 26, 2002 10:44 AM
 To: Struts Mail List
 Subject: Implementing sub-apps with WEB-INF hidden jsp's


 Hi All,

 I am trying to take advantage of the new sub-application support
 with Struts
 1.1b. There are several developers working on my current project
 and we all
 have our own modules. This functionality will help us greatly with our
 module integration. I am just trying to get up to speed on how to use this
 functionality and have read a couple good threads in the archives. I have
 followed the simple instructions, basically insert a new config
 init-param
 to the struts servlet entry in the web.xml:

 servlet
 servlet-nameaction/servlet-name

 servlet-classorg.apache.struts.action.ActionServlet/servlet-class
 init-param
 param-nameconfig/param-name
 param-value/WEB-INF/struts-config.xml/param-value
 /init-param
 init-param
  param-nameconfig/admin/param-name
  param-value/WEB-INF/struts-config-admin.xml/param-value
 /init-param
 init-param
 param-namedebug/param-name
 param-value0/param-value
 /init-param
 init-param
 param-namedetail/param-name
 param-value0/param-value
 /init-param
 load-on-startup3/load-on-startup
   /servlet

 All my pages are nested within the WEB-INF directory and I have
 read that I
 need to specify the pagePattern and forwardPattern in the controller
 of the struts-config.xml in order to implement sub-apps. The
 thread stated I
 specify /WEB-INF/$A$P.

 Could anyone provide an example of this setting and what it is doing, I
 cannot find documentation relating to this in the User Guide.

 I am also using the secure plug-in for http/https switching and the
 validator plug-in.

 Will all the sub-apps be able to use there own RequestProcessor
 or will they
 all have to use the SecureRequestProcessor ?

 Will all the sub-apps be able to specify there own validation-rules and
 validation.xml eg:validation-rules-adim.xml/validation-admin.xml?


 Thanks for your time,

 Greg



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




Re: Status of Struts integration with container managed securityand alternatives

2002-08-26 Thread Craig R. McClanahan

I did answer your question ... maybe you missed it.

The roles attribute on an Action element will *not* (by itself) trigger a
container-managed login.  You must also protect *all* URLs with an
appropriate security constraint (mapped to *.do, for example) that forces
login but allows everyone in.  This means either using a role that all
users possess, or (Servlet 2.3 only) using a role-name of * in the
security constraint.

The only purpose of the roles attribute on an action is to allow you to
specify finer-grained restrictions on who can execute each particular
action, without having to maintain separate entries for each action in
struts-config.xml and web.xml.

Craig

On Mon, 26 Aug 2002, Michael wrote:

 Date: Mon, 26 Aug 2002 09:23:13 +0200
 From: Michael [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Status of Struts integration with container managed security and
 alternatives

 I've recently played with the container managed security of J2EE (using
 Tomcat) and the attempt at integrating it into Struts 1.1.  I see that a
 roles attribute has been added to the action tag in the struts
 config XML file.  The problem is with tag is that it doesn't work.  I
 posted a couple questions about this and didn't get much of a response
 so my impression is no one is using this feature.  So my question is any
 work being done on this?  And what are the alternatives?  I know I can
 protect the actions using the normal J2EE container managed security
 mechanism.  The only problem I see with that is that I now have to keep
 the actions in my struts config xml file in sync with the actions in my
 web.xml file.  Are there any other solutions?

 Michael


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




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




RE: Editable/non-editable fields

2002-08-26 Thread Darryl Nortje

Gilles,

This is how I did it. Hope it helps

logic:iterate name=attrib id=collElem
input name=bean:write name='collElem' property='key'/ bean:write
name=collElem property=isReadonly//

The bean:write tag -- bean:write name=collElem property=isReadonly/
returns a String that either says readonly, or nothing, depending on my
condition works like a bomb

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 4:59 PM
To: Struts Users Mailing List
Subject: RE: Editable/non-editable fields



I don't understand your The html tags don't support this attribute 

The struts tag html:text do have an attribute 'disabled' , so wat is it for
, if its not rendered in the 'DISABLED' attribute of the INPUT tag?

Gilles Vandaele
0498 52 64 12
[EMAIL PROTECTED]


 

   Kevin A. Smith

   [EMAIL PROTECTED] To:Struts Users Mailing List

   m
[EMAIL PROTECTED]  
cc:

   26/08/2002 16:49 Subject:  RE:
Editable/non-editable fields   
 

Please respond to Struts Users
Mailing List  
 

 

 





Gilles -

This is the was the hacking my project team had to do. The html tags don't
support this attribute so it doesn't show up in the final rendered HTML. We
had to hack the tag code to add support for this.

--Kevin

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 10:37 AM
To: Struts Users Mailing List
Subject: Re: Editable/non-editable fields



Hi all;
This list works too hard, some solutions comes out before I finish to type!

How can you set the disabled attribute on the controls (in order to see
an input field grayed out)?
If I put an 'html:text disabled=true...' the DISABLED attribute doesn't
appear in my HTML INPUT tag!


Gilles Vandaele
0498 52 64 12
[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: Application Context Access

2002-08-26 Thread Craig R. McClanahan



On Mon, 26 Aug 2002, petra staub wrote:

 Date: Mon, 26 Aug 2002 11:55:09 +0200
 From: petra staub [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Application Context Access


 I dont understand the following:

 I have a struts application, lets call it MyApp,
 which actions call jsp pages under MyApp/WEB-INF/pages.
 additionally, I have images stored in the root of my
 application (MyApp/images).

 Why cant I access the images in MyApp using the relative
 path /images? If I do so in a jsp file (eg. MyApp/WEB-INF/
 pages/home.jsp) forwarded from my action, the relative
 directory /images is not known...I have to use /MyApp/images/.
 From a jsp in the root (e.g. MyApp/home.jsp) every works fine
 with images accessed by /images.

 Does anyone has a quick explanation for me? :)

 thanks a lot!

Relative paths starting with / are assumed to be relative to the server,
not the current directory.  Try:

  img src=../../images/logo.gif

Craig


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




RE : Status of Struts integration with container managed security and alternatives

2002-08-26 Thread Michael

I apologize Craig, you did explain this but not in this much detail.  I
wasn't aware of the solution of protecting all *.do URLs with a role of
* (or as you suggest a group everyone is in) and then doing finer
grained security with Struts.  That makes a lot of sense, thank you for
clarifying that!

Michael

 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, August 26, 2002 5:09 PM
 To: Struts Users Mailing List
 Subject: Re: Status of Struts integration with container 
 managed security and alternatives
 
 
 I did answer your question ... maybe you missed it.
 
 The roles attribute on an Action element will *not* (by 
 itself) trigger a container-managed login.  You must also 
 protect *all* URLs with an appropriate security constraint 
 (mapped to *.do, for example) that forces login but allows 
 everyone in.  This means either using a role that all users 
 possess, or (Servlet 2.3 only) using a role-name of * in 
 the security constraint.
 
 The only purpose of the roles attribute on an action is to 
 allow you to specify finer-grained restrictions on who can 
 execute each particular action, without having to maintain 
 separate entries for each action in struts-config.xml and web.xml.
 
 Craig
 
 On Mon, 26 Aug 2002, Michael wrote:
 
  Date: Mon, 26 Aug 2002 09:23:13 +0200
  From: Michael [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Subject: Status of Struts integration with container 
 managed security and
  alternatives
 
  I've recently played with the container managed security of J2EE 
  (using
  Tomcat) and the attempt at integrating it into Struts 1.1.  
 I see that a
  roles attribute has been added to the action tag in the struts
  config XML file.  The problem is with tag is that it 
 doesn't work.  I
  posted a couple questions about this and didn't get much of 
 a response
  so my impression is no one is using this feature.  So my 
 question is any
  work being done on this?  And what are the alternatives?  I 
 know I can
  protect the actions using the normal J2EE container managed security
  mechanism.  The only problem I see with that is that I now 
 have to keep
  the actions in my struts config xml file in sync with the 
 actions in my
  web.xml file.  Are there any other solutions?
 
  Michael
 
 
  --
  To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
  For 
 additional commands, 
 e-mail: 
  mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 


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




Request Beans Sanity Check

2002-08-26 Thread Howard Miller

Hi,

Having problems creating beans on the fly. Can somebody spot where I have
gone wrong...

This is my (obviously incorrect) understanding of the procedure:

1. I create a bean called MyBean
2. an action script creates an instance of the MyBean class, called (say) MB
and initialises it... so far so good
3. add the bean to the request scope in the action request.setAttribute(
MyBean, MB );

 the action forwards to a .jsp page (correctly)

4. the page tries to access a collection defined in the bean:
logic:iterate id=item name=MyBean property=MyCollection ..etc..

result: Cannot find bean MyBean in any scope
what might I be doing wrong?  Any help appreciated.

Howard

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




Re: BeanUtils

2002-08-26 Thread Craig R. McClanahan

JavaBeans indexed properties (which BeanUtils uses under the covers) only
support array based properties for indexed storage.

BeanUtils was extended fairly recently to do better with Lists.  If you
have a particular test case that doesn't work, please post it as an
attachment to a bug report against BeanUtils:

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

Craig

On Mon, 26 Aug 2002, petra staub wrote:

 Date: Mon, 26 Aug 2002 11:59:47 +0200
 From: petra staub [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: BeanUtils

 hi,

 I know this is a struts-maillist but as the beanutils are
 commonly used with struts (and I didnt get any feedback in
 the commons-user list) I dare to ask my question here. :)

 i recently came over the very useful classes
 of the BeanUtils package. however, i have some problems...

 for testing, i simply wanted to use the copyProperties
 method to populate the values of one object to an other
 (empty) object.

 i created a class with different properties (int, float,
 String, Hashtable, Vector) and the corresponding getters/
 setters.

 everything worked fine (the values were copied :) ) except
 for the Vector which gave me an error:

 Error in PropertyUtils.copyProperties():
 Property vecElem has no getter method

 however, I have a method public Vector getVecElem() and even
 (for other usage) public Object getVecElem(int idx).

 I also tried to used the ArrayList instead of a Vector what helps
 to get rid of the error message, however, the values are not
 copied.

 Are Lists not supported with the BeanUtils? Am I simply doing
 something wrong? Maybe someone can help me newbie...

 Thanks a lot!



 _
 Mit MSN Fotos können Sie kinderleicht Ihre Fotos ausdrucken und Freunden zur
 Verfügung stellen: http://photos.msn.de


 --
 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: Implementing sub-apps with WEB-INF hidden jsp's

2002-08-26 Thread Greg Hess

Thanks,

I had read the archive suggested. Unfortunately none of my sub-app
action-mappings are working. I get the following error when I try to
access one of my sub-apps mappings threw
http:/host/defaultapp/subapp/mapping.do.

500 Servlet Exception
java.lang.ClassCastException: org.apache.struts.action.ActionMapping
at
org.apache.struts.action.SecureRequestProcessor.processPreprocess(D:/CvsProj
ects/StrutsExtTry11/src/org/apache/struts/action/SecureRequestProcessor.java
:42)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:227)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:452)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:9
6)
at com.caucho.server.http.Invocation.service(Invocation.java:311)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:221)
at
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)
at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
at java.lang.Thread.run(Thread.java:536)


I have configured my parent and sub-app to use the secure plug-in and have
configured the controller for both apps as follows.

!-- Custom RequestProcessor to handle http/https switching --
controller
processorClass=org.apache.struts.action.SecureRequestProcessor
pagePattern=/WEB-INF/$A$P
forwardPattern=/WEB-INF/$A$P
nocache=true  /

Any ideas are much appreciated,

Thanks,

Greg

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 11:10 AM
To: Struts Users Mailing List
Subject: RE: Implementing sub-apps with WEB-INF hidden jsp's


You might try reading this before proceeding.

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

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




 -Original Message-
 From: Greg Hess [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 26, 2002 10:44 AM
 To: Struts Mail List
 Subject: Implementing sub-apps with WEB-INF hidden jsp's


 Hi All,

 I am trying to take advantage of the new sub-application support
 with Struts
 1.1b. There are several developers working on my current project
 and we all
 have our own modules. This functionality will help us greatly with our
 module integration. I am just trying to get up to speed on how to use this
 functionality and have read a couple good threads in the archives. I have
 followed the simple instructions, basically insert a new config
 init-param
 to the struts servlet entry in the web.xml:

 servlet
 servlet-nameaction/servlet-name

 servlet-classorg.apache.struts.action.ActionServlet/servlet-class
 init-param
 param-nameconfig/param-name
 param-value/WEB-INF/struts-config.xml/param-value
 /init-param
 init-param
  param-nameconfig/admin/param-name
  param-value/WEB-INF/struts-config-admin.xml/param-value
 /init-param
 init-param
 param-namedebug/param-name
 param-value0/param-value
 /init-param
 init-param
 param-namedetail/param-name
 param-value0/param-value
 /init-param
 load-on-startup3/load-on-startup
   /servlet

 All my pages are nested within the WEB-INF directory and I have
 read that I
 need to specify the pagePattern and forwardPattern in the controller
 of the struts-config.xml in order to implement sub-apps. The
 thread stated I
 specify /WEB-INF/$A$P.

 Could anyone provide an example of this setting and what it is doing, I
 cannot find documentation relating to this in the User Guide.

 I am also using the secure plug-in for http/https switching and the
 validator plug-in.

 Will all the sub-apps be able to use there own RequestProcessor
 or will they
 all have to use the SecureRequestProcessor ?

 Will all the sub-apps be able to specify there own validation-rules and
 validation.xml eg:validation-rules-adim.xml/validation-admin.xml?


 Thanks for your time,

 Greg



--
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: Has anyone made Weblogic 7 work with Struts 1.1b2?

2002-08-26 Thread Trieu, Danny

I had the same problem too.  Wonder if this is Weblogic class loader problem
or it is b2 problem.

-Original Message-
From: Ananda Chaudhuri [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, August 25, 2002 4:11 PM
To: [EMAIL PROTECTED]
Subject: Has anyone made Weblogic 7 work with Struts 1.1b2?


If you have, please respond.
I was working with Weblogic 7 and an earlier version of Struts but after 
upgrading to 1.1b2, Weblogic woudnt start up and giving an error message 
like:
 [exec] Aug 25, 2002 9:36:05 AM EDT Error HTTP 101254 
[ServletConte
xt(id=4845093,name=mediamania,context-path=/mediamania-2)]: Servlet class 
org.ap
ache.struts.action.ActionServlet for servlet mediamania could not be handled

by
the ClassLoader with classpath 
C:\bea\user_projects\mydomain\applications\mediam
ania;C:\bea\user_projects\mydomain\applications\mediamania\WEB-INF\classes;.
... 
I omitted th complete classapath.




_
Chat with friends online, try MSN Messenger: http://messenger.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]




Re: Re: Editable/non-editable fields

2002-08-26 Thread Gilles . Vandaele


Tom,
it doesn't appear in my final html! But it don't have to... or am I in the
twilight zone?
What do you by:the server is picking up the latest version of your code?

I'm using Struts 1.0.2


Gilles Vandaele
0498 52 64 12
[EMAIL PROTECTED]


   
  
   Tom Klaasen 
  
   tom.klaasen@pandora To:Struts Users Mailing List   
  
   .be[EMAIL PROTECTED]
  
cc:
  
   26/08/2002 18:03 Subject:  Re:  Re: Editable/non-editable 
fields  
   
  
Please respond to Struts Users Mailing 
List  
   
  
   
  
   
  




Are you sure your web server is picking up the latest version of your code?
(try adding !-- hi, this is a new version --, if it doesn't appear in
your final html, you've got an answer :) )

From a quick inspection of the code I have here (struts 1.0.2), the
disabled attribute should work (didn't test it yet though)


hth,
tomK


 Struts Users Mailing List [EMAIL PROTECTED] wrote:


Hi all;
This list works too hard, some solutions comes out before I finish to
type!

How can you set the disabled attribute on the controls (in order to see
an input field grayed out)?
If I put an '
For additional commands, e-mail:




--
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 within an iterate tag

2002-08-26 Thread jsadove



See the 1.1b nested tag extensions or Aron Bates (www.keyboardmonkey.com) 1.0
extensions (which are the ones incorporated into 1.1).





Darryl Nortje [EMAIL PROTECTED] on 08/26/2002 10:49:39 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:  Iterate tag within an iterate tag


Went through the achives to find out if having an iterate tag within an
iterate tag is possible. Didn't find anything.

So basically, my question is 1) is it possible. and 2) if so, how.

This is what I've done, but it's not working..

logic:iterate name=results id=collElem
I am then able to access all this collections getters if they are returning
String via the bean:write tag like this
bean:write name=collElem property=key/

if the getter returns a collection, how do I iterate through that result

the getter in the bean is (in this case) getAttDetails() for the collection
that I now need to iterate through.

If I do this bean:write name=collElem property=attDetails/ in the
first iterate tag it prints out the following to my jsp
[com.ag.armata.contentserver.OptionBean@475d,
com.ag.armata.contentserver.OptionBean@6275], which looks to me like it's
just simply calling the toString() method on the object. What I, in essence
want to do is this

logic:iterate name=results id=collElem
   bean:write name=collElem property=key/
   logic:iterate name=bean:write name=collElem
property=attDetails/ id=attDets
   bean:write name=attDets property=key/ = bean:write
name=attDets property=value/
   /logic:iterate
/logic:iterate
 This obviously does not work...
Does anyone know how to do what I've tried to explain as best as possible
here.

Thanks
Darryl

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




Hesitation leads to NullPointerException

2002-08-26 Thread Sri Sankaran

Using Struts 1.0.2 on Tomcat 4.0.2

bizarre.alert

I have a problem that only occurs if the user lingers on a page for a while (say a few 
minutes).  If after this duration, the user triggers any action, the application 
crashes with a NullPointerException.

I have debugged the exception as being caused by a null property of the form bean.   
The question is this: how did the list get to be null.  Why does it become null only 
if the user lingers?

The form bean (ProductsListBean) contains :

  private ArrayList products;
  public List getProducts() { return products; }

This list is used to display a collection of products for the user to select (so, I 
know that the list is non-null  non-empty).  In the processing of the user action, 
the following logic can be found

  ...
  List products = productsListBean.getProducts();
  Iterator iterator = products.iterator();
  ...

Obviously, (since the list is null) the application throws the exception at the second 
line above.  

/bizarre.alert

Since the stack trace on the browser didn't indicate the Root Cause I went looking 
for the Tomcat log -- it said the same thing that was on the browser.  No more 
information. 

BTW my session timeout is set to 30 minutes and the this problem presents itself if 
the user pauses for 2-3 minutes.


Sri



Re: Re: Re: Editable/non-editable fields

2002-08-26 Thread Tom Klaasen


 Struts Users Mailing List [EMAIL PROTECTED] wrote:


Tom,
it doesn't appear in my final html! But it don't have to... or am I in the
twilight zone?
What do you by:the server is picking up the latest version of your code?

Some web servers keep a cached and compiled version of your jsp's and show that to the 
client every time. They're supposed to detect changes in the jsp's, but I've already 
experienced that they don't always do this reliably. So to make sure you're actually 
looking at the latest evolution of your code, you can add a comment like I suggested. 
This is the only way to give you peace of mind that you're looking at the latest code. 

hth,
tomK



I'm using Struts 1.0.2


Gilles Vandaele
0498 52 64 12
[EMAIL PROTECTED]


  
   
   Tom Klaasen
   
 
cc:   
   
   26/08/2002 18:03 Subject:  Re:  Re: Editable/non-editable 
fields  
  
   
Please respond to Struts Users Mailing 
List  
  
   
  
   
  
   




Are you sure your web server is picking up the latest version of your code?
(try adding , if it doesn't appear in
your final html, you've got an answer :) )

From a quick inspection of the code I have here (struts 1.0.2), the
disabled attribute should work (didn't test it yet though)


hth,
tomK


 Struts Users Mailing List  wrote:


Hi all;
This list works too hard, some solutions comes out before I finish to
type!

How can you set the disabled attribute on the controls (in order to see
an input field grayed out)?
If I put an '
For additional commands, e-mail:




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






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




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




j_security_check, jaas and weblogic 6.1

2002-08-26 Thread Michael Lee

I have to do security for the company I am at. I have never used
j_security_check, jaas or weblogic 6.1 RDBMS (we have a database for
authentication/authorization). I read all through the examples on
j_security_check, jaas and WLS RDBMS out there I could get my hands on.
There seems to be no good real world examples of how to tie all these
together. The reason I'm having an issue is struts is the middle man, the
controller so he is key to it all. I know i configure j_security_check in my
web.xml to point to use form authentication, i know all about deployment
descriptor configuration for ejb, war, etc. This is not the problem. I don't
see how JAAS fits into j_security_check? I also dont see how struts fits
into it either? Do I need to also add a login.do? I need to get the locale
for the user from the database and figured I would do this at the login.
JAAS wants LoginContext.login(), most j2ee say j_security_check and struts
examples have login.do (this is the way I've typically done it).
Help! I can't find any real world examples to tie all these together!
thanks!
Mike Lee

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




Re: j_security_check, jaas and weblogic 6.1

2002-08-26 Thread Craig R. McClanahan

JAAS is not relevant if you're using container-managed security.  You'll
need to set up users in whatever user database your container (WebLogic in
your case) provides.  Struts also has nothing to do with this -- although
you can use role information with tags like logic:present or the roles
attribute on an action if you want to.

JAAS would only be relevant if you wanted to do application-managed
security instead, or if you were implementing the container itself.

Craig


On Mon, 26 Aug 2002, Michael Lee wrote:

 Date: Mon, 26 Aug 2002 12:21:12 -0400
 From: Michael Lee [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: j_security_check, jaas and weblogic 6.1

 I have to do security for the company I am at. I have never used
 j_security_check, jaas or weblogic 6.1 RDBMS (we have a database for
 authentication/authorization). I read all through the examples on
 j_security_check, jaas and WLS RDBMS out there I could get my hands on.
 There seems to be no good real world examples of how to tie all these
 together. The reason I'm having an issue is struts is the middle man, the
 controller so he is key to it all. I know i configure j_security_check in my
 web.xml to point to use form authentication, i know all about deployment
 descriptor configuration for ejb, war, etc. This is not the problem. I don't
 see how JAAS fits into j_security_check? I also dont see how struts fits
 into it either? Do I need to also add a login.do? I need to get the locale
 for the user from the database and figured I would do this at the login.
 JAAS wants LoginContext.login(), most j2ee say j_security_check and struts
 examples have login.do (this is the way I've typically done it).
 Help! I can't find any real world examples to tie all these together!
 thanks!
 Mike Lee

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




Switch Action example

2002-08-26 Thread Greg Hess

Hi All,

I am having trouble using the SwitchAction and all the threads in the
Archives dont actualy provide an example of its use and claim that it may
not work?

Could anyone provide an example of its use.

Thanks for your time,

Greg



trouble with DynaValidatorForm

2002-08-26 Thread Donald Ball

Hey guys, I'm still experimenting with the Dyna stuff. I'm trying out the
DynaValidatorForm, following the recipe in chapter 11 of Chuck's (?) book
from theserverside. The form bean is capturing my data, hooray, but it does
not appear to be validating it. Conf snipppets:

struts-config.xml:

form-bean name=MyForm
type=org.apache.struts.validator.DynaValidatorForm
  form-property name=foo initial=23 type=java.lang.String/
/form-bean

validator.xml:

formset
  form name=MyForm
field property=foo depends=required/
  /form
/formset

validator-rules.xml is copied intact from the struts repository. I've tried
both b1 and b2. In both cases, the form submission is successful and I go
onto the success path, even if I have no foo value. I've also tried the
integer validation rule and it also accepts any input.

Any suggestions? Is there a way to turn up the level of debugging to get
more information? The validator plug-in does report that it is active and
was able to load both configuration files successfully.

Finally, is anyone actively working on or planning to work on the TODO
sections in the struts documentation regarding Dyna and Validator stuff?

- donald


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




Re: trouble with DynaValidatorForm

2002-08-26 Thread chuckcavaness

Have you added the Validator plugin to the struts-config 
file?

Chuck
 Hey guys, I'm still experimenting with the Dyna stuff. I'm trying out the
 DynaValidatorForm, following the recipe in chapter 11 of Chuck's (?) book
 from theserverside. The form bean is capturing my data, hooray, but it does
 not appear to be validating it. Conf snipppets:
 
 struts-config.xml:
 
 form-bean name=MyForm
 type=org.apache.struts.validator.DynaValidatorForm
   form-property name=foo initial=23 type=java.lang.String/
 /form-bean
 
 validator.xml:
 
 formset
   form name=MyForm
 field property=foo depends=required/
   /form
 /formset
 
 validator-rules.xml is copied intact from the struts repository. I've tried
 both b1 and b2. In both cases, the form submission is successful and I go
 onto the success path, even if I have no foo value. I've also tried the
 integer validation rule and it also accepts any input.
 
 Any suggestions? Is there a way to turn up the level of debugging to get
 more information? The validator plug-in does report that it is active and
 was able to load both configuration files successfully.
 
 Finally, is anyone actively working on or planning to work on the TODO
 sections in the struts documentation regarding Dyna and Validator stuff?
 
 - donald
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 

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




RE: [Way OT] Eclipse Kick-Start?

2002-08-26 Thread David Mulligan

 -Original Message-
 From: Joe Barefoot [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 23, 2002 5:51 PM
 To: Struts Users Mailing List
 Subject: RE: [Way OT] Eclipse Kick-Start?
 
 Really?  Where?  I've been using Win2k since it came out, 
 and I've yet to stumble across a virtual desktop feature.  
 Please point it out to me if it  exists, and I shall be in your debt.
 
 peace,
 Joe


http://freepctech.com/rode/003.shtml

There's load more like this tool, but the big problem (that I have with
them)
is that ever time you you change desktop and back again the tabs in the
taskbar 
are in a different location.


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




Re: Iterate tag within an iterate tag

2002-08-26 Thread Michael Lee

I've done this...
The way I did it is the outer tag needs to populate data into a TagExtraInfo
class. The inner tag can now use this data.
You also have to make sure in your tld you tell it the TagExtraInfo class
you are going to use.
I've passed the data in the TagExtraInfo class into the attributes of the
inner tag. This is great for iterating through lists. You can use the outer
tag to pull the data and the inner tag to take it and put it in a table or
something. That way you can separate the data collection from the the
handler/view/manipulator for that data.
I learned how to do this from the book Java Server Programming J2EE edition.
Excellent book.
Mike


- Original Message -
From: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, August 26, 2002 11:49 AM
Subject: Re: Iterate tag within an iterate tag




 See the 1.1b nested tag extensions or Aron Bates (www.keyboardmonkey.com)
1.0
 extensions (which are the ones incorporated into 1.1).





 Darryl Nortje [EMAIL PROTECTED] on 08/26/2002 10:49:39 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:  Iterate tag within an iterate tag


 Went through the achives to find out if having an iterate tag within an
 iterate tag is possible. Didn't find anything.

 So basically, my question is 1) is it possible. and 2) if so, how.

 This is what I've done, but it's not working..

 logic:iterate name=results id=collElem
 I am then able to access all this collections getters if they are
returning
 String via the bean:write tag like this
 bean:write name=collElem property=key/

 if the getter returns a collection, how do I iterate through that
result

 the getter in the bean is (in this case) getAttDetails() for the
collection
 that I now need to iterate through.

 If I do this bean:write name=collElem property=attDetails/ in the
 first iterate tag it prints out the following to my jsp
 [com.ag.armata.contentserver.OptionBean@475d,
 com.ag.armata.contentserver.OptionBean@6275], which looks to me like it's
 just simply calling the toString() method on the object. What I, in
essence
 want to do is this

 logic:iterate name=results id=collElem
bean:write name=collElem property=key/
logic:iterate name=bean:write name=collElem
 property=attDetails/ id=attDets
bean:write name=attDets property=key/ = bean:write
 name=attDets property=value/
/logic:iterate
 /logic:iterate
  This obviously does not work...
 Does anyone know how to do what I've tried to explain as best as possible
 here.

 Thanks
 Darryl

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




Adding errors to request in a DefaultAction

2002-08-26 Thread Matt Raible

I have an ActionFilter that maps to /do/*.  In this class, I detect if
the user has a missing password_hint and if so, set a session
variable, missingHint.  Then in my DefaultAction (which forward to the
Main Menu), I have code to check for that variable and forward - but
it's not working - any ideas? The logging message building missing
password hint warning IS getting logged.


// Extract attributes we will need
ActionErrors errors = new ActionErrors();
  ...

String requestURI = request.getRequestURI();
String contextPath = request.getContextPath();

String forwardPath = requestURI.substring(contextPath.length());

forwardPath = forwardPath.substring(
forwardPath.indexOf(do/) + 3, forwardPath.length());

if (forwardPath.indexOf(mainMenu) != -1) { // routing to Main
Menu

if (session.getAttribute(missingHint) != null) {
if (logger.isDebugEnabled()) {
logger.debug(building missing password hint
warning);
}
// add warning message to the request
errors.add(ActionErrors.GLOBAL_ERROR,
   new ActionError(errors.missing.hint));
saveErrors(request, errors);
session.removeAttribute(missingHint);
}
}
   
return mapping.findForward(forwardPath);



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




RE: using O/R mapping tools

2002-08-26 Thread Joe Barefoot

 -Original Message-
 From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 23, 2002 12:01 PM
 To: 'Struts Users Mailing List'
 Subject: RE: using O/R mapping tools
 
 
 As I pointed out, it's a common mistake.  I have a graduate minor in
 statistics, so it's just a pet peeve and nothing more. I 
 could care less
 [sic] about your grammar.


I hardly think it's a mistake if one uses the term and everyone in the room assumes 
the popular meaning except the one person who dogmatically clings to the diagram in 
their old college psychology textbook.  Speaking of pet peeves, to be gramatically 
accurate, it's couldn't care less.  To say that you could care less implies that 
you care plenty already.  :)   


b.t.w., here's what most people envisage when they think steep learning curve.  All 
the textbooks and mailing list arguments in the world aren't going to change that.


Effort
| -   -   - 
| -
| -
|   -
|  -
| -
|-
|   -
|  -
|___

Proficiency




 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 23, 2002 2:54 PM
 To: [EMAIL PROTECTED]
 Subject: RE: using O/R mapping tools
 
 
 
 H.
 
 I just could not stomach it so I did some checkng...
 
 
 Read this one first...
 Common sense warns that there is no advantage to using a word 
 correctly 
 if you know that the vast majority of your hearers will misunderstand 
 your meaning. Consider the terms thumbs up and thumbs down: Most 
 people are aware that these expressions derive from the 
 ancient public 
 entertainments at the Roman Colosseum, where the presiding official 
 would rule on whether a vanquished gladiator should be spared 
 or slain. 
 But did you know that thumbs up was the sign for kill him 
 and thumb 
 sideways was the sign for let him live? So when someone 
 tells you that 
 your project got the thumbs up from upper management, should 
 you start 
 checking the help-wanted ads? We 
 http://www.crh.noaa.gov/library/Grammar/Learn-curve.html
 
 
 Every result except for the above shows a steep learning 
 curve as a bad 
 thing...  Right or wrong, its common usage...
 
 I want to go home...
 
 
 STEEP LEARNING CURVE
 Rookie Quarterback Zolman Tackles Complicated Scheme
 Things aren't entirely different. That's the positive part 
 now for Greg 
 Zolman - part of the positive part, anyway. Here's the tricky 
 part: What 
 he's learning is very complicated. 
 http://www.colts.com/sub.cfm?page=article7news_id=711
 
 
 BUSH IS ON A STEEP LEARNING CURVE, JUST LIKE THE REST OF US
 George W Bush appears to be on a near-vertical global learning curve. 
 And it is not just him. In the past two weeks the world has been 
 changing astonishingly quickly beneath our feet and commentators are 
 running to keep up.
 http://www.guardian.co.uk/Columnists/Column/0,5673,558293,00.html
 
 
 Myth: ODBMSs have a steep learning curve
 The myth that ODBMSs have a steep learning curve is easily dispelled. 
 Using an ODBMS primarily involves knowing an object programming 
 language. For examples, see transparent persistence (new window).
 If you know Java or C++, there is very little additional 
 syntax that you 
 need to learn in order to use an ODBMS. There are additional database 
 commands for opening and closing databases along with starting and 
 committing transactions. But that is about all -- hardly a steep 
 learning curve. If you do not know Java or C++, there is learning 
 involved. That learning, however, involves mastering the programming 
 language and not the ODBMS.
 http://www.odbmsfacts.com/articles/myth_odbms_have_a_steep_lea
 rning_curve.ht
 ml
 
 
 Steep learning curve
 First-time users of Finale can expect to invest weeks or even months 
 learning how to drive this thing. And, unlike a bicycle, you 
 can easily 
 forget how to do it if away from it for a while.
 Finale is complicated, powerful, and often non-intuitive in 
 its design, 
 although ease of use improves perceptibly with each release. 
 Coda seems 
 to listen to its customers on questions of interface and features.
 http://www.research.umbc.edu/eol/5/signell/steep.html
 
 
 
 
 
 
 
 
 -Original Message-
 From: Galbreath [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 23, 2002 2:35 PM
 To: struts-user
 Subject: RE: using O/R mapping tools
 
 
 Yep.  Think of the y axis as productivity and the x axis as 
 time.  You 
 want
 a curve going from 0.0 to max-y,min-x.  This would plot out 
 as a steep
 curve, indicating learning the most in the smalled amount of time.
 
 A flat curve is the opposite - learn very little over a considerable
 amount of time.
 
 Thus, a steep learning curve means it was easy; a flat learning 
 curve
 means it was difficult.
 
 Mark
 
 -Original Message-
 From: 

RE: using O/R mapping tools

2002-08-26 Thread Galbreath, Mark

And I would hardly think that civilization would have made much progress if
the prevailing opinion that the world was flat was never questioned.
Lemmings will be lemmings, and though they have great influence on the
masses, do not lead to any worthy end.

And what do you think the [sic] is there for?

-Original Message-
From: Joe Barefoot [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 1:48 PM

I hardly think it's a mistake if one uses the term and everyone in the room
assumes the popular meaning except the one person who dogmatically clings to
the diagram in their old college psychology textbook.  Speaking of pet
peeves, to be gramatically accurate, it's couldn't care less.  To say that
you could care less implies that you care plenty already.  :)   


b.t.w., here's what most people envisage when they think steep learning
curve.  All the textbooks and mailing list arguments in the world aren't
going to change that.


Effort
| -   -   - 
| -
| -
|   -
|  -
| -
|-
|   -
|  -
|___

Proficiency




 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 23, 2002 2:54 PM
 To: [EMAIL PROTECTED]
 Subject: RE: using O/R mapping tools
 
 
 
 H.
 
 I just could not stomach it so I did some checkng...
 
 
 Read this one first...
 Common sense warns that there is no advantage to using a word 
 correctly 
 if you know that the vast majority of your hearers will misunderstand 
 your meaning. Consider the terms thumbs up and thumbs down: Most 
 people are aware that these expressions derive from the 
 ancient public 
 entertainments at the Roman Colosseum, where the presiding official 
 would rule on whether a vanquished gladiator should be spared 
 or slain. 
 But did you know that thumbs up was the sign for kill him 
 and thumb 
 sideways was the sign for let him live? So when someone 
 tells you that 
 your project got the thumbs up from upper management, should 
 you start 
 checking the help-wanted ads? We 
 http://www.crh.noaa.gov/library/Grammar/Learn-curve.html
 
 
 Every result except for the above shows a steep learning 
 curve as a bad 
 thing...  Right or wrong, its common usage...
 
 I want to go home...
 
 
 STEEP LEARNING CURVE
 Rookie Quarterback Zolman Tackles Complicated Scheme
 Things aren't entirely different. That's the positive part 
 now for Greg 
 Zolman - part of the positive part, anyway. Here's the tricky 
 part: What 
 he's learning is very complicated. 
 http://www.colts.com/sub.cfm?page=article7news_id=711
 
 
 BUSH IS ON A STEEP LEARNING CURVE, JUST LIKE THE REST OF US
 George W Bush appears to be on a near-vertical global learning curve. 
 And it is not just him. In the past two weeks the world has been 
 changing astonishingly quickly beneath our feet and commentators are 
 running to keep up.
 http://www.guardian.co.uk/Columnists/Column/0,5673,558293,00.html
 
 
 Myth: ODBMSs have a steep learning curve
 The myth that ODBMSs have a steep learning curve is easily dispelled. 
 Using an ODBMS primarily involves knowing an object programming 
 language. For examples, see transparent persistence (new window).
 If you know Java or C++, there is very little additional 
 syntax that you 
 need to learn in order to use an ODBMS. There are additional database 
 commands for opening and closing databases along with starting and 
 committing transactions. But that is about all -- hardly a steep 
 learning curve. If you do not know Java or C++, there is learning 
 involved. That learning, however, involves mastering the programming 
 language and not the ODBMS.
 http://www.odbmsfacts.com/articles/myth_odbms_have_a_steep_lea
 rning_curve.ht
 ml
 
 
 Steep learning curve
 First-time users of Finale can expect to invest weeks or even months 
 learning how to drive this thing. And, unlike a bicycle, you 
 can easily 
 forget how to do it if away from it for a while.
 Finale is complicated, powerful, and often non-intuitive in 
 its design, 
 although ease of use improves perceptibly with each release. 
 Coda seems 
 to listen to its customers on questions of interface and features.
 http://www.research.umbc.edu/eol/5/signell/steep.html
 
 
 
 
 
 
 
 
 -Original Message-
 From: Galbreath [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 23, 2002 2:35 PM
 To: struts-user
 Subject: RE: using O/R mapping tools
 
 
 Yep.  Think of the y axis as productivity and the x axis as 
 time.  You 
 want
 a curve going from 0.0 to max-y,min-x.  This would plot out 
 as a steep
 curve, indicating learning the most in the smalled amount of time.
 
 A flat curve is the opposite - learn very little over a considerable
 amount of time.
 
 Thus, a steep learning curve means it was easy; a flat learning 
 curve
 means it was difficult.
 
 

RE: using O/R mapping tools

2002-08-26 Thread Joe Barefoot

hmmm...Just noticed your [sic] after wiping morning crud from my eyes.  Your 
grammatical faux pas was illustrative, not accidental.  Nice.

peace,
Joe

 -Original Message-
 From: Joe Barefoot 
 Sent: Monday, August 26, 2002 10:48 AM
 To: Struts Users Mailing List
 Subject: RE: using O/R mapping tools
 
 
  -Original Message-
  From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
  Sent: Friday, August 23, 2002 12:01 PM
  To: 'Struts Users Mailing List'
  Subject: RE: using O/R mapping tools
  
  
  As I pointed out, it's a common mistake.  I have a graduate minor in
  statistics, so it's just a pet peeve and nothing more. I 
  could care less
  [sic] about your grammar.
 
 
 I hardly think it's a mistake if one uses the term and 
 everyone in the room assumes the popular meaning except the 
 one person who dogmatically clings to the diagram in their 
 old college psychology textbook.  Speaking of pet peeves, to 
 be gramatically accurate, it's couldn't care less.  To say 
 that you could care less implies that you care plenty 
 already.  :)   
 
 
 b.t.w., here's what most people envisage when they think 
 steep learning curve.  All the textbooks and mailing list 
 arguments in the world aren't going to change that.
 
 
 Effort
   | -   -   - 
   | -
   | -
   |   -
   |  -
   | -
   |-
   |   -
   |  -
   |___
   
   Proficiency
 
 
 
 
  
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]
  Sent: Friday, August 23, 2002 2:54 PM
  To: [EMAIL PROTECTED]
  Subject: RE: using O/R mapping tools
  
  
  
  H.
  
  I just could not stomach it so I did some checkng...
  
  
  Read this one first...
  Common sense warns that there is no advantage to using a word 
  correctly 
  if you know that the vast majority of your hearers will 
 misunderstand 
  your meaning. Consider the terms thumbs up and thumbs 
 down: Most 
  people are aware that these expressions derive from the 
  ancient public 
  entertainments at the Roman Colosseum, where the presiding official 
  would rule on whether a vanquished gladiator should be spared 
  or slain. 
  But did you know that thumbs up was the sign for kill him 
  and thumb 
  sideways was the sign for let him live? So when someone 
  tells you that 
  your project got the thumbs up from upper management, should 
  you start 
  checking the help-wanted ads? We 
  http://www.crh.noaa.gov/library/Grammar/Learn-curve.html
  
  
  Every result except for the above shows a steep learning 
  curve as a bad 
  thing...  Right or wrong, its common usage...
  
  I want to go home...
  
  
  STEEP LEARNING CURVE
  Rookie Quarterback Zolman Tackles Complicated Scheme
  Things aren't entirely different. That's the positive part 
  now for Greg 
  Zolman - part of the positive part, anyway. Here's the tricky 
  part: What 
  he's learning is very complicated. 
  http://www.colts.com/sub.cfm?page=article7news_id=711
  
  
  BUSH IS ON A STEEP LEARNING CURVE, JUST LIKE THE REST OF US
  George W Bush appears to be on a near-vertical global 
 learning curve. 
  And it is not just him. In the past two weeks the world has been 
  changing astonishingly quickly beneath our feet and 
 commentators are 
  running to keep up.
  http://www.guardian.co.uk/Columnists/Column/0,5673,558293,00.html
  
  
  Myth: ODBMSs have a steep learning curve
  The myth that ODBMSs have a steep learning curve is easily 
 dispelled. 
  Using an ODBMS primarily involves knowing an object programming 
  language. For examples, see transparent persistence (new window).
  If you know Java or C++, there is very little additional 
  syntax that you 
  need to learn in order to use an ODBMS. There are 
 additional database 
  commands for opening and closing databases along with starting and 
  committing transactions. But that is about all -- hardly a steep 
  learning curve. If you do not know Java or C++, there is learning 
  involved. That learning, however, involves mastering the 
 programming 
  language and not the ODBMS.
  http://www.odbmsfacts.com/articles/myth_odbms_have_a_steep_lea
  rning_curve.ht
  ml
  
  
  Steep learning curve
  First-time users of Finale can expect to invest weeks or 
 even months 
  learning how to drive this thing. And, unlike a bicycle, you 
  can easily 
  forget how to do it if away from it for a while.
  Finale is complicated, powerful, and often non-intuitive in 
  its design, 
  although ease of use improves perceptibly with each release. 
  Coda seems 
  to listen to its customers on questions of interface and features.
  http://www.research.umbc.edu/eol/5/signell/steep.html
  
  
  
  
  
  
  
  
  -Original Message-
  From: Galbreath [mailto:[EMAIL PROTECTED]]
  Sent: Friday, August 23, 2002 2:35 PM
  To: struts-user
  Subject: RE: using O/R mapping tools
  
  
  

RE: using O/R mapping tools

2002-08-26 Thread Galbreath, Mark

;-)  find a job yet?  You seem to be sleeping rather late!

-Original Message-
From: Joe Barefoot [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 1:59 PM
To: Struts Users Mailing List
Subject: RE: using O/R mapping tools


hmmm...Just noticed your [sic] after wiping morning crud from my eyes.  Your
grammatical faux pas was illustrative, not accidental.  Nice.

peace,
Joe

 -Original Message-
 From: Joe Barefoot 
 Sent: Monday, August 26, 2002 10:48 AM
 To: Struts Users Mailing List
 Subject: RE: using O/R mapping tools
 
 
  -Original Message-
  From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
  Sent: Friday, August 23, 2002 12:01 PM
  To: 'Struts Users Mailing List'
  Subject: RE: using O/R mapping tools
  
  
  As I pointed out, it's a common mistake.  I have a graduate minor in
  statistics, so it's just a pet peeve and nothing more. I 
  could care less
  [sic] about your grammar.
 
 
 I hardly think it's a mistake if one uses the term and 
 everyone in the room assumes the popular meaning except the 
 one person who dogmatically clings to the diagram in their 
 old college psychology textbook.  Speaking of pet peeves, to 
 be gramatically accurate, it's couldn't care less.  To say 
 that you could care less implies that you care plenty 
 already.  :)   
 
 
 b.t.w., here's what most people envisage when they think 
 steep learning curve.  All the textbooks and mailing list 
 arguments in the world aren't going to change that.
 
 
 Effort
   | -   -   - 
   | -
   | -
   |   -
   |  -
   | -
   |-
   |   -
   |  -
   |___
   
   Proficiency
 
 
 
 
  
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]
  Sent: Friday, August 23, 2002 2:54 PM
  To: [EMAIL PROTECTED]
  Subject: RE: using O/R mapping tools
  
  
  
  H.
  
  I just could not stomach it so I did some checkng...
  
  
  Read this one first...
  Common sense warns that there is no advantage to using a word 
  correctly 
  if you know that the vast majority of your hearers will 
 misunderstand 
  your meaning. Consider the terms thumbs up and thumbs 
 down: Most 
  people are aware that these expressions derive from the 
  ancient public 
  entertainments at the Roman Colosseum, where the presiding official 
  would rule on whether a vanquished gladiator should be spared 
  or slain. 
  But did you know that thumbs up was the sign for kill him 
  and thumb 
  sideways was the sign for let him live? So when someone 
  tells you that 
  your project got the thumbs up from upper management, should 
  you start 
  checking the help-wanted ads? We 
  http://www.crh.noaa.gov/library/Grammar/Learn-curve.html
  
  
  Every result except for the above shows a steep learning 
  curve as a bad 
  thing...  Right or wrong, its common usage...
  
  I want to go home...
  
  
  STEEP LEARNING CURVE
  Rookie Quarterback Zolman Tackles Complicated Scheme
  Things aren't entirely different. That's the positive part 
  now for Greg 
  Zolman - part of the positive part, anyway. Here's the tricky 
  part: What 
  he's learning is very complicated. 
  http://www.colts.com/sub.cfm?page=article7news_id=711
  
  
  BUSH IS ON A STEEP LEARNING CURVE, JUST LIKE THE REST OF US
  George W Bush appears to be on a near-vertical global 
 learning curve. 
  And it is not just him. In the past two weeks the world has been 
  changing astonishingly quickly beneath our feet and 
 commentators are 
  running to keep up.
  http://www.guardian.co.uk/Columnists/Column/0,5673,558293,00.html
  
  
  Myth: ODBMSs have a steep learning curve
  The myth that ODBMSs have a steep learning curve is easily 
 dispelled. 
  Using an ODBMS primarily involves knowing an object programming 
  language. For examples, see transparent persistence (new window).
  If you know Java or C++, there is very little additional 
  syntax that you 
  need to learn in order to use an ODBMS. There are 
 additional database 
  commands for opening and closing databases along with starting and 
  committing transactions. But that is about all -- hardly a steep 
  learning curve. If you do not know Java or C++, there is learning 
  involved. That learning, however, involves mastering the 
 programming 
  language and not the ODBMS.
  http://www.odbmsfacts.com/articles/myth_odbms_have_a_steep_lea
  rning_curve.ht
  ml
  
  
  Steep learning curve
  First-time users of Finale can expect to invest weeks or 
 even months 
  learning how to drive this thing. And, unlike a bicycle, you 
  can easily 
  forget how to do it if away from it for a while.
  Finale is complicated, powerful, and often non-intuitive in 
  its design, 
  although ease of use improves perceptibly with each release. 
  Coda seems 
  to listen to its customers on questions of interface and features.
  

RE: using O/R mapping tools

2002-08-26 Thread micael

Erasmus's In Praise of Folly was a tribute to his friend Sir Thomas 
Moore, the murdered Archbishop of Cantebury, who stood on principle, 
considered to be the most erudite man in the Christian World at that 
time.  Folly is a pun for Moore.  This does not stop the misreading of 
that book.  The second line of When in Rome, do as the Romans do, from 
Seneca, is When not in Rome, do as the Romans do.  In the last chapter 
(ten) of Plato's Republic, the main man (Socrates) decides to choose 
the life of an ordinary man who minds his own business.  This is from a 
book that is traditionally (by those who stop at chapter five) read as an 
apology for some sort of Uber man, when it is in fact a reductio ad 
absurdum of that very idea.  Meaning and myth and truth have strange 
companions, indeed.

At 10:47 AM 8/26/2002 -0700, you wrote:
  -Original Message-
  From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
  Sent: Friday, August 23, 2002 12:01 PM
  To: 'Struts Users Mailing List'
  Subject: RE: using O/R mapping tools
 
 
  As I pointed out, it's a common mistake.  I have a graduate minor in
  statistics, so it's just a pet peeve and nothing more. I
  could care less
  [sic] about your grammar.


I hardly think it's a mistake if one uses the term and everyone in the 
room assumes the popular meaning except the one person who dogmatically 
clings to the diagram in their old college psychology textbook.  Speaking 
of pet peeves, to be gramatically accurate, it's couldn't care less.  To 
say that you could care less implies that you care plenty already.  :)


b.t.w., here's what most people envisage when they think steep learning 
curve.  All the textbooks and mailing list arguments in the world aren't 
going to change that.


Effort
 | -   -   -
 | -
 | -
 |   -
 |  -
 | -
 |-
 |   -
 |  -
 |___

 Proficiency




 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]
  Sent: Friday, August 23, 2002 2:54 PM
  To: [EMAIL PROTECTED]
  Subject: RE: using O/R mapping tools
 
 
 
  H.
 
  I just could not stomach it so I did some checkng...
 
 
  Read this one first...
  Common sense warns that there is no advantage to using a word
  correctly
  if you know that the vast majority of your hearers will misunderstand
  your meaning. Consider the terms thumbs up and thumbs down: Most
  people are aware that these expressions derive from the
  ancient public
  entertainments at the Roman Colosseum, where the presiding official
  would rule on whether a vanquished gladiator should be spared
  or slain.
  But did you know that thumbs up was the sign for kill him
  and thumb
  sideways was the sign for let him live? So when someone
  tells you that
  your project got the thumbs up from upper management, should
  you start
  checking the help-wanted ads? We
  http://www.crh.noaa.gov/library/Grammar/Learn-curve.html
 
 
  Every result except for the above shows a steep learning
  curve as a bad
  thing...  Right or wrong, its common usage...
 
  I want to go home...
 
 
  STEEP LEARNING CURVE
  Rookie Quarterback Zolman Tackles Complicated Scheme
  Things aren't entirely different. That's the positive part
  now for Greg
  Zolman - part of the positive part, anyway. Here's the tricky
  part: What
  he's learning is very complicated.
  http://www.colts.com/sub.cfm?page=article7news_id=711
 
 
  BUSH IS ON A STEEP LEARNING CURVE, JUST LIKE THE REST OF US
  George W Bush appears to be on a near-vertical global learning curve.
  And it is not just him. In the past two weeks the world has been
  changing astonishingly quickly beneath our feet and commentators are
  running to keep up.
  http://www.guardian.co.uk/Columnists/Column/0,5673,558293,00.html
 
 
  Myth: ODBMSs have a steep learning curve
  The myth that ODBMSs have a steep learning curve is easily dispelled.
  Using an ODBMS primarily involves knowing an object programming
  language. For examples, see transparent persistence (new window).
  If you know Java or C++, there is very little additional
  syntax that you
  need to learn in order to use an ODBMS. There are additional database
  commands for opening and closing databases along with starting and
  committing transactions. But that is about all -- hardly a steep
  learning curve. If you do not know Java or C++, there is learning
  involved. That learning, however, involves mastering the programming
  language and not the ODBMS.
  http://www.odbmsfacts.com/articles/myth_odbms_have_a_steep_lea
  rning_curve.ht
  ml
 
 
  Steep learning curve
  First-time users of Finale can expect to invest weeks or even months
  learning how to drive this thing. And, unlike a bicycle, you
  can easily
  forget how to do it if away from it for a while.
  Finale is complicated, powerful, and often non-intuitive in
  

RE: using O/R mapping tools

2002-08-26 Thread Joe Barefoot

For me to use my spectacles on, clearly.  

You're mixing apples and oranges here, although I agree with you in principle.  The 
popular term is a metaphor, not an expressed opinion.  People grasp the meaning 
intuitively for reasons listed earlier, they don't usually think about it long enough 
to form an opinion on its usage.  This list is obviously an exception.

b.t.w., it's my opinion that civilization hasn't made much progress in the intervening 
round-world years.  Do you question it?  :)


joe

 -Original Message-
 From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 26, 2002 11:00 AM
 To: 'Struts Users Mailing List'
 Subject: RE: using O/R mapping tools
 
 
 And I would hardly think that civilization would have made 
 much progress if
 the prevailing opinion that the world was flat was never questioned.
 Lemmings will be lemmings, and though they have great influence on the
 masses, do not lead to any worthy end.
 
 And what do you think the [sic] is there for?
 
 -Original Message-
 From: Joe Barefoot [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 26, 2002 1:48 PM
 
 I hardly think it's a mistake if one uses the term and 
 everyone in the room
 assumes the popular meaning except the one person who 
 dogmatically clings to
 the diagram in their old college psychology textbook.  Speaking of pet
 peeves, to be gramatically accurate, it's couldn't care 
 less.  To say that
 you could care less implies that you care plenty already.  :)   
 
 
 b.t.w., here's what most people envisage when they think 
 steep learning
 curve.  All the textbooks and mailing list arguments in the 
 world aren't
 going to change that.
 
 
 Effort
   | -   -   - 
   | -
   | -
   |   -
   |  -
   | -
   |-
   |   -
   |  -
   |___
   
   Proficiency
 
 
 
 
  
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]
  Sent: Friday, August 23, 2002 2:54 PM
  To: [EMAIL PROTECTED]
  Subject: RE: using O/R mapping tools
  
  
  
  H.
  
  I just could not stomach it so I did some checkng...
  
  
  Read this one first...
  Common sense warns that there is no advantage to using a word 
  correctly 
  if you know that the vast majority of your hearers will 
 misunderstand 
  your meaning. Consider the terms thumbs up and thumbs 
 down: Most 
  people are aware that these expressions derive from the 
  ancient public 
  entertainments at the Roman Colosseum, where the presiding official 
  would rule on whether a vanquished gladiator should be spared 
  or slain. 
  But did you know that thumbs up was the sign for kill him 
  and thumb 
  sideways was the sign for let him live? So when someone 
  tells you that 
  your project got the thumbs up from upper management, should 
  you start 
  checking the help-wanted ads? We 
  http://www.crh.noaa.gov/library/Grammar/Learn-curve.html
  
  
  Every result except for the above shows a steep learning 
  curve as a bad 
  thing...  Right or wrong, its common usage...
  
  I want to go home...
  
  
  STEEP LEARNING CURVE
  Rookie Quarterback Zolman Tackles Complicated Scheme
  Things aren't entirely different. That's the positive part 
  now for Greg 
  Zolman - part of the positive part, anyway. Here's the tricky 
  part: What 
  he's learning is very complicated. 
  http://www.colts.com/sub.cfm?page=article7news_id=711
  
  
  BUSH IS ON A STEEP LEARNING CURVE, JUST LIKE THE REST OF US
  George W Bush appears to be on a near-vertical global 
 learning curve. 
  And it is not just him. In the past two weeks the world has been 
  changing astonishingly quickly beneath our feet and 
 commentators are 
  running to keep up.
  http://www.guardian.co.uk/Columnists/Column/0,5673,558293,00.html
  
  
  Myth: ODBMSs have a steep learning curve
  The myth that ODBMSs have a steep learning curve is easily 
 dispelled. 
  Using an ODBMS primarily involves knowing an object programming 
  language. For examples, see transparent persistence (new window).
  If you know Java or C++, there is very little additional 
  syntax that you 
  need to learn in order to use an ODBMS. There are 
 additional database 
  commands for opening and closing databases along with starting and 
  committing transactions. But that is about all -- hardly a steep 
  learning curve. If you do not know Java or C++, there is learning 
  involved. That learning, however, involves mastering the 
 programming 
  language and not the ODBMS.
  http://www.odbmsfacts.com/articles/myth_odbms_have_a_steep_lea
  rning_curve.ht
  ml
  
  
  Steep learning curve
  First-time users of Finale can expect to invest weeks or 
 even months 
  learning how to drive this thing. And, unlike a bicycle, you 
  can easily 
  forget how to do it if away from it for a while.
  Finale is complicated, powerful, and often 

RE: using O/R mapping tools

2002-08-26 Thread Joe Barefoot

I'm on the west coast.  Rather flexible working hours.  Loosened your tie yet? ;)

peace,
Joe

 -Original Message-
 From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 26, 2002 11:07 AM
 To: 'Struts Users Mailing List'
 Subject: RE: using O/R mapping tools
 
 
 ;-)  find a job yet?  You seem to be sleeping rather late!
 
 -Original Message-
 From: Joe Barefoot [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 26, 2002 1:59 PM
 To: Struts Users Mailing List
 Subject: RE: using O/R mapping tools
 
 
 hmmm...Just noticed your [sic] after wiping morning crud from 
 my eyes.  Your
 grammatical faux pas was illustrative, not accidental.  Nice.
 
 peace,
 Joe
 
  -Original Message-
  From: Joe Barefoot 
  Sent: Monday, August 26, 2002 10:48 AM
  To: Struts Users Mailing List
  Subject: RE: using O/R mapping tools
  
  
   -Original Message-
   From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
   Sent: Friday, August 23, 2002 12:01 PM
   To: 'Struts Users Mailing List'
   Subject: RE: using O/R mapping tools
   
   
   As I pointed out, it's a common mistake.  I have a 
 graduate minor in
   statistics, so it's just a pet peeve and nothing more. I 
   could care less
   [sic] about your grammar.
  
  
  I hardly think it's a mistake if one uses the term and 
  everyone in the room assumes the popular meaning except the 
  one person who dogmatically clings to the diagram in their 
  old college psychology textbook.  Speaking of pet peeves, to 
  be gramatically accurate, it's couldn't care less.  To say 
  that you could care less implies that you care plenty 
  already.  :)   
  
  
  b.t.w., here's what most people envisage when they think 
  steep learning curve.  All the textbooks and mailing list 
  arguments in the world aren't going to change that.
  
  
  Effort
  | -   -   - 
  | -
  | -
  |   -
  |  -
  | -
  |-
  |   -
  |  -
  |___
  
  Proficiency
  
  
  
  
   
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]
   Sent: Friday, August 23, 2002 2:54 PM
   To: [EMAIL PROTECTED]
   Subject: RE: using O/R mapping tools
   
   
   
   H.
   
   I just could not stomach it so I did some checkng...
   
   
   Read this one first...
   Common sense warns that there is no advantage to using a word 
   correctly 
   if you know that the vast majority of your hearers will 
  misunderstand 
   your meaning. Consider the terms thumbs up and thumbs 
  down: Most 
   people are aware that these expressions derive from the 
   ancient public 
   entertainments at the Roman Colosseum, where the 
 presiding official 
   would rule on whether a vanquished gladiator should be spared 
   or slain. 
   But did you know that thumbs up was the sign for kill him 
   and thumb 
   sideways was the sign for let him live? So when someone 
   tells you that 
   your project got the thumbs up from upper management, should 
   you start 
   checking the help-wanted ads? We 
   http://www.crh.noaa.gov/library/Grammar/Learn-curve.html
   
   
   Every result except for the above shows a steep learning 
   curve as a bad 
   thing...  Right or wrong, its common usage...
   
   I want to go home...
   
   
   STEEP LEARNING CURVE
   Rookie Quarterback Zolman Tackles Complicated Scheme
   Things aren't entirely different. That's the positive part 
   now for Greg 
   Zolman - part of the positive part, anyway. Here's the tricky 
   part: What 
   he's learning is very complicated. 
   http://www.colts.com/sub.cfm?page=article7news_id=711
   
   
   BUSH IS ON A STEEP LEARNING CURVE, JUST LIKE THE REST OF US
   George W Bush appears to be on a near-vertical global 
  learning curve. 
   And it is not just him. In the past two weeks the world has been 
   changing astonishingly quickly beneath our feet and 
  commentators are 
   running to keep up.
   http://www.guardian.co.uk/Columnists/Column/0,5673,558293,00.html
   
   
   Myth: ODBMSs have a steep learning curve
   The myth that ODBMSs have a steep learning curve is easily 
  dispelled. 
   Using an ODBMS primarily involves knowing an object programming 
   language. For examples, see transparent persistence (new window).
   If you know Java or C++, there is very little additional 
   syntax that you 
   need to learn in order to use an ODBMS. There are 
  additional database 
   commands for opening and closing databases along with 
 starting and 
   committing transactions. But that is about all -- hardly a steep 
   learning curve. If you do not know Java or C++, there is learning 
   involved. That learning, however, involves mastering the 
  programming 
   language and not the ODBMS.
   http://www.odbmsfacts.com/articles/myth_odbms_have_a_steep_lea
   rning_curve.ht
   ml
   
   
   Steep learning curve
   First-time users of 

RE: using O/R mapping tools

2002-08-26 Thread micael

Mark, there is a difference between saying that the world is flat, which is 
a myth by the way, and saying that round MEANS flat, because Charlie 
Brown is a two dimensional character.  There is a difference between words 
and theory.  So, you are right about the theory and wrong about 
language.  That is the decision, dag nab it!

At 02:00 PM 8/26/2002 -0400, you wrote:
And I would hardly think that civilization would have made much progress if
the prevailing opinion that the world was flat was never questioned.
Lemmings will be lemmings, and though they have great influence on the
masses, do not lead to any worthy end.

And what do you think the [sic] is there for?

-Original Message-
From: Joe Barefoot [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 1:48 PM

I hardly think it's a mistake if one uses the term and everyone in the room
assumes the popular meaning except the one person who dogmatically clings to
the diagram in their old college psychology textbook.  Speaking of pet
peeves, to be gramatically accurate, it's couldn't care less.  To say that
you could care less implies that you care plenty already.  :)


b.t.w., here's what most people envisage when they think steep learning
curve.  All the textbooks and mailing list arguments in the world aren't
going to change that.


Effort
 | -   -   -
 | -
 | -
 |   -
 |  -
 | -
 |-
 |   -
 |  -
 |___

 Proficiency




 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]
  Sent: Friday, August 23, 2002 2:54 PM
  To: [EMAIL PROTECTED]
  Subject: RE: using O/R mapping tools
 
 
 
  H.
 
  I just could not stomach it so I did some checkng...
 
 
  Read this one first...
  Common sense warns that there is no advantage to using a word
  correctly
  if you know that the vast majority of your hearers will misunderstand
  your meaning. Consider the terms thumbs up and thumbs down: Most
  people are aware that these expressions derive from the
  ancient public
  entertainments at the Roman Colosseum, where the presiding official
  would rule on whether a vanquished gladiator should be spared
  or slain.
  But did you know that thumbs up was the sign for kill him
  and thumb
  sideways was the sign for let him live? So when someone
  tells you that
  your project got the thumbs up from upper management, should
  you start
  checking the help-wanted ads? We
  http://www.crh.noaa.gov/library/Grammar/Learn-curve.html
 
 
  Every result except for the above shows a steep learning
  curve as a bad
  thing...  Right or wrong, its common usage...
 
  I want to go home...
 
 
  STEEP LEARNING CURVE
  Rookie Quarterback Zolman Tackles Complicated Scheme
  Things aren't entirely different. That's the positive part
  now for Greg
  Zolman - part of the positive part, anyway. Here's the tricky
  part: What
  he's learning is very complicated.
  http://www.colts.com/sub.cfm?page=article7news_id=711
 
 
  BUSH IS ON A STEEP LEARNING CURVE, JUST LIKE THE REST OF US
  George W Bush appears to be on a near-vertical global learning curve.
  And it is not just him. In the past two weeks the world has been
  changing astonishingly quickly beneath our feet and commentators are
  running to keep up.
  http://www.guardian.co.uk/Columnists/Column/0,5673,558293,00.html
 
 
  Myth: ODBMSs have a steep learning curve
  The myth that ODBMSs have a steep learning curve is easily dispelled.
  Using an ODBMS primarily involves knowing an object programming
  language. For examples, see transparent persistence (new window).
  If you know Java or C++, there is very little additional
  syntax that you
  need to learn in order to use an ODBMS. There are additional database
  commands for opening and closing databases along with starting and
  committing transactions. But that is about all -- hardly a steep
  learning curve. If you do not know Java or C++, there is learning
  involved. That learning, however, involves mastering the programming
  language and not the ODBMS.
  http://www.odbmsfacts.com/articles/myth_odbms_have_a_steep_lea
  rning_curve.ht
  ml
 
 
  Steep learning curve
  First-time users of Finale can expect to invest weeks or even months
  learning how to drive this thing. And, unlike a bicycle, you
  can easily
  forget how to do it if away from it for a while.
  Finale is complicated, powerful, and often non-intuitive in
  its design,
  although ease of use improves perceptibly with each release.
  Coda seems
  to listen to its customers on questions of interface and features.
  http://www.research.umbc.edu/eol/5/signell/steep.html
 
 
 
 
 
 
 
 
  -Original Message-
  From: Galbreath [mailto:[EMAIL PROTECTED]]
  Sent: Friday, August 23, 2002 2:35 PM
  To: struts-user
  Subject: RE: using O/R mapping tools
 
 
  Yep.  Think of the y axis as 

RE: Hesitation leads to NullPointerException

2002-08-26 Thread Hajratwala, Nayan (N.)

are you sure that you haven't set the session timeout to 30 *seconds*?

Be careful to notice what the units being used by the timeout parameter
are... (minutes, seconds, milliseconds, etc)

---
- Nayan Hajratwala
- Chikli Consulting LLC
- http://www.chikli.com


-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 11:54 AM
To: Struts-User
Subject: Hesitation leads to NullPointerException


Using Struts 1.0.2 on Tomcat 4.0.2

bizarre.alert

I have a problem that only occurs if the user lingers on a page for a while
(say a few minutes).  If after this duration, the user triggers any action,
the application crashes with a NullPointerException.

I have debugged the exception as being caused by a null property of the form
bean.   The question is this: how did the list get to be null.  Why does it
become null only if the user lingers?

The form bean (ProductsListBean) contains :

  private ArrayList products;
  public List getProducts() { return products; }

This list is used to display a collection of products for the user to select
(so, I know that the list is non-null  non-empty).  In the processing of
the user action, the following logic can be found

  ...
  List products = productsListBean.getProducts();
  Iterator iterator = products.iterator();
  ...

Obviously, (since the list is null) the application throws the exception at
the second line above.  

/bizarre.alert

Since the stack trace on the browser didn't indicate the Root Cause I went
looking for the Tomcat log -- it said the same thing that was on the
browser.  No more information. 

BTW my session timeout is set to 30 minutes and the this problem presents
itself if the user pauses for 2-3 minutes.


Sri

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




RE: using O/R mapping tools

2002-08-26 Thread Galbreath, Mark

wow...I'm impressed (really).

-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 2:10 PM
To: Struts Users Mailing List
Subject: RE: using O/R mapping tools


Erasmus's In Praise of Folly was a tribute to his friend Sir Thomas 
Moore, the murdered Archbishop of Cantebury, who stood on principle, 
considered to be the most erudite man in the Christian World at that 
time.  Folly is a pun for Moore.  This does not stop the misreading of 
that book.  The second line of When in Rome, do as the Romans do, from 
Seneca, is When not in Rome, do as the Romans do.  In the last chapter 
(ten) of Plato's Republic, the main man (Socrates) decides to choose 
the life of an ordinary man who minds his own business.  This is from a 
book that is traditionally (by those who stop at chapter five) read as an 
apology for some sort of Uber man, when it is in fact a reductio ad 
absurdum of that very idea.  Meaning and myth and truth have strange 
companions, indeed.

At 10:47 AM 8/26/2002 -0700, you wrote:
  -Original Message-
  From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
  Sent: Friday, August 23, 2002 12:01 PM
  To: 'Struts Users Mailing List'
  Subject: RE: using O/R mapping tools
 
 
  As I pointed out, it's a common mistake.  I have a graduate minor in
  statistics, so it's just a pet peeve and nothing more. I
  could care less
  [sic] about your grammar.


I hardly think it's a mistake if one uses the term and everyone in the 
room assumes the popular meaning except the one person who dogmatically 
clings to the diagram in their old college psychology textbook.  Speaking 
of pet peeves, to be gramatically accurate, it's couldn't care less.  To 
say that you could care less implies that you care plenty already.  :)


b.t.w., here's what most people envisage when they think steep learning 
curve.  All the textbooks and mailing list arguments in the world aren't 
going to change that.


Effort
 | -   -   -
 | -
 | -
 |   -
 |  -
 | -
 |-
 |   -
 |  -
 |___

 Proficiency




 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]
  Sent: Friday, August 23, 2002 2:54 PM
  To: [EMAIL PROTECTED]
  Subject: RE: using O/R mapping tools
 
 
 
  H.
 
  I just could not stomach it so I did some checkng...
 
 
  Read this one first...
  Common sense warns that there is no advantage to using a word
  correctly
  if you know that the vast majority of your hearers will misunderstand
  your meaning. Consider the terms thumbs up and thumbs down: Most
  people are aware that these expressions derive from the
  ancient public
  entertainments at the Roman Colosseum, where the presiding official
  would rule on whether a vanquished gladiator should be spared
  or slain.
  But did you know that thumbs up was the sign for kill him
  and thumb
  sideways was the sign for let him live? So when someone
  tells you that
  your project got the thumbs up from upper management, should
  you start
  checking the help-wanted ads? We
  http://www.crh.noaa.gov/library/Grammar/Learn-curve.html
 
 
  Every result except for the above shows a steep learning
  curve as a bad
  thing...  Right or wrong, its common usage...
 
  I want to go home...
 
 
  STEEP LEARNING CURVE
  Rookie Quarterback Zolman Tackles Complicated Scheme
  Things aren't entirely different. That's the positive part
  now for Greg
  Zolman - part of the positive part, anyway. Here's the tricky
  part: What
  he's learning is very complicated.
  http://www.colts.com/sub.cfm?page=article7news_id=711
 
 
  BUSH IS ON A STEEP LEARNING CURVE, JUST LIKE THE REST OF US
  George W Bush appears to be on a near-vertical global learning curve.
  And it is not just him. In the past two weeks the world has been
  changing astonishingly quickly beneath our feet and commentators are
  running to keep up.
  http://www.guardian.co.uk/Columnists/Column/0,5673,558293,00.html
 
 
  Myth: ODBMSs have a steep learning curve
  The myth that ODBMSs have a steep learning curve is easily dispelled.
  Using an ODBMS primarily involves knowing an object programming
  language. For examples, see transparent persistence (new window).
  If you know Java or C++, there is very little additional
  syntax that you
  need to learn in order to use an ODBMS. There are additional database
  commands for opening and closing databases along with starting and
  committing transactions. But that is about all -- hardly a steep
  learning curve. If you do not know Java or C++, there is learning
  involved. That learning, however, involves mastering the programming
  language and not the ODBMS.
  http://www.odbmsfacts.com/articles/myth_odbms_have_a_steep_lea
  rning_curve.ht
  ml
 
 
  Steep learning curve
  First-time users of Finale can expect to invest weeks 

RE: using O/R mapping tools

2002-08-26 Thread micael

I cannot see why anyone things a steep learning curve is either bad or 
good.  It is just a steep learning curve and may be bad or good depending 
on the circumstances.  I don't see in any event how statistics could make a 
judgment on whether or not a learning curve was good or bad or indifferent.

At 10:47 AM 8/26/2002 -0700, you wrote:
  -Original Message-
  From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
  Sent: Friday, August 23, 2002 12:01 PM
  To: 'Struts Users Mailing List'
  Subject: RE: using O/R mapping tools
 
 
  As I pointed out, it's a common mistake.  I have a graduate minor in
  statistics, so it's just a pet peeve and nothing more. I
  could care less
  [sic] about your grammar.


I hardly think it's a mistake if one uses the term and everyone in the 
room assumes the popular meaning except the one person who dogmatically 
clings to the diagram in their old college psychology textbook.  Speaking 
of pet peeves, to be gramatically accurate, it's couldn't care less.  To 
say that you could care less implies that you care plenty already.  :)


b.t.w., here's what most people envisage when they think steep learning 
curve.  All the textbooks and mailing list arguments in the world aren't 
going to change that.


Effort
 | -   -   -
 | -
 | -
 |   -
 |  -
 | -
 |-
 |   -
 |  -
 |___

 Proficiency




 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]
  Sent: Friday, August 23, 2002 2:54 PM
  To: [EMAIL PROTECTED]
  Subject: RE: using O/R mapping tools
 
 
 
  H.
 
  I just could not stomach it so I did some checkng...
 
 
  Read this one first...
  Common sense warns that there is no advantage to using a word
  correctly
  if you know that the vast majority of your hearers will misunderstand
  your meaning. Consider the terms thumbs up and thumbs down: Most
  people are aware that these expressions derive from the
  ancient public
  entertainments at the Roman Colosseum, where the presiding official
  would rule on whether a vanquished gladiator should be spared
  or slain.
  But did you know that thumbs up was the sign for kill him
  and thumb
  sideways was the sign for let him live? So when someone
  tells you that
  your project got the thumbs up from upper management, should
  you start
  checking the help-wanted ads? We
  http://www.crh.noaa.gov/library/Grammar/Learn-curve.html
 
 
  Every result except for the above shows a steep learning
  curve as a bad
  thing...  Right or wrong, its common usage...
 
  I want to go home...
 
 
  STEEP LEARNING CURVE
  Rookie Quarterback Zolman Tackles Complicated Scheme
  Things aren't entirely different. That's the positive part
  now for Greg
  Zolman - part of the positive part, anyway. Here's the tricky
  part: What
  he's learning is very complicated.
  http://www.colts.com/sub.cfm?page=article7news_id=711
 
 
  BUSH IS ON A STEEP LEARNING CURVE, JUST LIKE THE REST OF US
  George W Bush appears to be on a near-vertical global learning curve.
  And it is not just him. In the past two weeks the world has been
  changing astonishingly quickly beneath our feet and commentators are
  running to keep up.
  http://www.guardian.co.uk/Columnists/Column/0,5673,558293,00.html
 
 
  Myth: ODBMSs have a steep learning curve
  The myth that ODBMSs have a steep learning curve is easily dispelled.
  Using an ODBMS primarily involves knowing an object programming
  language. For examples, see transparent persistence (new window).
  If you know Java or C++, there is very little additional
  syntax that you
  need to learn in order to use an ODBMS. There are additional database
  commands for opening and closing databases along with starting and
  committing transactions. But that is about all -- hardly a steep
  learning curve. If you do not know Java or C++, there is learning
  involved. That learning, however, involves mastering the programming
  language and not the ODBMS.
  http://www.odbmsfacts.com/articles/myth_odbms_have_a_steep_lea
  rning_curve.ht
  ml
 
 
  Steep learning curve
  First-time users of Finale can expect to invest weeks or even months
  learning how to drive this thing. And, unlike a bicycle, you
  can easily
  forget how to do it if away from it for a while.
  Finale is complicated, powerful, and often non-intuitive in
  its design,
  although ease of use improves perceptibly with each release.
  Coda seems
  to listen to its customers on questions of interface and features.
  http://www.research.umbc.edu/eol/5/signell/steep.html
 
 
 
 
 
 
 
 
  -Original Message-
  From: Galbreath [mailto:[EMAIL PROTECTED]]
  Sent: Friday, August 23, 2002 2:35 PM
  To: struts-user
  Subject: RE: using O/R mapping tools
 
 
  Yep.  Think of the y axis as productivity and the x axis as
  time.  You
  want
  a curve going 

RE: using O/R mapping tools

2002-08-26 Thread micael

Heh, that is a wrong use of [sic]! ///;-)

At 10:58 AM 8/26/2002 -0700, you wrote:
hmmm...Just noticed your [sic] after wiping morning crud from my 
eyes.  Your grammatical faux pas was illustrative, not accidental.  Nice.

peace,
Joe

  -Original Message-
  From: Joe Barefoot
  Sent: Monday, August 26, 2002 10:48 AM
  To: Struts Users Mailing List
  Subject: RE: using O/R mapping tools
 
 
   -Original Message-
   From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
   Sent: Friday, August 23, 2002 12:01 PM
   To: 'Struts Users Mailing List'
   Subject: RE: using O/R mapping tools
  
  
   As I pointed out, it's a common mistake.  I have a graduate minor in
   statistics, so it's just a pet peeve and nothing more. I
   could care less
   [sic] about your grammar.
 
 
  I hardly think it's a mistake if one uses the term and
  everyone in the room assumes the popular meaning except the
  one person who dogmatically clings to the diagram in their
  old college psychology textbook.  Speaking of pet peeves, to
  be gramatically accurate, it's couldn't care less.  To say
  that you could care less implies that you care plenty
  already.  :)
 
 
  b.t.w., here's what most people envisage when they think
  steep learning curve.  All the textbooks and mailing list
  arguments in the world aren't going to change that.
 
 
  Effort
| -   -   -
| -
| -
|   -
|  -
| -
|-
|   -
|  -
|___
 
Proficiency
 
 
 
 
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]
   Sent: Friday, August 23, 2002 2:54 PM
   To: [EMAIL PROTECTED]
   Subject: RE: using O/R mapping tools
  
  
  
   H.
  
   I just could not stomach it so I did some checkng...
  
  
   Read this one first...
   Common sense warns that there is no advantage to using a word
   correctly
   if you know that the vast majority of your hearers will
  misunderstand
   your meaning. Consider the terms thumbs up and thumbs
  down: Most
   people are aware that these expressions derive from the
   ancient public
   entertainments at the Roman Colosseum, where the presiding official
   would rule on whether a vanquished gladiator should be spared
   or slain.
   But did you know that thumbs up was the sign for kill him
   and thumb
   sideways was the sign for let him live? So when someone
   tells you that
   your project got the thumbs up from upper management, should
   you start
   checking the help-wanted ads? We
   http://www.crh.noaa.gov/library/Grammar/Learn-curve.html
  
  
   Every result except for the above shows a steep learning
   curve as a bad
   thing...  Right or wrong, its common usage...
  
   I want to go home...
  
  
   STEEP LEARNING CURVE
   Rookie Quarterback Zolman Tackles Complicated Scheme
   Things aren't entirely different. That's the positive part
   now for Greg
   Zolman - part of the positive part, anyway. Here's the tricky
   part: What
   he's learning is very complicated.
   http://www.colts.com/sub.cfm?page=article7news_id=711
  
  
   BUSH IS ON A STEEP LEARNING CURVE, JUST LIKE THE REST OF US
   George W Bush appears to be on a near-vertical global
  learning curve.
   And it is not just him. In the past two weeks the world has been
   changing astonishingly quickly beneath our feet and
  commentators are
   running to keep up.
   http://www.guardian.co.uk/Columnists/Column/0,5673,558293,00.html
  
  
   Myth: ODBMSs have a steep learning curve
   The myth that ODBMSs have a steep learning curve is easily
  dispelled.
   Using an ODBMS primarily involves knowing an object programming
   language. For examples, see transparent persistence (new window).
   If you know Java or C++, there is very little additional
   syntax that you
   need to learn in order to use an ODBMS. There are
  additional database
   commands for opening and closing databases along with starting and
   committing transactions. But that is about all -- hardly a steep
   learning curve. If you do not know Java or C++, there is learning
   involved. That learning, however, involves mastering the
  programming
   language and not the ODBMS.
   http://www.odbmsfacts.com/articles/myth_odbms_have_a_steep_lea
   rning_curve.ht
   ml
  
  
   Steep learning curve
   First-time users of Finale can expect to invest weeks or
  even months
   learning how to drive this thing. And, unlike a bicycle, you
   can easily
   forget how to do it if away from it for a while.
   Finale is complicated, powerful, and often non-intuitive in
   its design,
   although ease of use improves perceptibly with each release.
   Coda seems
   to listen to its customers on questions of interface and features.
   http://www.research.umbc.edu/eol/5/signell/steep.html
  
  
  
  
  
  
  
  
   -Original Message-
   From: Galbreath [mailto:[EMAIL 

RE: Why Scriplet is not processed in html:select 'onchange' ele ment ?

2002-08-26 Thread Parvez Sayeed

It works.

Thank you.

Parvez.

-Original Message-
From: Martin Cooper [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 23, 2002 6:19 PM
To: 'Struts Users Mailing List'
Subject: RE: Why Scriplet is not processed in html:select 'onchange'
ele ment ?




 -Original Message-
 From: Parvez Sayeed [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 23, 2002 4:08 PM
 To: Struts Users Mailing List
 Subject: Why Scriplet is not processed in html:select 'onchange'
 element ?
 
 
 In addition to my last question:
 
 How come in the following statement scriptlet is processed:
   logic:lessThan 
   name = maintainCRSCodeCategoryForm 
   property=pageNbr 
   
 value=%=Integer.toString(currentForm.getPageCount()-1)%
 
 But it does not get processed in :
 
   html:select 
   property=categoryCodeValue 
   styleClass=formFields 
   
 onChange=javascript:valueChanged(%=Integer.toString(currentF
orm.getPageCou
 nt())%)

There are two problems here:

1) The attribute name is onchange, not onChange.

2) It is not legal to mix string literals with scripting expressions in an
attribute value. Try this instead:

onchange='%= javascript:valueChanged(
+ Integer.toString(currentForm.getPageCount())
+ ) %'

--
Martin Cooper


 
 Am I missing something why these two tags behave differently?
 Or is this a bug?
 
 Thanks.
 -Original Message-
 From: Parvez Sayeed 
 Sent: Friday, August 23, 2002 1:30 PM
 To: Struts Users Mailing List
 Subject: Can you have Scriptlet or bean:write within a Struts-tag
 'eleme nt'
 
 
 Hi,
 
 I was trying to do the following:
 
 logic:iterate  id=someId 
 type=some.class 
 name=someName 
 indexId=someIndex  // Used below in the select
 property=someProp
 
   bean:write property=prop1
   ...
   ...
   html:select 
 name=beanName 
 property=propOne 
 onchange=optionChanged(%=someIndex%);   // 
 Used here in a
 javascript function call
   .
   .
   /html:select
   
   
 /logic:iterate
 
 Apparently this does not work. Is it at all possible? if not, 
 can this be
 accomplished some other way?
 
 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]




RE: using O/R mapping tools

2002-08-26 Thread micael

///;-)  I should have said that Erasmus's book was written in Latin, 
because you cannot see the puns unless you read it in Latin.

At 02:17 PM 8/26/2002 -0400, you wrote:
wow...I'm impressed (really).

-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 2:10 PM
To: Struts Users Mailing List
Subject: RE: using O/R mapping tools


Erasmus's In Praise of Folly was a tribute to his friend Sir Thomas
Moore, the murdered Archbishop of Cantebury, who stood on principle,
considered to be the most erudite man in the Christian World at that
time.  Folly is a pun for Moore.  This does not stop the misreading of
that book.  The second line of When in Rome, do as the Romans do, from
Seneca, is When not in Rome, do as the Romans do.  In the last chapter
(ten) of Plato's Republic, the main man (Socrates) decides to choose
the life of an ordinary man who minds his own business.  This is from a
book that is traditionally (by those who stop at chapter five) read as an
apology for some sort of Uber man, when it is in fact a reductio ad
absurdum of that very idea.  Meaning and myth and truth have strange
companions, indeed.

At 10:47 AM 8/26/2002 -0700, you wrote:
   -Original Message-
   From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
   Sent: Friday, August 23, 2002 12:01 PM
   To: 'Struts Users Mailing List'
   Subject: RE: using O/R mapping tools
  
  
   As I pointed out, it's a common mistake.  I have a graduate minor in
   statistics, so it's just a pet peeve and nothing more. I
   could care less
   [sic] about your grammar.
 
 
 I hardly think it's a mistake if one uses the term and everyone in the
 room assumes the popular meaning except the one person who dogmatically
 clings to the diagram in their old college psychology textbook.  Speaking
 of pet peeves, to be gramatically accurate, it's couldn't care less.  To
 say that you could care less implies that you care plenty already.  :)
 
 
 b.t.w., here's what most people envisage when they think steep learning
 curve.  All the textbooks and mailing list arguments in the world aren't
 going to change that.
 
 
 Effort
  | -   -   -
  | -
  | -
  |   -
  |  -
  | -
  |-
  |   -
  |  -
  |___
 
  Proficiency
 
 
 
 
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]
   Sent: Friday, August 23, 2002 2:54 PM
   To: [EMAIL PROTECTED]
   Subject: RE: using O/R mapping tools
  
  
  
   H.
  
   I just could not stomach it so I did some checkng...
  
  
   Read this one first...
   Common sense warns that there is no advantage to using a word
   correctly
   if you know that the vast majority of your hearers will misunderstand
   your meaning. Consider the terms thumbs up and thumbs down: Most
   people are aware that these expressions derive from the
   ancient public
   entertainments at the Roman Colosseum, where the presiding official
   would rule on whether a vanquished gladiator should be spared
   or slain.
   But did you know that thumbs up was the sign for kill him
   and thumb
   sideways was the sign for let him live? So when someone
   tells you that
   your project got the thumbs up from upper management, should
   you start
   checking the help-wanted ads? We
   http://www.crh.noaa.gov/library/Grammar/Learn-curve.html
  
  
   Every result except for the above shows a steep learning
   curve as a bad
   thing...  Right or wrong, its common usage...
  
   I want to go home...
  
  
   STEEP LEARNING CURVE
   Rookie Quarterback Zolman Tackles Complicated Scheme
   Things aren't entirely different. That's the positive part
   now for Greg
   Zolman - part of the positive part, anyway. Here's the tricky
   part: What
   he's learning is very complicated.
   http://www.colts.com/sub.cfm?page=article7news_id=711
  
  
   BUSH IS ON A STEEP LEARNING CURVE, JUST LIKE THE REST OF US
   George W Bush appears to be on a near-vertical global learning curve.
   And it is not just him. In the past two weeks the world has been
   changing astonishingly quickly beneath our feet and commentators are
   running to keep up.
   http://www.guardian.co.uk/Columnists/Column/0,5673,558293,00.html
  
  
   Myth: ODBMSs have a steep learning curve
   The myth that ODBMSs have a steep learning curve is easily dispelled.
   Using an ODBMS primarily involves knowing an object programming
   language. For examples, see transparent persistence (new window).
   If you know Java or C++, there is very little additional
   syntax that you
   need to learn in order to use an ODBMS. There are additional database
   commands for opening and closing databases along with starting and
   committing transactions. But that is about all -- hardly a steep
   learning curve. If you do not know Java or C++, there is learning
   

RE: html:select question

2002-08-26 Thread Teh, Kah Loong

Sri, 
I solved my problem by doing a workaround.
nothing great, but it would have been great if i didn't need to.

Thanks for the input!


Kael



-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 23, 2002 3:28 PM
To: Struts Users Mailing List
Subject: RE: html:select question


Are you sure it doesn't work?  I have had Struts implicitly convert
booleans to String.

If it doesn't work you could always set up a dummy getter:

public String getFoo() {
  return  + room.CDRRomUseID;
}

and use 'foo' as your property value.

Sri

-Original Message-
From: Teh, Kah Loong [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 23, 2002 4:15 PM
To: Struts Users Mailing List
Subject: RE: html:select question


Sri, 
Thanks for your suggestion.  

Sorry i should have provided more details in my original question

with the same following code :
html:select property=room.CDRRoomUseID 
 value=%=Room_Obj.getCDRRoomUseID_desc() % 
 html:options   collection=CDRRoomUseList property=CDRRoomUseID
 labelProperty=CDRRoomUse / /html:select

var types :
room.CDRRoomUseID - int
value = String
the options block is essentially recording CDRRoomUseIDs (of type int)
to be saved to room.CDRRoomUseID, the display however, would be strings
(labelProperty = CDRRoomUse) therefore your suggestion would not take
hold.

Do you have any more suggestions? help much appreciated.


Kael




-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 23, 2002 12:01 PM
To: Struts Users Mailing List
Subject: RE: html:select question


You don't need the value attribute.  All you have to do is set the
property attribute of the html:select (room.CDRRoomUseID) to the value
you want displayed by default.  For example, if room.CDRRoomUseID is set
to 'foo' and 'foo' is one of the value in the collection CDRRoomUseList,
it will show selected when the page loads.

Sri

-Original Message-
From: Teh, Kah Loong [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 23, 2002 12:50 PM
To: [EMAIL PROTECTED]
Subject: html:select question


I'm trying to create a drop down Combo Box that allows 
a user to select a choice out of many from a given list.
This would sort of be like an update process for an 
existing database entry.

I would like to display the original data as the default 
entry for the combo box.
According to the API, this can be done by setting the 'value' 
attribute for html:select, i have tried doing so but was not
successful. The default value that is displayed on the combo box happens
to 
be the first value returned from the List, i.e. CDRRoomUseList


I have written the following code segment :

// bean declarations
jsp:useBean id=CDRRoomUseListclass=java.util.List
scope=request /

// for generating the drop down combo box 
html:select property=room.CDRRoomUseID value=%=
Room_Obj.getCDRRoomUseID_desc() % 
 html:options   collection=CDRRoomUseList property=CDRRoomUseID
 labelProperty=CDRRoomUse / /html:select


I have even tried doing :
html:select property=room.CDR... value=test  

but this did not work as well.


Can anybody point me towards the right direction?

Thanks for any help in advance.


Kael
Facilities Planning
University of Wisconsin - Eau Claire


--
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: j_security_check, jaas and weblogic 6.1

2002-08-26 Thread Michael Lee

Thank you! You are the ONLY place I've heard this!  Now everything seems to
make more sense.

I was just going to use j_security_check hooked into Weblogic RDBMS and put
the user in the session for authentication from there on in (JNDI security
to EJB). So this looks like the right path?

No offense, but is this right? BEA recommends you use JAAS all over the
place. I'm mainly going to use ACL in the deployment descriptors for my web
app and ejbs. I also noticed that almost all JAAS implementations were at
the java client layer. Few were servlets, etc. This would make sense with
what your saying because no container would exist at a pure java client
layer (such as with the JAAS RMI example that comes with weblogic).

BTW, EXCELLENT job with struts Craig and team. I have 2 systems IN
PRODUCTION! using struts. They wrote one at the job I'm at and I recommended
struts to replace it. We are now going full steam ahead with struts!
thanks,
Mike Lee


- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, August 26, 2002 12:52 PM
Subject: Re: j_security_check, jaas and weblogic 6.1


 JAAS is not relevant if you're using container-managed security.  You'll
 need to set up users in whatever user database your container (WebLogic in
 your case) provides.  Struts also has nothing to do with this -- although
 you can use role information with tags like logic:present or the roles
 attribute on an action if you want to.

 JAAS would only be relevant if you wanted to do application-managed
 security instead, or if you were implementing the container itself.

 Craig


 On Mon, 26 Aug 2002, Michael Lee wrote:

  Date: Mon, 26 Aug 2002 12:21:12 -0400
  From: Michael Lee [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Subject: j_security_check, jaas and weblogic 6.1
 
  I have to do security for the company I am at. I have never used
  j_security_check, jaas or weblogic 6.1 RDBMS (we have a database for
  authentication/authorization). I read all through the examples on
  j_security_check, jaas and WLS RDBMS out there I could get my hands on.
  There seems to be no good real world examples of how to tie all these
  together. The reason I'm having an issue is struts is the middle man,
the
  controller so he is key to it all. I know i configure j_security_check
in my
  web.xml to point to use form authentication, i know all about deployment
  descriptor configuration for ejb, war, etc. This is not the problem. I
don't
  see how JAAS fits into j_security_check? I also dont see how struts fits
  into it either? Do I need to also add a login.do? I need to get the
locale
  for the user from the database and figured I would do this at the login.
  JAAS wants LoginContext.login(), most j2ee say j_security_check and
struts
  examples have login.do (this is the way I've typically done it).
  Help! I can't find any real world examples to tie all these together!
  thanks!
  Mike Lee
 
  --
  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: using O/R mapping tools

2002-08-26 Thread Chappell, Simon P

Interesting, but I thought that the phrase was When in Rome, remember you're 
British! :-)

Simon

-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 1:10 PM
To: Struts Users Mailing List
Subject: RE: using O/R mapping tools


Erasmus's In Praise of Folly was a tribute to his friend Sir Thomas 
Moore, the murdered Archbishop of Cantebury, who stood on principle, 
considered to be the most erudite man in the Christian World at that 
time.  Folly is a pun for Moore.  This does not stop the 
misreading of 
that book.  The second line of When in Rome, do as the Romans 
do, from 
Seneca, is When not in Rome, do as the Romans do.  In the 
last chapter 
(ten) of Plato's Republic, the main man (Socrates) decides 
to choose 
the life of an ordinary man who minds his own business.  This 
is from a 
book that is traditionally (by those who stop at chapter five) 
read as an 
apology for some sort of Uber man, when it is in fact a reductio ad 
absurdum of that very idea.  Meaning and myth and truth have strange 
companions, indeed.

At 10:47 AM 8/26/2002 -0700, you wrote:
  -Original Message-
  From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
  Sent: Friday, August 23, 2002 12:01 PM
  To: 'Struts Users Mailing List'
  Subject: RE: using O/R mapping tools
 
 
  As I pointed out, it's a common mistake.  I have a 
graduate minor in
  statistics, so it's just a pet peeve and nothing more. I
  could care less
  [sic] about your grammar.


I hardly think it's a mistake if one uses the term and 
everyone in the 
room assumes the popular meaning except the one person who 
dogmatically 
clings to the diagram in their old college psychology 
textbook.  Speaking 
of pet peeves, to be gramatically accurate, it's couldn't 
care less.  To 
say that you could care less implies that you care plenty 
already.  :)


b.t.w., here's what most people envisage when they think 
steep learning 
curve.  All the textbooks and mailing list arguments in the 
world aren't 
going to change that.


Effort
 | -   -   -
 | -
 | -
 |   -
 |  -
 | -
 |-
 |   -
 |  -
 |___

 Proficiency




 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]
  Sent: Friday, August 23, 2002 2:54 PM
  To: [EMAIL PROTECTED]
  Subject: RE: using O/R mapping tools
 
 
 
  H.
 
  I just could not stomach it so I did some checkng...
 
 
  Read this one first...
  Common sense warns that there is no advantage to using a word
  correctly
  if you know that the vast majority of your hearers will 
misunderstand
  your meaning. Consider the terms thumbs up and thumbs 
down: Most
  people are aware that these expressions derive from the
  ancient public
  entertainments at the Roman Colosseum, where the presiding official
  would rule on whether a vanquished gladiator should be spared
  or slain.
  But did you know that thumbs up was the sign for kill him
  and thumb
  sideways was the sign for let him live? So when someone
  tells you that
  your project got the thumbs up from upper management, should
  you start
  checking the help-wanted ads? We
  http://www.crh.noaa.gov/library/Grammar/Learn-curve.html
 
 
  Every result except for the above shows a steep learning
  curve as a bad
  thing...  Right or wrong, its common usage...
 
  I want to go home...
 
 
  STEEP LEARNING CURVE
  Rookie Quarterback Zolman Tackles Complicated Scheme
  Things aren't entirely different. That's the positive part
  now for Greg
  Zolman - part of the positive part, anyway. Here's the tricky
  part: What
  he's learning is very complicated.
  http://www.colts.com/sub.cfm?page=article7news_id=711
 
 
  BUSH IS ON A STEEP LEARNING CURVE, JUST LIKE THE REST OF US
  George W Bush appears to be on a near-vertical global 
learning curve.
  And it is not just him. In the past two weeks the world has been
  changing astonishingly quickly beneath our feet and 
commentators are
  running to keep up.
  http://www.guardian.co.uk/Columnists/Column/0,5673,558293,00.html
 
 
  Myth: ODBMSs have a steep learning curve
  The myth that ODBMSs have a steep learning curve is easily 
dispelled.
  Using an ODBMS primarily involves knowing an object programming
  language. For examples, see transparent persistence (new window).
  If you know Java or C++, there is very little additional
  syntax that you
  need to learn in order to use an ODBMS. There are 
additional database
  commands for opening and closing databases along with starting and
  committing transactions. But that is about all -- hardly a steep
  learning curve. If you do not know Java or C++, there is learning
  involved. That learning, however, involves mastering the 
programming
  language and not the ODBMS.
  http://www.odbmsfacts.com/articles/myth_odbms_have_a_steep_lea
  rning_curve.ht

win2k virtual desktops -- ZDDesk

2002-08-26 Thread Joe Barefoot

Thanks to whoever sent me the link for ZDDesk (lost the email)--very nice, simple 
implementation of virtual desktops.

peace,
Joe

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




Re: Adding errors to request in a DefaultAction

2002-08-26 Thread Michael Lee

Is it not in your resource bundle (ApplicationResources)?

- Original Message -
From: Matt Raible [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 26, 2002 1:48 PM
Subject: Adding errors to request in a DefaultAction


 I have an ActionFilter that maps to /do/*.  In this class, I detect if
 the user has a missing password_hint and if so, set a session
 variable, missingHint.  Then in my DefaultAction (which forward to the
 Main Menu), I have code to check for that variable and forward - but
 it's not working - any ideas? The logging message building missing
 password hint warning IS getting logged.


 // Extract attributes we will need
 ActionErrors errors = new ActionErrors();
   ...

 String requestURI = request.getRequestURI();
 String contextPath = request.getContextPath();

 String forwardPath = requestURI.substring(contextPath.length());

 forwardPath = forwardPath.substring(
 forwardPath.indexOf(do/) + 3, forwardPath.length());

 if (forwardPath.indexOf(mainMenu) != -1) { // routing to Main
 Menu

 if (session.getAttribute(missingHint) != null) {
 if (logger.isDebugEnabled()) {
 logger.debug(building missing password hint
 warning);
 }
 // add warning message to the request
 errors.add(ActionErrors.GLOBAL_ERROR,
new ActionError(errors.missing.hint));
 saveErrors(request, errors);
 session.removeAttribute(missingHint);
 }
 }

 return mapping.findForward(forwardPath);



 --
 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: Hesitation leads to NullPointerException

2002-08-26 Thread Sri Sankaran

I decided (in response to your email) to display the maxInactiveInterval.  I nearly 
fell off my chair when I saw the console read '60 seconds'!!

This was a case of the source control not managing what's on the Tomcat server.  
Source control's web.xml read 

  session-config
 session-timeout30/session-timeout
  /session-config

But Tomcat's version read

  session-config
 session-timeout1/session-timeout
  /session-config

Thanks.  I'll now go and crawl into my hole.

Sri

-Original Message-
From: Hajratwala, Nayan (N.) [mailto:[EMAIL PROTECTED]] 
Sent: Monday, August 26, 2002 2:16 PM
To: 'Struts Users Mailing List'
Subject: RE: Hesitation leads to NullPointerException


are you sure that you haven't set the session timeout to 30 *seconds*?

Be careful to notice what the units being used by the timeout parameter are... 
(minutes, seconds, milliseconds, etc)

---
- Nayan Hajratwala
- Chikli Consulting LLC
- http://www.chikli.com


-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 11:54 AM
To: Struts-User
Subject: Hesitation leads to NullPointerException


Using Struts 1.0.2 on Tomcat 4.0.2

bizarre.alert

I have a problem that only occurs if the user lingers on a page for a while (say a few 
minutes).  If after this duration, the user triggers any action, the application 
crashes with a NullPointerException.

I have debugged the exception as being caused by a null property of the form
bean.   The question is this: how did the list get to be null.  Why does it
become null only if the user lingers?

The form bean (ProductsListBean) contains :

  private ArrayList products;
  public List getProducts() { return products; }

This list is used to display a collection of products for the user to select (so, I 
know that the list is non-null  non-empty).  In the processing of the user action, 
the following logic can be found

  ...
  List products = productsListBean.getProducts();
  Iterator iterator = products.iterator();
  ...

Obviously, (since the list is null) the application throws the exception at the second 
line above.  

/bizarre.alert

Since the stack trace on the browser didn't indicate the Root Cause I went looking 
for the Tomcat log -- it said the same thing that was on the browser.  No more 
information. 

BTW my session timeout is set to 30 minutes and the this problem presents itself if 
the user pauses for 2-3 minutes.


Sri

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




Fwd: Re: trouble with DynaValidatorForm

2002-08-26 Thread Donald Ball

Never mind, I found the problem - invalid validator.xml. Pretty good stuff
going on now, thanks to the struts team.

btw, never got an answer to my second original question - is anyone writing
the jakarta docs for the Dyna and Validator stuff? If not, I could try to
take a stab at it.

- donald


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




RE: using O/R mapping tools

2002-08-26 Thread Galbreath, Mark

No it isn't...I was quoting myself.  ;-)

-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 2:19 PM
To: Struts Users Mailing List
Subject: RE: using O/R mapping tools


Heh, that is a wrong use of [sic]! ///;-)

At 10:58 AM 8/26/2002 -0700, you wrote:
hmmm...Just noticed your [sic] after wiping morning crud from my 
eyes.  Your grammatical faux pas was illustrative, not accidental.  Nice.

peace,
Joe

  -Original Message-
  From: Joe Barefoot
  Sent: Monday, August 26, 2002 10:48 AM
  To: Struts Users Mailing List
  Subject: RE: using O/R mapping tools
 
 
   -Original Message-
   From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
   Sent: Friday, August 23, 2002 12:01 PM
   To: 'Struts Users Mailing List'
   Subject: RE: using O/R mapping tools
  
  
   As I pointed out, it's a common mistake.  I have a graduate minor in
   statistics, so it's just a pet peeve and nothing more. I
   could care less
   [sic] about your grammar.
 
 
  I hardly think it's a mistake if one uses the term and
  everyone in the room assumes the popular meaning except the
  one person who dogmatically clings to the diagram in their
  old college psychology textbook.  Speaking of pet peeves, to
  be gramatically accurate, it's couldn't care less.  To say
  that you could care less implies that you care plenty
  already.  :)
 
 
  b.t.w., here's what most people envisage when they think
  steep learning curve.  All the textbooks and mailing list
  arguments in the world aren't going to change that.
 
 
  Effort
| -   -   -
| -
| -
|   -
|  -
| -
|-
|   -
|  -
|___
 
Proficiency
 
 
 
 
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]
   Sent: Friday, August 23, 2002 2:54 PM
   To: [EMAIL PROTECTED]
   Subject: RE: using O/R mapping tools
  
  
  
   H.
  
   I just could not stomach it so I did some checkng...
  
  
   Read this one first...
   Common sense warns that there is no advantage to using a word
   correctly
   if you know that the vast majority of your hearers will
  misunderstand
   your meaning. Consider the terms thumbs up and thumbs
  down: Most
   people are aware that these expressions derive from the
   ancient public
   entertainments at the Roman Colosseum, where the presiding official
   would rule on whether a vanquished gladiator should be spared
   or slain.
   But did you know that thumbs up was the sign for kill him
   and thumb
   sideways was the sign for let him live? So when someone
   tells you that
   your project got the thumbs up from upper management, should
   you start
   checking the help-wanted ads? We
   http://www.crh.noaa.gov/library/Grammar/Learn-curve.html
  
  
   Every result except for the above shows a steep learning
   curve as a bad
   thing...  Right or wrong, its common usage...
  
   I want to go home...
  
  
   STEEP LEARNING CURVE
   Rookie Quarterback Zolman Tackles Complicated Scheme
   Things aren't entirely different. That's the positive part
   now for Greg
   Zolman - part of the positive part, anyway. Here's the tricky
   part: What
   he's learning is very complicated.
   http://www.colts.com/sub.cfm?page=article7news_id=711
  
  
   BUSH IS ON A STEEP LEARNING CURVE, JUST LIKE THE REST OF US
   George W Bush appears to be on a near-vertical global
  learning curve.
   And it is not just him. In the past two weeks the world has been
   changing astonishingly quickly beneath our feet and
  commentators are
   running to keep up.
   http://www.guardian.co.uk/Columnists/Column/0,5673,558293,00.html
  
  
   Myth: ODBMSs have a steep learning curve
   The myth that ODBMSs have a steep learning curve is easily
  dispelled.
   Using an ODBMS primarily involves knowing an object programming
   language. For examples, see transparent persistence (new window).
   If you know Java or C++, there is very little additional
   syntax that you
   need to learn in order to use an ODBMS. There are
  additional database
   commands for opening and closing databases along with starting and
   committing transactions. But that is about all -- hardly a steep
   learning curve. If you do not know Java or C++, there is learning
   involved. That learning, however, involves mastering the
  programming
   language and not the ODBMS.
   http://www.odbmsfacts.com/articles/myth_odbms_have_a_steep_lea
   rning_curve.ht
   ml
  
  
   Steep learning curve
   First-time users of Finale can expect to invest weeks or
  even months
   learning how to drive this thing. And, unlike a bicycle, you
   can easily
   forget how to do it if away from it for a while.
   Finale is complicated, powerful, and often non-intuitive in
   its design,
   although ease of use improves perceptibly with each release.
   Coda seems
   to 

RE: using O/R mapping tools

2002-08-26 Thread Galbreath, Mark

That is certainly the way the Brits behaved when I was in Romania (thank
God!).

(Is it Friday?)

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 2:34 PM
To: Struts Users Mailing List
Subject: RE: using O/R mapping tools


Interesting, but I thought that the phrase was When in Rome, remember
you're British! :-)

Simon

-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 1:10 PM
To: Struts Users Mailing List
Subject: RE: using O/R mapping tools


Erasmus's In Praise of Folly was a tribute to his friend Sir Thomas 
Moore, the murdered Archbishop of Cantebury, who stood on principle, 
considered to be the most erudite man in the Christian World at that 
time.  Folly is a pun for Moore.  This does not stop the 
misreading of 
that book.  The second line of When in Rome, do as the Romans 
do, from 
Seneca, is When not in Rome, do as the Romans do.  In the 
last chapter 
(ten) of Plato's Republic, the main man (Socrates) decides 
to choose 
the life of an ordinary man who minds his own business.  This 
is from a 
book that is traditionally (by those who stop at chapter five) 
read as an 
apology for some sort of Uber man, when it is in fact a reductio ad 
absurdum of that very idea.  Meaning and myth and truth have strange 
companions, indeed.

At 10:47 AM 8/26/2002 -0700, you wrote:
  -Original Message-
  From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
  Sent: Friday, August 23, 2002 12:01 PM
  To: 'Struts Users Mailing List'
  Subject: RE: using O/R mapping tools
 
 
  As I pointed out, it's a common mistake.  I have a 
graduate minor in
  statistics, so it's just a pet peeve and nothing more. I
  could care less
  [sic] about your grammar.


I hardly think it's a mistake if one uses the term and 
everyone in the 
room assumes the popular meaning except the one person who 
dogmatically 
clings to the diagram in their old college psychology 
textbook.  Speaking 
of pet peeves, to be gramatically accurate, it's couldn't 
care less.  To 
say that you could care less implies that you care plenty 
already.  :)


b.t.w., here's what most people envisage when they think 
steep learning 
curve.  All the textbooks and mailing list arguments in the 
world aren't 
going to change that.


Effort
 | -   -   -
 | -
 | -
 |   -
 |  -
 | -
 |-
 |   -
 |  -
 |___

 Proficiency




 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]
  Sent: Friday, August 23, 2002 2:54 PM
  To: [EMAIL PROTECTED]
  Subject: RE: using O/R mapping tools
 
 
 
  H.
 
  I just could not stomach it so I did some checkng...
 
 
  Read this one first...
  Common sense warns that there is no advantage to using a word
  correctly
  if you know that the vast majority of your hearers will 
misunderstand
  your meaning. Consider the terms thumbs up and thumbs 
down: Most
  people are aware that these expressions derive from the
  ancient public
  entertainments at the Roman Colosseum, where the presiding official
  would rule on whether a vanquished gladiator should be spared
  or slain.
  But did you know that thumbs up was the sign for kill him
  and thumb
  sideways was the sign for let him live? So when someone
  tells you that
  your project got the thumbs up from upper management, should
  you start
  checking the help-wanted ads? We
  http://www.crh.noaa.gov/library/Grammar/Learn-curve.html
 
 
  Every result except for the above shows a steep learning
  curve as a bad
  thing...  Right or wrong, its common usage...
 
  I want to go home...
 
 
  STEEP LEARNING CURVE
  Rookie Quarterback Zolman Tackles Complicated Scheme
  Things aren't entirely different. That's the positive part
  now for Greg
  Zolman - part of the positive part, anyway. Here's the tricky
  part: What
  he's learning is very complicated.
  http://www.colts.com/sub.cfm?page=article7news_id=711
 
 
  BUSH IS ON A STEEP LEARNING CURVE, JUST LIKE THE REST OF US
  George W Bush appears to be on a near-vertical global 
learning curve.
  And it is not just him. In the past two weeks the world has been
  changing astonishingly quickly beneath our feet and 
commentators are
  running to keep up.
  http://www.guardian.co.uk/Columnists/Column/0,5673,558293,00.html
 
 
  Myth: ODBMSs have a steep learning curve
  The myth that ODBMSs have a steep learning curve is easily 
dispelled.
  Using an ODBMS primarily involves knowing an object programming
  language. For examples, see transparent persistence (new window).
  If you know Java or C++, there is very little additional
  syntax that you
  need to learn in order to use an ODBMS. There are 
additional database
  commands for opening and closing databases along with starting and
  committing transactions. But that 

RE: submit form from popup window to parent window

2002-08-26 Thread jeffrey . reid


Mark,

Thanks for your help.  In looking for documentation on window.opener I came
across a couple of articles/posts that led me to my solution.  What I do is
use window.open() instead of showModalDialog() to create the popup.  This
allows me to submit my struts form to the popup window (I had a problem
doing this in a popup created by showModalDialog().  The action associated
with the form does some processing then forwards to a page that has
javascript in the head section that refreshes the parent
(window.opener.location.href = window.opener.location) and then closes the
popup window (self.close()).  The refreshed parent window then displays the
updated content created by the popup window.

Thanks, Jeff.





[EMAIL PROTECTED] on 08/26/2002 09:44:47 AM

Please respond to [EMAIL PROTECTED]

To:[EMAIL PROTECTED]
cc:
Subject:RE: submit form from popup window to parent window


Jeff,

See the documentation for window.opener.  opener is a reference to the
spawning window from the popup.

Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 9:25 AM

I have a form that appears in a popup window (created via a call to IE's
showModalDialog()), that I would like to submit back to the parent window.
The target attribute on the html:form tag only seems to allow you to
specify which frame you want to submit to, not which window.  Does anyone
know how to do this?

Thanks, Jeff.

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








This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase  Co., its
subsidiaries and affiliates.


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




RE: submit form from popup window to parent window

2002-08-26 Thread Galbreath, Mark

My pleasure dude!

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 2:53 PM
To: [EMAIL PROTECTED]
Subject: RE: submit form from popup window to parent window



Mark,

Thanks for your help.  In looking for documentation on window.opener I came
across a couple of articles/posts that led me to my solution.  What I do is
use window.open() instead of showModalDialog() to create the popup.  This
allows me to submit my struts form to the popup window (I had a problem
doing this in a popup created by showModalDialog().  The action associated
with the form does some processing then forwards to a page that has
javascript in the head section that refreshes the parent
(window.opener.location.href = window.opener.location) and then closes the
popup window (self.close()).  The refreshed parent window then displays the
updated content created by the popup window.

Thanks, Jeff.





[EMAIL PROTECTED] on 08/26/2002 09:44:47 AM

Please respond to [EMAIL PROTECTED]

To:[EMAIL PROTECTED]
cc:
Subject:RE: submit form from popup window to parent window


Jeff,

See the documentation for window.opener.  opener is a reference to the
spawning window from the popup.

Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 9:25 AM

I have a form that appears in a popup window (created via a call to IE's
showModalDialog()), that I would like to submit back to the parent window.
The target attribute on the html:form tag only seems to allow you to
specify which frame you want to submit to, not which window.  Does anyone
know how to do this?

Thanks, Jeff.

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








This communication is for informational purposes only.  It is not intended
as
an offer or solicitation for the purchase or sale of any financial
instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase  Co., its
subsidiaries and affiliates.


--
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: using O/R mapping tools

2002-08-26 Thread micael

Well, seems you are right then, sort of:

sic

Thus; so. Used to indicate that a quoted passage, especially one containing 
an error or unconventional spelling, has been retained in its original form 
or written intentionally.

)-;///

At 02:52 PM 8/26/2002 -0400, you wrote:
No it isn't...I was quoting myself.  ;-)

-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 2:19 PM
To: Struts Users Mailing List
Subject: RE: using O/R mapping tools


Heh, that is a wrong use of [sic]! ///;-)

At 10:58 AM 8/26/2002 -0700, you wrote:
 hmmm...Just noticed your [sic] after wiping morning crud from my
 eyes.  Your grammatical faux pas was illustrative, not accidental.  Nice.
 
 peace,
 Joe
 
   -Original Message-
   From: Joe Barefoot
   Sent: Monday, August 26, 2002 10:48 AM
   To: Struts Users Mailing List
   Subject: RE: using O/R mapping tools
  
  
-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 23, 2002 12:01 PM
To: 'Struts Users Mailing List'
Subject: RE: using O/R mapping tools
   
   
As I pointed out, it's a common mistake.  I have a graduate minor in
statistics, so it's just a pet peeve and nothing more. I
could care less
[sic] about your grammar.
  
  
   I hardly think it's a mistake if one uses the term and
   everyone in the room assumes the popular meaning except the
   one person who dogmatically clings to the diagram in their
   old college psychology textbook.  Speaking of pet peeves, to
   be gramatically accurate, it's couldn't care less.  To say
   that you could care less implies that you care plenty
   already.  :)
  
  
   b.t.w., here's what most people envisage when they think
   steep learning curve.  All the textbooks and mailing list
   arguments in the world aren't going to change that.
  
  
   Effort
 | -   -   -
 | -
 | -
 |   -
 |  -
 | -
 |-
 |   -
 |  -
 |___
  
 Proficiency
  
  
  
  
   
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, August 23, 2002 2:54 PM
To: [EMAIL PROTECTED]
Subject: RE: using O/R mapping tools
   
   
   
H.
   
I just could not stomach it so I did some checkng...
   
   
Read this one first...
Common sense warns that there is no advantage to using a word
correctly
if you know that the vast majority of your hearers will
   misunderstand
your meaning. Consider the terms thumbs up and thumbs
   down: Most
people are aware that these expressions derive from the
ancient public
entertainments at the Roman Colosseum, where the presiding official
would rule on whether a vanquished gladiator should be spared
or slain.
But did you know that thumbs up was the sign for kill him
and thumb
sideways was the sign for let him live? So when someone
tells you that
your project got the thumbs up from upper management, should
you start
checking the help-wanted ads? We
http://www.crh.noaa.gov/library/Grammar/Learn-curve.html
   
   
Every result except for the above shows a steep learning
curve as a bad
thing...  Right or wrong, its common usage...
   
I want to go home...
   
   
STEEP LEARNING CURVE
Rookie Quarterback Zolman Tackles Complicated Scheme
Things aren't entirely different. That's the positive part
now for Greg
Zolman - part of the positive part, anyway. Here's the tricky
part: What
he's learning is very complicated.
http://www.colts.com/sub.cfm?page=article7news_id=711
   
   
BUSH IS ON A STEEP LEARNING CURVE, JUST LIKE THE REST OF US
George W Bush appears to be on a near-vertical global
   learning curve.
And it is not just him. In the past two weeks the world has been
changing astonishingly quickly beneath our feet and
   commentators are
running to keep up.
http://www.guardian.co.uk/Columnists/Column/0,5673,558293,00.html
   
   
Myth: ODBMSs have a steep learning curve
The myth that ODBMSs have a steep learning curve is easily
   dispelled.
Using an ODBMS primarily involves knowing an object programming
language. For examples, see transparent persistence (new window).
If you know Java or C++, there is very little additional
syntax that you
need to learn in order to use an ODBMS. There are
   additional database
commands for opening and closing databases along with starting and
committing transactions. But that is about all -- hardly a steep
learning curve. If you do not know Java or C++, there is learning
involved. That learning, however, involves mastering the
   programming
language and not the ODBMS.
http://www.odbmsfacts.com/articles/myth_odbms_have_a_steep_lea

RE: using O/R mapping tools

2002-08-26 Thread Joe Barefoot

I think (hope) he was facetiously referring to my usage, not yours Mark...i.e., my 
referencing your usage without putting quotes around the [sic].  

Hey, does anyone else want to split hairs with me today?  My razor's getting dull...

peace,
Joe

 -Original Message-
 From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 26, 2002 11:52 AM
 To: 'Struts Users Mailing List'
 Subject: RE: using O/R mapping tools
 
 
 No it isn't...I was quoting myself.  ;-)
 
 -Original Message-
 From: micael [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 26, 2002 2:19 PM
 To: Struts Users Mailing List
 Subject: RE: using O/R mapping tools
 
 
 Heh, that is a wrong use of [sic]! ///;-)
 
 At 10:58 AM 8/26/2002 -0700, you wrote:
 hmmm...Just noticed your [sic] after wiping morning crud from my 
 eyes.  Your grammatical faux pas was illustrative, not 
 accidental.  Nice.
 
 peace,
 Joe
 
   -Original Message-
   From: Joe Barefoot
   Sent: Monday, August 26, 2002 10:48 AM
   To: Struts Users Mailing List
   Subject: RE: using O/R mapping tools
  
  
-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 23, 2002 12:01 PM
To: 'Struts Users Mailing List'
Subject: RE: using O/R mapping tools
   
   
As I pointed out, it's a common mistake.  I have a 
 graduate minor in
statistics, so it's just a pet peeve and nothing more. I
could care less
[sic] about your grammar.
  
  
   I hardly think it's a mistake if one uses the term and
   everyone in the room assumes the popular meaning except the
   one person who dogmatically clings to the diagram in their
   old college psychology textbook.  Speaking of pet peeves, to
   be gramatically accurate, it's couldn't care less.  To say
   that you could care less implies that you care plenty
   already.  :)
  
  
   b.t.w., here's what most people envisage when they think
   steep learning curve.  All the textbooks and mailing list
   arguments in the world aren't going to change that.
  
  
   Effort
 | -   -   -
 | -
 | -
 |   -
 |  -
 | -
 |-
 |   -
 |  -
 |___
  
 Proficiency
  
  
  
  
   
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, August 23, 2002 2:54 PM
To: [EMAIL PROTECTED]
Subject: RE: using O/R mapping tools
   
   
   
H.
   
I just could not stomach it so I did some checkng...
   
   
Read this one first...
Common sense warns that there is no advantage to using a word
correctly
if you know that the vast majority of your hearers will
   misunderstand
your meaning. Consider the terms thumbs up and thumbs
   down: Most
people are aware that these expressions derive from the
ancient public
entertainments at the Roman Colosseum, where the 
 presiding official
would rule on whether a vanquished gladiator should be spared
or slain.
But did you know that thumbs up was the sign for kill him
and thumb
sideways was the sign for let him live? So when someone
tells you that
your project got the thumbs up from upper management, should
you start
checking the help-wanted ads? We
http://www.crh.noaa.gov/library/Grammar/Learn-curve.html
   
   
Every result except for the above shows a steep learning
curve as a bad
thing...  Right or wrong, its common usage...
   
I want to go home...
   
   
STEEP LEARNING CURVE
Rookie Quarterback Zolman Tackles Complicated Scheme
Things aren't entirely different. That's the positive part
now for Greg
Zolman - part of the positive part, anyway. Here's the tricky
part: What
he's learning is very complicated.
http://www.colts.com/sub.cfm?page=article7news_id=711
   
   
BUSH IS ON A STEEP LEARNING CURVE, JUST LIKE THE REST OF US
George W Bush appears to be on a near-vertical global
   learning curve.
And it is not just him. In the past two weeks the world has been
changing astonishingly quickly beneath our feet and
   commentators are
running to keep up.

 http://www.guardian.co.uk/Columnists/Column/0,5673,558293,00.html
   
   
Myth: ODBMSs have a steep learning curve
The myth that ODBMSs have a steep learning curve is easily
   dispelled.
Using an ODBMS primarily involves knowing an object programming
language. For examples, see transparent persistence 
 (new window).
If you know Java or C++, there is very little additional
syntax that you
need to learn in order to use an ODBMS. There are
   additional database
commands for opening and closing databases along with 
 starting and
committing transactions. But that is about all -- hardly a steep
learning curve. If you do not know Java or C++, there 
 is 

RE: using O/R mapping tools

2002-08-26 Thread Joe Barefoot

...then again, I could be wrong.  ;)

 -Original Message-
 From: Joe Barefoot 
 Sent: Monday, August 26, 2002 11:59 AM
 To: Struts Users Mailing List
 Subject: RE: using O/R mapping tools
 
 
 I think (hope) he was facetiously referring to my usage, not 
 yours Mark...i.e., my referencing your usage without putting 
 quotes around the [sic].  
 
 Hey, does anyone else want to split hairs with me today?  My 
 razor's getting dull...
 
 peace,
 Joe
 
  -Original Message-
  From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
  Sent: Monday, August 26, 2002 11:52 AM
  To: 'Struts Users Mailing List'
  Subject: RE: using O/R mapping tools
  
  
  No it isn't...I was quoting myself.  ;-)
  
  -Original Message-
  From: micael [mailto:[EMAIL PROTECTED]]
  Sent: Monday, August 26, 2002 2:19 PM
  To: Struts Users Mailing List
  Subject: RE: using O/R mapping tools
  
  
  Heh, that is a wrong use of [sic]! ///;-)
  
  At 10:58 AM 8/26/2002 -0700, you wrote:
  hmmm...Just noticed your [sic] after wiping morning crud from my 
  eyes.  Your grammatical faux pas was illustrative, not 
  accidental.  Nice.
  
  peace,
  Joe
  
-Original Message-
From: Joe Barefoot
Sent: Monday, August 26, 2002 10:48 AM
To: Struts Users Mailing List
Subject: RE: using O/R mapping tools
   
   
 -Original Message-
 From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 23, 2002 12:01 PM
 To: 'Struts Users Mailing List'
 Subject: RE: using O/R mapping tools


 As I pointed out, it's a common mistake.  I have a 
  graduate minor in
 statistics, so it's just a pet peeve and nothing more. I
 could care less
 [sic] about your grammar.
   
   
I hardly think it's a mistake if one uses the term and
everyone in the room assumes the popular meaning except the
one person who dogmatically clings to the diagram in their
old college psychology textbook.  Speaking of pet peeves, to
be gramatically accurate, it's couldn't care less.  To say
that you could care less implies that you care plenty
already.  :)
   
   
b.t.w., here's what most people envisage when they think
steep learning curve.  All the textbooks and mailing list
arguments in the world aren't going to change that.
   
   
Effort
  | -   -   -
  | -
  | -
  |   -
  |  -
  | -
  |-
  |   -
  |  -
  |___
   
  Proficiency
   
   
   
   

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 23, 2002 2:54 PM
 To: [EMAIL PROTECTED]
 Subject: RE: using O/R mapping tools



 H.

 I just could not stomach it so I did some checkng...


 Read this one first...
 Common sense warns that there is no advantage to using a word
 correctly
 if you know that the vast majority of your hearers will
misunderstand
 your meaning. Consider the terms thumbs up and thumbs
down: Most
 people are aware that these expressions derive from the
 ancient public
 entertainments at the Roman Colosseum, where the 
  presiding official
 would rule on whether a vanquished gladiator should be spared
 or slain.
 But did you know that thumbs up was the sign for kill him
 and thumb
 sideways was the sign for let him live? So when someone
 tells you that
 your project got the thumbs up from upper management, should
 you start
 checking the help-wanted ads? We
 http://www.crh.noaa.gov/library/Grammar/Learn-curve.html


 Every result except for the above shows a steep learning
 curve as a bad
 thing...  Right or wrong, its common usage...

 I want to go home...


 STEEP LEARNING CURVE
 Rookie Quarterback Zolman Tackles Complicated Scheme
 Things aren't entirely different. That's the positive part
 now for Greg
 Zolman - part of the positive part, anyway. Here's the tricky
 part: What
 he's learning is very complicated.
 http://www.colts.com/sub.cfm?page=article7news_id=711


 BUSH IS ON A STEEP LEARNING CURVE, JUST LIKE THE REST OF US
 George W Bush appears to be on a near-vertical global
learning curve.
 And it is not just him. In the past two weeks the 
 world has been
 changing astonishingly quickly beneath our feet and
commentators are
 running to keep up.
 
  http://www.guardian.co.uk/Columnists/Column/0,5673,558293,00.html


 Myth: ODBMSs have a steep learning curve
 The myth that ODBMSs have a steep learning curve is easily
dispelled.
 Using an ODBMS primarily involves knowing an object 
 programming
 language. For examples, see transparent persistence 
  (new 

Re: j_security_check, jaas and weblogic 6.1

2002-08-26 Thread Craig R. McClanahan



On Mon, 26 Aug 2002, Michael Lee wrote:

 Date: Mon, 26 Aug 2002 14:29:44 -0400
 From: Michael Lee [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: j_security_check, jaas and weblogic 6.1

 Thank you! You are the ONLY place I've heard this!  Now everything seems to
 make more sense.

 I was just going to use j_security_check hooked into Weblogic RDBMS and put
 the user in the session for authentication from there on in (JNDI security
 to EJB). So this looks like the right path?


If BEA did things correctly, you shouldn't have to do anything special
about saving the user in the session for EJB authentication -- the same
user identity should be carried over automatically.

 No offense, but is this right? BEA recommends you use JAAS all over the
 place. I'm mainly going to use ACL in the deployment descriptors for my web
 app and ejbs. I also noticed that almost all JAAS implementations were at
 the java client layer. Few were servlets, etc. This would make sense with
 what your saying because no container would exist at a pure java client
 layer (such as with the JAAS RMI example that comes with weblogic).


JAAS is what I'd use if I was writing the back end of WebLogic's servlet
container.  But web applications that run inside the container should not
have to know anything about it.  As you note, client apps don't have that
kind of container support, so a roll your own solution based on JAAS
makes more sense there.

 BTW, EXCELLENT job with struts Craig and team. I have 2 systems IN
 PRODUCTION! using struts. They wrote one at the job I'm at and I recommended
 struts to replace it. We are now going full steam ahead with struts!
 thanks,
 Mike Lee


Craig


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




  1   2   >