RE: I have the same question but about Forms.

2003-02-11 Thread pantichd

Funny you should mention that book. I *just* got that book this morning.
Plan to do some reading this week.

Thanks!



   
   
  shirishchandra.sakh  
   
  [EMAIL PROTECTED]To:   
[EMAIL PROTECTED] 
 cc:   (bcc: David Z. 
Pantich/OE/FirstEnergy) 
  02/11/2003 11:11 AMSubject:  RE: I have the same 
question but about Forms.  
  Please respond to
   
  Struts Users
   
  Mailing List
   
   
   
   
   




I think this issue is very well explained by Ted in his book Struts In
Action..
As he says,Forms sghould be just treated as carriers of data till the data
is
validated and hold the data till in case same is required to be returned to
the
user.
So we should not waste too much time to design form classes but add
attributes
as and when required.

SO depending on u r system,U have to decide.
But what i have found works best is have a base form for all Aplication
which
has common properties (Like UserName,Company id etct etc which is required
for
each user..)And then extend forms per functionality(Like one super class
form
for 4 or 5 OrderFunctions ).
And also as u said, i also had to add common attributes at the module
level.But
this works best.

Hope this helps.
regards,
Shirish

-Original Message-
From: pantichd [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 5:06 PM
To: struts-user
Cc: pantichd
Subject: I have the same question but about Forms.



Hello,

Not sure if this deserves another thread or if I can attach it to this one.
I'm new to mailing lists so please be kind.  :  )

I'm working on a struts project now and going back and forth on whether to
just have one form for the whole system or have many forms.

In our case we put the common fields in a base form and created other forms
to extend that one. Each of those forms correspond to a specific section in
the system. The problem we're running into now is that we're finding more
and more common items and having to move them into the base form. Which
lead me to think about just having one form and not bothering with the
others.

Comments?






  Taylor Cowan

  t.cowan@charter.To:   Struts Users
Mailing
List [EMAIL PROTECTED]
  net cc:   (bcc: David Z.
Pantich/OE/FirstEnergy)
   Subject:  Opionions: fine or
course grained actions
  02/07/2003 09:19

  AM

  Please respond to

  Struts Users

  Mailing List









I wanted to see what others in the struts community think about Action
granularity.  I've coded apps that are -extremely- fine grained, having one
Action per user event, like createPreferencesAction,
deletePreferencesAction, update...etc.  The fine grained approach yields
more than one action per screen, and contention for the struts config file
during development.  In the middle are apps that basically have one action
per screen that handles all the button clicks with a switch if/else block.
That's the moderate approach.  The last style is -extremely- coarse grained
in that there might only be one action for the entire app.  Coarse grained
has worked best for XML/XSLT type work flows and in some other situations.

What do you think about Action granularity, should it be very fine and thus
more HTTP like in nature, or more coarse grained having fewer URL's?

Taylor


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






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



-
To unsubscribe, e-mail: [EMAIL 

select multiple=false == select multiple=true

2003-02-11 Thread Justin Ashworth
The documentation for html:select indicates that if the multiple attribute is 
specified with ANY non-null value, it will be rendered as a multiple select.  However, 
it would be much more intuitive if this accepted a boolean value like, for instance, 
the disabled attribute of html:option.  I understand that leaving off the attribute 
will render a single select, but if the value of multiple is coming from a bean, and 
since it makes sense that this is a boolean value, it would follow that the multiple 
attribute would understand a boolean value.  I can have my bean return a String 
instead of a boolean, and default that String to null, but it still seems as though 
this attribute could be more developer-friendly.

Am I missing some logical reason behind the behavior of this attribute?  Am I the only 
one who thinks this is counter-intuitive?  Would it make sense to allow boolean values 
for this attribute in future releases?

Thanks,

Justin


Nested Tags Problem .... Urgent

2003-02-11 Thread ashokd


 Hi,

 I am facing problem with Nested Tags.

 I have a method in ActionForm
 private ArrayList mFormList = new ArrayList();

 public Object[] getFormList() {
 return mFormList.toArray();
 }
 public ArrayList getMyFormList() {
 return mFormList
 }

 public setMyFormList(ArrayList  pFormList) {
 this.mFormList = pFormList
 }

 This ArrayList contian the ValueObjects.

 I am getting the instance of ActionForm in another Action Class and
setting
 this variable (which is invoked before loading this page).

 Code in Action class:
 MyVO controlVO1 = new MyVO(600,10,100
 O,10,1,2/5/1998,12/31/, );
 MyVO controlVO1 = new MyVO(600,10,100
 O,10,1,2/5/1998,12/31/, );
 ArrayList alControl = new ArrayList();

 TestForm testForm =
 (TestForm)aRequest.getSession().getAttribute(testForm);
 if(testForm == null) {
testForm = new TestForm();
   }
   testForm .setMyFormList(alControl)


 
 JSP
 -

 nested:iterate name=formList 


 I am getting the follwoing exception any suggestions.

 Error Message:
 Error Code: 500
 Target Servlet: null
 Error Stack:
 java.lang.NullPointerException
  at

org.apache.struts.taglib.nested.NestedPropertyHelper.getNestedProperty(Neste
 dPropertyHelper.java:159)
  at

org.apache.struts.taglib.nested.NestedPropertyHelper.getNestedProperty(Neste
 dPropertyHelper.java:195)
  at

org.apache.struts.taglib.nested.NestedPropertyHelper.setNestedProperties(Nes
 tedPropertyHelper.java:242)
  at

org.apache.struts.taglib.nested.logic.NestedIterateTag.doStartTag(NestedIter
 ateTag.java:115)
  at

wspr._wspr_0005fcorrespondence_0005fpage_jsp_7._jspService(_wspr_0005fcorres
 pondence_0005fpage_jsp_7.java:113)
  at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:142)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at

org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
 va:300)
  at
 org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:430)
  at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:565)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at

com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
 .java:827)
  at

com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
 eServlet.java:167)
  at

com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
 t.java:297)
  at

com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
 Servlet.java:110)
  at

com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47
 2)
  at

com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
 ager.java:1012)
  at

com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
 er.java:913)
  at

com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
 ebAppRequestDispatcher.java:523)
  at

com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
 Dispatcher.java:282)
  at

com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
 ispatcher.java:112)
  at

org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
 va:1759)
  at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
  at com.vstl.wspr.WSPRActionServlet.process(WSPRActionServlet.java:49)
  at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at

com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
 .java:827)
  at

com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
 eServlet.java:167)
  at

com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
 t.java:297)
  at

com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
 Servlet.java:110)
  at

com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47
 2)
  at

com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
 ager.java:1012)
  at

com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
 er.java:913)
  at

com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
 ebAppRequestDispatcher.java:523)
  at

com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
 Dispatcher.java:282)
  at

com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
 ispatcher.java:112)
  at
 com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:91)
  at

com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.
 java:184)
  at


RE: Is anyone using tomcat 4.1.18 with nested tags?

2003-02-11 Thread Jeff_Mychasiw

Thank you so much for the reply.

We are still in construction and completed 3 of the 4 phases of our
project.  System testing on phases  1to 3 begin soon.
We were hoping to start that process off on the newer tomcat but I guess
not at this time.
We will stick to  4.0.4 ... at least I can still keep 1.1b2 !  :-)

There is still a chance that we go to production with 4.1.x if these issues
delt with in the next while.

Too bad though.. it's so darn fast!

Thanks again Sri/David.





Sri Sankaran [EMAIL PROTECTED] on 02/11/2003 09:57:47 AM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts Users Mailing List [EMAIL PROTECTED]
cc:

Subject:RE: Is anyone using tomcat 4.1.18 with nested tags?


Jeff:
  I have seen your several posts in the last day or so but haven't
  commiserated since you had indicated haven't read my posting (
  http://www.mail-archive.com/struts-user@jakarta.apache.org/msg57884.html
  ).

  After debugging the problem, I had rephrased the problem in
  http://www.mail-archive.com/struts-user@jakarta.apache.org/msg57931.html.
  Eventually, I submitted a bug report -- which you have indicated as
  having read.

  Your tests on earlier versions of Tomcat may bolster Arron's belief that
  the problem lies in Tomcat -- or to be more precise the Jasper page
  compiler.  You may consider appending to the bug report (#16916) and
  providing more information.

  This *is* a show-stopper for me and so I have set the priority for the
  bug as Major.  I have no choice but to revert back to using Struts 1.0.2
  with the nested extension :( since our deployment servers are at Tomcat
  4.1.18.

  Please let me know if I can help

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 10:29 AM
To: [EMAIL PROTECTED]
Subject: Is anyone using tomcat 4.1.18 with nested tags?


We have been building an application on TC 4.0.4

we are trying to move up but are having some erratic problems.

some are related to my other question:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg58211.html

The first tests are done on JBoss/Tomcat but now I am testing it on TC
4.1.18 without JBoss.

Out Struts app is a nightly build just after 1.1b2.  it uses nested tags
throughout and works well on TC 4.0.4/4.0.6

I get two types of problems when hitting my pages.

1 - The nested tags reporting no access to a property on a bean that it
should not be looking at.

2 - once in awhile TC decides that it cannot find my form bean in any
scope:
Cannot find bean acctCrAdjEntryForm in any scope'

The funny thing is that I can hit the page 10 times but on the 11th it will
throw this message, and then the 12 time will work.. Can say that this is a
nested tag issue or a tomcat issue.

Am I the only one that is seeing stuff like this?

I can help but think that this new bug is another indicator:
http://www.mail-archive.com/struts-dev@jakarta.apache.org/msg13522.html

My stack trace:

javax.servlet.ServletException: Cannot find bean acctCrAdjEntryForm in any
scope
at

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:530)

at org.apache.jsp.CRBatchInfoTable_jsp.
_jspService(CRBatchInfoTable_jsp.java:81)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)

at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)

at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at

org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)

at

org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)

at

org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)

at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:822)

at org.apache.jsp.AcctCrEntryMainForm_jsp.
_jspService(AcctCrEntryMainForm_jsp.java:127)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)

at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)

at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at

org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)

at


RE: Is anyone using tomcat 4.1.18 with nested tags?

2003-02-11 Thread David Morris
Sri  Jeff,

I have seen this inconsistent behavior and can duplicate it fairly
painlessly. 
I found when testing for bug 15799 that in some cases the bean name
property 
for a nested write was null. Going up the tree I couldn't find any
unmatched 
resets for the bean name where a reset changed the name to null but I
didn't 
look at reused tags a potential source for the problem.

I also don't understand why the nested tags like NestedWrite don't
implement 
a reset. It is likely that it is just fine but it also seems possible
that there should 
be a reset to originalProperty and isNesting in the NestedWrite tag. I
haven't 
spent time researching this either.

David Morris

 [EMAIL PROTECTED] 02/11/03 08:57AM 
Jeff:
  I have seen your several posts in the last day or so but haven't
commiserated since you had indicated haven't read my posting
(http://www.mail-archive.com/struts-user@jakarta.apache.org/msg57884.html).
 

  After debugging the problem, I had rephrased the problem in
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg57931.html.
 Eventually, I submitted a bug report -- which you have indicated as
having read.

  Your tests on earlier versions of Tomcat may bolster Arron's belief
that the problem lies in Tomcat -- or to be more precise the Jasper page
compiler.  You may consider appending to the bug report (#16916) and
providing more information.

  This *is* a show-stopper for me and so I have set the priority for
the bug as Major.  I have no choice but to revert back to using Struts
1.0.2 with the nested extension :( since our deployment servers are at
Tomcat 4.1.18.

  Please let me know if I can help

Sri

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




RE: Nested Tags Problem .... Urgent

2003-02-11 Thread Sri Sankaran
The code you have presented isn't very clear.  Your Action, for example seems to 
declare the controlVO1 reference twice -- won't compile.

Are you trying to say that you have a list of objects within the ActionForm?  Is it 
being placed in the session/request under the key formList -- 'cos that's how you 
are trying to retrieve it in the JSP.  Why do you have the getAttribute(...) stuff?

Also, what version of Struts are you using?
 
Sri
P.S.
Repeatedly posting the same message doesn't assure a response.  In fact it is a 
turn-off

-Original Message-
From: ashokd [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, February 02, 2002 1:00 PM
To: Struts Users Mailing List; Martin Gross
Subject: Nested Tags Problem  Urgent 


Hi,

I am facing problem with Nested Tags.

I have a method in ActionForm
private ArrayList mFormList = new ArrayList();

public Object[] getFormList() {
return mFormList.toArray();
}
public ArrayList getMyFormList() {
return mFormList
}

public setMyFormList(ArrayList  pFormList) {
this.mFormList = pFormList
}

This ArrayList contian the ValueObjects.

I am getting the instance of ActionForm in another Action Class and setting this 
variable (which is invoked before loading this page).

Code in Action class:
MyVO controlVO1 = new MyVO(600,10,100 O,10,1,2/5/1998,12/31/, ); 
MyVO controlVO1 = new MyVO(600,10,100 O,10,1,2/5/1998,12/31/, ); 
ArrayList alControl = new ArrayList();

TestForm testForm = (TestForm)aRequest.getSession().getAttribute(testForm);
if(testForm == null) {
   testForm = new TestForm();
  }
  testForm .setMyFormList(alControl)



JSP
-

nested:iterate name=formList 


I am getting the follwoing exception any suggestions.

Error Message:
Error Code: 500
Target Servlet: null
Error Stack:
java.lang.NullPointerException
 at org.apache.struts.taglib.nested.NestedPropertyHelper.getNestedProperty(Neste
dPropertyHelper.java:159)
 at org.apache.struts.taglib.nested.NestedPropertyHelper.getNestedProperty(Neste
dPropertyHelper.java:195)
 at org.apache.struts.taglib.nested.NestedPropertyHelper.setNestedProperties(Nes
tedPropertyHelper.java:242)
 at org.apache.struts.taglib.nested.logic.NestedIterateTag.doStartTag(NestedIter
ateTag.java:115)
 at wspr._wspr_0005fcorrespondence_0005fpage_jsp_7._jspService(_wspr_0005fcorres
pondence_0005fpage_jsp_7.java:113)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:142)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va:300)
 at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:430)
 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:565)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:827)
 at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:167)
 at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:297)
 at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:110)
 at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47
2)
 at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:1012)
 at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:913)
 at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebAppRequestDispatcher.java:523)
 at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
Dispatcher.java:282)
 at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
ispatcher.java:112)
 at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
 at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
 at com.vstl.wspr.WSPRActionServlet.process(WSPRActionServlet.java:49)
 at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:827)
 at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:167)
 at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:297)
 at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:110)
 at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47
2)
 at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:1012)
 at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag

Re: select multiple=false == select multiple=true

2003-02-11 Thread David Graham
Your point does make sense but changing the behavior would introduce 
backwards compatibility problems.  I don't know why the decision was made to 
have null mean false and anything else mean true.

David



From: Justin Ashworth [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: select multiple=false == select multiple=true
Date: Tue, 11 Feb 2003 11:20:28 -0500

The documentation for html:select indicates that if the multiple 
attribute is specified with ANY non-null value, it will be rendered as a 
multiple select.  However, it would be much more intuitive if this accepted 
a boolean value like, for instance, the disabled attribute of 
html:option.  I understand that leaving off the attribute will render a 
single select, but if the value of multiple is coming from a bean, and 
since it makes sense that this is a boolean value, it would follow that the 
multiple attribute would understand a boolean value.  I can have my bean 
return a String instead of a boolean, and default that String to null, but 
it still seems as though this attribute could be more developer-friendly.

Am I missing some logical reason behind the behavior of this attribute?  Am 
I the only one who thinks this is counter-intuitive?  Would it make sense 
to allow boolean values for this attribute in future releases?

Thanks,

Justin


_
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus


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



How to access ApplicationProperties elements???

2003-02-11 Thread Pete Serafin
All,

I am having trouble remembering how to get access to the ApplicationProperties.conf 
file from within my Action classes.  I need to be able to get to some of the elements 
within this file for generating messages to be displayed in my view, but cant find any 
examples on how to do this.  TIA


Pete Serafin



Re: select multiple=false == select multiple=true

2003-02-11 Thread Justin Ashworth
You are right, but backwards compatibility problems could be *nearly*
eliminated depending on how it's implemented.  If null and false were the
only values that would not render a multiple select, then it would work in
all cases except for those where people are using multiple=false to render
a multiple select box.  If somebody is shortsighted enough to do that, then
they deserve to have the implementation change. ;)

Justin

- Original Message -
From: David Graham [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 11, 2003 11:38 AM
Subject: Re: select multiple=false == select multiple=true


 Your point does make sense but changing the behavior would introduce
 backwards compatibility problems.  I don't know why the decision was made
to
 have null mean false and anything else mean true.

 David



 From: Justin Ashworth [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: select multiple=false == select multiple=true
 Date: Tue, 11 Feb 2003 11:20:28 -0500
 
 The documentation for html:select indicates that if the multiple
 attribute is specified with ANY non-null value, it will be rendered as a
 multiple select.  However, it would be much more intuitive if this
accepted
 a boolean value like, for instance, the disabled attribute of
 html:option.  I understand that leaving off the attribute will render a
 single select, but if the value of multiple is coming from a bean, and
 since it makes sense that this is a boolean value, it would follow that
the
 multiple attribute would understand a boolean value.  I can have my bean
 return a String instead of a boolean, and default that String to null,
but
 it still seems as though this attribute could be more developer-friendly.
 
 Am I missing some logical reason behind the behavior of this attribute?
Am
 I the only one who thinks this is counter-intuitive?  Would it make sense
 to allow boolean values for this attribute in future releases?
 
 Thanks,
 
 Justin


 _
 MSN 8 with e-mail virus protection service: 2 months FREE*
 http://join.msn.com/?page=features/virus


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



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




Re: ResultsetDyna class

2003-02-11 Thread Craig R. McClanahan


On Tue, 11 Feb 2003, Vic Cekvenich wrote:


 I must say that I have been arguing for the RowSet against ResultSet a
 long time.

You've also been arguing against copying for a long time :-).

Now you can have it either way, depending on your requirements.

 Thanks.
 .V

Criag

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




Re: does any one use castor? for java to XML mapping online pdf

2003-02-11 Thread Ashish Kulkarni
Hi,
I came accross a pdf of a sample chapter from book 
Professional XML 2nd Edition

if any body intrested can get it from here

http://www.wrox.com/books/sample-chapters/SampleChapter_1861005059.pdf

Ashish
--- Jacky Kimmel [EMAIL PROTECTED] wrote:
 
 I used Castor for a similiar function a while back. 
 Look to this link for info:

www.javaworld.com/javaworld/jw-12-2001/jw-1228-jaxb-p2.html
  Ashish Kulkarni [EMAIL PROTECTED]
 wrote:Hi,
 Sorry to post a question about castor in this forum,
 but may be some one has used it can help me out.
 
 I tried to use castor and got stuck as there is very
 little material on internet to learn from, I have a
 very simple thing to do,
 I want to map my following XML file to a java class
 given below so as to unmarshall and marshall it
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 public class UserOptions
 implements java.io.Serializable
 {
 private int numberOfPages;
 public int getNumberOfPages()
 {
 return this.numberOfPages;
 }
 
 public void setNumberOfPages(int numberOfPages)
 {
 this.numberOfPages = numberOfPages;
 }
 
 private int numberOfRows;
 public int getNumberOfRows()
 {
 return this.numberOfRows;
 }
 
 public void setNumberOfRows(int numberOfRows)
 {
 this.numberOfRows = numberOfRows;
 }
 
 }
 
 
 
 
 =
 A$HI$H
 
 __
 Do you Yahoo!?
 Yahoo! Shopping - Send Flowers for Valentine's Day
 http://shopping.yahoo.com
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 
 -
 Do you Yahoo!?
 Yahoo! Shopping - Send Flowers for Valentine's Day


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

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




Re: Sharing violation when editing JSP file

2003-02-11 Thread Craig R. McClanahan


On Tue, 11 Feb 2003, Martin Gross wrote:

 Date: Tue, 11 Feb 2003 16:36:08 +0100
 From: Martin Gross [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED],
  Martin Gross [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Sharing violation when editing JSP file

 Hi,

  I ported an existing web application to Struts 1.1b3. Now I am
  getting a sharing violation whenever I try to save an edited JSP file
  after testing the application. The file seems to be locked by Tomcat.
  After restarting tomcat everything works fine as long as I do not test the
  application in my browser.

  My environment is Tomcat 4.0.3 on Win2K with Struts 1.1b3. Does
  anybody know of a solution? It is very annoying to restart tomcat for
  each small change in a JSP.


Tomcat 4.0.3 did indeed leave files open on occasion, which shows up as
sharing violations on Windows.  Upgrade to 4.1.18 to avoid this.

However, switching Struts versions would not have done anything to trigger
the problem -- Struts itself does not open the JSP pages.

 Regards,

  Martin

Craig

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




Re: select multiple=false == select multiple=true

2003-02-11 Thread David Graham
You could create an enhancement request for this but I don't know how the 
other committers will feel about it (even though the issue is quite small).

David



From: Justin Ashworth [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: select multiple=false == select multiple=true
Date: Tue, 11 Feb 2003 11:52:38 -0500

You are right, but backwards compatibility problems could be *nearly*
eliminated depending on how it's implemented.  If null and false were the
only values that would not render a multiple select, then it would work in
all cases except for those where people are using multiple=false to 
render
a multiple select box.  If somebody is shortsighted enough to do that, then
they deserve to have the implementation change. ;)

Justin

- Original Message -
From: David Graham [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 11, 2003 11:38 AM
Subject: Re: select multiple=false == select multiple=true


 Your point does make sense but changing the behavior would introduce
 backwards compatibility problems.  I don't know why the decision was 
made
to
 have null mean false and anything else mean true.

 David



 From: Justin Ashworth [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: select multiple=false == select multiple=true
 Date: Tue, 11 Feb 2003 11:20:28 -0500
 
 The documentation for html:select indicates that if the multiple
 attribute is specified with ANY non-null value, it will be rendered as 
a
 multiple select.  However, it would be much more intuitive if this
accepted
 a boolean value like, for instance, the disabled attribute of
 html:option.  I understand that leaving off the attribute will render 
a
 single select, but if the value of multiple is coming from a bean, and
 since it makes sense that this is a boolean value, it would follow that
the
 multiple attribute would understand a boolean value.  I can have my 
bean
 return a String instead of a boolean, and default that String to null,
but
 it still seems as though this attribute could be more 
developer-friendly.
 
 Am I missing some logical reason behind the behavior of this attribute?
Am
 I the only one who thinks this is counter-intuitive?  Would it make 
sense
 to allow boolean values for this attribute in future releases?
 
 Thanks,
 
 Justin


 _
 MSN 8 with e-mail virus protection service: 2 months FREE*
 http://join.msn.com/?page=features/virus


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



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


_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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



Re: How to access ApplicationProperties elements???

2003-02-11 Thread Craig R. McClanahan


On Tue, 11 Feb 2003, Pete Serafin wrote:

 Date: Tue, 11 Feb 2003 10:49:11 -0600
 From: Pete Serafin [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: How to access ApplicationProperties elements???

 All,

 I am having trouble remembering how to get access to the
 ApplicationProperties.conf file from within my Action classes.  I need
 to be able to get to some of the elements within this file for
 generating messages to be displayed in my view, but cant find any
 examples on how to do this.  TIA


Where do you want to store this file?

The most common place for stuff like this is in the /WEB-INF directory, to
take advantage of the fact that the servlet container will prevent a
browser from trying to access it directly.  If you do that, read it from
an Action like this:

  InputStream is =
getServlet().getServletContext().getResourceAsStream
 (/WEB-INF/ApplicationProperties.conf);


 Pete Serafin


Craig


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




[OT - Java] Need a recommendation on a Design Pattern class

2003-02-11 Thread Jerry Jalenak
Hi All,

Sorry for the OT post, but I need a recommendation from all you guru's out
there.  I've been asked to find a 3 to 5 day class on Design Patterns with a
Java slant.  If anyone has attended something like this, and can recommend
for (or against), I would appreciate it.  You can reply via the list or
directly to me.

TIA!

Jerry Jalenak
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 the following email 
address: [EMAIL PROTECTED]



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




how to Validate DATE?

2003-02-11 Thread michael . korolyov
Hello,

my date validation doesn't work on client (jsp) side.

I need validate date in MM/dd/yy format.
in validation.xml :

formset

form name=financeChartForm

  field property=startDate
  depends=required,date
arg0 key=prompt.startDate/
msg name=required key=error.startDate.required/
  /field

  field property=endDate
  depends=required,date
arg0 key=prompt.endDate/
msg name=required key=error.endDate.required/
  /field

  var
var-namedatePattern/var-name
var-valueMM/dd/yy/var-value
  /var

/form

/formset


plugin includes in struts-config.xml and 
html:form action=/chart2 onsubmit=return
validateFinanceChartForm(this);

html:javascript formName=financeChartForm
dynamicJavascript=true
 staticJavascript=false/
script language=Javascript1.1 src=jsp/staticJavascript.jsp/script

into jsp.

do I missing anything.

Best Regards.
Michael.


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




Example of using a nested exception

2003-02-11 Thread White, Joshua A (CASD, IT)
Hello,
I am looking for an example of using a nested exception.  I have started
reading through Chuck Cavaness' Programming Jakarta Struts book.  He creates
a BaseException class which supports nested exceptions.  So far, I have not
found where he uses it.
Does anyone use nested exceptions which their business/domain objects when
executing business rules?  Could someone post an example?
Regards,
Joshua




This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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




RE: Example of using a nested exception

2003-02-11 Thread Rao, Nagraj
Hello ,
There is something at :
http://www.javaworld.com/javaworld/javatips/jw-javatip91.html
AND
http://java.sun.com/docs/books/tutorial/essential/exceptions/definition.html
Which might serve as a very good pointer on why and how to implement nested
Exceptions


Peace,
Naggi

-Original Message-
From: White, Joshua A (CASD, IT) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 12:42 PM
To: [EMAIL PROTECTED]
Subject: Example of using a nested exception


Hello,
I am looking for an example of using a nested exception.  I have started
reading through Chuck Cavaness' Programming Jakarta Struts book.  He creates
a BaseException class which supports nested exceptions.  So far, I have not
found where he uses it.
Does anyone use nested exceptions which their business/domain objects when
executing business rules?  Could someone post an example?
Regards,
Joshua




This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all
copies.


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

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




Question on embedding tags

2003-02-11 Thread mike . witt
I would like to get the following to work:

html:text name=editList property=value size=bean:write
name=editList property=fieldLength / /

Unfortunately, I get a jsp.error.attribute.noequal error when I do this.
I'm assuming that there is a way to delimit this properly, but I haven't
found it.  Anybody know how I can embed a bean attribute
(editList.fieldLength) into the size property?

Thanks for your help,

Mike Witt

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




RE: Question on embedding tags

2003-02-11 Thread Sri Sankaran
Here's one way:

Define a bean called, say size as follows:
bean:define 
id=size 
  name=editList 
  property=fieldLength/

Then use it in your html:text :

html:text
  name=editList
  property=value
  size=%=size%/

Sri
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, February 11, 2003 12:55 PM
To: [EMAIL PROTECTED]
Subject: Question on embedding tags


I would like to get the following to work:

html:text name=editList property=value size=bean:write name=editList 
property=fieldLength / /

Unfortunately, I get a jsp.error.attribute.noequal error when I do this. I'm 
assuming that there is a way to delimit this properly, but I haven't found it.  
Anybody know how I can embed a bean attribute
(editList.fieldLength) into the size property?

Thanks for your help,

Mike Witt

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


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




struts-layout + sslext

2003-02-11 Thread alexj
Does anyone know if it's possible to include sslext with struts-layout ? 
Both sslext and struts-layout use different form tag.

Thanks in advance.

--
Alexandre Jaquet
-



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




RE: JetSpeed VS. Liferay - to Craig

2003-02-11 Thread Mete Kural
Hi Craig,

Good to hear from you in this thread. As you are a
leading expert in the field, I would like to ask your
opinion on portal servers. Would you use a portal
server in your own applications? When do you think it
is good to use a portal server like JetSpeed, Liferay,
Epicentric or Plumtree and when not?

And also what do you think of this portal server
called Liferay which is based on Struts? The website
is available at http://www.liferay.com

Thanks,
Mete

--- Craig R. McClanahan [EMAIL PROTECTED] wrote:
 
 
 On Mon, 10 Feb 2003, Mete Kural wrote:
 
  Date: Mon, 10 Feb 2003 21:41:45 -0800 (PST)
  From: Mete Kural [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
  To: Struts Users Mailing List
 [EMAIL PROTECTED]
  Subject: RE: JetSpeed VS. Liferay  -  Comparison
 
  Hi Olivier,
 
   LifeRay is not listed at freshmeat.net
   Any piece of software not in their database is
 out
   of my scope :-)
 
  I told about this to the developers and now it is
  listed! You can view the freshmeat.net page at
  http://freshmeat.net/projects/lportal/
 
 
 Maybe somebody should list Struts itself ... it
 would be a shame to lose
 Olivier 'cause we're not there :-).
 
  -Mete
 
 
 Craig
 

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


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




Re: select multiple=false == select multiple=true

2003-02-11 Thread James Mitchell
I agree that using multiple=false is the same as multiple=true is
counter-intuitive (even in lieu of what the spec says), but I also agree
(more so perhaps) that changing it will cause backward compatibility issues.

I'm +1 for the enhancement request, and perhaps we could make this happen in
2.0 or sooner.

--
James Mitchell





- Original Message -
From: David Graham [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 11, 2003 12:10 PM
Subject: Re: select multiple=false == select multiple=true


 You could create an enhancement request for this but I don't know how the
 other committers will feel about it (even though the issue is quite
small).

 David



 From: Justin Ashworth [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: select multiple=false == select multiple=true
 Date: Tue, 11 Feb 2003 11:52:38 -0500
 
 You are right, but backwards compatibility problems could be *nearly*
 eliminated depending on how it's implemented.  If null and false were the
 only values that would not render a multiple select, then it would work
in
 all cases except for those where people are using multiple=false to
 render
 a multiple select box.  If somebody is shortsighted enough to do that,
then
 they deserve to have the implementation change. ;)
 
 Justin
 
 - Original Message -
 From: David Graham [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, February 11, 2003 11:38 AM
 Subject: Re: select multiple=false == select multiple=true
 
 
   Your point does make sense but changing the behavior would introduce
   backwards compatibility problems.  I don't know why the decision was
 made
 to
   have null mean false and anything else mean true.
  
   David
  
  
  
   From: Justin Ashworth [EMAIL PROTECTED]
   Reply-To: Struts Users Mailing List
[EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Subject: select multiple=false == select multiple=true
   Date: Tue, 11 Feb 2003 11:20:28 -0500
   
   The documentation for html:select indicates that if the multiple
   attribute is specified with ANY non-null value, it will be rendered
as
 a
   multiple select.  However, it would be much more intuitive if this
 accepted
   a boolean value like, for instance, the disabled attribute of
   html:option.  I understand that leaving off the attribute will
render
 a
   single select, but if the value of multiple is coming from a bean,
and
   since it makes sense that this is a boolean value, it would follow
that
 the
   multiple attribute would understand a boolean value.  I can have my
 bean
   return a String instead of a boolean, and default that String to
null,
 but
   it still seems as though this attribute could be more
 developer-friendly.
   
   Am I missing some logical reason behind the behavior of this
attribute?
 Am
   I the only one who thinks this is counter-intuitive?  Would it make
 sense
   to allow boolean values for this attribute in future releases?
   
   Thanks,
   
   Justin
  
  
   _
   MSN 8 with e-mail virus protection service: 2 months FREE*
   http://join.msn.com/?page=features/virus
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 _
 STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
 http://join.msn.com/?page=features/junkmail


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




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




RE: [OT - Java] Need a recommendation on a Design Pattern class

2003-02-11 Thread Hookom, Jacob John
You can fly me to your offices and I will talk for 5 days on design patterns :-)

-Original Message- 
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]] 
Sent: Tue 2/11/2003 11:35 AM 
To: '[EMAIL PROTECTED]' 
Cc: 
Subject: [OT - Java] Need a recommendation on a Design Pattern class



Hi All,

Sorry for the OT post, but I need a recommendation from all you guru's out
there.  I've been asked to find a 3 to 5 day class on Design Patterns with a
Java slant.  If anyone has attended something like this, and can recommend
for (or against), I would appreciate it.  You can reply via the list or
directly to me.

TIA!

Jerry Jalenak
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 the following email 
address: [EMAIL PROTECTED]



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





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


Re: select multiple=false == select multiple=true

2003-02-11 Thread Justin Ashworth
Okay, I'll write up the enhancement request.

- Original Message -
From: James Mitchell [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, February 11, 2003 1:10 PM
Subject: Re: select multiple=false == select multiple=true


 I agree that using multiple=false is the same as multiple=true is
 counter-intuitive (even in lieu of what the spec says), but I also agree
 (more so perhaps) that changing it will cause backward compatibility
issues.

 I'm +1 for the enhancement request, and perhaps we could make this happen
in
 2.0 or sooner.

 --
 James Mitchell





 - Original Message -
 From: David Graham [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, February 11, 2003 12:10 PM
 Subject: Re: select multiple=false == select multiple=true


  You could create an enhancement request for this but I don't know how
the
  other committers will feel about it (even though the issue is quite
 small).
 
  David
 
 
 
  From: Justin Ashworth [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Subject: Re: select multiple=false == select multiple=true
  Date: Tue, 11 Feb 2003 11:52:38 -0500
  
  You are right, but backwards compatibility problems could be *nearly*
  eliminated depending on how it's implemented.  If null and false were
the
  only values that would not render a multiple select, then it would work
 in
  all cases except for those where people are using multiple=false to
  render
  a multiple select box.  If somebody is shortsighted enough to do that,
 then
  they deserve to have the implementation change. ;)
  
  Justin
  
  - Original Message -
  From: David Graham [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, February 11, 2003 11:38 AM
  Subject: Re: select multiple=false == select multiple=true
  
  
Your point does make sense but changing the behavior would introduce
backwards compatibility problems.  I don't know why the decision was
  made
  to
have null mean false and anything else mean true.
   
David
   
   
   
From: Justin Ashworth [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: select multiple=false == select multiple=true
Date: Tue, 11 Feb 2003 11:20:28 -0500

The documentation for html:select indicates that if the
multiple
attribute is specified with ANY non-null value, it will be rendered
 as
  a
multiple select.  However, it would be much more intuitive if this
  accepted
a boolean value like, for instance, the disabled attribute of
html:option.  I understand that leaving off the attribute will
 render
  a
single select, but if the value of multiple is coming from a bean,
 and
since it makes sense that this is a boolean value, it would follow
 that
  the
multiple attribute would understand a boolean value.  I can have my
  bean
return a String instead of a boolean, and default that String to
 null,
  but
it still seems as though this attribute could be more
  developer-friendly.

Am I missing some logical reason behind the behavior of this
 attribute?
  Am
I the only one who thinks this is counter-intuitive?  Would it make
  sense
to allow boolean values for this attribute in future releases?

Thanks,

Justin
   
   
_
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
   
   
  
 -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  _
  STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
  http://join.msn.com/?page=features/junkmail
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



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




Upcoming Conferences was: RE: Modeling tools

2003-02-11 Thread Craig R. McClanahan


On Tue, 11 Feb 2003, Durham David Cntr 805CSS/SCBE wrote:

 Craig, are you doing any seminars/presentations on struts.  Is anyone?

I submitted three Struts-focused talks for the O'Reilly Open Source
Conference (July 7-11 in Portland).  Their call for papers is still open
through the 15th of February, so I imagine they won't go through the
selection process until later.

  http://conferences.oreillynet.com/os2003/

Craig

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




RE: Upcoming Conferences was: RE: Modeling tools

2003-02-11 Thread James Turner
 On Tue, 11 Feb 2003, Durham David Cntr 805CSS/SCBE wrote:
  Craig, are you doing any seminars/presentations on struts.  
 Is anyone?

I'll be speaking tomorrow night at SoftPro Books in Burlington, MA on
Struts.

I'll also be doing BOF/Intro to Struts sessions at the Sams booth at the
Sys-Con/Webedge conference in Boston next Wednesday and Thursday.

I also do weddings and Bar-Mitzvahs.

James Turner
Owner  Manager, Black Bear Software, LLC
[EMAIL PROTECTED]

Author: 
MySQL  JSP Web Applications: 
Data Driven Programming Using Tomcat and MySQL
ISBN 0672323095; Sams, 2002

Co-Author: 
Struts Kick Start
ISBN 0672324725; Sams, 2002

Forthcoming:
JavaServer Faces Kick Start 
Sams, Fall 2003



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




RE: [OT - Java] Need a recommendation on a Design Pattern class

2003-02-11 Thread Assenza, Chris
The company that owns and runs TheServerSide.com seems to have some nice
offerings that should satisfy your needs, though I've never attended their
training so I can't vouch for it. :)

http://www.middleware-company.com/training/trainingIndex.shtml
http://www.middleware-company.com/training/schedule.shtml

Chris

-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 12:36 PM
To: [EMAIL PROTECTED]
Subject: [OT - Java] Need a recommendation on a Design Pattern class


Hi All,

Sorry for the OT post, but I need a recommendation from all you guru's out
there.  I've been asked to find a 3 to 5 day class on Design Patterns with a
Java slant.  If anyone has attended something like this, and can recommend
for (or against), I would appreciate it.  You can reply via the list or
directly to me.

TIA!

Jerry Jalenak
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 the following email address:
[EMAIL PROTECTED]



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

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




need Help, I have been struggling for days. (collections andhtml:select)

2003-02-11 Thread Scott Power
I am trying to do something I have done many times before

I have a collection of objects which I want to use in a drop down menu
for the user.  
I have a vector that contains (int ids,Object ) 

In the object bean I have methods that get/set the values, for example


public String getCriteriaName(){...}

In my jsp I have several text fields and I am able to get the values of
them in my action bean. This criteria is the only value I am having
trouble with. I get a Cannot find bean under name criteriaList.  I have
done this before with vectors of similar structure and I am really
confused.

html:select property=criteriaName
html:options
collection=criteriaList 
property=id 
   labelProperty=criteriaName/
/html:select


In my action form bean I make objects and put them in a vector then I
request.setAttribute/session.setAttribute depending on scope.

All I want to do is to get the string value back from what the user
selects.

If anybody can Help, it would be great.

Thanks in Advance.

Scott Power



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




RE: [OT - Java] Need a recommendation on a Design Pattern class

2003-02-11 Thread Jim Krygowski
You might want to peruse the discussion forums on theserverside before
signing up for a middleware company class.  I can't provide links, but I do
recall posts on theserverside that were critical of the middleware company
and its courses.  As in all things, and especially with online forms, caveat
lector...



 -Original Message-
 From: Assenza, Chris [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 2:08 PM
 To: 'Struts Users Mailing List'
 Subject: RE: [OT - Java] Need a recommendation on a Design Pattern class


 The company that owns and runs TheServerSide.com seems to have some nice
 offerings that should satisfy your needs, though I've never attended their
 training so I can't vouch for it. :)

 http://www.middleware-company.com/training/trainingIndex.shtml
 http://www.middleware-company.com/training/schedule.shtml

 Chris

 -Original Message-
 From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 12:36 PM
 To: [EMAIL PROTECTED]
 Subject: [OT - Java] Need a recommendation on a Design Pattern class


 Hi All,

 Sorry for the OT post, but I need a recommendation from all you guru's out
 there.  I've been asked to find a 3 to 5 day class on Design
 Patterns with a
 Java slant.  If anyone has attended something like this, and can recommend
 for (or against), I would appreciate it.  You can reply via the list or
 directly to me.

 TIA!

 Jerry Jalenak
 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 the following email address:
 [EMAIL PROTECTED]



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

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




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




RE: need Help, I have been struggling for days. (collections andhtml:select)

2003-02-11 Thread Kandi Potter
I am new to struts but when I used the select with options tag I created 2 equal size 
vectors (labels, values)the jsp was

td
  html:select  name=incidentForm  property=selectedUnsafe  
  html:options name=incidentForm property=unsafeValues labelName=incidentForm 
labelProperty=unsafeLabels /
  /html:select/TD

or, in another case I used the iterate tag to create a list:

logic:iterate id=test 
name=incidentForm
property=unsafe
type=GeneralForm

  tr
tdhtml:submit property=removeUnsafe value=Remove //td
tdbean:write name=test property=desc filter=false//td
tdhtml:hidden name=test property=id //td
  /tr 
/logic:iterate

Don't know if this is the correct way or not; but it worked for me !!


-Original Message-
From: Scott Power [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:18 PM
To: [EMAIL PROTECTED]
Subject: need Help, I have been struggling for days. (collections
andhtml:select)


I am trying to do something I have done many times before

I have a collection of objects which I want to use in a drop down menu
for the user.  
I have a vector that contains (int ids,Object ) 

In the object bean I have methods that get/set the values, for example


public String getCriteriaName(){...}

In my jsp I have several text fields and I am able to get the values of
them in my action bean. This criteria is the only value I am having
trouble with. I get a Cannot find bean under name criteriaList.  I have
done this before with vectors of similar structure and I am really
confused.

html:select property=criteriaName
html:options
collection=criteriaList 
property=id 
   labelProperty=criteriaName/
/html:select


In my action form bean I make objects and put them in a vector then I
request.setAttribute/session.setAttribute depending on scope.

All I want to do is to get the string value back from what the user
selects.

If anybody can Help, it would be great.

Thanks in Advance.

Scott Power



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



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




LookupDispatchAction Question

2003-02-11 Thread Avexus Incorporated

I am new to Struts and am trying to use the LookupDispatchAction class to display a 
page for the first time (i.e. the user is being navigated to this page from another 
page).

I have everything setup fine in my struts_config.xml and Struts attempts to display my 
page, but was giving the following error:

Request[/lookup] does not contain handler parameter named submit

After researching on the archives, I realized that this message is due to the fact 
that the user has not yet clicked any of the submit button on this page (the page 
hasn't even been displayed yet). The suggestion on the archive is to implement 
something similar to the following in the Action class which extends 
LookupDispatchAction:

 public ActionForward execute(ActionMapping actionMapping,
 ActionForm actionForm,
 HttpServletRequest httpServletRequest,
 HttpServletResponse httpServletResponse)
   throws Exception
 {
  if (httpServletRequest.getParameter(actionMapping.getParameter()) == null)
  {
   return defaultMethod();
  }
  else
  {
   return super.execute(actionMapping, actionForm, httpServletRequest,
 httpServletResponse);
  }
 }


My question is what do I return from defaultMethod? I have to return an 
ActionForward but I don't want to forward the user anywhere -- I want to display the 
page. How do I do this? I guess I could have 2 pages and 2 actions -- one to display 
the page initially and one to process the page upon submit -- but that is ugly and I 
hope not the only solution.

 



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


RE: [OT - Java] Need a recommendation on a Design Pattern class

2003-02-11 Thread Michael Cardon
I took a week long class from Bruce Eckel a couple of years ago that I would
recommend. http://www.BruceEckel.com


-Original Message-
From: Hookom, Jacob John [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 10:34 AM
To: Struts Users Mailing List
Subject: RE: [OT - Java] Need a recommendation on a Design Pattern class


You can fly me to your offices and I will talk for 5 days on design patterns
:-)

-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Tue 2/11/2003 11:35 AM
To: '[EMAIL PROTECTED]'
Cc:
Subject: [OT - Java] Need a recommendation on a Design Pattern class



Hi All,

Sorry for the OT post, but I need a recommendation from all you guru's out
there.  I've been asked to find a 3 to 5 day class on Design Patterns with
a
Java slant.  If anyone has attended something like this, and can recommend
for (or against), I would appreciate it.  You can reply via the list or
directly to me.

TIA!

Jerry Jalenak
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 the following email address:
[EMAIL PROTECTED]



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






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




Tomcat 4.1.18 / nested tags

2003-02-11 Thread Becky Norum
I had problems with nested tags on Tomcat 4.1.18 as well, particularly
trying to implement an adaptation of Arron Bates' tree recursion design
(which is great, by the way!).

I went back down to Tomcat 4.0.6 and things are working beautifully.

Thanks to Sri and Arron, by the way, for many informative posts!

-- 
Becky Norum * [EMAIL PROTECTED]



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




RE: LookupDispatchAction Question

2003-02-11 Thread Alvarado, Juan (c)
I would suggest you read up on the usage of the LookupDispatchAction again.
It was not designed to to be used in the way you are trying to use them.

Take a look at this site http://husted.com/struts/index.html. It has some
good suggestions on the correct usage of the action classes that come with
struts.

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:46 PM
To: [EMAIL PROTECTED]
Subject: LookupDispatchAction Question



I am new to Struts and am trying to use the LookupDispatchAction class to
display a page for the first time (i.e. the user is being navigated to this
page from another page).

I have everything setup fine in my struts_config.xml and Struts attempts to
display my page, but was giving the following error:

Request[/lookup] does not contain handler parameter named submit

After researching on the archives, I realized that this message is due to
the fact that the user has not yet clicked any of the submit button on
this page (the page hasn't even been displayed yet). The suggestion on the
archive is to implement something similar to the following in the Action
class which extends LookupDispatchAction:

 public ActionForward execute(ActionMapping actionMapping,
 ActionForm actionForm,
 HttpServletRequest httpServletRequest,
 HttpServletResponse httpServletResponse)
   throws Exception
 {
  if (httpServletRequest.getParameter(actionMapping.getParameter()) == null)
  {
   return defaultMethod();
  }
  else
  {
   return super.execute(actionMapping, actionForm, httpServletRequest,
 httpServletResponse);
  }
 }


My question is what do I return from defaultMethod? I have to return an
ActionForward but I don't want to forward the user anywhere -- I want to
display the page. How do I do this? I guess I could have 2 pages and 2
actions -- one to display the page initially and one to process the page
upon submit -- but that is ugly and I hope not the only solution.

 



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

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




RE: LookupDispatchAction Question

2003-02-11 Thread Avexus Incorporated

I looked at that site. That is where I found out about LookupDispatchAction. But there 
is nothing that I can find that tells me how to initially display a page that will 
subsequently use a dispatch action. In fact, I can't figure out how to do it in Struts 
at all without either having a plain .html page as the inital page or having 2 .jsp 
pages. Niether solution is good.
 Alvarado, Juan (c) [EMAIL PROTECTED] wrote:I would suggest you read 
up on the usage of the LookupDispatchAction again.
It was not designed to to be used in the way you are trying to use them.

Take a look at this site http://husted.com/struts/index.html. It has some
good suggestions on the correct usage of the action classes that come with
struts.

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:46 PM
To: [EMAIL PROTECTED]
Subject: LookupDispatchAction Question



I am new to Struts and am trying to use the LookupDispatchAction class to
display a page for the first time (i.e. the user is being navigated to this
page from another page).

I have everything setup fine in my struts_config.xml and Struts attempts to
display my page, but was giving the following error:

Request[/lookup] does not contain handler parameter named submit

After researching on the archives, I realized that this message is due to
the fact that the user has not yet clicked any of the submit button on
this page (the page hasn't even been displayed yet). The suggestion on the
archive is to implement something similar to the following in the Action
class which extends LookupDispatchAction:

public ActionForward execute(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
throws Exception
{
if (httpServletRequest.getParameter(actionMapping.getParameter()) == null)
{
return defaultMethod();
}
else
{
return super.execute(actionMapping, actionForm, httpServletRequest,
httpServletResponse);
}
}


My question is what do I return from defaultMethod? I have to return an
ActionForward but I don't want to forward the user anywhere -- I want to
display the page. How do I do this? I guess I could have 2 pages and 2
actions -- one to display the page initially and one to process the page
upon submit -- but that is ugly and I hope not the only solution.





-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

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



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


RE: LookupDispatchAction Question

2003-02-11 Thread Alvarado, Juan (c)
Okay can you please tell me what exactly it is you're trying to
accomplish??? I don't quite get what your ultimate goal is.

Thanks

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:01 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



I looked at that site. That is where I found out about LookupDispatchAction.
But there is nothing that I can find that tells me how to initially display
a page that will subsequently use a dispatch action. In fact, I can't figure
out how to do it in Struts at all without either having a plain .html page
as the inital page or having 2 .jsp pages. Niether solution is good.
 Alvarado, Juan (c) [EMAIL PROTECTED] wrote:I would suggest
you read up on the usage of the LookupDispatchAction again.
It was not designed to to be used in the way you are trying to use them.

Take a look at this site http://husted.com/struts/index.html. It has some
good suggestions on the correct usage of the action classes that come with
struts.

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:46 PM
To: [EMAIL PROTECTED]
Subject: LookupDispatchAction Question



I am new to Struts and am trying to use the LookupDispatchAction class to
display a page for the first time (i.e. the user is being navigated to this
page from another page).

I have everything setup fine in my struts_config.xml and Struts attempts to
display my page, but was giving the following error:

Request[/lookup] does not contain handler parameter named submit

After researching on the archives, I realized that this message is due to
the fact that the user has not yet clicked any of the submit button on
this page (the page hasn't even been displayed yet). The suggestion on the
archive is to implement something similar to the following in the Action
class which extends LookupDispatchAction:

public ActionForward execute(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
throws Exception
{
if (httpServletRequest.getParameter(actionMapping.getParameter()) == null)
{
return defaultMethod();
}
else
{
return super.execute(actionMapping, actionForm, httpServletRequest,
httpServletResponse);
}
}


My question is what do I return from defaultMethod? I have to return an
ActionForward but I don't want to forward the user anywhere -- I want to
display the page. How do I do this? I guess I could have 2 pages and 2
actions -- one to display the page initially and one to process the page
upon submit -- but that is ugly and I hope not the only solution.





-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

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



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

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




RE: LookupDispatchAction Question

2003-02-11 Thread Brandon Goodin
U, I'm not sure from your message what you are doing. It sounds like you
are forwarding to a page that contains a form and requires some
initialization.

In that case you would use the [parameterName]= to call the unspecified
method.

In your LookupDispatchAction there is an unspecified method that is called
when you do not specify a value for your paramter. So you just need to
specify an unspecified method in your LookupDispatch action that will
contain all the initialization logic calls that are needed. That would allow
you to use the same page for different dispatch methods.

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


-Original Message-
From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 12:54 PM
To: 'Struts Users Mailing List'
Subject: RE: LookupDispatchAction Question


I would suggest you read up on the usage of the LookupDispatchAction again.
It was not designed to to be used in the way you are trying to use them.

Take a look at this site http://husted.com/struts/index.html. It has some
good suggestions on the correct usage of the action classes that come with
struts.

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:46 PM
To: [EMAIL PROTECTED]
Subject: LookupDispatchAction Question



I am new to Struts and am trying to use the LookupDispatchAction class to
display a page for the first time (i.e. the user is being navigated to this
page from another page).

I have everything setup fine in my struts_config.xml and Struts attempts to
display my page, but was giving the following error:

Request[/lookup] does not contain handler parameter named submit

After researching on the archives, I realized that this message is due to
the fact that the user has not yet clicked any of the submit button on
this page (the page hasn't even been displayed yet). The suggestion on the
archive is to implement something similar to the following in the Action
class which extends LookupDispatchAction:

 public ActionForward execute(ActionMapping actionMapping,
 ActionForm actionForm,
 HttpServletRequest httpServletRequest,
 HttpServletResponse httpServletResponse)
   throws Exception
 {
  if (httpServletRequest.getParameter(actionMapping.getParameter()) == null)
  {
   return defaultMethod();
  }
  else
  {
   return super.execute(actionMapping, actionForm, httpServletRequest,
 httpServletResponse);
  }
 }


My question is what do I return from defaultMethod? I have to return an
ActionForward but I don't want to forward the user anywhere -- I want to
display the page. How do I do this? I guess I could have 2 pages and 2
actions -- one to display the page initially and one to process the page
upon submit -- but that is ugly and I hope not the only solution.





-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

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



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




RE: LookupDispatchAction Question

2003-02-11 Thread Avexus Incorporated

After the user logs on they are supposed to go to a lookup page. This page will have 
no data on it when it is first displayed. This page, which is a JSP of course, will 
have a form and more than 1 submit button.
The problem is that the page can't even be displayed because when Struts calls my 
Action class (which extends LookupDispatchAction), there is no value for the submit 
button. That is, Struts doesn't know which of my methods to invoke and throws an 
exception (the error message from my first email).  This is because the user hasn't 
clicked any of the submit buttons yet -- they haven't even seen the page.
How do I get the page to display initially?
 Alvarado, Juan (c) [EMAIL PROTECTED] wrote:Okay can you please tell 
me what exactly it is you're trying to
accomplish??? I don't quite get what your ultimate goal is.

Thanks

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:01 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



I looked at that site. That is where I found out about LookupDispatchAction.
But there is nothing that I can find that tells me how to initially display
a page that will subsequently use a dispatch action. In fact, I can't figure
out how to do it in Struts at all without either having a plain .html page
as the inital page or having 2 .jsp pages. Niether solution is good.
Alvarado, Juan (c) wrote:I would suggest
you read up on the usage of the LookupDispatchAction again.
It was not designed to to be used in the way you are trying to use them.

Take a look at this site http://husted.com/struts/index.html. It has some
good suggestions on the correct usage of the action classes that come with
struts.

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:46 PM
To: [EMAIL PROTECTED]
Subject: LookupDispatchAction Question



I am new to Struts and am trying to use the LookupDispatchAction class to
display a page for the first time (i.e. the user is being navigated to this
page from another page).

I have everything setup fine in my struts_config.xml and Struts attempts to
display my page, but was giving the following error:

Request[/lookup] does not contain handler parameter named submit

After researching on the archives, I realized that this message is due to
the fact that the user has not yet clicked any of the submit button on
this page (the page hasn't even been displayed yet). The suggestion on the
archive is to implement something similar to the following in the Action
class which extends LookupDispatchAction:

public ActionForward execute(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
throws Exception
{
if (httpServletRequest.getParameter(actionMapping.getParameter()) == null)
{
return defaultMethod();
}
else
{
return super.execute(actionMapping, actionForm, httpServletRequest,
httpServletResponse);
}
}


My question is what do I return from defaultMethod? I have to return an
ActionForward but I don't want to forward the user anywhere -- I want to
display the page. How do I do this? I guess I could have 2 pages and 2
actions -- one to display the page initially and one to process the page
upon submit -- but that is ugly and I hope not the only solution.





-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

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



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

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



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


RE: LookupDispatchAction Question

2003-02-11 Thread Brandon Goodin
simple...

in your execute method check to see if the mapping.getParameter is null.

If it is null then have it call a method that performs some initialization
(if needed) and returns an ActionForward to your jsp page.

If you want code... I have done this many times.

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


-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 1:11 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



After the user logs on they are supposed to go to a lookup page. This page
will have no data on it when it is first displayed. This page, which is a
JSP of course, will have a form and more than 1 submit button.
The problem is that the page can't even be displayed because when Struts
calls my Action class (which extends LookupDispatchAction), there is no
value for the submit button. That is, Struts doesn't know which of my
methods to invoke and throws an exception (the error message from my first
email).  This is because the user hasn't clicked any of the submit buttons
yet -- they haven't even seen the page.
How do I get the page to display initially?
 Alvarado, Juan (c) [EMAIL PROTECTED] wrote:Okay can you
please tell me what exactly it is you're trying to
accomplish??? I don't quite get what your ultimate goal is.

Thanks

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:01 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



I looked at that site. That is where I found out about LookupDispatchAction.
But there is nothing that I can find that tells me how to initially display
a page that will subsequently use a dispatch action. In fact, I can't figure
out how to do it in Struts at all without either having a plain .html page
as the inital page or having 2 .jsp pages. Niether solution is good.
Alvarado, Juan (c) wrote:I would suggest
you read up on the usage of the LookupDispatchAction again.
It was not designed to to be used in the way you are trying to use them.

Take a look at this site http://husted.com/struts/index.html. It has some
good suggestions on the correct usage of the action classes that come with
struts.

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:46 PM
To: [EMAIL PROTECTED]
Subject: LookupDispatchAction Question



I am new to Struts and am trying to use the LookupDispatchAction class to
display a page for the first time (i.e. the user is being navigated to this
page from another page).

I have everything setup fine in my struts_config.xml and Struts attempts to
display my page, but was giving the following error:

Request[/lookup] does not contain handler parameter named submit

After researching on the archives, I realized that this message is due to
the fact that the user has not yet clicked any of the submit button on
this page (the page hasn't even been displayed yet). The suggestion on the
archive is to implement something similar to the following in the Action
class which extends LookupDispatchAction:

public ActionForward execute(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
throws Exception
{
if (httpServletRequest.getParameter(actionMapping.getParameter()) == null)
{
return defaultMethod();
}
else
{
return super.execute(actionMapping, actionForm, httpServletRequest,
httpServletResponse);
}
}


My question is what do I return from defaultMethod? I have to return an
ActionForward but I don't want to forward the user anywhere -- I want to
display the page. How do I do this? I guess I could have 2 pages and 2
actions -- one to display the page initially and one to process the page
upon submit -- but that is ugly and I hope not the only solution.





-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

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



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

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



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


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




RE: LookupDispatchAction Question

2003-02-11 Thread Avexus Incorporated

OK, so if I don't have a value for the dispatch parameter I can simply do the 
following?: 

return unspecified(actionMapping, actionForm, httpServletRequest,
  httpServletResponse); 

 Brandon Goodin [EMAIL PROTECTED] wrote: U, I'm not sure from your message what you 
are doing. It sounds like you
are forwarding to a page that contains a form and requires some
initialization.

In that case you would use the [parameterName]= to call the unspecified
method.

In your LookupDispatchAction there is an unspecified method that is called
when you do not specify a value for your paramter. So you just need to
specify an unspecified method in your LookupDispatch action that will
contain all the initialization logic calls that are needed. That would allow
you to use the same page for different dispatch methods.

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


-Original Message-
From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 12:54 PM
To: 'Struts Users Mailing List'
Subject: RE: LookupDispatchAction Question


I would suggest you read up on the usage of the LookupDispatchAction again.
It was not designed to to be used in the way you are trying to use them.

Take a look at this site http://husted.com/struts/index.html. It has some
good suggestions on the correct usage of the action classes that come with
struts.

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:46 PM
To: [EMAIL PROTECTED]
Subject: LookupDispatchAction Question



I am new to Struts and am trying to use the LookupDispatchAction class to
display a page for the first time (i.e. the user is being navigated to this
page from another page).

I have everything setup fine in my struts_config.xml and Struts attempts to
display my page, but was giving the following error:

Request[/lookup] does not contain handler parameter named submit

After researching on the archives, I realized that this message is due to
the fact that the user has not yet clicked any of the submit button on
this page (the page hasn't even been displayed yet). The suggestion on the
archive is to implement something similar to the following in the Action
class which extends LookupDispatchAction:

public ActionForward execute(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
throws Exception
{
if (httpServletRequest.getParameter(actionMapping.getParameter()) == null)
{
return defaultMethod();
}
else
{
return super.execute(actionMapping, actionForm, httpServletRequest,
httpServletResponse);
}
}


My question is what do I return from defaultMethod? I have to return an
ActionForward but I don't want to forward the user anywhere -- I want to
display the page. How do I do this? I guess I could have 2 pages and 2
actions -- one to display the page initially and one to process the page
upon submit -- but that is ugly and I hope not the only solution.





-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

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



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



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


RE: LookupDispatchAction Question

2003-02-11 Thread Avexus Incorporated

yes, i need some code. I don't understand how I can forward to my .jsp page -- won't 
this put me in a loop? Won't Struts just call my Action class again after looking up 
the .jsp page's mapping?
 Brandon Goodin [EMAIL PROTECTED] wrote:simple...

in your execute method check to see if the mapping.getParameter is null.

If it is null then have it call a method that performs some initialization
(if needed) and returns an ActionForward to your jsp page.

If you want code... I have done this many times.

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


-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 1:11 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



After the user logs on they are supposed to go to a lookup page. This page
will have no data on it when it is first displayed. This page, which is a
JSP of course, will have a form and more than 1 submit button.
The problem is that the page can't even be displayed because when Struts
calls my Action class (which extends LookupDispatchAction), there is no
value for the submit button. That is, Struts doesn't know which of my
methods to invoke and throws an exception (the error message from my first
email). This is because the user hasn't clicked any of the submit buttons
yet -- they haven't even seen the page.
How do I get the page to display initially?
Alvarado, Juan (c) wrote:Okay can you
please tell me what exactly it is you're trying to
accomplish??? I don't quite get what your ultimate goal is.

Thanks

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:01 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



I looked at that site. That is where I found out about LookupDispatchAction.
But there is nothing that I can find that tells me how to initially display
a page that will subsequently use a dispatch action. In fact, I can't figure
out how to do it in Struts at all without either having a plain .html page
as the inital page or having 2 .jsp pages. Niether solution is good.
Alvarado, Juan (c) wrote:I would suggest
you read up on the usage of the LookupDispatchAction again.
It was not designed to to be used in the way you are trying to use them.

Take a look at this site http://husted.com/struts/index.html. It has some
good suggestions on the correct usage of the action classes that come with
struts.

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:46 PM
To: [EMAIL PROTECTED]
Subject: LookupDispatchAction Question



I am new to Struts and am trying to use the LookupDispatchAction class to
display a page for the first time (i.e. the user is being navigated to this
page from another page).

I have everything setup fine in my struts_config.xml and Struts attempts to
display my page, but was giving the following error:

Request[/lookup] does not contain handler parameter named submit

After researching on the archives, I realized that this message is due to
the fact that the user has not yet clicked any of the submit button on
this page (the page hasn't even been displayed yet). The suggestion on the
archive is to implement something similar to the following in the Action
class which extends LookupDispatchAction:

public ActionForward execute(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
throws Exception
{
if (httpServletRequest.getParameter(actionMapping.getParameter()) == null)
{
return defaultMethod();
}
else
{
return super.execute(actionMapping, actionForm, httpServletRequest,
httpServletResponse);
}
}


My question is what do I return from defaultMethod? I have to return an
ActionForward but I don't want to forward the user anywhere -- I want to
display the page. How do I do this? I guess I could have 2 pages and 2
actions -- one to display the page initially and one to process the page
upon submit -- but that is ugly and I hope not the only solution.





-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

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



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

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



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


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




RE: Question on embedding tags

2003-02-11 Thread mike . witt
Sri,

Thanks for the idea.  I think I need to add a type attribute to the
bean:define to make it a string.

Mike

-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 1:00 PM
To: Struts Users Mailing List
Subject: RE: Question on embedding tags


Here's one way:

Define a bean called, say size as follows:
bean:define 
id=size 
  name=editList 
  property=fieldLength/

Then use it in your html:text :

html:text
  name=editList
  property=value
  size=%=size%/

Sri
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, February 11, 2003 12:55 PM
To: [EMAIL PROTECTED]
Subject: Question on embedding tags


I would like to get the following to work:

html:text name=editList property=value size=bean:write
name=editList property=fieldLength / /

Unfortunately, I get a jsp.error.attribute.noequal error when I do this.
I'm assuming that there is a way to delimit this properly, but I haven't
found it.  Anybody know how I can embed a bean attribute
(editList.fieldLength) into the size property?

Thanks for your help,

Mike Witt

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


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

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




AW: LookupDispatchAction Question

2003-02-11 Thread Brandon Goodin
also if your parameter is not null then call the
super.execute(mapping,form,request,response) so that the lookup does it's
work as normal. The key is to override the execute method of the
LookupDispatch and pass control to it only if the paramter exists in the
query/request.

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


-Original Message-
From: Brandon Goodin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 1:16 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question


simple...

in your execute method check to see if the mapping.getParameter is null.

If it is null then have it call a method that performs some initialization
(if needed) and returns an ActionForward to your jsp page.

If you want code... I have done this many times.

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


-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 1:11 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



After the user logs on they are supposed to go to a lookup page. This page
will have no data on it when it is first displayed. This page, which is a
JSP of course, will have a form and more than 1 submit button.
The problem is that the page can't even be displayed because when Struts
calls my Action class (which extends LookupDispatchAction), there is no
value for the submit button. That is, Struts doesn't know which of my
methods to invoke and throws an exception (the error message from my first
email).  This is because the user hasn't clicked any of the submit buttons
yet -- they haven't even seen the page.
How do I get the page to display initially?
 Alvarado, Juan (c) [EMAIL PROTECTED] wrote:Okay can you
please tell me what exactly it is you're trying to
accomplish??? I don't quite get what your ultimate goal is.

Thanks

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:01 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



I looked at that site. That is where I found out about LookupDispatchAction.
But there is nothing that I can find that tells me how to initially display
a page that will subsequently use a dispatch action. In fact, I can't figure
out how to do it in Struts at all without either having a plain .html page
as the inital page or having 2 .jsp pages. Niether solution is good.
Alvarado, Juan (c) wrote:I would suggest
you read up on the usage of the LookupDispatchAction again.
It was not designed to to be used in the way you are trying to use them.

Take a look at this site http://husted.com/struts/index.html. It has some
good suggestions on the correct usage of the action classes that come with
struts.

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:46 PM
To: [EMAIL PROTECTED]
Subject: LookupDispatchAction Question



I am new to Struts and am trying to use the LookupDispatchAction class to
display a page for the first time (i.e. the user is being navigated to this
page from another page).

I have everything setup fine in my struts_config.xml and Struts attempts to
display my page, but was giving the following error:

Request[/lookup] does not contain handler parameter named submit

After researching on the archives, I realized that this message is due to
the fact that the user has not yet clicked any of the submit button on
this page (the page hasn't even been displayed yet). The suggestion on the
archive is to implement something similar to the following in the Action
class which extends LookupDispatchAction:

public ActionForward execute(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
throws Exception
{
if (httpServletRequest.getParameter(actionMapping.getParameter()) == null)
{
return defaultMethod();
}
else
{
return super.execute(actionMapping, actionForm, httpServletRequest,
httpServletResponse);
}
}


My question is what do I return from defaultMethod? I have to return an
ActionForward but I don't want to forward the user anywhere -- I want to
display the page. How do I do this? I guess I could have 2 pages and 2
actions -- one to display the page initially and one to process the page
upon submit -- but that is ugly and I hope not the only solution.





-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

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



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

-
To unsubscribe, 

RE: need Help, I have been struggling for days. (collectionsandhtml:select)

2003-02-11 Thread Scott Power
Thanks for your reply, but I guess I forgot to mention that my drop
menus work and the info in the collection shows up, but on submit it
says that the bean can not be found.  I figure its pretty strange since
the info is taken from the same bean on form creation. Got any more
ideas, I'd love to hear them.

Thanks for your suggestion.

Scott

 [EMAIL PROTECTED] 02/11/03 03:43PM 
I am new to struts but when I used the select with options tag I
created 2 equal size vectors (labels, values)the jsp was

td
  html:select  name=incidentForm  property=selectedUnsafe  
  html:options name=incidentForm property=unsafeValues
labelName=incidentForm 
labelProperty=unsafeLabels /
  /html:select/TD

or, in another case I used the iterate tag to create a list:

logic:iterate id=test 
name=incidentForm
property=unsafe
type=GeneralForm

  tr
tdhtml:submit property=removeUnsafe value=Remove //td
tdbean:write name=test property=desc filter=false//td
tdhtml:hidden name=test property=id //td
  /tr 
/logic:iterate

Don't know if this is the correct way or not; but it worked for me !!


-Original Message-
From: Scott Power [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, February 11, 2003 2:18 PM
To: [EMAIL PROTECTED] 
Subject: need Help, I have been struggling for days. (collections
andhtml:select)


I am trying to do something I have done many times before

I have a collection of objects which I want to use in a drop down menu
for the user.  
I have a vector that contains (int ids,Object ) 

In the object bean I have methods that get/set the values, for example


public String getCriteriaName(){...}

In my jsp I have several text fields and I am able to get the values
of
them in my action bean. This criteria is the only value I am having
trouble with. I get a Cannot find bean under name criteriaList.  I
have
done this before with vectors of similar structure and I am really
confused.

html:select property=criteriaName
html:options
collection=criteriaList 
property=id 
   labelProperty=criteriaName/
/html:select


In my action form bean I make objects and put them in a vector then I
request.setAttribute/session.setAttribute depending on scope.

All I want to do is to get the string value back from what the user
selects.

If anybody can Help, it would be great.

Thanks in Advance.

Scott Power



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



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


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




RE: LookupDispatchAction Question

2003-02-11 Thread Alvarado, Juan (c)
Okay this is one way of doing this:

Your login action in this case should not be a LookupDispatchAction. It
should be a sub-class of the struts Action class. LookupDispatchAction has
another intended usage. 

When your user is authenticated (from the login action), you will forward to
the jsp that is suppose to contain all the submit buttons. Assuming
everything else is configured properly, your JSP should then display
properly.


-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:11 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



After the user logs on they are supposed to go to a lookup page. This page
will have no data on it when it is first displayed. This page, which is a
JSP of course, will have a form and more than 1 submit button.
The problem is that the page can't even be displayed because when Struts
calls my Action class (which extends LookupDispatchAction), there is no
value for the submit button. That is, Struts doesn't know which of my
methods to invoke and throws an exception (the error message from my first
email).  This is because the user hasn't clicked any of the submit buttons
yet -- they haven't even seen the page.
How do I get the page to display initially?
 Alvarado, Juan (c) [EMAIL PROTECTED] wrote:Okay can you
please tell me what exactly it is you're trying to
accomplish??? I don't quite get what your ultimate goal is.

Thanks

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:01 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



I looked at that site. That is where I found out about LookupDispatchAction.
But there is nothing that I can find that tells me how to initially display
a page that will subsequently use a dispatch action. In fact, I can't figure
out how to do it in Struts at all without either having a plain .html page
as the inital page or having 2 .jsp pages. Niether solution is good.
Alvarado, Juan (c) wrote:I would suggest
you read up on the usage of the LookupDispatchAction again.
It was not designed to to be used in the way you are trying to use them.

Take a look at this site http://husted.com/struts/index.html. It has some
good suggestions on the correct usage of the action classes that come with
struts.

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:46 PM
To: [EMAIL PROTECTED]
Subject: LookupDispatchAction Question



I am new to Struts and am trying to use the LookupDispatchAction class to
display a page for the first time (i.e. the user is being navigated to this
page from another page).

I have everything setup fine in my struts_config.xml and Struts attempts to
display my page, but was giving the following error:

Request[/lookup] does not contain handler parameter named submit

After researching on the archives, I realized that this message is due to
the fact that the user has not yet clicked any of the submit button on
this page (the page hasn't even been displayed yet). The suggestion on the
archive is to implement something similar to the following in the Action
class which extends LookupDispatchAction:

public ActionForward execute(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
throws Exception
{
if (httpServletRequest.getParameter(actionMapping.getParameter()) == null)
{
return defaultMethod();
}
else
{
return super.execute(actionMapping, actionForm, httpServletRequest,
httpServletResponse);
}
}


My question is what do I return from defaultMethod? I have to return an
ActionForward but I don't want to forward the user anywhere -- I want to
display the page. How do I do this? I guess I could have 2 pages and 2
actions -- one to display the page initially and one to process the page
upon submit -- but that is ugly and I hope not the only solution.





-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

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



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

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



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

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




Re: Tomcat 4.1.18 / nested tags

2003-02-11 Thread Jeff_Mychasiw

Thanks Becky.
  So I guess the answer to my original question:
  Is anyone using Tomcat 4.1.18 with Nested Tags is: No.
We have done some inital tests With JBoss/TC 4.0.6 and things seem OK.







Becky Norum [EMAIL PROTECTED] on 02/11/2003 01:49:25 PM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:[EMAIL PROTECTED]
cc:

Subject:Tomcat 4.1.18 / nested tags


I had problems with nested tags on Tomcat 4.1.18 as well, particularly
trying to implement an adaptation of Arron Bates' tree recursion design
(which is great, by the way!).

I went back down to Tomcat 4.0.6 and things are working beautifully.

Thanks to Sri and Arron, by the way, for many informative posts!

--
Becky Norum * [EMAIL PROTECTED]



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








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




Re: Question on embedding tags

2003-02-11 Thread James Mitchell
or:

   size=%=size.toString()%/
 ^^^

--
James Mitchell





- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 11, 2003 3:17 PM
Subject: RE: Question on embedding tags


 Sri,

 Thanks for the idea.  I think I need to add a type attribute to the
 bean:define to make it a string.

 Mike

 -Original Message-
 From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 1:00 PM
 To: Struts Users Mailing List
 Subject: RE: Question on embedding tags


 Here's one way:

 Define a bean called, say size as follows:
 bean:define
 id=size
   name=editList
   property=fieldLength/

 Then use it in your html:text :

 html:text
   name=editList
   property=value
   size=%=size%/

 Sri
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 12:55 PM
 To: [EMAIL PROTECTED]
 Subject: Question on embedding tags


 I would like to get the following to work:

 html:text name=editList property=value size=bean:write
 name=editList property=fieldLength / /

 Unfortunately, I get a jsp.error.attribute.noequal error when I do this.
 I'm assuming that there is a way to delimit this properly, but I haven't
 found it.  Anybody know how I can embed a bean attribute
 (editList.fieldLength) into the size property?

 Thanks for your help,

 Mike Witt

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


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

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




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




Re: AW: LookupDispatchAction Question

2003-02-11 Thread Avexus Incorporated

Yes, I've got that part down. The part I don't understand is what to do if the 
parameter IS null. I don't understand how I can return an ActionForward since I don't 
want to forward anywhere, I just want Struts to display the same .jsp associated with 
the current Action.
 
 Brandon Goodin [EMAIL PROTECTED] wrote:also if your parameter is not null then call the
super.execute(mapping,form,request,response) so that the lookup does it's
work as normal. The key is to override the execute method of the
LookupDispatch and pass control to it only if the paramter exists in the
query/request.

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


-Original Message-
From: Brandon Goodin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 1:16 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question


simple...

in your execute method check to see if the mapping.getParameter is null.

If it is null then have it call a method that performs some initialization
(if needed) and returns an ActionForward to your jsp page.

If you want code... I have done this many times.

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


-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 1:11 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



After the user logs on they are supposed to go to a lookup page. This page
will have no data on it when it is first displayed. This page, which is a
JSP of course, will have a form and more than 1 submit button.
The problem is that the page can't even be displayed because when Struts
calls my Action class (which extends LookupDispatchAction), there is no
value for the submit button. That is, Struts doesn't know which of my
methods to invoke and throws an exception (the error message from my first
email). This is because the user hasn't clicked any of the submit buttons
yet -- they haven't even seen the page.
How do I get the page to display initially?
Alvarado, Juan (c) wrote:Okay can you
please tell me what exactly it is you're trying to
accomplish??? I don't quite get what your ultimate goal is.

Thanks

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:01 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



I looked at that site. That is where I found out about LookupDispatchAction.
But there is nothing that I can find that tells me how to initially display
a page that will subsequently use a dispatch action. In fact, I can't figure
out how to do it in Struts at all without either having a plain .html page
as the inital page or having 2 .jsp pages. Niether solution is good.
Alvarado, Juan (c) wrote:I would suggest
you read up on the usage of the LookupDispatchAction again.
It was not designed to to be used in the way you are trying to use them.

Take a look at this site http://husted.com/struts/index.html. It has some
good suggestions on the correct usage of the action classes that come with
struts.

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:46 PM
To: [EMAIL PROTECTED]
Subject: LookupDispatchAction Question



I am new to Struts and am trying to use the LookupDispatchAction class to
display a page for the first time (i.e. the user is being navigated to this
page from another page).

I have everything setup fine in my struts_config.xml and Struts attempts to
display my page, but was giving the following error:

Request[/lookup] does not contain handler parameter named submit

After researching on the archives, I realized that this message is due to
the fact that the user has not yet clicked any of the submit button on
this page (the page hasn't even been displayed yet). The suggestion on the
archive is to implement something similar to the following in the Action
class which extends LookupDispatchAction:

public ActionForward execute(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
throws Exception
{
if (httpServletRequest.getParameter(actionMapping.getParameter()) == null)
{
return defaultMethod();
}
else
{
return super.execute(actionMapping, actionForm, httpServletRequest,
httpServletResponse);
}
}


My question is what do I return from defaultMethod? I have to return an
ActionForward but I don't want to forward the user anywhere -- I want to
display the page. How do I do this? I guess I could have 2 pages and 2
actions -- one to display the page initially and one to process the page
upon submit -- but that is ugly and I hope not the only solution.





-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


RE: LookupDispatchAction Question

2003-02-11 Thread Brandon Goodin
That is correct... here is a code sample.


public ActionForward execute(mapping,form,request,response) {

if (mapping.getParamter() == null) {
// this avoids an exception from happening
// when no parameter exists
return uspecified(mapping,form,request,response);

} else {

// this handles everything just fine when the
// parameter exists even if the parameter has
// no value

return super.execute(mapping,form,request,response);

}

}

public ActionForward unspecified(mapping,form,request,response) {

... do your stuff here

}


public ActionForward  other methods etc


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


-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 1:15 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



OK, so if I don't have a value for the dispatch parameter I can simply do
the following?:

return unspecified(actionMapping, actionForm, httpServletRequest,
  httpServletResponse);

 Brandon Goodin [EMAIL PROTECTED] wrote: U, I'm not sure from your message
what you are doing. It sounds like you
are forwarding to a page that contains a form and requires some
initialization.

In that case you would use the [parameterName]= to call the unspecified
method.

In your LookupDispatchAction there is an unspecified method that is called
when you do not specify a value for your paramter. So you just need to
specify an unspecified method in your LookupDispatch action that will
contain all the initialization logic calls that are needed. That would allow
you to use the same page for different dispatch methods.

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


-Original Message-
From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 12:54 PM
To: 'Struts Users Mailing List'
Subject: RE: LookupDispatchAction Question


I would suggest you read up on the usage of the LookupDispatchAction again.
It was not designed to to be used in the way you are trying to use them.

Take a look at this site http://husted.com/struts/index.html. It has some
good suggestions on the correct usage of the action classes that come with
struts.

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:46 PM
To: [EMAIL PROTECTED]
Subject: LookupDispatchAction Question



I am new to Struts and am trying to use the LookupDispatchAction class to
display a page for the first time (i.e. the user is being navigated to this
page from another page).

I have everything setup fine in my struts_config.xml and Struts attempts to
display my page, but was giving the following error:

Request[/lookup] does not contain handler parameter named submit

After researching on the archives, I realized that this message is due to
the fact that the user has not yet clicked any of the submit button on
this page (the page hasn't even been displayed yet). The suggestion on the
archive is to implement something similar to the following in the Action
class which extends LookupDispatchAction:

public ActionForward execute(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
throws Exception
{
if (httpServletRequest.getParameter(actionMapping.getParameter()) == null)
{
return defaultMethod();
}
else
{
return super.execute(actionMapping, actionForm, httpServletRequest,
httpServletResponse);
}
}


My question is what do I return from defaultMethod? I have to return an
ActionForward but I don't want to forward the user anywhere -- I want to
display the page. How do I do this? I guess I could have 2 pages and 2
actions -- one to display the page initially and one to process the page
upon submit -- but that is ugly and I hope not the only solution.





-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

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



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



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


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




RE: LookupDispatchAction Question

2003-02-11 Thread Avexus Incorporated

My login IS NOT a LookupDispatchAction. It is an Action. It is the page that login 
forwards to that is a LookupDispatchAction. But that page never displays because there 
is no value for the submit parameter in this case.
 
 Alvarado, Juan (c) [EMAIL PROTECTED] wrote:Okay this is one way of 
doing this:

Your login action in this case should not be a LookupDispatchAction. It
should be a sub-class of the struts Action class. LookupDispatchAction has
another intended usage. 

When your user is authenticated (from the login action), you will forward to
the jsp that is suppose to contain all the submit buttons. Assuming
everything else is configured properly, your JSP should then display
properly.


-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:11 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



After the user logs on they are supposed to go to a lookup page. This page
will have no data on it when it is first displayed. This page, which is a
JSP of course, will have a form and more than 1 submit button.
The problem is that the page can't even be displayed because when Struts
calls my Action class (which extends LookupDispatchAction), there is no
value for the submit button. That is, Struts doesn't know which of my
methods to invoke and throws an exception (the error message from my first
email). This is because the user hasn't clicked any of the submit buttons
yet -- they haven't even seen the page.
How do I get the page to display initially?
Alvarado, Juan (c) wrote:Okay can you
please tell me what exactly it is you're trying to
accomplish??? I don't quite get what your ultimate goal is.

Thanks

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:01 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



I looked at that site. That is where I found out about LookupDispatchAction.
But there is nothing that I can find that tells me how to initially display
a page that will subsequently use a dispatch action. In fact, I can't figure
out how to do it in Struts at all without either having a plain .html page
as the inital page or having 2 .jsp pages. Niether solution is good.
Alvarado, Juan (c) wrote:I would suggest
you read up on the usage of the LookupDispatchAction again.
It was not designed to to be used in the way you are trying to use them.

Take a look at this site http://husted.com/struts/index.html. It has some
good suggestions on the correct usage of the action classes that come with
struts.

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:46 PM
To: [EMAIL PROTECTED]
Subject: LookupDispatchAction Question



I am new to Struts and am trying to use the LookupDispatchAction class to
display a page for the first time (i.e. the user is being navigated to this
page from another page).

I have everything setup fine in my struts_config.xml and Struts attempts to
display my page, but was giving the following error:

Request[/lookup] does not contain handler parameter named submit

After researching on the archives, I realized that this message is due to
the fact that the user has not yet clicked any of the submit button on
this page (the page hasn't even been displayed yet). The suggestion on the
archive is to implement something similar to the following in the Action
class which extends LookupDispatchAction:

public ActionForward execute(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
throws Exception
{
if (httpServletRequest.getParameter(actionMapping.getParameter()) == null)
{
return defaultMethod();
}
else
{
return super.execute(actionMapping, actionForm, httpServletRequest,
httpServletResponse);
}
}


My question is what do I return from defaultMethod? I have to return an
ActionForward but I don't want to forward the user anywhere -- I want to
display the page. How do I do this? I guess I could have 2 pages and 2
actions -- one to display the page initially and one to process the page
upon submit -- but that is ugly and I hope not the only solution.





-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

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



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

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



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

-
To unsubscribe, e-mail: 

Re: Strange Validator Problem

2003-02-11 Thread Robert Morse
It was 1.4.1_01, but I have switched to 1.4.0_03-b04 and the problem is
still present.  I appreciate your help; do you have any other
suggestion?  Thanks!



On Tue, 2003-02-11 at 02:09, Iris wrote:
 What is your version of java ?
 I had the same problem with j2sdk1.4.1_01 but I work fine with j2sdk1.4.0.
 
 Iris
 
 Robert Morse wrote:
 
 Hello,
 I have a very strange validator problem with 1.1-b3.  
 
 I have a simple logon form (ValidatorForm) that accepts a userid and
 password.  In my validation.xml file I'm specifying that the fields are
 required.  The struts-config.xml file has the validate=true.  When I
 execute this, I get the logon.jsp page successfully displayed, but if I
 leave the fields blank and submit, no errors occur, but a blank white
 display shows up in the browser.
 
 Now the strange part, if I change validate=false, check for
 non-existent password or userid in the Action, and use errors.add() to
 add the appropriate errors; this time when I submit with the fields
 blank, I get the form re-displayed with errors.  The 'input' key remains
 the same between both versions.
 
 If I set up a log4.properties file with the level set to DEBUG, I can
 see that the resource keys for the error messages are being loaded, and
 I get a message saying that the validation failed -- so I know the
 validator is being called.  The last message I get tells me:  Validation
 failed, returning to '/logon/logon.jsp'.  But all I get after that is a
 blank white page, yet the '/logon/logon.jsp' is the correct path and
 works when validate='false'.
 
 Any ideas?
 
 Thanks!
 
 -robert.
   
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
All motion is not progress, and all movement is not forward (anon)
Key ID:  F0533BB6
Finger Print:  7F07 D9CD 266F 29D4 3616  164D F055 6E4C F053 3BB6



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




[OT] - ServletContextListener

2003-02-11 Thread John Espey

Does anybody know if the container should be setting the contextClassLoader
on the current thread when it loads the various listeners configured in
web.xml?

The particular behavior we're seeing is that the contextClassLoader for the
thread launching our listeners (both context and session) is not a weblogic
specific loader (whereas other classloaders are).  This causes a problem for
us because we have our own commons log factory that we use, but because we
specify this in a property file in our web app, the listeners are using a
contextClassLoader that doesn't have access to the web app, which causes
commons to default to using simpleLog or whatever the default is.


I know a lot of you are familiar with the Servlet spec (or wrote it in some
cases ;)Can anybody tell me if this might be a bug in weblogic or if it
is the expected behavior (or best case, point me to some documentation that
will explain the way this should work in a web container)


Thanks


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




RE: LookupDispatchAction Question

2003-02-11 Thread Alvarado, Juan (c)
Can you show me the snippet of code you are using to forward to the JSP from
the login action.

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:25 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



My login IS NOT a LookupDispatchAction. It is an Action. It is the page that
login forwards to that is a LookupDispatchAction. But that page never
displays because there is no value for the submit parameter in this case.
 
 Alvarado, Juan (c) [EMAIL PROTECTED] wrote:Okay this is
one way of doing this:

Your login action in this case should not be a LookupDispatchAction. It
should be a sub-class of the struts Action class. LookupDispatchAction has
another intended usage. 

When your user is authenticated (from the login action), you will forward to
the jsp that is suppose to contain all the submit buttons. Assuming
everything else is configured properly, your JSP should then display
properly.


-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:11 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



After the user logs on they are supposed to go to a lookup page. This page
will have no data on it when it is first displayed. This page, which is a
JSP of course, will have a form and more than 1 submit button.
The problem is that the page can't even be displayed because when Struts
calls my Action class (which extends LookupDispatchAction), there is no
value for the submit button. That is, Struts doesn't know which of my
methods to invoke and throws an exception (the error message from my first
email). This is because the user hasn't clicked any of the submit buttons
yet -- they haven't even seen the page.
How do I get the page to display initially?
Alvarado, Juan (c) wrote:Okay can you
please tell me what exactly it is you're trying to
accomplish??? I don't quite get what your ultimate goal is.

Thanks

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:01 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



I looked at that site. That is where I found out about LookupDispatchAction.
But there is nothing that I can find that tells me how to initially display
a page that will subsequently use a dispatch action. In fact, I can't figure
out how to do it in Struts at all without either having a plain .html page
as the inital page or having 2 .jsp pages. Niether solution is good.
Alvarado, Juan (c) wrote:I would suggest
you read up on the usage of the LookupDispatchAction again.
It was not designed to to be used in the way you are trying to use them.

Take a look at this site http://husted.com/struts/index.html. It has some
good suggestions on the correct usage of the action classes that come with
struts.

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:46 PM
To: [EMAIL PROTECTED]
Subject: LookupDispatchAction Question



I am new to Struts and am trying to use the LookupDispatchAction class to
display a page for the first time (i.e. the user is being navigated to this
page from another page).

I have everything setup fine in my struts_config.xml and Struts attempts to
display my page, but was giving the following error:

Request[/lookup] does not contain handler parameter named submit

After researching on the archives, I realized that this message is due to
the fact that the user has not yet clicked any of the submit button on
this page (the page hasn't even been displayed yet). The suggestion on the
archive is to implement something similar to the following in the Action
class which extends LookupDispatchAction:

public ActionForward execute(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
throws Exception
{
if (httpServletRequest.getParameter(actionMapping.getParameter()) == null)
{
return defaultMethod();
}
else
{
return super.execute(actionMapping, actionForm, httpServletRequest,
httpServletResponse);
}
}


My question is what do I return from defaultMethod? I have to return an
ActionForward but I don't want to forward the user anywhere -- I want to
display the page. How do I do this? I guess I could have 2 pages and 2
actions -- one to display the page initially and one to process the page
upon submit -- but that is ugly and I hope not the only solution.





-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

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



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

-
To 

Re: Reset button.

2003-02-11 Thread Gus Delgado
This work thanks, here is the code for anyone else who is interested.
script language=JavaScript1.2
function resetForm(myForm)
 {
 for(i=0, n=myForm.elements.length; i n; i++)
   {
   var theElement = myForm.elements[i];
   if (theElement.type == 'text') {
   theElement.value = '';
   }
   }
 }
/script

html:reset onclick=resetForm(this); return false;Reset/html:reset


Gus Delgado wrote:


no, not really, I'll give it a try thank you!

-gus
Durham David Cntr 805CSS/SCBE wrote:


Gus, try going back a few posts to the javascript stuff.  I think 
it's more in line with your original question.  As a test try putting:
input type=reset 
onClick=nameOfYourForm.firstTextField.value='';return false;

on your page.  replace nameOfYourForm and firstTextField with the 
appropriate names.

I think you'll start to see where this is going.

It's not hard, and there isn't a need for server side processing, 
unless there is, well, a need for server side processing.  Is there?  
You haven't mentioned any.

-Dave



 

-Original Message-
From: Gus Delgado [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10, 2003 3:14 PM
To: Struts Users Mailing List
Subject: Re: Reset button.


isReset() who's method is that, action, form?

I can't seem to find it.

-Gus
Jacky Kimmel wrote:

  

if (isReset(httpServletRequest)){
   return actionMapping.findForward(Constants.D_RESET);
   }

As you can see, I had a constants class that I refer to.  

Also, in the struts-config.xml I have mapped this forward back to 
the original jsp.  I put this snippet of code in the beginning of 
each action class I have.

Gus Delgado [EMAIL PROTECTED] wrote:how do I 

check for the reset in the Action?
  

Jacky Kimmel wrote:





It sounds like your action does not check to see if the   


reset was clicked or not. What I have done is do this check at the 
beginning of all my action classes. If the reset has been selected 
then the action is redirected to the empty jsp. It sounds like your 
action mapping may also not be corrected in your config file.
  

Gus Delgado wrote:I have created a JSP with a Submit and   


Reset button both using the   

and tags. When I first render the page the reset works just fine, 
but if I hit the submit button and   


the page gets   

render again, I try to hit the reset and the form does not   


get clear   

anymore, the reset button does not work anymore, any ideas   


of why this   

is happening? any ways to fix it?

thank you

-Gus



  


-
  

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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


 
  


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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now





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


  


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


.

 




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


.





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




RE: LookupDispatchAction Question

2003-02-11 Thread Brandon Goodin
I would like to say that the LookupDispatchAction is used to handle the
organization and grouping of Actions into methods that work in concert. It
is mainly organizational. It sounds to me that Mr. Avexus Incorporated ;) is
using it quite within it's means. But, he is quite vague in his
implementation and to be honest I don't think we should start telling him
how to implement his system. We really should answer the question first and
when it is clear that he is breaking the hard fast rules of struts... then
tell him he's wacked out and needs to change :-D.

Peace and Granola,
Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws


-Original Message-
From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 1:20 PM
To: 'Struts Users Mailing List'
Subject: RE: LookupDispatchAction Question


Okay this is one way of doing this:

Your login action in this case should not be a LookupDispatchAction. It
should be a sub-class of the struts Action class. LookupDispatchAction has
another intended usage.

When your user is authenticated (from the login action), you will forward to
the jsp that is suppose to contain all the submit buttons. Assuming
everything else is configured properly, your JSP should then display
properly.


-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:11 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



After the user logs on they are supposed to go to a lookup page. This page
will have no data on it when it is first displayed. This page, which is a
JSP of course, will have a form and more than 1 submit button.
The problem is that the page can't even be displayed because when Struts
calls my Action class (which extends LookupDispatchAction), there is no
value for the submit button. That is, Struts doesn't know which of my
methods to invoke and throws an exception (the error message from my first
email).  This is because the user hasn't clicked any of the submit buttons
yet -- they haven't even seen the page.
How do I get the page to display initially?
 Alvarado, Juan (c) [EMAIL PROTECTED] wrote:Okay can you
please tell me what exactly it is you're trying to
accomplish??? I don't quite get what your ultimate goal is.

Thanks

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:01 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



I looked at that site. That is where I found out about LookupDispatchAction.
But there is nothing that I can find that tells me how to initially display
a page that will subsequently use a dispatch action. In fact, I can't figure
out how to do it in Struts at all without either having a plain .html page
as the inital page or having 2 .jsp pages. Niether solution is good.
Alvarado, Juan (c) wrote:I would suggest
you read up on the usage of the LookupDispatchAction again.
It was not designed to to be used in the way you are trying to use them.

Take a look at this site http://husted.com/struts/index.html. It has some
good suggestions on the correct usage of the action classes that come with
struts.

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:46 PM
To: [EMAIL PROTECTED]
Subject: LookupDispatchAction Question



I am new to Struts and am trying to use the LookupDispatchAction class to
display a page for the first time (i.e. the user is being navigated to this
page from another page).

I have everything setup fine in my struts_config.xml and Struts attempts to
display my page, but was giving the following error:

Request[/lookup] does not contain handler parameter named submit

After researching on the archives, I realized that this message is due to
the fact that the user has not yet clicked any of the submit button on
this page (the page hasn't even been displayed yet). The suggestion on the
archive is to implement something similar to the following in the Action
class which extends LookupDispatchAction:

public ActionForward execute(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
throws Exception
{
if (httpServletRequest.getParameter(actionMapping.getParameter()) == null)
{
return defaultMethod();
}
else
{
return super.execute(actionMapping, actionForm, httpServletRequest,
httpServletResponse);
}
}


My question is what do I return from defaultMethod? I have to return an
ActionForward but I don't want to forward the user anywhere -- I want to
display the page. How do I do this? I guess I could have 2 pages and 2
actions -- one to display the page initially and one to process the page
upon submit -- but that is ugly and I hope not the only solution.





-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for 

RE: LookupDispatchAction Question

2003-02-11 Thread Brandon Goodin
:-D :-D :-D

Juan was right. Why are you forwarding to another action from an action.
I'll get out of this discussion cuz I think Juan has got it.

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


-Original Message-
From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 1:33 PM
To: 'Struts Users Mailing List'
Subject: RE: LookupDispatchAction Question


Can you show me the snippet of code you are using to forward to the JSP from
the login action.

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:25 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



My login IS NOT a LookupDispatchAction. It is an Action. It is the page that
login forwards to that is a LookupDispatchAction. But that page never
displays because there is no value for the submit parameter in this case.

 Alvarado, Juan (c) [EMAIL PROTECTED] wrote:Okay this is
one way of doing this:

Your login action in this case should not be a LookupDispatchAction. It
should be a sub-class of the struts Action class. LookupDispatchAction has
another intended usage.

When your user is authenticated (from the login action), you will forward to
the jsp that is suppose to contain all the submit buttons. Assuming
everything else is configured properly, your JSP should then display
properly.


-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:11 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



After the user logs on they are supposed to go to a lookup page. This page
will have no data on it when it is first displayed. This page, which is a
JSP of course, will have a form and more than 1 submit button.
The problem is that the page can't even be displayed because when Struts
calls my Action class (which extends LookupDispatchAction), there is no
value for the submit button. That is, Struts doesn't know which of my
methods to invoke and throws an exception (the error message from my first
email). This is because the user hasn't clicked any of the submit buttons
yet -- they haven't even seen the page.
How do I get the page to display initially?
Alvarado, Juan (c) wrote:Okay can you
please tell me what exactly it is you're trying to
accomplish??? I don't quite get what your ultimate goal is.

Thanks

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:01 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



I looked at that site. That is where I found out about LookupDispatchAction.
But there is nothing that I can find that tells me how to initially display
a page that will subsequently use a dispatch action. In fact, I can't figure
out how to do it in Struts at all without either having a plain .html page
as the inital page or having 2 .jsp pages. Niether solution is good.
Alvarado, Juan (c) wrote:I would suggest
you read up on the usage of the LookupDispatchAction again.
It was not designed to to be used in the way you are trying to use them.

Take a look at this site http://husted.com/struts/index.html. It has some
good suggestions on the correct usage of the action classes that come with
struts.

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:46 PM
To: [EMAIL PROTECTED]
Subject: LookupDispatchAction Question



I am new to Struts and am trying to use the LookupDispatchAction class to
display a page for the first time (i.e. the user is being navigated to this
page from another page).

I have everything setup fine in my struts_config.xml and Struts attempts to
display my page, but was giving the following error:

Request[/lookup] does not contain handler parameter named submit

After researching on the archives, I realized that this message is due to
the fact that the user has not yet clicked any of the submit button on
this page (the page hasn't even been displayed yet). The suggestion on the
archive is to implement something similar to the following in the Action
class which extends LookupDispatchAction:

public ActionForward execute(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
throws Exception
{
if (httpServletRequest.getParameter(actionMapping.getParameter()) == null)
{
return defaultMethod();
}
else
{
return super.execute(actionMapping, actionForm, httpServletRequest,
httpServletResponse);
}
}


My question is what do I return from defaultMethod? I have to return an
ActionForward but I don't want to forward the user anywhere -- I want to
display the page. How do I do this? I guess I could have 2 pages and 2
actions -- one to display the page initially and one to process the page
upon submit -- but that is ugly and I hope not the only 

Re: RE: need Help, I have been struggling for days. (collectionsandhtml:select

2003-02-11 Thread cjeness
Scott,

Have you verified that your struts-config file is correct.  In particular, does the 
action associated with the submit have the correct form bean name and also that the 
scope is the same as the scope used in the action which displayed the form.

Cindy Jeness
 
 From: Scott Power [EMAIL PROTECTED]
 Date: 2003/02/11 Tue PM 03:17:42 EST
 To: [EMAIL PROTECTED]
 Subject: RE: need Help, I have been struggling for days. (collections
   andhtml:select)
 
 Thanks for your reply, but I guess I forgot to mention that my drop
 menus work and the info in the collection shows up, but on submit it
 says that the bean can not be found.  I figure its pretty strange since
 the info is taken from the same bean on form creation. Got any more
 ideas, I'd love to hear them.
 
 Thanks for your suggestion.
 
 Scott
 
  [EMAIL PROTECTED] 02/11/03 03:43PM 
 I am new to struts but when I used the select with options tag I
 created 2 equal size vectors (labels, values)the jsp was
 
 td
   html:select  name=incidentForm  property=selectedUnsafe  
   html:options name=incidentForm property=unsafeValues
 labelName=incidentForm 
   labelProperty=unsafeLabels /
   /html:select/TD
 
 or, in another case I used the iterate tag to create a list:
 
 logic:iterate id=test 
   name=incidentForm
   property=unsafe
   type=GeneralForm
 
   tr
 tdhtml:submit property=removeUnsafe value=Remove //td
 tdbean:write name=test property=desc filter=false//td
 tdhtml:hidden name=test property=id //td
   /tr   
 /logic:iterate
 
 Don't know if this is the correct way or not; but it worked for me !!
   
 
 -Original Message-
 From: Scott Power [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, February 11, 2003 2:18 PM
 To: [EMAIL PROTECTED] 
 Subject: need Help, I have been struggling for days. (collections
 andhtml:select)
 
 
 I am trying to do something I have done many times before
 
 I have a collection of objects which I want to use in a drop down menu
 for the user.  
 I have a vector that contains (int ids,Object ) 
 
 In the object bean I have methods that get/set the values, for example
 
 
 public String getCriteriaName(){...}
 
 In my jsp I have several text fields and I am able to get the values
 of
 them in my action bean. This criteria is the only value I am having
 trouble with. I get a Cannot find bean under name criteriaList.  I
 have
 done this before with vectors of similar structure and I am really
 confused.
 
 html:select property=criteriaName
 html:options
 collection=criteriaList 
 property=id 
labelProperty=criteriaName/
 /html:select
 
 
 In my action form bean I make objects and put them in a vector then I
 request.setAttribute/session.setAttribute depending on scope.
 
 All I want to do is to get the string value back from what the user
 selects.
 
 If anybody can Help, it would be great.
 
 Thanks in Advance.
 
 Scott Power
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] 
 For additional commands, e-mail: [EMAIL PROTECTED] 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] 
 For additional commands, e-mail: [EMAIL PROTECTED] 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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




[OT] Resin 2.1.6 doesn't like resource-env-ref

2003-02-11 Thread Sri Sankaran
I am having trouble deploying to Resin 2.1.6.  When I try to access the application 
URL, I get the response:

500 Servlet Exception
C:\resin-2.1.6\webapps\qs\WEB-INF\web.xml:102: unknown element unknown element 
`resource-env-ref' in web-app

I checked the web-app_2_3.dtd and resource-env-ref *is* allowed.

Any thoughts on resolving this matter?

Sri
P.S.
Resin 2.1.6 is a servlet 2.3 and JSP 1.2 engine
P.P.S
Tomcat 4.1.18 doesn't have any such heartache with my web.xml



RE: LookupDispatchAction Question

2003-02-11 Thread Avexus Incorporated

If I code the following: 
 
public class LookupAction  extends LookupDispatchAction
{ 
 public ActionForward execute(ActionMapping actionMapping,
 ActionForm actionForm,
 HttpServletRequest httpServletRequest,
 HttpServletResponse httpServletResponse)
   throws Exception
 {
  if (httpServletRequest.getParameter(actionMapping.getParameter()) == null)
  {
   return super.unspecified(actionMapping, actionForm, httpServletRequest,
  httpServletResponse);
  }
  else
  {
   return super.execute(actionMapping, actionForm, httpServletRequest,
 httpServletResponse);
  }
 } 
 
and forward to my JSP without any value for submit, then I get the error message: 
 
Request[/lookup] does not contain handler parameter named submit. 
 
Here is my action mapping from struts_config:
 

action path=/lookup type=com.avexus.client.action.lookupAction name=lookupForm 
scope=request input=/lookup.jsp unknown=false validate=true 
parameter=submit/

 Brandon Goodin [EMAIL PROTECTED] wrote: I would like to say that the 
LookupDispatchAction is used to handle the
organization and grouping of Actions into methods that work in concert. It
is mainly organizational. It sounds to me that Mr. Avexus Incorporated ;) is
using it quite within it's means. But, he is quite vague in his
implementation and to be honest I don't think we should start telling him
how to implement his system. We really should answer the question first and
when it is clear that he is breaking the hard fast rules of struts... then
tell him he's wacked out and needs to change :-D.

Peace and Granola,
Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws


-Original Message-
From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 1:20 PM
To: 'Struts Users Mailing List'
Subject: RE: LookupDispatchAction Question


Okay this is one way of doing this:

Your login action in this case should not be a LookupDispatchAction. It
should be a sub-class of the struts Action class. LookupDispatchAction has
another intended usage.

When your user is authenticated (from the login action), you will forward to
the jsp that is suppose to contain all the submit buttons. Assuming
everything else is configured properly, your JSP should then display
properly.


-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:11 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



After the user logs on they are supposed to go to a lookup page. This page
will have no data on it when it is first displayed. This page, which is a
JSP of course, will have a form and more than 1 submit button.
The problem is that the page can't even be displayed because when Struts
calls my Action class (which extends LookupDispatchAction), there is no
value for the submit button. That is, Struts doesn't know which of my
methods to invoke and throws an exception (the error message from my first
email). This is because the user hasn't clicked any of the submit buttons
yet -- they haven't even seen the page.
How do I get the page to display initially?
Alvarado, Juan (c) wrote:Okay can you
please tell me what exactly it is you're trying to
accomplish??? I don't quite get what your ultimate goal is.

Thanks

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:01 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



I looked at that site. That is where I found out about LookupDispatchAction.
But there is nothing that I can find that tells me how to initially display
a page that will subsequently use a dispatch action. In fact, I can't figure
out how to do it in Struts at all without either having a plain .html page
as the inital page or having 2 .jsp pages. Niether solution is good.
Alvarado, Juan (c) wrote:I would suggest
you read up on the usage of the LookupDispatchAction again.
It was not designed to to be used in the way you are trying to use them.

Take a look at this site http://husted.com/struts/index.html. It has some
good suggestions on the correct usage of the action classes that come with
struts.

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:46 PM
To: [EMAIL PROTECTED]
Subject: LookupDispatchAction Question



I am new to Struts and am trying to use the LookupDispatchAction class to
display a page for the first time (i.e. the user is being navigated to this
page from another page).

I have everything setup fine in my struts_config.xml and Struts attempts to
display my page, but was giving the following error:

Request[/lookup] does not contain handler parameter named submit

After researching on the archives, I realized that this message is due to
the fact that the user has not yet clicked any of the submit button on
this page (the page hasn't 

Re: RE: need Help, I have been struggling for days.(collectionsandhtml:select

2003-02-11 Thread Scott Power
Thanks to everyone, I found the problem, I had my forward going to a jsp
and not my action.  Thanks everyone.

Scott

 [EMAIL PROTECTED] 02/11/03 04:43PM 
Scott,

Have you verified that your struts-config file is correct.  In
particular, does the action associated with the submit have the correct
form bean name and also that the scope is the same as the scope used in
the action which displayed the form.

Cindy Jeness
 
 From: Scott Power [EMAIL PROTECTED]
 Date: 2003/02/11 Tue PM 03:17:42 EST
 To: [EMAIL PROTECTED]
 Subject: RE: need Help, I have been struggling for days.
(collections
   andhtml:select)
 
 Thanks for your reply, but I guess I forgot to mention that my drop
 menus work and the info in the collection shows up, but on submit it
 says that the bean can not be found.  I figure its pretty strange
since
 the info is taken from the same bean on form creation. Got any more
 ideas, I'd love to hear them.
 
 Thanks for your suggestion.
 
 Scott
 
  [EMAIL PROTECTED] 02/11/03 03:43PM 
 I am new to struts but when I used the select with options tag I
 created 2 equal size vectors (labels, values)the jsp was
 
 td
   html:select  name=incidentForm  property=selectedUnsafe  
   html:options name=incidentForm property=unsafeValues
 labelName=incidentForm 
   labelProperty=unsafeLabels /
   /html:select/TD
 
 or, in another case I used the iterate tag to create a list:
 
 logic:iterate id=test 
   name=incidentForm
   property=unsafe
   type=GeneralForm
 
   tr
 tdhtml:submit property=removeUnsafe value=Remove //td
 tdbean:write name=test property=desc
filter=false//td
 tdhtml:hidden name=test property=id //td
   /tr   
 /logic:iterate
 
 Don't know if this is the correct way or not; but it worked for me
!!


 
 -Original Message-
 From: Scott Power [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, February 11, 2003 2:18 PM
 To: [EMAIL PROTECTED] 
 Subject: need Help, I have been struggling for days. (collections
 andhtml:select)
 
 
 I am trying to do something I have done many times before
 
 I have a collection of objects which I want to use in a drop down
menu
 for the user.  
 I have a vector that contains (int ids,Object ) 
 
 In the object bean I have methods that get/set the values, for
example
 
 
 public String getCriteriaName(){...}
 
 In my jsp I have several text fields and I am able to get the values
 of
 them in my action bean. This criteria is the only value I am having
 trouble with. I get a Cannot find bean under name criteriaList.  I
 have
 done this before with vectors of similar structure and I am really
 confused.
 
 html:select property=criteriaName
 html:options
 collection=criteriaList 
 property=id 
labelProperty=criteriaName/
 /html:select
 
 
 In my action form bean I make objects and put them in a vector then
I
 request.setAttribute/session.setAttribute depending on scope.
 
 All I want to do is to get the string value back from what the user
 selects.
 
 If anybody can Help, it would be great.
 
 Thanks in Advance.
 
 Scott Power
 
 
 

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

 
 
 

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

 
 

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

 
 


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


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




RE: LookupDispatchAction Question

2003-02-11 Thread Avexus Incorporated
should be nothing wrong with that. i do that all the time, except this is the first 
time that i've tried to use LookupDispatchAction as I just came across it.
 
 Brandon Goodin [EMAIL PROTECTED] wrote::-D :-D :-D

Juan was right. Why are you forwarding to another action from an action.
I'll get out of this discussion cuz I think Juan has got it.

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


-Original Message-
From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 1:33 PM
To: 'Struts Users Mailing List'
Subject: RE: LookupDispatchAction Question


Can you show me the snippet of code you are using to forward to the JSP from
the login action.

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:25 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



My login IS NOT a LookupDispatchAction. It is an Action. It is the page that
login forwards to that is a LookupDispatchAction. But that page never
displays because there is no value for the submit parameter in this case.

Alvarado, Juan (c) wrote:Okay this is
one way of doing this:

Your login action in this case should not be a LookupDispatchAction. It
should be a sub-class of the struts Action class. LookupDispatchAction has
another intended usage.

When your user is authenticated (from the login action), you will forward to
the jsp that is suppose to contain all the submit buttons. Assuming
everything else is configured properly, your JSP should then display
properly.


-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:11 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



After the user logs on they are supposed to go to a lookup page. This page
will have no data on it when it is first displayed. This page, which is a
JSP of course, will have a form and more than 1 submit button.
The problem is that the page can't even be displayed because when Struts
calls my Action class (which extends LookupDispatchAction), there is no
value for the submit button. That is, Struts doesn't know which of my
methods to invoke and throws an exception (the error message from my first
email). This is because the user hasn't clicked any of the submit buttons
yet -- they haven't even seen the page.
How do I get the page to display initially?
Alvarado, Juan (c) wrote:Okay can you
please tell me what exactly it is you're trying to
accomplish??? I don't quite get what your ultimate goal is.

Thanks

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:01 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



I looked at that site. That is where I found out about LookupDispatchAction.
But there is nothing that I can find that tells me how to initially display
a page that will subsequently use a dispatch action. In fact, I can't figure
out how to do it in Struts at all without either having a plain .html page
as the inital page or having 2 .jsp pages. Niether solution is good.
Alvarado, Juan (c) wrote:I would suggest
you read up on the usage of the LookupDispatchAction again.
It was not designed to to be used in the way you are trying to use them.

Take a look at this site http://husted.com/struts/index.html. It has some
good suggestions on the correct usage of the action classes that come with
struts.

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:46 PM
To: [EMAIL PROTECTED]
Subject: LookupDispatchAction Question



I am new to Struts and am trying to use the LookupDispatchAction class to
display a page for the first time (i.e. the user is being navigated to this
page from another page).

I have everything setup fine in my struts_config.xml and Struts attempts to
display my page, but was giving the following error:

Request[/lookup] does not contain handler parameter named submit

After researching on the archives, I realized that this message is due to
the fact that the user has not yet clicked any of the submit button on
this page (the page hasn't even been displayed yet). The suggestion on the
archive is to implement something similar to the following in the Action
class which extends LookupDispatchAction:

public ActionForward execute(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
throws Exception
{
if (httpServletRequest.getParameter(actionMapping.getParameter()) == null)
{
return defaultMethod();
}
else
{
return super.execute(actionMapping, actionForm, httpServletRequest,
httpServletResponse);
}
}


My question is what do I return from defaultMethod? I have to return an
ActionForward but I don't want to forward the user anywhere -- I want to
display the page. 

Adding a new object to a collection in an actionform

2003-02-11 Thread JONATHAN PHILIP HOLLOWAY
Does anybody know how to add a new Object to a collection
that exists in an ActionForm.

public class MonkeyForm extends Actionform {
public ArrayList bananas;

...
...

public void setAddBananaForMonkey(Banana newBanana) {
bananas.add(newBanana)
}
}

I know I can create an empty object just by doing this:

nested:submit onclick=addmonkey.do 
   property=addBananaForMonkey 
   value=Add New Banana For Monkey/

But how do I go about creating a new banana with initialized properties
that come from a nwe form on another page.  Is it possible?
I need the new form because I want the user to enter the details for 
the banana BEFORE it is created as blank in the actionform.  
It would be ideal if I could enter these new details in a popup window 
of some sort but how do I go about doing this,

Many thanks in advance,
Jon Holloway.


*-*
 Jonathan Holloway,   
 Dept. Of Computer Science,   
 Aberystwyth University, 
 Ceredigion,  
 West Wales,  
 SY23 3DV.
  
 07968 902140 
 http://users.aber.ac.uk/jph8 
*-*



Re: [OT] - ServletContextListener

2003-02-11 Thread Craig R. McClanahan


On Tue, 11 Feb 2003, John Espey wrote:

 Date: Tue, 11 Feb 2003 14:25:58 -0600
 From: John Espey [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: [OT]  -   ServletContextListener


 Does anybody know if the container should be setting the contextClassLoader
 on the current thread when it loads the various listeners configured in
 web.xml?

 The particular behavior we're seeing is that the contextClassLoader for the
 thread launching our listeners (both context and session) is not a weblogic
 specific loader (whereas other classloaders are).  This causes a problem for
 us because we have our own commons log factory that we use, but because we
 specify this in a property file in our web app, the listeners are using a
 contextClassLoader that doesn't have access to the web app, which causes
 commons to default to using simpleLog or whatever the default is.


Yes, listeners should be configured with the thread context class loader
set to the webapp's class loader.

Note that the specific requirement to provide a per-thread context class
loader at all is in the J2EE Platform Spec (Section J2EE.6.2.4.8), not in
the servlet spec.  Although there is no specific mention of listeners (as
opposed to any other class), it makes no sense to make it available for
some components (servlets and filters) and not others.


 I know a lot of you are familiar with the Servlet spec (or wrote it in some
 cases ;)Can anybody tell me if this might be a bug in weblogic or if it
 is the expected behavior (or best case, point me to some documentation that
 will explain the way this should work in a web container)


I would report it a WebLogic bug.  ISTR a similar sounding bug in Tomcat
4.1.x as well, but *think* that that's been fixed.


 Thanks


Craig


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




RE: Question on embedding tags

2003-02-11 Thread mike . witt
Thanks, worked perfectly and it was easier than adding an attribute to my
domain layer bean.

Mike

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:22 PM
To: Struts Users Mailing List
Subject: Re: Question on embedding tags


or:

   size=%=size.toString()%/
 ^^^

--
James Mitchell





- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 11, 2003 3:17 PM
Subject: RE: Question on embedding tags


 Sri,

 Thanks for the idea.  I think I need to add a type attribute to the
 bean:define to make it a string.

 Mike

 -Original Message-
 From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 1:00 PM
 To: Struts Users Mailing List
 Subject: RE: Question on embedding tags


 Here's one way:

 Define a bean called, say size as follows:
 bean:define
 id=size
   name=editList
   property=fieldLength/

 Then use it in your html:text :

 html:text
   name=editList
   property=value
   size=%=size%/

 Sri
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 12:55 PM
 To: [EMAIL PROTECTED]
 Subject: Question on embedding tags


 I would like to get the following to work:

 html:text name=editList property=value size=bean:write
 name=editList property=fieldLength / /

 Unfortunately, I get a jsp.error.attribute.noequal error when I do this.
 I'm assuming that there is a way to delimit this properly, but I haven't
 found it.  Anybody know how I can embed a bean attribute
 (editList.fieldLength) into the size property?

 Thanks for your help,

 Mike Witt

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


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

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




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

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




RE: LookupDispatchAction Question

2003-02-11 Thread Alvarado, Juan (c)
From a design point of view, forwarding from one action to another action
should be examined closely. It should be the exception rather than the rule.


I would suggest you do the following. From your login action just forward to
your JSP; don't forward to the LookupDispatchAction. This should solve your
problem.


-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:48 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question


should be nothing wrong with that. i do that all the time, except this is
the first time that i've tried to use LookupDispatchAction as I just came
across it.
 
 Brandon Goodin [EMAIL PROTECTED] wrote::-D :-D :-D

Juan was right. Why are you forwarding to another action from an action.
I'll get out of this discussion cuz I think Juan has got it.

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


-Original Message-
From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 1:33 PM
To: 'Struts Users Mailing List'
Subject: RE: LookupDispatchAction Question


Can you show me the snippet of code you are using to forward to the JSP from
the login action.

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:25 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



My login IS NOT a LookupDispatchAction. It is an Action. It is the page that
login forwards to that is a LookupDispatchAction. But that page never
displays because there is no value for the submit parameter in this case.

Alvarado, Juan (c) wrote:Okay this is
one way of doing this:

Your login action in this case should not be a LookupDispatchAction. It
should be a sub-class of the struts Action class. LookupDispatchAction has
another intended usage.

When your user is authenticated (from the login action), you will forward to
the jsp that is suppose to contain all the submit buttons. Assuming
everything else is configured properly, your JSP should then display
properly.


-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:11 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



After the user logs on they are supposed to go to a lookup page. This page
will have no data on it when it is first displayed. This page, which is a
JSP of course, will have a form and more than 1 submit button.
The problem is that the page can't even be displayed because when Struts
calls my Action class (which extends LookupDispatchAction), there is no
value for the submit button. That is, Struts doesn't know which of my
methods to invoke and throws an exception (the error message from my first
email). This is because the user hasn't clicked any of the submit buttons
yet -- they haven't even seen the page.
How do I get the page to display initially?
Alvarado, Juan (c) wrote:Okay can you
please tell me what exactly it is you're trying to
accomplish??? I don't quite get what your ultimate goal is.

Thanks

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:01 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



I looked at that site. That is where I found out about LookupDispatchAction.
But there is nothing that I can find that tells me how to initially display
a page that will subsequently use a dispatch action. In fact, I can't figure
out how to do it in Struts at all without either having a plain .html page
as the inital page or having 2 .jsp pages. Niether solution is good.
Alvarado, Juan (c) wrote:I would suggest
you read up on the usage of the LookupDispatchAction again.
It was not designed to to be used in the way you are trying to use them.

Take a look at this site http://husted.com/struts/index.html. It has some
good suggestions on the correct usage of the action classes that come with
struts.

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:46 PM
To: [EMAIL PROTECTED]
Subject: LookupDispatchAction Question



I am new to Struts and am trying to use the LookupDispatchAction class to
display a page for the first time (i.e. the user is being navigated to this
page from another page).

I have everything setup fine in my struts_config.xml and Struts attempts to
display my page, but was giving the following error:

Request[/lookup] does not contain handler parameter named submit

After researching on the archives, I realized that this message is due to
the fact that the user has not yet clicked any of the submit button on
this page (the page hasn't even been displayed yet). The suggestion on the
archive is to implement something similar to the following in the Action
class which extends LookupDispatchAction:

public ActionForward 

Tag for non box text area on jsp

2003-02-11 Thread Jacky Kimmel
What is the correct tag to be used to create a text line on a jsp without diplaying a 
box?  the html:text  puts a box out.


-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


RE: LookupDispatchAction Question

2003-02-11 Thread Chen, Gin
Okay from what I got:

Login - Lookup

Login is an Action.
Lookup is a LookupDispatchAction.

The problem is that it is forwarding to ur LookupDispatchAction class and
not to you lookup page.

If this is wrong then stop reading ur wasting ur time and I've already
wasted mine.

So I'm assuming that your Login action class has an execute method that
looks like:


execute()
{
  //handle login
  blah...

  return mapping.findForward(success);
}

like most standard struts applications and that ur success is to an action

In addition your forward is defined as such:

forward name=success
 contextRelative=true
 path=/myLookupAction.do
 redirect=true/
which means that it goes to your Lookup dispatch action.

Fine. At this point you have several options one of which is the following:

replace path=/myLookupAction.do (or whatever you have)
with path=/myLookupPage.jsp (to go directly to ur jsp)
-Tim


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




RE: Tag for non box text area on jsp

2003-02-11 Thread Chen, Gin
If you mean that you just want to display the text and not offer the option
to edit it then just use JSTL c:out
or Struts' bean:write
-Tim

-Original Message-
From: Jacky Kimmel [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:54 PM
To: [EMAIL PROTECTED]
Subject: Tag for non box text area on jsp


What is the correct tag to be used to create a text line on a jsp without
diplaying a box?  the html:text  puts a box out.


-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

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




Re: Tag for non box text area on jsp

2003-02-11 Thread Justin Ashworth
You mean like bean:write?  bean:write will output static text if that's
what you're looking for.

- Original Message -
From: Jacky Kimmel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 11, 2003 3:54 PM
Subject: Tag for non box text area on jsp


 What is the correct tag to be used to create a text line on a jsp without
diplaying a box?  the html:text  puts a box out.


 -
 Do you Yahoo!?
 Yahoo! Shopping - Send Flowers for Valentine's Day


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




RE: Nested Tags Problem .... Urgent

2003-02-11 Thread Chen, Gin
not name .. property

name: The name of the JSP bean containing the collection to be iterated (if
property is not specified), or the JSP bean whose property getter returns
the collection to be iterated (if property is specified).

property: Name of the property, of the JSP bean specified by name, whose
getter returns the collection to be iterated.

So it should be:

nested:iterate property=formList

-Original Message-
From: ashokd [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 02, 2002 1:00 PM
To: Struts Users Mailing List; Martin Gross
Subject: Nested Tags Problem  Urgent 


Hi,

I am facing problem with Nested Tags.

I have a method in ActionForm
private ArrayList mFormList = new ArrayList();

public Object[] getFormList() {
return mFormList.toArray();
}
public ArrayList getMyFormList() {
return mFormList
}

public setMyFormList(ArrayList  pFormList) {
this.mFormList = pFormList
}

This ArrayList contian the ValueObjects.

I am getting the instance of ActionForm in another Action Class and setting
this variable (which is invoked before loading this page).

Code in Action class:
MyVO controlVO1 = new MyVO(600,10,100
O,10,1,2/5/1998,12/31/, );
MyVO controlVO1 = new MyVO(600,10,100
O,10,1,2/5/1998,12/31/, );
ArrayList alControl = new ArrayList();

TestForm testForm =
(TestForm)aRequest.getSession().getAttribute(testForm);
if(testForm == null) {
   testForm = new TestForm();
  }
  testForm .setMyFormList(alControl)



JSP
-

nested:iterate name=formList 


I am getting the follwoing exception any suggestions.

Error Message:
Error Code: 500
Target Servlet: null
Error Stack:
java.lang.NullPointerException
 at
org.apache.struts.taglib.nested.NestedPropertyHelper.getNestedProperty(Neste
dPropertyHelper.java:159)
 at
org.apache.struts.taglib.nested.NestedPropertyHelper.getNestedProperty(Neste
dPropertyHelper.java:195)
 at
org.apache.struts.taglib.nested.NestedPropertyHelper.setNestedProperties(Nes
tedPropertyHelper.java:242)
 at
org.apache.struts.taglib.nested.logic.NestedIterateTag.doStartTag(NestedIter
ateTag.java:115)
 at
wspr._wspr_0005fcorrespondence_0005fpage_jsp_7._jspService(_wspr_0005fcorres
pondence_0005fpage_jsp_7.java:113)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:142)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va:300)
 at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:430)
 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:565)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:827)
 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:167)
 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:297)
 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:110)
 at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47
2)
 at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:1012)
 at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:913)
 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebAppRequestDispatcher.java:523)
 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
Dispatcher.java:282)
 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
ispatcher.java:112)
 at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
 at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
 at com.vstl.wspr.WSPRActionServlet.process(WSPRActionServlet.java:49)
 at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:827)
 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:167)
 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:297)
 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:110)
 at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47
2)
 at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:1012)
 at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:913)
 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebAppRequestDispatcher.java:523)
 at

Accessing Properties of DynaValidatorForm from a JSP

2003-02-11 Thread Scott W. Hill
I'm a realtive Struts newbie, and am now retrofitting my first project 
with Validator and dynamic action forms. On one page, I need to compare 
a property from the action form object with a value in another bean. I 
had been using JSTL like this:

c:if test=${category.id == editArticleForm.category}

But this fails now that I've converted to a DynaActionForm. It says 
that it can't find the property. I assume this is because the 
properties are exposed via a get() method rather than getCategory like 
it was in my manually created ActionForm.

What's the best way to do this comparison?

--Scott


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



bean:define concatenation

2003-02-11 Thread Balakrishnan, Vijay
HI,

I have used the following:
bean:define id=medKey name=searchResult property=lastName /

I want to be able to concatenate 2 of these properties from the bean into
the medKey.

i.e. combine last name and firstname into medKey' with a bean:define and
then use the variable. 
bean:define id=medKey name=searchResult property=lastName /
bean:define id=medKey name=searchResult property=firstName /


TIA,
Vijay

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




Re: LookupDispatchAction Question

2003-02-11 Thread Vic Cekvenich


Alvarado, Juan (c) wrote:

From a design point of view, forwarding from one action to another action
should be examined closely. It should be the exception rather than the rule.



-1.
You allways do that, like I have processed this page, go to another page.
.V



I would suggest you do the following. From your login action just forward to
your JSP; don't forward to the LookupDispatchAction. This should solve your
problem.


-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:48 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question


should be nothing wrong with that. i do that all the time, except this is
the first time that i've tried to use LookupDispatchAction as I just came
across it.
 
 Brandon Goodin [EMAIL PROTECTED] wrote::-D :-D :-D

Juan was right. Why are you forwarding to another action from an action.
I'll get out of this discussion cuz I think Juan has got it.

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


-Original Message-
From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 1:33 PM
To: 'Struts Users Mailing List'
Subject: RE: LookupDispatchAction Question


Can you show me the snippet of code you are using to forward to the JSP from
the login action.

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:25 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



My login IS NOT a LookupDispatchAction. It is an Action. It is the page that
login forwards to that is a LookupDispatchAction. But that page never
displays because there is no value for the submit parameter in this case.

Alvarado, Juan (c) wrote:Okay this is
one way of doing this:

Your login action in this case should not be a LookupDispatchAction. It
should be a sub-class of the struts Action class. LookupDispatchAction has
another intended usage.

When your user is authenticated (from the login action), you will forward to
the jsp that is suppose to contain all the submit buttons. Assuming
everything else is configured properly, your JSP should then display
properly.


-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:11 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



After the user logs on they are supposed to go to a lookup page. This page
will have no data on it when it is first displayed. This page, which is a
JSP of course, will have a form and more than 1 submit button.
The problem is that the page can't even be displayed because when Struts
calls my Action class (which extends LookupDispatchAction), there is no
value for the submit button. That is, Struts doesn't know which of my
methods to invoke and throws an exception (the error message from my first
email). This is because the user hasn't clicked any of the submit buttons
yet -- they haven't even seen the page.
How do I get the page to display initially?
Alvarado, Juan (c) wrote:Okay can you
please tell me what exactly it is you're trying to
accomplish??? I don't quite get what your ultimate goal is.

Thanks

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 3:01 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question



I looked at that site. That is where I found out about LookupDispatchAction.
But there is nothing that I can find that tells me how to initially display
a page that will subsequently use a dispatch action. In fact, I can't figure
out how to do it in Struts at all without either having a plain .html page
as the inital page or having 2 .jsp pages. Niether solution is good.
Alvarado, Juan (c) wrote:I would suggest
you read up on the usage of the LookupDispatchAction again.
It was not designed to to be used in the way you are trying to use them.

Take a look at this site http://husted.com/struts/index.html. It has some
good suggestions on the correct usage of the action classes that come with
struts.

-Original Message-
From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:46 PM
To: [EMAIL PROTECTED]
Subject: LookupDispatchAction Question



I am new to Struts and am trying to use the LookupDispatchAction class to
display a page for the first time (i.e. the user is being navigated to this
page from another page).

I have everything setup fine in my struts_config.xml and Struts attempts to
display my page, but was giving the following error:

Request[/lookup] does not contain handler parameter named submit

After researching on the archives, I realized that this message is due to
the fact that the user has not yet clicked any of the submit button on
this page (the page hasn't even been displayed yet). The suggestion on the
archive is to implement something 

Re: bean:define concatenation

2003-02-11 Thread James Mitchell
Have you tried?

bean:define id=medKey
bean:write name=searchResult property=lastName/
bean:write name=searchResult property=lastName/
/bean:define







--
James Mitchell





- Original Message - 
From: Balakrishnan, Vijay [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Tuesday, February 11, 2003 4:07 PM
Subject: bean:define concatenation


 HI,
 
 I have used the following:
 bean:define id=medKey name=searchResult property=lastName /
 
 I want to be able to concatenate 2 of these properties from the bean into
 the medKey.
 
 i.e. combine last name and firstname into medKey' with a bean:define and
 then use the variable. 
 bean:define id=medKey name=searchResult property=lastName /
 bean:define id=medKey name=searchResult property=firstName /
 
 
 TIA,
 Vijay
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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




RE: Accessing Properties of DynaValidatorForm from a JSP

2003-02-11 Thread James Turner


 From: Scott W. Hill [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, February 11, 2003 4:02 PM
 To: [EMAIL PROTECTED]
 Subject: Accessing Properties of DynaValidatorForm from a JSP
 
 
 I had been using JSTL like this:
 
 c:if test=${category.id == editArticleForm.category}
 
 But this fails now that I've converted to a DynaActionForm. It says 
 that it can't find the property. I assume this is because the 
 properties are exposed via a get() method rather than 
 getCategory like 

You need to do:

c:if test=${category.id == editArticleForm.map.category}

James



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




RES: [OT] Resin 2.1.6 doesn't like resource-env-ref

2003-02-11 Thread Marcelo Aita Riss
Hi Sri,

I'm having the same trouble here. Seems to me that it's a resin problem. I
have tried to search some help to fix this problem at www.caucho.com, but
have found nothing until now. You are right about web-app_2_3.dtd, but I
have a web-app_2_2.dtd copy that do not have any reference to a
'resource-env-ref'. I think that resin 2.1.6 use 2_2 to validate web.xml.
The servlet 2.3 specification file (a pdf file) shows both versions (2.2 and
2.3). If you look at version 2.2 there is no reference to 'resource-env-ref'
too. I have no solution to fix this yet. If you find a solution, let me to
know.

I hope it helps,

Marcelo



-Mensagem original-
De: Sri Sankaran [mailto:[EMAIL PROTECTED]]
Enviada em: terca-feira, 11 de fevereiro de 2003 17:42
Para: Struts-User
Assunto: [OT] Resin 2.1.6 doesn't like resource-env-ref


I am having trouble deploying to Resin 2.1.6.  When I try to access the
application URL, I get the response:

500 Servlet Exception
C:\resin-2.1.6\webapps\qs\WEB-INF\web.xml:102: unknown element unknown
element `resource-env-ref' in web-app

I checked the web-app_2_3.dtd and resource-env-ref *is* allowed.

Any thoughts on resolving this matter?

Sri
P.S.
Resin 2.1.6 is a servlet 2.3 and JSP 1.2 engine
P.P.S
Tomcat 4.1.18 doesn't have any such heartache with my web.xml



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




Indexed properties and form

2003-02-11 Thread Samir Shah

Hi,

I have a JSP page that outputs data using a Collection
using the following section

logic:iterate id=lifeBenefit name=lifeBenefits
type=com.quote.dao.BenefitLineItem
indexId=classNum
tr valign=middle class=bg2 
  td height=28 bgcolor=#FF 
table border=0 cellspacing=0 cellpadding=0
  tr 
td 
  html:checkbox  name=lifeBenefit
property=benClsTtl indexed=true/html:checkbox
/td
td class=formtext %=i %/td
% i++; %
  /tr
/table
  /td
 /tr


The above JSP is converted into the following HTML
code

table border=0 cellspacing=0 cellpadding=0
tr 
td 
  input type=text name=lifeBenefit[0].benClsTtl
size=17 value=some EMPLOYEES 
/td
/tr

I am having a problem writing the corresponding
ActionForm, 
the problem is how do I declare the variables to
capture the values entered by the user

I have attempted to write it and here is what I came
up with


public class GotoStep4Form extends ValidatorForm
implements Serializable {



private ArrayList records = null;


private BenefitLineItem [] lifeBenefits;
private String [] benClsTtl;

public ActionErrors validate(
ActionMapping mapping,
HttpServletRequest request) {
ActionErrors errors = super.validate(mapping,
request);

if(errors == null) errors = new ActionErrors();

if (!errors.empty() ) {
HttpSession session = request.getSession();

}

return errors;
}


public BenefitLineItem getLifeBenefit(int index) {
   while(index =records.size() ){
this.records.add(new
BenefitLineItem());
}
  return (BenefitLineItem) records.get(index);
   }
   



/**
 * Gets the benClsTtl
 * @return Returns a String[]
 */
public String[] getBenClsTtl() {
return benClsTtl;
}
/**
 * Sets the benClsTtl
 * @param benClsTtl The benClsTtl to set
 */
public void setBenClsTtl(String[] benClsTtl) {
this.benClsTtl = benClsTtl;
}


/**
 * Sets the lifeBenefit
 * @param lifeBenefit The lifeBenefit to set
 */
public void setLifeBenefit(int index, BenefitLineItem
lifeBenefit) {
this.lifeBenefits[index] = lifeBenefit;
}

public BenefitLineItem[] getLifeBenefits() {
return lifeBenefits;
}

public void setLifeBenefits( BenefitLineItem[] v) {
lifeBenefits = v;
}



}

The above gives me an error :
WebGroup  X Servlet Error: BeanUtils.populate:
java.lang.reflect.InvocationTargetException:
java.lang.NullPointerException
at
com.fdl.quoteweb.actionforms.GotoStep4Form.getLifeBenefit(GotoStep4Form.java:53)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.java:475)
at
org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.java:410)
at
org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:749)
at
org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:780)
at
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:793)
at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:726)
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:978)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:779)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:246)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)


What am I doing Wrong?  How dow I define the variables
in the ActionForm to have Struts populate the data
in the form?

Any help will be appreciated.

Thanks,
Samir

__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

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




RE: bean:define concatenation

2003-02-11 Thread Balakrishnan, Vijay
That worked like a charm.

Thanks.

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 1:12 PM
To: Struts Users Mailing List
Subject: Re: bean:define concatenation


Have you tried?

bean:define id=medKey
bean:write name=searchResult property=lastName/
bean:write name=searchResult property=lastName/
/bean:define







--
James Mitchell





- Original Message - 
From: Balakrishnan, Vijay [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Tuesday, February 11, 2003 4:07 PM
Subject: bean:define concatenation


 HI,
 
 I have used the following:
 bean:define id=medKey name=searchResult property=lastName /
 
 I want to be able to concatenate 2 of these properties from the bean into
 the medKey.
 
 i.e. combine last name and firstname into medKey' with a bean:define and
 then use the variable. 
 bean:define id=medKey name=searchResult property=lastName /
 bean:define id=medKey name=searchResult property=firstName /
 
 
 TIA,
 Vijay
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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

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




RE: LookupDispatchAction Question

2003-02-11 Thread Alvarado, Juan (c)
 -1.
 You allways do that, like I have processed this page, go to another page.
 .V

What exactly do you mean by this comment Vic.

-Juan

-Original Message-
From: Vic Cekvenich [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 4:11 PM
To: [EMAIL PROTECTED]
Subject: Re: LookupDispatchAction Question




Alvarado, Juan (c) wrote:
 From a design point of view, forwarding from one action to another action
 should be examined closely. It should be the exception rather than the
rule.
 

-1.
You allways do that, like I have processed this page, go to another page.
.V

 
 I would suggest you do the following. From your login action just forward
to
 your JSP; don't forward to the LookupDispatchAction. This should solve
your
 problem.
 
 
 -Original Message-
 From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 3:48 PM
 To: Struts Users Mailing List
 Subject: RE: LookupDispatchAction Question
 
 
 should be nothing wrong with that. i do that all the time, except this is
 the first time that i've tried to use LookupDispatchAction as I just came
 across it.
  
  Brandon Goodin [EMAIL PROTECTED] wrote::-D :-D :-D
 
 Juan was right. Why are you forwarding to another action from an action.
 I'll get out of this discussion cuz I think Juan has got it.
 
 Brandon Goodin
 Phase Web and Multimedia
 P (406) 862-2245
 F (406) 862-0354
 [EMAIL PROTECTED]
 http://www.phase.ws
 
 
 -Original Message-
 From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 1:33 PM
 To: 'Struts Users Mailing List'
 Subject: RE: LookupDispatchAction Question
 
 
 Can you show me the snippet of code you are using to forward to the JSP
from
 the login action.
 
 -Original Message-
 From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 3:25 PM
 To: Struts Users Mailing List
 Subject: RE: LookupDispatchAction Question
 
 
 
 My login IS NOT a LookupDispatchAction. It is an Action. It is the page
that
 login forwards to that is a LookupDispatchAction. But that page never
 displays because there is no value for the submit parameter in this
case.
 
 Alvarado, Juan (c) wrote:Okay this is
 one way of doing this:
 
 Your login action in this case should not be a LookupDispatchAction. It
 should be a sub-class of the struts Action class. LookupDispatchAction has
 another intended usage.
 
 When your user is authenticated (from the login action), you will forward
to
 the jsp that is suppose to contain all the submit buttons. Assuming
 everything else is configured properly, your JSP should then display
 properly.
 
 
 -Original Message-
 From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 3:11 PM
 To: Struts Users Mailing List
 Subject: RE: LookupDispatchAction Question
 
 
 
 After the user logs on they are supposed to go to a lookup page. This
page
 will have no data on it when it is first displayed. This page, which is a
 JSP of course, will have a form and more than 1 submit button.
 The problem is that the page can't even be displayed because when Struts
 calls my Action class (which extends LookupDispatchAction), there is no
 value for the submit button. That is, Struts doesn't know which of my
 methods to invoke and throws an exception (the error message from my first
 email). This is because the user hasn't clicked any of the submit buttons
 yet -- they haven't even seen the page.
 How do I get the page to display initially?
 Alvarado, Juan (c) wrote:Okay can you
 please tell me what exactly it is you're trying to
 accomplish??? I don't quite get what your ultimate goal is.
 
 Thanks
 
 -Original Message-
 From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 3:01 PM
 To: Struts Users Mailing List
 Subject: RE: LookupDispatchAction Question
 
 
 
 I looked at that site. That is where I found out about
LookupDispatchAction.
 But there is nothing that I can find that tells me how to initially
display
 a page that will subsequently use a dispatch action. In fact, I can't
figure
 out how to do it in Struts at all without either having a plain .html page
 as the inital page or having 2 .jsp pages. Niether solution is good.
 Alvarado, Juan (c) wrote:I would suggest
 you read up on the usage of the LookupDispatchAction again.
 It was not designed to to be used in the way you are trying to use them.
 
 Take a look at this site http://husted.com/struts/index.html. It has some
 good suggestions on the correct usage of the action classes that come with
 struts.
 
 -Original Message-
 From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 2:46 PM
 To: [EMAIL PROTECTED]
 Subject: LookupDispatchAction Question
 
 
 
 I am new to Struts and am trying to use the LookupDispatchAction class to
 display a page for the first time (i.e. the user is being navigated to
this
 page from another page).
 
 I have 

Re: Accessing Properties of DynaValidatorForm from a JSP

2003-02-11 Thread Scott W. Hill
Excellent! Thanks!

On Tuesday, February 11, 2003, at 01:19 PM, James Turner wrote:


You need to do:

c:if test=${category.id == editArticleForm.map.category}

James


--Scott


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




Re: Indexed properties and form

2003-02-11 Thread Evan Schnell
Samir Shah wrote:


Hi,

I have a JSP page that outputs data using a Collection
using the following section

logic:iterate id=lifeBenefit name=lifeBenefits
	type=com.quote.dao.BenefitLineItem
indexId=classNum
 

Where do you declare i?  I think you need to use

	td class=formtext %=classNum %/td

instead of...

	td class=formtext %=i %/td
	% i++; %

Regards, Evan.




 



--
Evan Schnell, Technical Lead
nVISIA, Twin Cities  Digital Architecture and Construction
7701 France Ave. S, Edina, MN 55435
Voice: 952.837.2577 -- Fax: 952.837.2578 -- Mobile: 612.232.5972




smime.p7s
Description: S/MIME Cryptographic Signature


RE: [OT] - ServletContextListener

2003-02-11 Thread John Espey
Craig,
Upon further inspection, it appears that the Thread initializing our
Listeners has the wrong contextClassLoader, but the thread invoking each
method DOES have the correct loader.  Is there a logical reason you can
think of to explain why BEA did it this way?  This still seems like a bug to
me..
Thanks

 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 2:49 PM
 To: Struts Users Mailing List
 Subject: Re: [OT] - ServletContextListener




 On Tue, 11 Feb 2003, John Espey wrote:

  Date: Tue, 11 Feb 2003 14:25:58 -0600
  From: John Espey [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Subject: [OT]  -   ServletContextListener
 
 
  Does anybody know if the container should be setting the
 contextClassLoader
  on the current thread when it loads the various listeners configured in
  web.xml?
 
  The particular behavior we're seeing is that the
 contextClassLoader for the
  thread launching our listeners (both context and session) is
 not a weblogic
  specific loader (whereas other classloaders are).  This causes
 a problem for
  us because we have our own commons log factory that we use, but
 because we
  specify this in a property file in our web app, the listeners
 are using a
  contextClassLoader that doesn't have access to the web app, which causes
  commons to default to using simpleLog or whatever the default is.
 

 Yes, listeners should be configured with the thread context class loader
 set to the webapp's class loader.

 Note that the specific requirement to provide a per-thread context class
 loader at all is in the J2EE Platform Spec (Section J2EE.6.2.4.8), not in
 the servlet spec.  Although there is no specific mention of listeners (as
 opposed to any other class), it makes no sense to make it available for
 some components (servlets and filters) and not others.

 
  I know a lot of you are familiar with the Servlet spec (or
 wrote it in some
  cases ;)Can anybody tell me if this might be a bug in
 weblogic or if it
  is the expected behavior (or best case, point me to some
 documentation that
  will explain the way this should work in a web container)
 

 I would report it a WebLogic bug.  ISTR a similar sounding bug in Tomcat
 4.1.x as well, but *think* that that's been fixed.

 
  Thanks
 

 Craig


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



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




RE: LookupDispatchAction Question

2003-02-11 Thread Brandon Goodin
He means that you should NEVER chain actions. This is an ongoing debate that
usually results in everyone giving room for exceptional cases. Personally, I
have never chained actions and have found no need too. I use more standard
ways to accomplish processing chains in the biz logic. But, there are those
out there that do find need for it. Until I am in there shoes I'll say, To
each his own.

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


-Original Message-
From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:34 PM
To: 'Struts Users Mailing List'
Subject: RE: LookupDispatchAction Question


 -1.
 You allways do that, like I have processed this page, go to another page.
 .V

What exactly do you mean by this comment Vic.

-Juan

-Original Message-
From: Vic Cekvenich [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 4:11 PM
To: [EMAIL PROTECTED]
Subject: Re: LookupDispatchAction Question




Alvarado, Juan (c) wrote:
 From a design point of view, forwarding from one action to another action
 should be examined closely. It should be the exception rather than the
rule.


-1.
You allways do that, like I have processed this page, go to another page.
.V


 I would suggest you do the following. From your login action just forward
to
 your JSP; don't forward to the LookupDispatchAction. This should solve
your
 problem.


 -Original Message-
 From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 3:48 PM
 To: Struts Users Mailing List
 Subject: RE: LookupDispatchAction Question


 should be nothing wrong with that. i do that all the time, except this is
 the first time that i've tried to use LookupDispatchAction as I just came
 across it.

  Brandon Goodin [EMAIL PROTECTED] wrote::-D :-D :-D

 Juan was right. Why are you forwarding to another action from an action.
 I'll get out of this discussion cuz I think Juan has got it.

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


 -Original Message-
 From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 1:33 PM
 To: 'Struts Users Mailing List'
 Subject: RE: LookupDispatchAction Question


 Can you show me the snippet of code you are using to forward to the JSP
from
 the login action.

 -Original Message-
 From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 3:25 PM
 To: Struts Users Mailing List
 Subject: RE: LookupDispatchAction Question



 My login IS NOT a LookupDispatchAction. It is an Action. It is the page
that
 login forwards to that is a LookupDispatchAction. But that page never
 displays because there is no value for the submit parameter in this
case.

 Alvarado, Juan (c) wrote:Okay this is
 one way of doing this:

 Your login action in this case should not be a LookupDispatchAction. It
 should be a sub-class of the struts Action class. LookupDispatchAction has
 another intended usage.

 When your user is authenticated (from the login action), you will forward
to
 the jsp that is suppose to contain all the submit buttons. Assuming
 everything else is configured properly, your JSP should then display
 properly.


 -Original Message-
 From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 3:11 PM
 To: Struts Users Mailing List
 Subject: RE: LookupDispatchAction Question



 After the user logs on they are supposed to go to a lookup page. This
page
 will have no data on it when it is first displayed. This page, which is a
 JSP of course, will have a form and more than 1 submit button.
 The problem is that the page can't even be displayed because when Struts
 calls my Action class (which extends LookupDispatchAction), there is no
 value for the submit button. That is, Struts doesn't know which of my
 methods to invoke and throws an exception (the error message from my first
 email). This is because the user hasn't clicked any of the submit buttons
 yet -- they haven't even seen the page.
 How do I get the page to display initially?
 Alvarado, Juan (c) wrote:Okay can you
 please tell me what exactly it is you're trying to
 accomplish??? I don't quite get what your ultimate goal is.

 Thanks

 -Original Message-
 From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 3:01 PM
 To: Struts Users Mailing List
 Subject: RE: LookupDispatchAction Question



 I looked at that site. That is where I found out about
LookupDispatchAction.
 But there is nothing that I can find that tells me how to initially
display
 a page that will subsequently use a dispatch action. In fact, I can't
figure
 out how to do it in Struts at all without either having a plain .html page
 as the inital page or having 2 .jsp pages. Niether solution is good.
 Alvarado, Juan (c) wrote:I would suggest
 you read 

RE: LookupDispatchAction Question

2003-02-11 Thread Alvarado, Juan (c)
Yeah I've never chained them either. But it looks like our friend at Avexus
Inc. has plenty of use for it.

-Original Message-
From: Brandon Goodin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 4:51 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question


He means that you should NEVER chain actions. This is an ongoing debate that
usually results in everyone giving room for exceptional cases. Personally, I
have never chained actions and have found no need too. I use more standard
ways to accomplish processing chains in the biz logic. But, there are those
out there that do find need for it. Until I am in there shoes I'll say, To
each his own.

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


-Original Message-
From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:34 PM
To: 'Struts Users Mailing List'
Subject: RE: LookupDispatchAction Question


 -1.
 You allways do that, like I have processed this page, go to another page.
 .V

What exactly do you mean by this comment Vic.

-Juan

-Original Message-
From: Vic Cekvenich [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 4:11 PM
To: [EMAIL PROTECTED]
Subject: Re: LookupDispatchAction Question




Alvarado, Juan (c) wrote:
 From a design point of view, forwarding from one action to another action
 should be examined closely. It should be the exception rather than the
rule.


-1.
You allways do that, like I have processed this page, go to another page.
.V


 I would suggest you do the following. From your login action just forward
to
 your JSP; don't forward to the LookupDispatchAction. This should solve
your
 problem.


 -Original Message-
 From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 3:48 PM
 To: Struts Users Mailing List
 Subject: RE: LookupDispatchAction Question


 should be nothing wrong with that. i do that all the time, except this is
 the first time that i've tried to use LookupDispatchAction as I just came
 across it.

  Brandon Goodin [EMAIL PROTECTED] wrote::-D :-D :-D

 Juan was right. Why are you forwarding to another action from an action.
 I'll get out of this discussion cuz I think Juan has got it.

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


 -Original Message-
 From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 1:33 PM
 To: 'Struts Users Mailing List'
 Subject: RE: LookupDispatchAction Question


 Can you show me the snippet of code you are using to forward to the JSP
from
 the login action.

 -Original Message-
 From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 3:25 PM
 To: Struts Users Mailing List
 Subject: RE: LookupDispatchAction Question



 My login IS NOT a LookupDispatchAction. It is an Action. It is the page
that
 login forwards to that is a LookupDispatchAction. But that page never
 displays because there is no value for the submit parameter in this
case.

 Alvarado, Juan (c) wrote:Okay this is
 one way of doing this:

 Your login action in this case should not be a LookupDispatchAction. It
 should be a sub-class of the struts Action class. LookupDispatchAction has
 another intended usage.

 When your user is authenticated (from the login action), you will forward
to
 the jsp that is suppose to contain all the submit buttons. Assuming
 everything else is configured properly, your JSP should then display
 properly.


 -Original Message-
 From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 3:11 PM
 To: Struts Users Mailing List
 Subject: RE: LookupDispatchAction Question



 After the user logs on they are supposed to go to a lookup page. This
page
 will have no data on it when it is first displayed. This page, which is a
 JSP of course, will have a form and more than 1 submit button.
 The problem is that the page can't even be displayed because when Struts
 calls my Action class (which extends LookupDispatchAction), there is no
 value for the submit button. That is, Struts doesn't know which of my
 methods to invoke and throws an exception (the error message from my first
 email). This is because the user hasn't clicked any of the submit buttons
 yet -- they haven't even seen the page.
 How do I get the page to display initially?
 Alvarado, Juan (c) wrote:Okay can you
 please tell me what exactly it is you're trying to
 accomplish??? I don't quite get what your ultimate goal is.

 Thanks

 -Original Message-
 From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 3:01 PM
 To: Struts Users Mailing List
 Subject: RE: LookupDispatchAction Question



 I looked at that site. That is where I found out about
LookupDispatchAction.
 But there is nothing that I can find that tells me 

RE: LookupDispatchAction Question

2003-02-11 Thread Brandon Goodin
:-D

Juan,
You were quite preceptive in reading what the anonymous Mr Avexus was trying
to accomplish before he clearly explained it. Do you do psychic
readings? JUAN THE PSYCHIC PROGRAMMER. You could market yourself as the
consultant who knows what you need before you ask.

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


-Original Message-
From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:54 PM
To: 'Struts Users Mailing List'
Subject: RE: LookupDispatchAction Question


Yeah I've never chained them either. But it looks like our friend at Avexus
Inc. has plenty of use for it.

-Original Message-
From: Brandon Goodin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 4:51 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question


He means that you should NEVER chain actions. This is an ongoing debate that
usually results in everyone giving room for exceptional cases. Personally, I
have never chained actions and have found no need too. I use more standard
ways to accomplish processing chains in the biz logic. But, there are those
out there that do find need for it. Until I am in there shoes I'll say, To
each his own.

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


-Original Message-
From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:34 PM
To: 'Struts Users Mailing List'
Subject: RE: LookupDispatchAction Question


 -1.
 You allways do that, like I have processed this page, go to another page.
 .V

What exactly do you mean by this comment Vic.

-Juan

-Original Message-
From: Vic Cekvenich [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 4:11 PM
To: [EMAIL PROTECTED]
Subject: Re: LookupDispatchAction Question




Alvarado, Juan (c) wrote:
 From a design point of view, forwarding from one action to another action
 should be examined closely. It should be the exception rather than the
rule.


-1.
You allways do that, like I have processed this page, go to another page.
.V


 I would suggest you do the following. From your login action just forward
to
 your JSP; don't forward to the LookupDispatchAction. This should solve
your
 problem.


 -Original Message-
 From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 3:48 PM
 To: Struts Users Mailing List
 Subject: RE: LookupDispatchAction Question


 should be nothing wrong with that. i do that all the time, except this is
 the first time that i've tried to use LookupDispatchAction as I just came
 across it.

  Brandon Goodin [EMAIL PROTECTED] wrote::-D :-D :-D

 Juan was right. Why are you forwarding to another action from an action.
 I'll get out of this discussion cuz I think Juan has got it.

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


 -Original Message-
 From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 1:33 PM
 To: 'Struts Users Mailing List'
 Subject: RE: LookupDispatchAction Question


 Can you show me the snippet of code you are using to forward to the JSP
from
 the login action.

 -Original Message-
 From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 3:25 PM
 To: Struts Users Mailing List
 Subject: RE: LookupDispatchAction Question



 My login IS NOT a LookupDispatchAction. It is an Action. It is the page
that
 login forwards to that is a LookupDispatchAction. But that page never
 displays because there is no value for the submit parameter in this
case.

 Alvarado, Juan (c) wrote:Okay this is
 one way of doing this:

 Your login action in this case should not be a LookupDispatchAction. It
 should be a sub-class of the struts Action class. LookupDispatchAction has
 another intended usage.

 When your user is authenticated (from the login action), you will forward
to
 the jsp that is suppose to contain all the submit buttons. Assuming
 everything else is configured properly, your JSP should then display
 properly.


 -Original Message-
 From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 3:11 PM
 To: Struts Users Mailing List
 Subject: RE: LookupDispatchAction Question



 After the user logs on they are supposed to go to a lookup page. This
page
 will have no data on it when it is first displayed. This page, which is a
 JSP of course, will have a form and more than 1 submit button.
 The problem is that the page can't even be displayed because when Struts
 calls my Action class (which extends LookupDispatchAction), there is no
 value for the submit button. That is, Struts doesn't know which of my
 methods to invoke and throws an exception (the error message from my first
 email). This is because the user hasn't clicked any of the submit 

convertNull problems

2003-02-11 Thread Ben Sion
I am try trying to use the convertNull parameter of ActionServlet, so that
when the user does not enter a value into a field that is mapped to an
attribute of type Long in my form, the attribute = null rather than 0.
However I am getting conversion errors. The excerpt from my sevlet log:

Feb 12 11:07:24 2003: The ServletException contained the following root
cause exception:
Feb 12 11:07:24 2003: org.apache.commons.beanutils.ConversionException: For
input string: 
 at
org.apache.commons.beanutils.converters.LongConverter.convert(LongConverter.
java:149)
 at org.apache.commons.beanutils.ConvertUtils.convert(ConvertUtils.java:359)
 at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:615)
 at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1097)
 at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:798)
 at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at com.sybase.jaguar.servlet.JagServlet.service(JagServlet.java:656)
 at
com.sybase.jaguar.servlet.JagRequestDispatcher.service(JagRequestDispatcher.
java:922)
 at com.sybase.jaguar.servlet.JagWebResource.service(JagWebResource.java:90)
 at
com.sybase.jaguar.servlet.JagFilterChain.doFilter(JagFilterChain.java:131)
 at com.sybase.jaguar.servlet.ServletEngine._service(ServletEngine.java:804)
 at com.sybase.jaguar.servlet.ServletEngine.service(ServletEngine.java:338)
 at
com.sybase.jaguar.servlet.ServletServiceImpl.doService(ServletServiceImpl.ja
va:52)
 at

The action servlet definition in my web.xml looks like this:
  ...
  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-namedebug/param-name
  param-value2/param-value
/init-param
init-param
  param-namedetail/param-name
  param-value2/param-value
/init-param
init-param
  param-nameconvertNull/param-name
  param-valuetrue/param-value
/init-param
load-on-startup2/load-on-startup
  /servlet
  ...

and my form:
  public final class InputParametersForm extends ValidatorActionForm {

private Long batchNumber;
private Long organisationCode;
private Long status;
  ...


Any suggestions?

thanks in advance
Ben


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




RE: LookupDispatchAction Question

2003-02-11 Thread Alvarado, Juan (c)
I wasn't 100% sure but after thinking about it, that's the only thing I
could come up with.

-Original Message-
From: Brandon Goodin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 5:00 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question


:-D

Juan,
You were quite preceptive in reading what the anonymous Mr Avexus was trying
to accomplish before he clearly explained it. Do you do psychic
readings? JUAN THE PSYCHIC PROGRAMMER. You could market yourself as the
consultant who knows what you need before you ask.

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


-Original Message-
From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:54 PM
To: 'Struts Users Mailing List'
Subject: RE: LookupDispatchAction Question


Yeah I've never chained them either. But it looks like our friend at Avexus
Inc. has plenty of use for it.

-Original Message-
From: Brandon Goodin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 4:51 PM
To: Struts Users Mailing List
Subject: RE: LookupDispatchAction Question


He means that you should NEVER chain actions. This is an ongoing debate that
usually results in everyone giving room for exceptional cases. Personally, I
have never chained actions and have found no need too. I use more standard
ways to accomplish processing chains in the biz logic. But, there are those
out there that do find need for it. Until I am in there shoes I'll say, To
each his own.

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


-Original Message-
From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 2:34 PM
To: 'Struts Users Mailing List'
Subject: RE: LookupDispatchAction Question


 -1.
 You allways do that, like I have processed this page, go to another page.
 .V

What exactly do you mean by this comment Vic.

-Juan

-Original Message-
From: Vic Cekvenich [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 4:11 PM
To: [EMAIL PROTECTED]
Subject: Re: LookupDispatchAction Question




Alvarado, Juan (c) wrote:
 From a design point of view, forwarding from one action to another action
 should be examined closely. It should be the exception rather than the
rule.


-1.
You allways do that, like I have processed this page, go to another page.
.V


 I would suggest you do the following. From your login action just forward
to
 your JSP; don't forward to the LookupDispatchAction. This should solve
your
 problem.


 -Original Message-
 From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 3:48 PM
 To: Struts Users Mailing List
 Subject: RE: LookupDispatchAction Question


 should be nothing wrong with that. i do that all the time, except this is
 the first time that i've tried to use LookupDispatchAction as I just came
 across it.

  Brandon Goodin [EMAIL PROTECTED] wrote::-D :-D :-D

 Juan was right. Why are you forwarding to another action from an action.
 I'll get out of this discussion cuz I think Juan has got it.

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


 -Original Message-
 From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 1:33 PM
 To: 'Struts Users Mailing List'
 Subject: RE: LookupDispatchAction Question


 Can you show me the snippet of code you are using to forward to the JSP
from
 the login action.

 -Original Message-
 From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 3:25 PM
 To: Struts Users Mailing List
 Subject: RE: LookupDispatchAction Question



 My login IS NOT a LookupDispatchAction. It is an Action. It is the page
that
 login forwards to that is a LookupDispatchAction. But that page never
 displays because there is no value for the submit parameter in this
case.

 Alvarado, Juan (c) wrote:Okay this is
 one way of doing this:

 Your login action in this case should not be a LookupDispatchAction. It
 should be a sub-class of the struts Action class. LookupDispatchAction has
 another intended usage.

 When your user is authenticated (from the login action), you will forward
to
 the jsp that is suppose to contain all the submit buttons. Assuming
 everything else is configured properly, your JSP should then display
 properly.


 -Original Message-
 From: Avexus Incorporated [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 3:11 PM
 To: Struts Users Mailing List
 Subject: RE: LookupDispatchAction Question



 After the user logs on they are supposed to go to a lookup page. This
page
 will have no data on it when it is first displayed. This page, which is a
 JSP of course, will have a form and more than 1 submit button.
 The problem is that the page can't even be displayed because when Struts
 

Re: convertNull problems

2003-02-11 Thread James Mitchell
What version of Struts are you using?


--
James Mitchell





- Original Message -
From: Ben Sion [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 11, 2003 5:08 PM
Subject: convertNull problems


 I am try trying to use the convertNull parameter of ActionServlet, so
that
 when the user does not enter a value into a field that is mapped to an
 attribute of type Long in my form, the attribute = null rather than 0.
 However I am getting conversion errors. The excerpt from my sevlet log:

 Feb 12 11:07:24 2003: The ServletException contained the following root
 cause exception:
 Feb 12 11:07:24 2003: org.apache.commons.beanutils.ConversionException:
For
 input string: 
  at

org.apache.commons.beanutils.converters.LongConverter.convert(LongConverter.
 java:149)
  at
org.apache.commons.beanutils.ConvertUtils.convert(ConvertUtils.java:359)
  at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:615)
  at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1097)
  at

org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
 ava:798)
  at

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
  at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
  at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at com.sybase.jaguar.servlet.JagServlet.service(JagServlet.java:656)
  at

com.sybase.jaguar.servlet.JagRequestDispatcher.service(JagRequestDispatcher.
 java:922)
  at
com.sybase.jaguar.servlet.JagWebResource.service(JagWebResource.java:90)
  at
 com.sybase.jaguar.servlet.JagFilterChain.doFilter(JagFilterChain.java:131)
  at
com.sybase.jaguar.servlet.ServletEngine._service(ServletEngine.java:804)
  at
com.sybase.jaguar.servlet.ServletEngine.service(ServletEngine.java:338)
  at

com.sybase.jaguar.servlet.ServletServiceImpl.doService(ServletServiceImpl.ja
 va:52)
  at

 The action servlet definition in my web.xml looks like this:
   ...
   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-namedebug/param-name
   param-value2/param-value
 /init-param
 init-param
   param-namedetail/param-name
   param-value2/param-value
 /init-param
 init-param
   param-nameconvertNull/param-name
   param-valuetrue/param-value
 /init-param
 load-on-startup2/load-on-startup
   /servlet
   ...

 and my form:
   public final class InputParametersForm extends ValidatorActionForm {

 private Long batchNumber;
 private Long organisationCode;
 private Long status;
   ...


 Any suggestions?

 thanks in advance
 Ben


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




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




RE: [OT] - ServletContextListener

2003-02-11 Thread Craig R. McClanahan


On Tue, 11 Feb 2003, John Espey wrote:

 Date: Tue, 11 Feb 2003 15:44:09 -0600
 From: John Espey [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: RE: [OT]  -   ServletContextListener

 Craig,
 Upon further inspection, it appears that the Thread initializing our
 Listeners has the wrong contextClassLoader, but the thread invoking each
 method DOES have the correct loader.  Is there a logical reason you can
 think of to explain why BEA did it this way?  This still seems like a bug to
 me..

Well, from a container developer's perspective, the code that invokes a
ServletContextListener is in a completely different place than the code
that invokes a servlet.  So, it's really easy to visualize that the person
who added a Thread.getCurrentThread().setContextClassLoader() in one place
forgot to add it in the other ...

Bottom line -- it's much more likely that this was an oversight than that
it was a deliberate design choice.  That has certainly the case for Tomcat
in a few corner cases like this.

 Thanks

Craig


  -Original Message-
  From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, February 11, 2003 2:49 PM
  To: Struts Users Mailing List
  Subject: Re: [OT] - ServletContextListener
 
 
 
 
  On Tue, 11 Feb 2003, John Espey wrote:
 
   Date: Tue, 11 Feb 2003 14:25:58 -0600
   From: John Espey [EMAIL PROTECTED]
   Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Subject: [OT]  -   ServletContextListener
  
  
   Does anybody know if the container should be setting the
  contextClassLoader
   on the current thread when it loads the various listeners configured in
   web.xml?
  
   The particular behavior we're seeing is that the
  contextClassLoader for the
   thread launching our listeners (both context and session) is
  not a weblogic
   specific loader (whereas other classloaders are).  This causes
  a problem for
   us because we have our own commons log factory that we use, but
  because we
   specify this in a property file in our web app, the listeners
  are using a
   contextClassLoader that doesn't have access to the web app, which causes
   commons to default to using simpleLog or whatever the default is.
  
 
  Yes, listeners should be configured with the thread context class loader
  set to the webapp's class loader.
 
  Note that the specific requirement to provide a per-thread context class
  loader at all is in the J2EE Platform Spec (Section J2EE.6.2.4.8), not in
  the servlet spec.  Although there is no specific mention of listeners (as
  opposed to any other class), it makes no sense to make it available for
  some components (servlets and filters) and not others.
 
  
   I know a lot of you are familiar with the Servlet spec (or
  wrote it in some
   cases ;)Can anybody tell me if this might be a bug in
  weblogic or if it
   is the expected behavior (or best case, point me to some
  documentation that
   will explain the way this should work in a web container)
  
 
  I would report it a WebLogic bug.  ISTR a similar sounding bug in Tomcat
  4.1.x as well, but *think* that that's been fixed.
 
  
   Thanks
  
 
  Craig
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


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



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




Re: RES: [OT] Resin 2.1.6 doesn't like resource-env-ref

2003-02-11 Thread Craig R. McClanahan


On Tue, 11 Feb 2003, Marcelo Aita Riss wrote:

 Date: Tue, 11 Feb 2003 19:19:08 -0300
 From: Marcelo Aita Riss [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: RES: [OT] Resin 2.1.6 doesn't like resource-env-ref

 Hi Sri,

 I'm having the same trouble here. Seems to me that it's a resin problem. I
 have tried to search some help to fix this problem at www.caucho.com, but
 have found nothing until now. You are right about web-app_2_3.dtd, but I
 have a web-app_2_2.dtd copy that do not have any reference to a
 'resource-env-ref'. I think that resin 2.1.6 use 2_2 to validate web.xml.
 The servlet 2.3 specification file (a pdf file) shows both versions (2.2 and
 2.3). If you look at version 2.2 there is no reference to 'resource-env-ref'
 too. I have no solution to fix this yet. If you find a solution, let me to
 know.


The resource-env-ref element was indeed added in Servlet 2.3, so any 2.2
container isn't going to recognize it.

You don't say what kind of a resource you are trying to create a reference
for, but can't you use a resource-ref instead?  That is available in
2.2 as well as 2.3.


 I hope it helps,

 Marcelo

Craig

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




Exception loading sessions from persistent storage

2003-02-11 Thread Scot Rob
Due to this strange exception i am getting, i can't
access my beans/forms in jsps.

I will appreciate any help/clues.

Many Thanks,
Scot

2003-02-11 21:53:35 StandardManager[/strutsvom]
IOException while loading persisted sessions:
java.io.WriteAbortedException: Writing aborted by
exception; java.io.NotSerializableException:
org.apache.struts.config.impl.DefaultModuleConfigFactory
java.io.WriteAbortedException: Writing aborted by
exception; java.io.NotSerializableException:
org.apache.struts.config.impl.DefaultModuleConfigFactory
at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:445)
at
java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
at
java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
at
java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at
java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
at
java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
at
java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at
java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
at
java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
at
java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at
java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
at
java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
at
java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at
org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1268)
at
org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:810)
at
org.apache.catalina.session.StandardManager.load(StandardManager.java:411)
at
org.apache.catalina.session.StandardManager.start(StandardManager.java:617)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1104)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3345)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:324)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

2003-02-11 21:53:35 StandardManager[/strutsvom]
Exception loading sessions from persistent storage
java.io.WriteAbortedException: Writing aborted by
exception; java.io.NotSerializableException:
org.apache.struts.config.impl.DefaultModuleConfigFactory
at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:445)
at
java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
at
java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
at
java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at
java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
at
java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
at
java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at
java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
at

Re: convertNull problems

2003-02-11 Thread Brian Lee
Did you set convertNull=true for the ActionServlet in the web.xml.

BAL


From: Ben Sion [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: convertNull problems
Date: Wed, 12 Feb 2003 11:08:43 +1300

I am try trying to use the convertNull parameter of ActionServlet, so 
that
when the user does not enter a value into a field that is mapped to an
attribute of type Long in my form, the attribute = null rather than 0.
However I am getting conversion errors. The excerpt from my sevlet log:

Feb 12 11:07:24 2003: The ServletException contained the following root
cause exception:
Feb 12 11:07:24 2003: org.apache.commons.beanutils.ConversionException: For
input string: 
 at
org.apache.commons.beanutils.converters.LongConverter.convert(LongConverter.
java:149)
 at 
org.apache.commons.beanutils.ConvertUtils.convert(ConvertUtils.java:359)
 at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:615)
 at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1097)
 at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:798)
 at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
 at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at com.sybase.jaguar.servlet.JagServlet.service(JagServlet.java:656)
 at
com.sybase.jaguar.servlet.JagRequestDispatcher.service(JagRequestDispatcher.
java:922)
 at 
com.sybase.jaguar.servlet.JagWebResource.service(JagWebResource.java:90)
 at
com.sybase.jaguar.servlet.JagFilterChain.doFilter(JagFilterChain.java:131)
 at 
com.sybase.jaguar.servlet.ServletEngine._service(ServletEngine.java:804)
 at 
com.sybase.jaguar.servlet.ServletEngine.service(ServletEngine.java:338)
 at
com.sybase.jaguar.servlet.ServletServiceImpl.doService(ServletServiceImpl.ja
va:52)
 at

The action servlet definition in my web.xml looks like this:
  ...
  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-namedebug/param-name
  param-value2/param-value
/init-param
init-param
  param-namedetail/param-name
  param-value2/param-value
/init-param
init-param
  param-nameconvertNull/param-name
  param-valuetrue/param-value
/init-param
load-on-startup2/load-on-startup
  /servlet
  ...

and my form:
  public final class InputParametersForm extends ValidatorActionForm {

private Long batchNumber;
private Long organisationCode;
private Long status;
  ...


Any suggestions?

thanks in advance
Ben


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


_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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



Re: Logging and log4j?

2003-02-11 Thread Emmanuel
Bjørn T Johansen wrote:


I was just wondering what is the pro's and con's for using
Commons-Logging contra log4j?

 

Goods materials on this topic (pro log4j) : 
http://www.qos.ch/logging/thinkAgain.html


___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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



RE: Exception loading sessions from persistent storage

2003-02-11 Thread John Espey
It looks like there is a non-Serializable object on your session.  I believe
that whatever you put on the session must implement (directly or indirectly)
Serializable or else be declared transient.

 -Original Message-
 From: Scot Rob [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 4:37 PM
 To: [EMAIL PROTECTED]
 Subject: Exception loading sessions from persistent storage


 Due to this strange exception i am getting, i can't
 access my beans/forms in jsps.

 I will appreciate any help/clues.

 Many Thanks,
 Scot

 2003-02-11 21:53:35 StandardManager[/strutsvom]
 IOException while loading persisted sessions:
 java.io.WriteAbortedException: Writing aborted by
 exception; java.io.NotSerializableException:
 org.apache.struts.config.impl.DefaultModuleConfigFactory
 java.io.WriteAbortedException: Writing aborted by
 exception; java.io.NotSerializableException:
 org.apache.struts.config.impl.DefaultModuleConfigFactory
   at
 java.io.ObjectInputStream.readObject(ObjectInputStream.java:445)
   at
 java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
   at
 java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
   at
 java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
   at
 java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
   at
 java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
   at
 java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
   at
 java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
   at
 java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
   at
 java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
   at
 java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
   at
 java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
   at
 java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
   at
 java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
   at
 java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
   at
 java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
   at
 java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
   at
 java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
   at
 org.apache.catalina.session.StandardSession.readObject(StandardSes
 sion.java:1268)
   at
 org.apache.catalina.session.StandardSession.readObjectData(Standar
 dSession.java:810)
   at
 org.apache.catalina.session.StandardManager.load(StandardManager.java:411)
   at
 org.apache.catalina.session.StandardManager.start(StandardManager.
 java:617)
   at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1104)
   at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:3345)
   at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
   at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
   at
 org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
   at
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:324)
   at
 org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
   at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
   at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifec
 ycleSupport.java:155)
   at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
   at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
   at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
   at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
   at
 org.apache.catalina.core.StandardService.start(StandardService.java:388)
   at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
   at
 org.apache.catalina.startup.Catalina.start(Catalina.java:781)
   at
 org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
   at
 org.apache.catalina.startup.Catalina.process(Catalina.java:179)
   at java.lang.reflect.Method.invoke(Native Method)
   at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

 2003-02-11 21:53:35 StandardManager[/strutsvom]
 Exception loading sessions from persistent storage
 java.io.WriteAbortedException: Writing aborted by
 exception; java.io.NotSerializableException:
 org.apache.struts.config.impl.DefaultModuleConfigFactory
   at
 java.io.ObjectInputStream.readObject(ObjectInputStream.java:445)
   at
 java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
   at
 java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
   at
 java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
   at
 java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
 

RE: [OT] Modeling tools (way OT)

2003-02-11 Thread Todd Pierce
Aussies send it all up here.  You guys still pissed about 1783?  1815?
1840?  When did you get your own country, anyway?

Well, technically it isn't their's. They are members of the British
Commonwealth, so all 

Whoa, Trigger. Time for some Australia 101

We may share a figurehead but is Australia is not OWNED by britain, any more
than you may think britain owns Canada, India, Pakistan, Bangladesh, South
Africa, New Zealand, Malaysia, Zimbabwe. The british Empire is LONG gone,
and a good thing too.

A referendum three years ago showed that, although a clear majority of
Australian citizens wanted a republic, a majority of states did not (4-3
against), so constitiutional reform was not brought about.


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




DynaForm and ActionForm subclassing

2003-02-11 Thread Christoph Rooms
Hi,

For certain actions I subclass my own version of the ActionForm. So I
implement MyActionForm. This is the base of a number of my forms. (for
example, I have an MultilanguageForm that handles forms which stores
multilanguage data).

How can I do this with DynaForms ? Do I have to subclass DynaForm and
add just the properties as I did in MyActionForm ? Can a Dynaform
extend another one ?

If I understood well, in a DynaForm, the properties are stored in a Map
? So I am not sure if the properties will work ...

Any help or link to docs is helpfull !!!

Thanks, Christoph





Christoph Rooms
TAM
+ 32 475 531 529

Novell Positioned as a Leader in Analyst Firm's Metadirectory Magic
Quadrant 
Novell is the first, and thus far only, company to enter the Leader
Quadrant of Gartner's Metadirectory Services Magic Quadrant. Leaders are
vendors who are performing well today, have a clear vision of market
direction, and are actively building competencies to sustain their
leadership position in the market. Read more and find out how to access
the report at www.novell.com/news/press/archive/2002/08/pr02058.html


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




Re: ResultsetDyna class

2003-02-11 Thread Luiz-Otavio Zorzella
Craig,

I, actually, require a third semantic (that I'm willing to implement 
myself, btw):

I want, like in the a ResultSetDynaClass, a structure that does not copy 
the elements, from which I can get an Iterator. Now, once I getNext() 
from the Iterator, I want to get a copy of the object, so that I can 
later use it, even after exhauting the ResultSet. This is a kind of a 
lazy loading. BTW, the advance () method is what I would use if I want 
to advance, but not have the copy generated...

What do you think? Do you think I could make create a constructor for 
ResultSetDynaClass/ResultSetIterator that receives a boolean that 
specifies if I want copies of elements rather than references?

Zorzella

Craig R. McClanahan wrote:

On Tue, 11 Feb 2003, Vic Cekvenich wrote:



I must say that I have been arguing for the RowSet against ResultSet a
long time.



You've also been arguing against copying for a long time :-).

Now you can have it either way, depending on your requirements.



Thanks.
.V



Criag

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





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




RE: [OT] Modeling tools (way OT)

2003-02-11 Thread Mark Galbreath
Well, what kinda bloody government DO you have?


-Original Message-
From: Todd Pierce [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, February 11, 2003 5:58 PM

Aussies send it all up here.  You guys still pissed about 1783?  1815? 
1840?  When did you get your own country, anyway?

Well, technically it isn't their's. They are members of the British
Commonwealth, so all 

Whoa, Trigger. Time for some Australia 101

We may share a figurehead but is Australia is not OWNED by britain, any more
than you may think britain owns Canada, India, Pakistan, Bangladesh, South
Africa, New Zealand, Malaysia, Zimbabwe. The british Empire is LONG gone,
and a good thing too.

A referendum three years ago showed that, although a clear majority of
Australian citizens wanted a republic, a majority of states did not (4-3
against), so constitiutional reform was not brought about.



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




RE: still wondering Re: Where to repopulate dynamic lists ?

2003-02-11 Thread Mitchell Morris
What? You're going over my head? Fine. Be that way. I'm now going to charge
you double for my free advice and unsolicited opinion :)


[snip-and-rearrange]
 Yes, actually I never did put the list into the form bean but had
 initially put the list in request scope. Now we've come full circle:)
 We're back to the beginning where it seems the choices seem
 to come down
 to:

 1) putting the list into session scope (the list will reset when the
 user hits the setUpAction on another request to do this type
 of action).

 or

 2) put the list into request scope and repopulate this list when reset
 is called.

Now I'm confused ... if you don't have the property in the form, then what
kind of reset() are we talking about? If you're suggesting having
ActionForm.reset() do anything besides release its own resources, then I'm
agin' it. My sneakiest suggestion was to presume that there will continue to
be only one instance of your form bean instantiated and you could get away
with not releasing the list reference in the reset() method so it would
still be there when the form validation failed.

If your objection is having the reference in the session scope after the
action chain is finished, then have action #2 remove it [via
pageContext.removeAttribute()]. If other people have objections, then let
them stand up and state them.



[snip-and-rearrange]
  To recap I'm wondering what is the best practice for repopulating a
 dynamic list that a user would need on a form. For example
 possibly it's
 a form where a user has to select from a list ofOrder Numbers(which
 could frequently change and could be based on the user logged in). The
 way I currently tackle this is in the setUpForm type of action a
 business object is called which returns to me this list and puts the
 list into request scope to be used on the form. The problem
 is when the
 user submits the form and validation returns false. Somewhere
 this list
 needs to be repopulated. I could of course put this list (or even the
 form bean) into session scope, but I thought that was to be avoided
 since the only thing this list is used for is this one page. To solve
 this problem I've been calling this business object to get my list in
 the reset() method and putting it back into scope. I've heard
 others say
 this is a bad idea(although I'm not sure why) and yet I haven't really
 heard any other'much better' solutions.

I'll go out on a limb and say there aren't any a-Ha! solutions of
staggering brilliance and philosophical purity. If there were, then somebody
else would have already written about them (Hi, Ted!)

I'll throw out my guidelines:
   (1) hidden fields are evil, and allow those bastard users to screw me
over
   (2) things for this user belong in session scope
   (3) things for all users belong in application scope
   (4) the machinery (Struts et al.) uses whichever scope it likes (often
request)
#1 means I hardly ever think putting things in request scope is a good idea.
I'm certainly not going to trust whatever comes back once the user touches
it, so if I need to know it later then I'd better save it where the user
can't touch it. That means that I keep all manner of things in session
scope, like the aforementioned order list as well as all the model objects.
Global object caches and their ilk live in application scope because
database calls are too damned expensive to make unless it's really really
necessary.

paranoia-is-its-own-reward-ly y'rs,
+Mitchell



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




  1   2   >