RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Kevin A. Smith
As several other people on this list pointed out, Craig _did_ answer the question. In 
detail. With examples. For those of you who missed it, the answer is YES. As in the 
opposite of NO. At this point, you might want to review the previous emails in this 
thread.

Craig is not misleading anyone. I would humbly submit that you didn't understand the 
answer.

--Kevin

-Original Message-
From: Xue-Feng Yang [mailto:just4look;yahoo.com]
Sent: Thursday, October 17, 2002 2:04 PM
To: Struts Users Mailing List
Subject: RE: Can V in MVC be Swing in Struts?


1) it is not my question;

2) I just pointed out that Craig didn't answer the
question:

  (1) Does STRUTS support sending serialized VO
 objects (as against HTML or  XML text strings) back
 and forth between client
 app and server. What needs to be changed in STRUTS
 components to suport this?

3) As a open source forum, any one should not mis-lead
the people who asked the questions here.

 



--- Kevin A. Smith [EMAIL PROTECTED] wrote:
 What do you hope to accomplish by badgering people?
 It seems to me that Craig answered your question in
 more than adequate detail.
 
 --Kevin
 
 -Original Message-
 From: Xue-Feng Yang [mailto:just4look;yahoo.com]
 Sent: Thursday, October 17, 2002 1:52 PM
 To: Struts Users Mailing List
 Subject: Re: Can V in MVC be Swing in Struts?
 
 
  --- Antoni Reus [EMAIL PROTECTED] wrote: 
 Hi,
  
  A Dijous 17 Octubre 2002 19:31, Xue-Feng Yang va
  escriure:
--- Craig R. McClanahan [EMAIL PROTECTED]
   wrote: 
  
On Thu, 17 Oct 2002, Xue-Feng Yang wrote:
 Date: Thu, 17 Oct 2002 13:19:48 -0400 (EDT)
 From: Xue-Feng Yang [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List
   
[EMAIL PROTECTED]
   
 To: Struts Users Mailing List
   
[EMAIL PROTECTED]
   
 Subject: RE: Can V in MVC be Swing in
 Struts?

 Let me copy your answer here with #, and
 tell
  me
   
where
   
 is your correct answer.

  And you didn't understand the answer
  correctly
:
:-).
:
 # There are at least two different ways to
   
accomplish
   
 # this:

 #* Have your Action write the XML output
  directly
   
to
   
 #the response,
 #  and then return null (indicates that the
   
response
   
 #has been completed,
 #  so no forwarding is necessary).
   
To use output directly generated by an Action
(either serialized objects,
or directly created XML), use this.
  
   Hahaha, where is the VO in your message with #?
  You
   only talked about XML not VO.
  
  
  
  html, xml, serialized objects, pdf, svg,  what's
 the
  difference?
  
  For serialized objects:
  
  Set the content type to
  application/x-java-serialized-object
  Grab the ServletOuputStream in a
 ObjectOutputStream
  and write(Object it)
  return null 
  
  
  Salut,
  
  -- Antoni Reus
 
 
 You should answer this question. It is correct now.
 Just remind you that it is not my question.
 
 A person asked the following question:
 
  (1) Does STRUTS support sending serialized VO
 objects (as against HTML or  XML text strings) back
 and forth between client
 app and server. What needs to be changed in STRUTS
 components to suport this?
 
 And I just point out someone's answer is not a
 correct
 answer. That's it.
 
  
  
  --
  To unsubscribe, e-mail:  
 
 mailto:struts-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:struts-user-help;jakarta.apache.org
   
 

__
 
 Post your free ad now! http://personals.yahoo.ca
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
 
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
 


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

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Kevin A. Smith
What part of writing serialized VO objects to the raw ServletOutputStream is confusing 
to you? You still have to set the mime-type in the header correctly because you're 
using HTTP, but other than that, its pure serialized objects.

--Kevin

-Original Message-
From: Xue-Feng Yang [mailto:just4look;yahoo.com]
Sent: Thursday, October 17, 2002 2:09 PM
To: Struts Users Mailing List
Subject: RE: Can V in MVC be Swing in Struts?


 --- Assenza, Chris [EMAIL PROTECTED] wrote: 
I can't tell if you're being serious or not, but the
 question really has
 been answered already.  The problem is that you're
 either A) missing the
 point or B) a troll.  I prefer to assume A.  In that
 case, I believe I can
 paraphrase what Craig has said: 
 
  (1) Does STRUTS support sending serialized VO
  objects (as against HTML or  XML text strings)
 back
  and forth between client
  app and server. 
 
 Craig: Yes.

Craig only answered yes to XML, but not the
serialized VO objects

I am not the person who asked the question. In the
question, you must notice that as against HTML or 
XML text strings. So Craig's answer is not correct.

 
 
  What needs to be changed in STRUTS
  components to suport this?
 
 Craig: Nothing.
 
 It doesn't matter if it's a VO object or not, we're
 assuming already that
 it's serialized and that we just need to get this
 serialized thing back to
 the client.  Craig not only answered the question,
 but went a step further
 to provide a couple suggestions as to how one might
 accomplish the desired
 goal within a struts app. 
 
 Best,
 
 Chris
 
 -Original Message-
 From: Xue-Feng Yang [mailto:just4look;yahoo.com]
 Sent: Thursday, October 17, 2002 1:52 PM
 To: Struts Users Mailing List
 Subject: Re: Can V in MVC be Swing in Struts?
 
 
  --- Antoni Reus [EMAIL PROTECTED] wrote: 
 Hi,
  
  A Dijous 17 Octubre 2002 19:31, Xue-Feng Yang va
  escriure:
--- Craig R. McClanahan [EMAIL PROTECTED]
   wrote: 
  
On Thu, 17 Oct 2002, Xue-Feng Yang wrote:
 Date: Thu, 17 Oct 2002 13:19:48 -0400 (EDT)
 From: Xue-Feng Yang [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List
   
[EMAIL PROTECTED]
   
 To: Struts Users Mailing List
   
[EMAIL PROTECTED]
   
 Subject: RE: Can V in MVC be Swing in
 Struts?

 Let me copy your answer here with #, and
 tell
  me
   
where
   
 is your correct answer.

  And you didn't understand the answer
  correctly
:
:-).
:
 # There are at least two different ways to
   
accomplish
   
 # this:

 #* Have your Action write the XML output
  directly
   
to
   
 #the response,
 #  and then return null (indicates that the
   
response
   
 #has been completed,
 #  so no forwarding is necessary).
   
To use output directly generated by an Action
(either serialized objects,
or directly created XML), use this.
  
   Hahaha, where is the VO in your message with #?
  You
   only talked about XML not VO.
  
  
  
  html, xml, serialized objects, pdf, svg,  what's
 the
  difference?
  
  For serialized objects:
  
  Set the content type to
  application/x-java-serialized-object
  Grab the ServletOuputStream in a
 ObjectOutputStream
  and write(Object it)
  return null 
  
  
  Salut,
  
  -- Antoni Reus
 
 
 You should answer this question. It is correct now.
 Just remind you that it is not my question.
 
 A person asked the following question:
 
  (1) Does STRUTS support sending serialized VO
 objects (as against HTML or  XML text strings) back
 and forth between client
 app and server. What needs to be changed in STRUTS
 components to suport this?
 
 And I just point out someone's answer is not a
 correct
 answer. That's it.
 
  
  
  --
  To unsubscribe, e-mail:  
 
 mailto:struts-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:struts-user-help;jakarta.apache.org
   
 

__
 
 Post your free ad now! http://personals.yahoo.ca
 
 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
  

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

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Can V in MVC be Swing in Struts?

2002-10-18 Thread Kevin A. Smith
What do you hope to accomplish by badgering people? It seems to me that Craig answered 
your question in more than adequate detail.

--Kevin

-Original Message-
From: Xue-Feng Yang [mailto:just4look;yahoo.com]
Sent: Thursday, October 17, 2002 1:52 PM
To: Struts Users Mailing List
Subject: Re: Can V in MVC be Swing in Struts?


 --- Antoni Reus [EMAIL PROTECTED] wrote:  Hi,
 
 A Dijous 17 Octubre 2002 19:31, Xue-Feng Yang va
 escriure:
   --- Craig R. McClanahan [EMAIL PROTECTED]
  wrote: 
 
   On Thu, 17 Oct 2002, Xue-Feng Yang wrote:
Date: Thu, 17 Oct 2002 13:19:48 -0400 (EDT)
From: Xue-Feng Yang [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List
  
   [EMAIL PROTECTED]
  
To: Struts Users Mailing List
  
   [EMAIL PROTECTED]
  
Subject: RE: Can V in MVC be Swing in Struts?
   
Let me copy your answer here with #, and tell
 me
  
   where
  
is your correct answer.
   
 And you didn't understand the answer
 correctly
   :
   :-).
   :
# There are at least two different ways to
  
   accomplish
  
# this:
   
#* Have your Action write the XML output
 directly
  
   to
  
#the response,
#  and then return null (indicates that the
  
   response
  
#has been completed,
#  so no forwarding is necessary).
  
   To use output directly generated by an Action
   (either serialized objects,
   or directly created XML), use this.
 
  Hahaha, where is the VO in your message with #?
 You
  only talked about XML not VO.
 
 
 
 html, xml, serialized objects, pdf, svg,  what's the
 difference?
 
 For serialized objects:
 
 Set the content type to
 application/x-java-serialized-object
 Grab the ServletOuputStream in a ObjectOutputStream
 and write(Object it)
 return null 
 
 
 Salut,
 
 -- Antoni Reus


You should answer this question. It is correct now.
Just remind you that it is not my question.

A person asked the following question:

 (1) Does STRUTS support sending serialized VO
objects (as against HTML or  XML text strings) back
and forth between client
app and server. What needs to be changed in STRUTS
components to suport this?

And I just point out someone's answer is not a correct
answer. That's it.

 
 
 --
 To unsubscribe, e-mail:  
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org
  

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

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [OT] Tomcat not extracting war

2002-10-18 Thread Kevin A. Smith
We had a very similar problem at my office. Turns out that Tomcat _really_ does not 
like WAR files that are missing their manifests.  You might take a look at that. . .

--Kevin

-Original Message-
From: Mark Silva [mailto:msilva;authenex.com]
Sent: Friday, October 18, 2002 1:34 PM
To: Struts Users Mailing List
Subject: OT: Tomcat not extracting war


hello all,

i thought somebody here would have a quick answer for this one. 

 i am deploying my struts application to a new machine.  i am placing the war file 
underneath the webapps directory, and starting the server up, but the war file is not 
being extracted!  any ideas?  it works on another machine (that i have been developing 
on)

thanks,
mark


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [OT] Getting a Collection's size in JSTL

2002-10-30 Thread Kevin A. Smith
This also seems like a good place to use a DynamicProxy. Since most all of the Java 
Collections package is interfaced base, this seems like it might be an elegant 
solution.

--Kevin

-Original Message-
From: David Graham [mailto:dgraham1980;hotmail.com]
Sent: Wednesday, October 30, 2002 3:44 PM
To: [EMAIL PROTECTED]
Subject: Re: [OT] Getting a Collection's size in JSTL


That's pretty much what I did except you can only set the internal 
collection in the constructor.  It's an elegant solution that should 
probably (in some form) be included in a larger library.

David






From: Kris Schneider [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: [OT] Getting a Collection's size in JSTL
Date: Wed, 30 Oct 2002 15:30:13 -0500

It should also be relatively painless to use a composition/delegation 
approach.

public class CollectionBean {

   private Collection c;

   public int getSize() {
 return this.c.size();
   }

   public void setCollection(Collection c) {
 this.c = c;
   }

   public Collection getCollection() {
 return this.c;
   }
}

jsp:useBean id=collBean class=com.foo.CollectionBean/
c:set target=${collBean}
property=collection
value=${requestScope.theCollection}/
c:out value=${collBean.size}/

Or something along those lines. Of course, you could completely set up the
collection bean prior to hitting the JSP as well.

Quoting David Graham [EMAIL PROTECTED]:

  I actually thought of a better idea which is getting into commons
  collections territory but I'll post a quick description here.  I made a
  JstlCollectionWrapper class that wraps any Collection object and 
implements
 
  the Collection interface.  I added a getSize() method to this class.  
The
  business layer classes can return standard Java collections like 
ArrayList
  and you can wrap them in this class when using them in JSTL.
 
  A similar approach could be taken with the Map interface.  I wish they 
would
 
  just add getSize to the standard classes :-(.
 
  David

--
Kris Schneider mailto:kris;dotech.com
D.O.Tech   http://www.dotech.com/

--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:struts-user-help;jakarta.apache.org


_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [OT] Getting a Collection's size in JSTL

2002-10-30 Thread Kevin A. Smith
I'm referring to the java.lang.reflect.InvocationHandler. You can use it create proxy 
objects for interfaces on-the-fly. I've used it extensively as a way of adapting 
mismatched interfaces between objects.

--Kevin

-Original Message-
From: David Graham [mailto:dgraham1980;hotmail.com]
Sent: Wednesday, October 30, 2002 4:35 PM
To: [EMAIL PROTECTED]
Subject: RE: [OT] Getting a Collection's size in JSTL


What is a DynamicProxy?  We may be talking about the same pattern with 
different names.

David






From: Kevin A. Smith [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: [OT] Getting a Collection's size in JSTL
Date: Wed, 30 Oct 2002 16:31:03 -0500

This also seems like a good place to use a DynamicProxy. Since most all of 
the Java Collections package is interfaced base, this seems like it might 
be an elegant solution.

--Kevin

-Original Message-
From: David Graham [mailto:dgraham1980;hotmail.com]
Sent: Wednesday, October 30, 2002 3:44 PM
To: [EMAIL PROTECTED]
Subject: Re: [OT] Getting a Collection's size in JSTL


That's pretty much what I did except you can only set the internal
collection in the constructor.  It's an elegant solution that should
probably (in some form) be included in a larger library.

David






 From: Kris Schneider [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: [OT] Getting a Collection's size in JSTL
 Date: Wed, 30 Oct 2002 15:30:13 -0500
 
 It should also be relatively painless to use a composition/delegation
 approach.
 
 public class CollectionBean {
 
private Collection c;
 
public int getSize() {
  return this.c.size();
}
 
public void setCollection(Collection c) {
  this.c = c;
}
 
public Collection getCollection() {
  return this.c;
}
 }
 
 jsp:useBean id=collBean class=com.foo.CollectionBean/
 c:set target=${collBean}
 property=collection
 value=${requestScope.theCollection}/
 c:out value=${collBean.size}/
 
 Or something along those lines. Of course, you could completely set up 
the
 collection bean prior to hitting the JSP as well.
 
 Quoting David Graham [EMAIL PROTECTED]:
 
   I actually thought of a better idea which is getting into commons
   collections territory but I'll post a quick description here.  I made 
a
   JstlCollectionWrapper class that wraps any Collection object and
 implements
  
   the Collection interface.  I added a getSize() method to this class.
 The
   business layer classes can return standard Java collections like
 ArrayList
   and you can wrap them in this class when using them in JSTL.
  
   A similar approach could be taken with the Map interface.  I wish they
 would
  
   just add getSize to the standard classes :-(.
  
   David
 
 --
 Kris Schneider mailto:kris;dotech.com
 D.O.Tech   http://www.dotech.com/
 
 --
 To unsubscribe, e-mail:
 mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:struts-user-help;jakarta.apache.org


_
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   
mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:struts-user-help;jakarta.apache.org


_
Unlimited Internet access for only $21.95/month.  Try MSN! 
http://resourcecenter.msn.com/access/plans/2monthsfree.asp


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [OT] Getting a Collection's size in JSTL

2002-10-30 Thread Kevin A. Smith
I would use a factory to create the proxies. This would occur inside of the Struts 
action. Then, in the JSP, you could access the collections as you normally would.

--Kevin

-Original Message-
From: Kris Schneider [mailto:kris;dotech.com]
Sent: Wednesday, October 30, 2002 4:57 PM
To: Struts Users Mailing List
Subject: RE: [OT] Getting a Collection's size in JSTL


But applying a proxy to this scenario seems like overkill. Wouldn't you have to 
do something like the following:

public interface CollectionInfo {
  public int getSize();
}

public class CollectionHandler implements InvocationHandler {

  private Collection c;

  public CollectionHandler(Collection c) {
this.c = c;
  }

  public Object invoke(Object proxy,
   Method method,
   Object[] args) throws Throwable {
if (getSize.equals(method.getName())) {
  return new Integer(this.c.size());
} else {
  return method.invoke(this.c, args);
}
  }
}

InvocationHandler handler = new CollectionHandler(theCollection);
Object proxy = Proxy.newProxyInstance(classLoader,
  new Class[] { Collection.class,
CollectionInfo.class },
  handler);
request.setAttribute(collectionProxy, proxy);

Which may not be horrible if you're using a servlet or Action, but how would 
you use it in a JSP-only situation?

Quoting Kevin A. Smith [EMAIL PROTECTED]:

 I'm referring to the java.lang.reflect.InvocationHandler. You can use it
 create proxy objects for interfaces on-the-fly. I've used it extensively as
 a way of adapting mismatched interfaces between objects.
 
 --Kevin
 
 -Original Message-
 From: David Graham [mailto:dgraham1980;hotmail.com]
 Sent: Wednesday, October 30, 2002 4:35 PM
 To: [EMAIL PROTECTED]
 Subject: RE: [OT] Getting a Collection's size in JSTL
 
 
 What is a DynamicProxy?  We may be talking about the same pattern with 
 different names.
 
 David
 
 
 
 
 
 
 From: Kevin A. Smith [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: RE: [OT] Getting a Collection's size in JSTL
 Date: Wed, 30 Oct 2002 16:31:03 -0500
 
 This also seems like a good place to use a DynamicProxy. Since most all of
 
 the Java Collections package is interfaced base, this seems like it might 
 be an elegant solution.
 
 --Kevin
 
 -Original Message-
 From: David Graham [mailto:dgraham1980;hotmail.com]
 Sent: Wednesday, October 30, 2002 3:44 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [OT] Getting a Collection's size in JSTL
 
 
 That's pretty much what I did except you can only set the internal
 collection in the constructor.  It's an elegant solution that should
 probably (in some form) be included in a larger library.
 
 David
 
 
 
 
 
 
  From: Kris Schneider [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Subject: Re: [OT] Getting a Collection's size in JSTL
  Date: Wed, 30 Oct 2002 15:30:13 -0500
  
  It should also be relatively painless to use a composition/delegation
  approach.
  
  public class CollectionBean {
  
 private Collection c;
  
 public int getSize() {
   return this.c.size();
 }
  
 public void setCollection(Collection c) {
   this.c = c;
 }
  
 public Collection getCollection() {
   return this.c;
 }
  }
  
  jsp:useBean id=collBean class=com.foo.CollectionBean/
  c:set target=${collBean}
  property=collection
  value=${requestScope.theCollection}/
  c:out value=${collBean.size}/
  
  Or something along those lines. Of course, you could completely set up 
 the
  collection bean prior to hitting the JSP as well.
  
  Quoting David Graham [EMAIL PROTECTED]:
  
I actually thought of a better idea which is getting into commons
collections territory but I'll post a quick description here.  I made
 
 a
JstlCollectionWrapper class that wraps any Collection object and
  implements
   
the Collection interface.  I added a getSize() method to this class.
  The
business layer classes can return standard Java collections like
  ArrayList
and you can wrap them in this class when using them in JSTL.
   
A similar approach could be taken with the Map interface.  I wish
 they
  would
   
just add getSize to the standard classes :-(.
   
David
  
  --
  Kris Schneider mailto:kris;dotech.com
  D.O.Tech   http://www.dotech.com/
  
  --
  To unsubscribe, e-mail:
  mailto:struts-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:struts-user-help;jakarta.apache.org
 
 
 _
 Protect your PC - get McAfee.com VirusScan Online
 http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts

RE: [OT] Weblogic

2002-11-05 Thread Kevin A. Smith
Recompile your code with debug turned on javac -g and you'll get line numbers.

--Kevin

-Original Message-
From: Gus Delgado [mailto:gdelgado;oceanobjects.com]
Sent: Tuesday, November 05, 2002 1:51 PM
To: Struts Users Mailing List
Subject: Weblogic


I have a weblogic question, How do I set up weblogic so that when my 
Struts Action throws an exception I'll know which line it is on right 
now I get   class.method(Unknow Source), i would like to get 
class.method(Class.java:432).

thanks you very much

-gus


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Struts in CMS ?

2002-11-19 Thread Kevin A. Smith
The Roller weblogging package uses Struts. Here's a couple of links:

Project home page: http://www.rollerweblogger.org/page/project
Develper Diary: http://rollerweblogger.org/page/roller

--Kevin

-Original Message-
From: Fabrice FOUREL [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 19, 2002 7:40 AM
To: [EMAIL PROTECTED]
Subject: Struts in CMS ?


Hello,

Does anyboy know if opencms (or another cms tool) support Struts-based
application ?
I saw there's an integration of JSPs (and JSP tags).

Thanks.

Fabrice Fourel



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


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




[OT] What's a CMS?

2002-11-19 Thread Kevin A. Smith
I respectfully disagree on your Blogging != CMS assertion. At least for the more 
fully-featured blogging systems (Roller, Radio, and Blogger). I think of these as 
one-person/single-site CMS's.

--Kevin

-Original Message-
From: James Higginbotham [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 19, 2002 10:19 AM
To: Struts Users Mailing List
Subject: RE: Struts in CMS ?


Blogging != CMS.. Google CMS and get a formal definition. I just did a
requirements gathering project to find a true CMS solution, and I don't
know how many people classified blogging and cheesy web site publishing
as a CMS solution (well, at least 350 before I quite counting). Just a
pet peave of mine - trying to inform, nothing more. 

FYI,
James

 -Original Message-
 From: Kevin A. Smith [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, November 19, 2002 7:55 AM
 To: Struts Users Mailing List
 Subject: RE: Struts in CMS ?
 
 
 The Roller weblogging package uses Struts. Here's a couple of links:
 
 Project home page: http://www.rollerweblogger.org/page/project
 Develper Diary: http://rollerweblogger.org/page/roller
 
 --Kevin
 
 -Original Message-
 From: Fabrice FOUREL [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 19, 2002 7:40 AM
 To: [EMAIL PROTECTED]
 Subject: Struts in CMS ?
 
 
 Hello,
 
 Does anyboy know if opencms (or another cms tool) support 
 Struts-based application ? I saw there's an integration of 
 JSPs (and JSP tags).
 
 Thanks.
 
 Fabrice Fourel
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

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


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




RE: [OT Flame War Warning] What's a CMS?

2002-11-19 Thread Kevin A. Smith
And in the interest of preventing such a war, I will cry uncle first. :)

--Kevin

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 19, 2002 12:37 PM
To: Struts Users Mailing List
Subject: Re: [OT Flame War Warning] What's a CMS?


NOFLAW has reported an insipid Flame War breakout in the Struts mailing
list

Jim Berg
Sr. Software Specialist
PSCI
610-270-4158
[EMAIL PROTECTED]


   

Kevin A. Smith   

[EMAIL PROTECTED] 

   

 To: Struts Users Mailing List   

19-Nov-2002 10:27  

Please respond tocc:   

Struts Users MailingSubject: [OT] What's a CMS?   

List  

[EMAIL PROTECTED] 

pache.org 

   

   




I respectfully disagree on your Blogging != CMS assertion. At least for the
more fully-featured blogging systems (Roller, Radio, and Blogger). I think
of these as one-person/single-site CMS's.

--Kevin

-Original Message-
From: James Higginbotham [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 19, 2002 10:19 AM
To: Struts Users Mailing List
Subject: RE: Struts in CMS ?


Blogging != CMS.. Google CMS and get a formal definition. I just did a
requirements gathering project to find a true CMS solution, and I don't
know how many people classified blogging and cheesy web site publishing
as a CMS solution (well, at least 350 before I quite counting). Just a
pet peave of mine - trying to inform, nothing more.

FYI,
James

 -Original Message-
 From: Kevin A. Smith [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 19, 2002 7:55 AM
 To: Struts Users Mailing List
 Subject: RE: Struts in CMS ?


 The Roller weblogging package uses Struts. Here's a couple of links:

 Project home page: http://www.rollerweblogger.org/page/project
 Develper Diary: http://rollerweblogger.org/page/roller

 --Kevin

 -Original Message-
 From: Fabrice FOUREL [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 19, 2002 7:40 AM
 To: [EMAIL PROTECTED]
 Subject: Struts in CMS ?


 Hello,

 Does anyboy know if opencms (or another cms tool) support
 Struts-based application ? I saw there's an integration of
 JSPs (and JSP tags).

 Thanks.

 Fabrice Fourel



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


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



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


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







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


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




RE: Editable/non-editable fields

2002-08-26 Thread Kevin A. Smith

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

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


Hi all,

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

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

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

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

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

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

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

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

Any pointers are appreciated!

Thanks,
tomK


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


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




RE: RE: Editable/non-editable fields

2002-08-26 Thread Kevin A. Smith

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

Just my $0.02 worth . . .

--Kevin

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


Hi Kevin,


Thanks for your reply!

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


Thanks again

tomK


 Struts Users Mailing List [EMAIL PROTECTED] wrote:


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

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


Hi all,

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

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

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

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

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

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

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

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

Any pointers are appreciated!

Thanks,
tomK


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



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




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


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




RE: RE: Editable/non-editable fields

2002-08-26 Thread Kevin A. Smith

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

--Kevin

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


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

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


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

Just my $0.02 worth . . .

--Kevin

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


Hi Kevin,


Thanks for your reply!

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


Thanks again

tomK


 Struts Users Mailing List [EMAIL PROTECTED] wrote:


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

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


Hi all,

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

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

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

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

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

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

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

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

Any pointers are appreciated!

Thanks,
tomK


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



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




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


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

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


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




RE: Editable/non-editable fields

2002-08-26 Thread Kevin A. Smith

Gilles - 

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

--Kevin

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



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

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


Gilles Vandaele
0498 52 64 12
[EMAIL PROTECTED]




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


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




RE: Editable/non-editable fields

2002-08-26 Thread Kevin A. Smith

Gilles - 

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

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



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

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

Gilles Vandaele
0498 52 64 12
[EMAIL PROTECTED]


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




Gilles -

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

--Kevin

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



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

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


Gilles Vandaele
0498 52 64 12
[EMAIL PROTECTED]




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


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






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


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




RE: what does [RT Expr] mean in struts documentation

2002-08-26 Thread Kevin A. Smith

RT Expr = RunTime Expression

-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 4:08 PM
To: Struts Users Mailing List
Subject: what does [RT Expr] mean in struts documentation



 


A$HI$H


-
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes

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




RE: Outputting from a taglib in struts

2002-08-27 Thread Kevin A. Smith

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

--Kevin

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



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

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

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

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

Thanks

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






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


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




RE: [OT] conn pooling - what next?

2002-08-27 Thread Kevin A. Smith

If the DBA is manually killing off your connections, then the pool needs to be 
paranoid about checking to see if the connection is available before each operation. 
So this adds overhead to using the pool. In addition, consider this code:

Connection cn = pool.allocate();
Statement stmt = cn.createStatement(some sql here);
ResultSet rs = stmt.execute();

Given the above, the pool could check the state of the connection before it returns 
from allocate(), but the other exception handling would be up to you. A SQLException 
could get thrown from createStatement() or from execute() if the DBA whacks the 
connection. You could also get an exception while iterating thru the resultset.

So, I don't think that a more robust connection pool would totally solve your problem.

--Kevin

-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 27, 2002 10:40 AM
To: Struts List
Subject: [OT] conn pooling - what next?


I know this topic has come up in the past, but I'm wondering if
someone can help. I haven't tried Struts or Tomcat connection pooling,
but have tried some others recommended. The latest one recommended on
a Tomcat post was http://connpool.jensn.de/index.html and it seemed to
be working great.

The problem, though, with this one and other ones I've tried, is that
when the open connections are manually killed by the DBA the conn pool
does not work.

I end up with an error like this:

  java.sql.SQLException: Io exception:
  Software caused connection abort:
  socket write error

or

  java.sql.SQLException:
  ORA-00028: your session has been killed


Is there connection pooling that someone can recommend that will be
able to handle when connections are manually killed? I wouldn't be
surprised with the way things are set up here that no connection
pooling will work in our environment, but maybe someone can recommend
a very good one to use. Should I go with the struts pooling, tomcat's,
or maybe even poolman if it's still around?

Thanks for any help.

-- 

Rick
mailto:[EMAIL PROTECTED]


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


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




RE: Re[2]: [OT] conn pooling - what next?

2002-08-27 Thread Kevin A. Smith

If you're not concerned about these other errors, then Poolman (if you can still find 
it) might be a good fit. If I remember correctly, you could specify a SQL statement 
for it to execute (select 1 from dual) before allocating a connection from the pool. 
If it got a SQLException, it would establish a new connection and return that.

--Kevin
-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 27, 2002 10:59 AM
To: Struts Users Mailing List
Subject: Re[2]: [OT] conn pooling - what next?




On Tuesday, August 27, 2002, 10:49:45 AM, Kevin wrote:

KAS If the DBA is manually killing off your connections, then the
KAS pool needs to be paranoid about checking to see if the connection
KAS is available before each operation. So this adds overhead to
KAS using the pool.

 Is there a pool that does this checking? I might to suffer the
 overhead vs having the problems we have when our DBA messes
 around and kills stuff.


KAS In addition, consider this code:

KAS Connection cn = pool.allocate();
KAS Statement stmt = cn.createStatement(some sql here);
KAS ResultSet rs = stmt.execute();

KAS Given the above, the pool could check the state of the connection
KAS before it returns from allocate(), but the other exception
KAS handling would be up to you.

 I'm not really concerned with the problem of there being an error
 for the short time after the connections are killed and someone
 just got a connection and is about to use it. The problem is that
 a new connection is not able to be gotten at all after they are
 killed.

 Thanks for any more help or advice.

-- 

Rick
mailto:[EMAIL PROTECTED]


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


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




RE: bean:write .../

2002-08-28 Thread Kevin A. Smith

Where are you storing this User object? In the request/session/etc?

-Original Message-
From: struts user [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 9:44 AM
To: Struts Users Mailing List
Subject: RE: bean:write .../



Thank you, Sri! I misspelled my address in the form.
Now, I have a tougher question to solve. I would like
to put my user information in a user object called
User myUser=new User();. I assigned the user values
from form to myUser in my actionservlet. How do I
retrieve the value of that object such as username and
address in my JSP page? Thank you!!

Thanks,
Lee

--- Sri Sankaran [EMAIL PROTECTED] wrote:
 Since fullname shows up I assume that you have wired
 the action  bean to the page correctly.
 
 So, your form bean has
 
  public String getFullname() { ... }
  public String getAddress() { ... }
 
 Have you double-checked the spelling and case?  If
 the property in your bean:write is foo, the getter
 has to be getFoo().
 
 Sri
 
 -Original Message-
 From: struts user [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, August 28, 2002 8:31 AM
 To: [EMAIL PROTECTED]
 Subject: bean:write .../
 
 
 
 Hello All,
 
 In my actionservlet, I have the following:
 
 userInfoForm userForm = (userInfoForm) form;
 
 String fullname = userForm.getFullname();
 String address = userForm.getAddress();
 
 When I try to display the value in my JSP page using
 
 
 bean:write name=userInfoForm
 property=fullname/ bean:write
 name=userInfoForm property=address/
 
 Why the page just display the value of fullname and
 not both fullname and address? Thank you!!!
 
 Thanks,
 Lee
 
 __
 Do You Yahoo!?
 Yahoo! Finance - Get real-time stock quotes
 http://finance.yahoo.com
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

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


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




RE: bean:write .../

2002-08-28 Thread Kevin A. Smith

For example, assume you are storing the User object in the session under the key 
currentUser, then your tag would look like this:

bean:write name=currentUser scope=session property=userId /

This would display the user id for that user. The User object would need a getter 
named getUserId.

HTH,
--Kevin

-Original Message-
From: struts user [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 9:53 AM
To: Struts Users Mailing List
Subject: RE: bean:write .../



I am storing it in a session. Thank you!!!

Thanks,
Lee

--- Kevin A. Smith [EMAIL PROTECTED] wrote:
 Where are you storing this User object? In the
 request/session/etc?
 
 -Original Message-
 From: struts user [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 28, 2002 9:44 AM
 To: Struts Users Mailing List
 Subject: RE: bean:write .../
 
 
 
 Thank you, Sri! I misspelled my address in the form.
 Now, I have a tougher question to solve. I would
 like
 to put my user information in a user object called
 User myUser=new User();. I assigned the user
 values
 from form to myUser in my actionservlet. How do
 I
 retrieve the value of that object such as username
 and
 address in my JSP page? Thank you!!
 
 Thanks,
 Lee
 
 --- Sri Sankaran [EMAIL PROTECTED] wrote:
  Since fullname shows up I assume that you have
 wired
  the action  bean to the page correctly.
  
  So, your form bean has
  
   public String getFullname() { ... }
   public String getAddress() { ... }
  
  Have you double-checked the spelling and case?  If
  the property in your bean:write is foo, the
 getter
  has to be getFoo().
  
  Sri
  
  -Original Message-
  From: struts user [mailto:[EMAIL PROTECTED]] 
  Sent: Wednesday, August 28, 2002 8:31 AM
  To: [EMAIL PROTECTED]
  Subject: bean:write .../
  
  
  
  Hello All,
  
  In my actionservlet, I have the following:
  
  userInfoForm userForm = (userInfoForm) form;
  
  String fullname = userForm.getFullname();
  String address = userForm.getAddress();
  
  When I try to display the value in my JSP page
 using
  
  
  bean:write name=userInfoForm
  property=fullname/ bean:write
  name=userInfoForm property=address/
  
  Why the page just display the value of fullname
 and
  not both fullname and address? Thank you!!!
  
  Thanks,
  Lee
  
  __
  Do You Yahoo!?
  Yahoo! Finance - Get real-time stock quotes
  http://finance.yahoo.com
  
  --
  To unsubscribe, e-mail:  
 
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
  --
  To unsubscribe, e-mail:  
 
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do You Yahoo!?
 Yahoo! Finance - Get real-time stock quotes
 http://finance.yahoo.com
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

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


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




RE: struts-config windows 2 unix?

2002-08-28 Thread Kevin A. Smith

DOS (aka Windows) and Unix use different line-termination sequences. In Microsoft 
land, lines are terminated with a CR/LF pair. In Unix land, lines are terminated with 
LF. When you view a Windows created file on Unix, the extra CR displays as a control 
character.

--Kevin

P.S. CR == carriage return, LF == line feed

-Original Message-
From: slickdev [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 12:56 PM
To: Struts Users Mailing List
Subject: struts-config windows 2 unix?


Is it common to find xml validation errors, when editing struts-config.xml on window$, 
then trying to deploy the app on unix?
With vi, I notice the extra control char's in the file.  On unix, the database source 
mapping appears to work, but my app can't find its action classes in the 
WEB-INF/classes dir.  Returns error 500: no action instance for myclassname.

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




RE: struts-config windows 2 unix?

2002-08-28 Thread Kevin A. Smith

dos2unix is not always available. You can also ftp the offending file in text mode and 
then update the WAR file on the Unix box.

--Kevin

-Original Message-
From: Desjardins, Nicolas [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 1:36 PM
To: 'Struts Users Mailing List'
Subject: RE: struts-config windows 2 unix?


To convert a windows file into a unix format you can use the dos2unix
command under unix.
It will get rid of all the ^M caracters that you see under vi.

Nicolas 

-Original Message-
From: Kevin A. Smith [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 1:27 PM
To: Struts Users Mailing List
Subject: RE: struts-config windows 2 unix?


DOS (aka Windows) and Unix use different line-termination sequences. In
Microsoft land, lines are terminated with a CR/LF pair. In Unix land, lines
are terminated with LF. When you view a Windows created file on Unix, the
extra CR displays as a control character.

--Kevin

P.S. CR == carriage return, LF == line feed

-Original Message-
From: slickdev [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 12:56 PM
To: Struts Users Mailing List
Subject: struts-config windows 2 unix?


Is it common to find xml validation errors, when editing struts-config.xml
on window$, then trying to deploy the app on unix?
With vi, I notice the extra control char's in the file.  On unix, the
database source mapping appears to work, but my app can't find its action
classes in the WEB-INF/classes dir.  Returns error 500: no action instance
for myclassname.

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



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


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




RE: JSP thread safety

2002-08-28 Thread Kevin A. Smith

Not sure about the taglib class variables (but I'd really like the answer to that one 
also).

With respect to JSP thread safety, my understanding was that any variables declared in 
the page were only in scope during the execution of the page, much like variables in 
method scope. If the pages in question are also declaring private member variables or 
static variables, well that's another story entirely.

--Kevin

-Original Message-
From: Galbraith, Paul [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 1:34 PM
To: [EMAIL PROTECTED]
Subject: JSP thread safety


Can someone clear up basics of JSP thread safety for me?  Can I declare variables in 
scriptlets and maintain thread safety?  Also, what about custom tags.  They declare 
class variables, which makes me nervous...does the container ensure thread safety for 
custom tags (assuming they release properly in the release() method)?  Cheers,
 
Paul

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




RE: struts-config windows 2 unix? No Action Instance

2002-08-28 Thread Kevin A. Smith

Here's a silly question that's bit me a few times: are you sure that the .class file 
is physically packaged in the webapp?

-Original Message-
From: slickdev [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 2:02 PM
To: Struts Users Mailing List
Subject: Re: struts-config windows 2 unix? No Action Instance


thanks all... i find that the http status 500 problem is not from extra
control char's in the config, although i did clean the config file with
dos2unix anyway.

still getting:

  error 500: no action instance for myclassname

??



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


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




RE: struts-config windows 2 unix? No Action Instance

2002-08-28 Thread Kevin A. Smith

Are you missing a line-feed at the end of the struts-config.xml file? I've seen XML 
parsers get confused if the file doesn't terminate correctly. You could try adding 
another line-feed to the end of the file.

-Original Message-
From: slickdev [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 2:13 PM
To: Struts Users Mailing List
Subject: Re: struts-config windows 2 unix? No Action Instance


yeah, it's packaged at
 WEB-INF/classes/ecapp

I also set the struts-config action mapping thus:

 !-- database main page action --
 action
   path=/dbopsAction
  type=ecapp.dbopsAction
   scope=request
 /action

On winturd$, it runs fine either packaged, or not packaged (that is, i have
two separately compiled versions: one with a package statement; one
without).  Neither works on unix.  It has to be something really simple.  I
dropped the struts taglib example onto the sun tomcat server, and it works
OK... but not my app.


- Original Message -
From: Kevin A. Smith [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, August 28, 2002 1:03 PM
Subject: RE: struts-config windows 2 unix? No Action Instance


Here's a silly question that's bit me a few times: are you sure that the
.class file is physically packaged in the webapp?

-Original Message-
From: slickdev [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 2:02 PM
To: Struts Users Mailing List
Subject: Re: struts-config windows 2 unix? No Action Instance


thanks all... i find that the http status 500 problem is not from extra
control char's in the config, although i did clean the config file with
dos2unix anyway.

still getting:

  error 500: no action instance for myclassname

??





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


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




RE: First time penatly

2002-08-29 Thread Kevin A. Smith

begin-quote
 This has nothing to do with Struts.  This is a web container issue.  Read
 your web container docs.
/end-quote

--Kevin

-Original Message-
From: Billy Ng [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 2:20 PM
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Subject: Re: First time penatly


Thanks, Karr!  I am using Tomcat.  I find the jspc.bat in TOMCAT_HOME/bin
directory.  Couple more questions,

1) after I pre-compile the jsp files, should I put them in the
TOMCAT_HOME/work/ directory or in the
TOMCAT_HOME/webapps/myApp/WEB-INF/classes/ directory.

2) should I put the package declaration in the jsp files?

Billy Ng

- Original Message -
From: Karr, David [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, August 29, 2002 10:36 AM
Subject: RE: First time penatly


  -Original Message-
  From: Billy Ng [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, August 29, 2002 9:40 AM
  To: [EMAIL PROTECTED]
  Subject: First time penatly
 
  Hi folks,
 
  Everytime I start or restart the app, the user will
  experience the slowness
  becuase the jsp pages have to be compiled.  Long time ago, I
  read a book
  saying there is a way to pre-compile the jsp files to avoid
  this first time
  penatly, but I can't make it work.  Would anybody tell me how to do
  pre-compile, thanks!

 This has nothing to do with Struts.  This is a web container issue.  Read
 your web container docs.

 In short, there are two basic ways to do this:

 Write a single servlet that nudges the web container to compile all of
your
 JSP pages.  I believe several web containers already provide a feature to
do
 this, including Tomcat.

 Alternatively, all web containers have a command-line class, often called
 something like JspC, which will generate the servlet source code from
the
 JSP pages.  After you generate the servlet source code, you have to use
the
 java compiler to compile them, and you'll also most likely have to insert
 servlet and servlet-mapping elements in your web.xml file for
each
 one of those generated servlets.

 The tradeoff between these two strategies is that the first one is often
 much easier (if the web container provides the servlet), but the second
one
 provides for a more robust build process, as you'll see more possible
errors
 in your build, as opposed to after it's deployed.  On the other hand, the
 second strategy causes you to deploy a war file that is web-container
 specific.

 The JspC class in some containers also compile the generated servlet at
the
 same time.  Some of these web containers may either generate the web.xml
 fragment that needs to be inserted, or modify the web.xml directly with
 the updated mappings.

 Look for features like these in your web container docs and experiment.

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


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


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




RE: [Buttons] How do i code this in struts

2002-08-30 Thread Kevin A. Smith

Take out the space between %= and proc.getBigBrotherReport().

-Original Message-
From: Susmita Pati [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 2:54 PM
To: 'Struts Users Mailing List'
Subject: RE: [Buttons] How do i code this in struts


I had used 
 html:button property=button value=Monitor styleClass=MenuButton
onclick=MyWindow=window.open('%=
proc.getBigBrotherReport()%','MyWindow','toolbar=yes,location=yes,directori
es=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=750,height=
580');MyWindow.focus(); 
return false;/

The method does return me a string. I am getting the following error:

The request sent by the client was syntactically incorrect
(/%=%20proc.getBigBrotherReport()%).

Susmita

-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 2:48 PM
To: Struts Users Mailing List
Subject: RE: [Buttons] How do i code this in struts


What do you mean Struts-compliant?  Struts is not involved here since you
are using a standard html tag.  Make sure that the getBigBrotherReport()
method returns a string representation of a URL.

Sri

 -Original Message-
 From: Susmita Pati [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, August 30, 2002 2:33 PM
 To: 'Struts Users Mailing List'
 Subject: RE: [Buttons] How do i code this in struts
 
 
 Hi All
 
 I have the following in my jsp
 input type=button name=Submit4  value=Monitor 
 class=MenuButton onClick=MyWindow=window.open('%=
 proc.getBigBrotherReport()%','MyWindow','toolbar=yes,location
 =yes,directori
 es=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,wid
 th=750,height=
 580');MyWindow.focus(); 
 return false;
   /
 
 
  How do i change %= proc.getBigBrotherReport()% to be 
 struts complaint as its giving me an error out there
 
 TIA
 Susmita
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

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

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


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




RE: Struts advantages, Struts alternatives

2002-09-04 Thread Kevin A. Smith

Although the bulk of my experience is with Struts (which is a really cool, very 
productive framework IMHO), I've always wanted to give Tapestry a spin. It looks very 
intriguing.

http://tapestry.sf.net

--Kevin

-Original Message-
From: Sullivan, Sean C - MLG [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 04, 2002 1:17 PM
To: '[EMAIL PROTECTED]'
Subject: Struts advantages, Struts alternatives


My employer needs to decide if we should choose Struts 
as the standard Web/MVC framework for our company.

Jakarta Struts
==

 http://jakarta.apache.org/struts/

Struts advantages:
==

1) large user base
2) momentum
3) mindshare
4) has an active development team
5) is a Jakarta project
6) good documentation


Alternatives to Struts:
===


Barracuda

http://barracuda.enhydra.org/


article:  Barracuda versus other frameworks
http://barracuda.enhydra.org/cvs_source/Barracuda/docs/landscape.html


WebWork

http://www.theserverside.com/home/thread.jsp?thread_id=15137

http://www.opensymphony.com/webwork/


Tea (from Disney / Starwave )

http://opensource.go.com/

http://www-106.ibm.com/developerworks/java/library/wa-tea1.html


Other resources:


Jason Hunter's article: The Problems with JSP

 http://www.servlets.com/soapbox/problems-jsp.html

Wafer project

 http://www.waferproject.org/




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


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




RE: Struts advantages, Struts alternatives

2002-09-04 Thread Kevin A. Smith

And a quick check of the Tapestry user list archives shows much lower participation 
levels than on this esteemed list (not counting the [OT] stuff :)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 04, 2002 1:33 PM
To: [EMAIL PROTECTED]
Subject: RE: Struts advantages, Struts alternatives



One of the things that drove us back to struts was the large user
community.  

Tea = Disney = Evil (Aside from alignment I know nothing about them)

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




RE: Java Script help with client side validation

2002-09-06 Thread Kevin A. Smith

Kind of a WAG, but couldn't you iterate thru all the forms in the document except for 
the first one (forms[0]). That way you don't process A FORM (which I assume is the 
first form on the page), but you do evaluate the remaining ones.

--Kevin

var frmCount = Document.forms.length;
for(x = 1; x  frmCount; x++) {
   var current = Document.forms[x];
   // Do validation here
}
-Original Message-
From: Struts Rodolphe [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 12:20 PM
To: [EMAIL PROTECTED]
Subject: Java Script help with client side validation



Does anyone know who to write or have  a java script that does the following:

- Loop through the A FORM which contains an array lists of B FORM

- For each field in B FORM, validates the input for required, integer, ...etc.

I am newbie to java scripts, and the existing java scripts in validator-resources 
cannot be applied to the case where we have a form that contains an array of another 
form which has all fields required to be validated.

Thanks,

 



-
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes

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




RE: [OT][ALT-TECH] Apple Web Objects

2002-09-11 Thread Kevin A. Smith

Smalltalk, eh? I think that more than a few of the top Java names (Steele, Gosling) 
have a Lispish background, too.

-Original Message-
From: Brian Hickey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 8:51 AM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: [OT][ALT-TECH] Apple Web Objects


More fodder...

The Amiga was the first machine and OS to use flat memory addressing. It
had the best graphics of its time.

As for WebObjects, it is one of the two branches of history that the top
(IMHO) Java developers come from. The other is Smalltalk.



- Original Message -
From: Andrew Hill [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, September 11, 2002 8:20 AM
Subject: RE: [OT][ALT-TECH] Apple Web Objects


 ohhh now your asking for it!

 Meet the guru a few too many times did we? hehe

 Actually the OS was not too bad for the time. Pre-emtive multitasking,
gui,
 etc... (bit touchy though as it didnt have anything in the way of memory
 protection to stop different processes playing with memory that didnt
belong
 to them). And of course much of the magic of the Amiga was in its hardware
 which was marvellous for the time, and at the cost made it very much the
 premier games machine. (Also found a lot of use in TV production ,
 especially after the video toaster came out)

 And hey! I remember typing up some essays on my Amiga once so nyah! Wasnt
 used entirely for games. I must have spent at least five of the thousands
of
 hours I used it for serious stuff and anyway it had the best games so its
 little wonder gamers loved it :-P

 Useability of the Amiga was better than many systems (such as the ancient
 DOS boxes) , though certainly not to the same level as the MAC. Have to
 agree that one button is all you need. A second one can be useful at times
 (ie: paint software / cad / games etc...) but whoever came up with the
idea
 of context menus deserves a good flogging.

 -Original Message-
 From: Mark Kaye [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 11, 2002 20:00
 To: Struts Users Mailing List
 Subject: RE: [OT][ALT-TECH] Apple Web Objects


  -Original Message-
  From: Andrew Hill [mailto:[EMAIL PROTECTED]]
 
  Ah
  the good ol Amiga. A far more worthy home for the Motorola
  68000...

 Lol, just don't mention the OS or any kind of usability for the Amiga.
 Because it was dreadful.  Also, don't mention that 95% of them were used
 as games machines and nothing more ;)

 Macs only have one mouse button because that's all you need.  If you
 find you need more then you're using a clunky interface :)

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


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




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


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




RE: Question for using struts as our standard MVC framework

2002-09-11 Thread Kevin A. Smith

 But Struts is not yet a standard for which J2EE product providers can 
interoperably and reliably create tools.

Jayaraman - I'd be interested to hear what your suggestion would be for a standard 
framework would be. JSF? That's still in committee and won't be in wide circulation 
before next year. And after looking at early drafts of the spec, I think Struts has it 
beat in some areas, although I hold out hope since Mark M. is the lead on both 
projects.

--Kevin 

-Original Message-
From: Jayaraman Dorai [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 1:52 PM
To: Struts Users Mailing List
Subject: RE: Question for using struts as our standard MVC framework


The following comparison is by the authors of Designing Enterprise Application by 
the J2EE blue print team, which clearly says it is the other way. You can also check 
it at 
http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/web-tier/web-tier5.html#1094743

long quote from web page deleted

Jayaraman


-Original Message-
From: Khan, Manuchehar A (ACF) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 10:37 AM
To: 'Struts Users Mailing List'
Subject: Question for using struts as our standard MVC framework


Hello Folks. I work for Govt and we have major policy meeting for using
struts as our stantard framework. 
One developer in our team took the Sun pet store example and created a
framework that is basically a router/controller with xml configuration files
to define handlers and views. And that controller works fine..
He claims that strut has not followed sun standards and guidelines and
struts is not reliable. It can only support maximum 100 users and next year
struts team is coming up with new version based in JSTL and will trash all
releases.
I need some inputs from people here to make solid arguments for changing to
struts. 
Thanks...



-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 10:34 AM
To: Struts Users Mailing List; Dariusz Wojtas
Subject: RE: JDO example - rozpakowywac Commanderem


Was there a question in there I missed?

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




 -Original Message-
 From: Dariusz Wojtas [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 11, 2002 3:19 AM
 To: Struts Users Mailing List
 Subject: JDO example - rozpakowywac Commanderem


 Wednesday, September 11, 2002, 6:55:25 AM, you wrote:
 JM Sorry for the delay.  I've decided to post this on our website.

 JM Please feel free to download and try it out.

 JM  http://www.open-tools.org/struts-atlanta/downloads/DBMessageResources

 JM If for some reason the site goes down, just send me an email
 and I'll get it
 JM to you.




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




  -Original Message-
  From: James Mitchell [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, September 10, 2002 3:06 PM
  To: Struts Users Mailing List
  Subject: [Announce] [New Extension]
 ApplicationResources.properties from
  Database
 
 
  For anyone interested, I have finished implementing DBMessageResources
  which allows you to keep the key-value pairs (from your
  ApplicationResources.properties) in a single database table.
 
  You can load your property files into a table (generic schema
 is provided)
  and with this extension, by only modifying message-resources in the
  struts-config.xml your application will run WITHOUT ANY code
 changes. (See
  the readme.txt file included)
 
  This extension uses OJB (http://jakarta.apache.org/ojb) O/R mapping for
  database configuration and connection pool management.
 
  I have included a modified version of the (1.1b2) struts-example to
  demonstrate.
 
  I have tested this with Struts 1.1b2, and I'm sure it will
 work with 1.1b1
  (If anyone requires a 1.0.x compatible, I can look at that also)
 
  I will get this project available as soon as I work through some
  cvs issues
  on sf.net:
 
  If anyone is REALLY itching to get their hands on it sooner, send me a
  email.
 
  For those who were waiting, thanks for your patience.
 
 
  James Mitchell
  Software Engineer\Struts Evangelist
  Struts-Atlanta, the Open Minded Developer Network
  http://www.open-tools.org/struts-atlanta
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 


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




--
Best regards,
 Dariusz Wojtas mailto:[EMAIL PROTECTED]


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



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

RE: Backtracking Breadcrumbs

2002-09-19 Thread Kevin A. Smith

Seems like the ClickStream stuff from OpenSymphony might be able to be hacked into a 
breadcrumb manager component:

http://www.opensymphony.com/clickstream/

Of course, I've not seriously investigated it. Might be worth looking at...

--Kevin
-Original Message-
From: Howard Miller [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 2:45 PM
To: Struts Users Mailing List
Subject: RE: Backtracking  Breadcrumbs


Yes, I'd come up with something similar myself. It just seemed a bit fussy.

I hate writing code that involves remembering to do some operation on *every* page 
or it doesn't work - because I *always* forget. 

I was kind of hoping for something at a higher level, that once set up would just 
work. I guess I could override the Action class, but I'm not sure how to go about 
doing 
it that way.

Thanks anyway,

Howard

On 19 Sep 2002 at 14:30, Piper, James D CECOM SEC EPS wrote:

 I'm still new at this, but can you have each of your [Page ? Actions] add a
 uri to a linked list that gets stored in session.  Then your [Page X Action]
 could implement the perform() method to return 'new
 ActionForward(myLastURI)' where myLastURI is the String of the uri read out
 of the current bottom of your linked list (This means perform() will not be
 using mapping.findForward() to get the return value)?  You could also have
 your JSPs use the URIs in the linkedlist to generate a set of links to each
 of the past pages visited.
 
 - Jim
 
 -Original Message-
 From: Howard Miller [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 4:07 AM
 To: '[EMAIL PROTECTED]'
 Subject: Backtracking  Breadcrumbs
 
 
 Hi,
 
 Two slightly different yet related questions.
 
 Does anybody have an elegant way to forward to the page that called the
 page that has just been processed arbitrarily.
 
 A picture being worth a thousand words
 
 [Page ?]
 |
 [Page ? Action]
 |
 [Page X]
 | 
 [Page X Action]
 |
 [Page ?]
 
 The point being that [Page ?] can be any page, as almost all my pages will
 have a link to [Page X]. Page X's action needs to forward back to [Page ?]
 whatever that might be.
 
 ...And leading on from that. I want to have a trail of breadcrumbs at the
 top of my page, so when the user is on [Page X], the will see...
 
 [Home][Main Menu][Page ?][PageX]
 
 all but [Page X] being links to the appropriate page, so they can (a)
 shortcut back there and (b) they have sme sense of where they are (as my
 navigation is bit wild). 
 
 Any offers of a nice way to do this in Struts
 
 Cheers...
 
 Howard Miller
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 



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


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




RE: html:form frustration

2002-09-19 Thread Kevin A. Smith

That just associates a logical form name with the underlying Java implementation. You 
still need to tell Struts which form bean the action uses.

--Kevin

-Original Message-
From: Jonathan Kovacs [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 3:35 PM
To: Struts Users Mailing List
Subject: RE: html:form frustration


Danny,

Isn't that what this section of my struts_config.xml is for? 

  form-beans
form-bean name=editForm
   type=test.web.editForm /
  /form-beans

Jonathan


-Original Message-
From: Danny Mui [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 19, 2002 3:05 PM
To: Struts Users Mailing List
Subject: Re: html:form frustration


Looks like you're missing a form definition, lookup (the method causing 
the exception) is looking for the form bean when no name is specified in 
the field definition.

  action path=/load
type=test.web.LoadAction
-- name=editForm 
scope=request
validate=true
  forward name=continue
   path=/jsp/edit.jsp
  /forward
/action

Hope that works!

danny

Jonathan Kovacs wrote:

Hi All,

I've been beating my head against this problem for a couple days now 
and frankly, I'm stumped...

Using Struts 1.0.2, I'm attempting to display a select box which is 
filled with a list of options loaded into the session context.  I've 
verified that the options are loaded (using an html:iterate tag), but 
for some reason, the instant I add an html:form tag to my .jsp, all hell
breaks loose.

The path my application follows is this:

/jsp/index.jsp -- /load.do -- /jsp/edit.jsp

The relevant sections of my struts-config.xml file:

struts-config

  !-- == Form Bean Definitions 
 ===
--
  form-beans
form-bean name=editForm
   type=test.web.editForm /
  /form-beans

  !-- == Action Mapping Definitions 
 ==
--
  action-mappings
action path=/load
type=test.web.LoadAction
scope=request
validate=true
  forward name=continue
   path=/jsp/edit.jsp
  /forward
/action
action path=/edit
type=test.web.EditAction
name=editForm
scope=request
input=/jsp/edit.jsp
validate=false
  forward name=cancel
   path=/jsp/index.jsp
  /forward
  forward name=continue
   path=/jsp/edit.jsp
  /forward
/action
  /action-mappings
/struts-config

In edit.jsp:

html:form action=/edit.do
  html:select property=name
html:options collection=%= Constants.DATA %  
property=label/
  /html:select
/html:form

The error:

javax.servlet.ServletException
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageConte
xtImp
l.java:471)
at org.apache.jsp.edit$jsp._jspService(groups$jsp.java:312)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.j
a
va:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher
.
java:683)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatc
h
er.java:431)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatche
r
.java:355)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.j
a
va:2199)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:2023)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:540)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
n
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
h
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
a
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
a
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:
2
46)
at

RE: Request for additional link on struts docs[Suggestion]

2002-09-20 Thread Kevin A. Smith

What about http://marc.theaimsgroup.com? This is the archive I normally use for my 
searches.

--Kevin

-Original Message-
From: Michael Lee [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 20, 2002 3:16 PM
To: Struts Users Mailing List
Subject: Request for additional link on struts docs[Suggestion]


This is fantastic. I've happened upon this on some google searches but
google is many times behind.
Would this be a worthwhile link to have off the struts site?
Mike

- Original Message -
From: Galbreath, Mark [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, September 20, 2002 3:01 PM
Subject: RE: Struts with Jbuilder 6


 Here ya go:

 http://www.mail-archive.com/struts-user%40jakarta.apache.org/

 -Original Message-
 From: Michael Lee [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 20, 2002 2:53 PM
 To: Struts Users Mailing List
 Subject: Re: Struts with Jbuilder 6


 LOL!LOL! I can not belive your response to his link. My god...
 Anyway
 I have used struts with Jbuilder 4,6 and now 7. It is a java application,
 like any other. The question itself makes no sense. If you mean what good
 struts tools are there that integrate with jbuilder (almost any java ide
 really) then check out...
 http://easystruts.sourceforge.net/
 There are a bunch more on
 http://jakarta.apache.org/struts/resources/guis.html
 I think this is your problem. You are not doing your homework. When I post
a
 question here I make sure I have
 1) Read all the jakarta struts docs I can
 2) Read all pertinent jakarta struts javadocs
 3) Look through all pertinent struts examples in war files
 4) Google search

 You apparently not even done step 1. This is what many here find
insulting.
 Something I would like to see is these emails in searchable form. (I saw
an
 earlier email with a link)
 Mike



 - Original Message -
 From: Thomas T. Veldhouse [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Friday, September 20, 2002 1:12 PM
 Subject: Re: Struts with Jbuilder 6


  Tell him so -- don't just hand-off the URL as an answer.
 
  Tom Veldhouse
 
  - Original Message -
  From: Galbreath, Mark [EMAIL PROTECTED]
  To: 'Struts Users Mailing List' [EMAIL PROTECTED]
  Sent: Friday, September 20, 2002 10:32 AM
  Subject: RE: Struts with Jbuilder 6
 
 
   If you had actually read the document, Tom, you would know that its
main
   thread is how to do research before asking questions that the asker
has
   obviously done nothing to figure out on his own.  If you find that
   offensive, you've got a screw loose.
  
   Give a man a fish and he'll eat for a day.  Teach him how to fish and
  he'll
   eat for a lifetime.
  
   Mark
  
   -Original Message-
   From: Thomas T. Veldhouse [mailto:[EMAIL PROTECTED]]
   Sent: Friday, September 20, 2002 11:18 AM
   To: Struts Users Mailing List
   Subject: Re: Struts with Jbuilder 6
  
  
   He was telling you to ask your question in a smart way.  In
 otherwords,
  he
   was trying to act as list moderator.  I find that more offensive than
 some
   of the things that document addresses.  I didn't personally find
 anything
  in
   particular wrong with your question and a simple answer from somebody
  would
   have sufficed.  Try taking a look at EasyStruts from SourceForge.  I
 have
   not used it myself, so I can not say how well it does or does not
work.
  
   Tom Veldhouse
  
   - Original Message -
   From: BARADAT Benoit [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Sent: Friday, September 20, 2002 7:43 AM
   Subject: Re: Struts with Jbuilder 6
  
  
are you sure ?
I tryed to find the word Struts in this page. I didn't found it
!!!
   
   
- Original Message -
From: Galbreath, Mark [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, September 20, 2002 2:29 PM
Subject: RE: Struts with Jbuilder 6
   
   
 Start here:

 http://www.tuxedo.org/~esr/faqs/smart-questions.html
 http://www.tuxedo.org/~esr/faqs/smart-questions.html

 -Original Message-
 From: BARADAT Benoit [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 20, 2002 3:10 AM
 To: Struts Users Mailing List
 Subject: Struts with Jbuilder 6


 hi !

 I would like to use Struts with Jbuilder 6.

 How do I process ?


 Thanks in advance





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

RE: [Cust-Taglibs] How to mark a option using html:select?

2002-09-27 Thread Kevin A. Smith

I think you can. In the TLD you set rtexprvalue to true for that tag attribute and it 
should work.
--Kevin

-Original Message-
From: Ravi Kora [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 8:09 AM
To: 'Struts Users Mailing List'
Subject: RE: [Cust-Taglibs] How to mark a option using html:select?


I think you can't have a scriplet in a Struts tag as in the statement
html:select ... value=%=user.getCompany()%/

However, if you have tried it and it worked, please mail me back
-Ravi


Thanks  Regards,
Ravi Kora
[EMAIL PROTECTED]
337-739-3434(M) 

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

Sent: Friday, September 27, 2002 7:54 AM
To: [EMAIL PROTECTED]
Subject: RE: [Cust-Taglibs] How to mark a option using html:select?


You cannot nest tags this way. You need to do something like:

html:select ... value=%=user.getCompany()%/

or

bean:define id=userCompany name=user property=company/
html:select ... value=%=userCompany.toString()%/

- Thorsten

 -Original Message-
 From: Rademacher Tobias [mailto:[EMAIL PROTECTED]]
 Sent: 27 September 2002 11:55
 To: '[EMAIL PROTECTED]'
 Subject: [Cust-Taglibs] How to mark a option using html:select?
 
 
 I'm currently struggling with the fine custom taglibs of struts.
 
 I have question about the selection tag. I'm currently using:
 
   html:select property=role 
style=margin-left:25%
 
   html:options collection=roles 
   labelProperty=name 
   property=name
/
 /html:select
 
 Works fine. But anyway I want to get a specfic option marked,
 how do I do
 this?
 
 The following code fails in Catalina 4.0.3
 
   html:select property=role 
style=margin-left:25%
  value=bean:write name=user property=company/
 
   html:options collection=roles 
   labelProperty=name 
   property=name
/
 /html:select
 
 What did I wrong? Assing fix string to value attrib works
 fine. But not a
 dynamically assinged value?
 How can I achive that?
 
 Thx for any help.
 
 Bye
 Toby
 
 PS: What is the difference of html:options and
 html:optionsCollection? The
 docu of the last metioned tag  is fairly poor.
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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


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


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




RE: [FRIDAY] [OT] Best misunderstanding of an acronym?

2002-09-27 Thread Kevin A. Smith

I think it stands for Your Mileage May Vary.

AFAIK ;)

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 10:56 AM
To: Struts Users Mailing List
Subject: RE: [FRIDAY] [OT] Best misunderstanding of an acronym?


ummm.. So what does it actually mean?

-Original Message-
From: Peter S. Hamlen [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 22:51
To: Struts Users Mailing List
Subject: [FRIDAY] [OT] Best misunderstanding of an acronym?


Yesterday, I sent an email to a co-worker on a topic, and added at the
bottom YMMV without bothering to explain the acronym.

This morning (about ten minutes ago), she showed up and asked:
What does YMMV mean? You Make Me Vomit? 

Anyone else have any choice examples of misunderstood acronyms?

-Peter




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


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


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




[FRIDAY] [OT] Best misunderstanding of an acronym?

2002-09-27 Thread Kevin A. Smith

The one that always baffles me is TANSTAAFL.

A quick Google search reveals There Aint No Such Thing As A Free Lunch.

--Kevin

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




RE: [OT] Should I use a persistence layer?

2002-10-03 Thread Kevin A. Smith

I've been playing around with Hibernate (http://hibernate.sourceforge.net) on personal 
project and it seems to be pretty easy to work with and has good performance.

--Kevin

-Original Message-
From: Chen, Dean (Zhun) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 3:25 PM
To: 'Struts Users Mailing List'
Subject: RE: Should I use a persistence layer?


Thanks for this, what good persistence layers are there? Is there something
that works with struts and is simple?

Dean Chen




-Original Message-
From: Joe Barefoot [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 2:41 PM
To: Struts Users Mailing List
Subject: RE: Should I use a persistence layer?


Yes.  The standard approach is to only keep in memory results that are
currently on the page.  Have a persistence layer (either EJB or O/R mapping
tool, or a combination of the two) page the results for you. i.e., you
give it search criteria, sort criteria, a begin index, and an end index, and
it gives you back the results.  This solves two problems:  The one you are
encountering with bad results with two different windows, and the memory
problems associated with very large result sets.

There are examples of this sort of implementation out there; sorry I can't
provide links. :(

peace,
Joe

 -Original Message-
 From: Chen, Dean (Zhun) [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 03, 2002 10:13 AM
 To: 'Struts Users Mailing List'
 Subject: Should I use a persistence layer?
 
 
 Hi,
 
 For an web application, is there a way for a user to paginate through
 (similar to google) a lot of data across multiple browser windows.
 
 The usual way of paginating with session scope works fine. 
 However, if a
 user has 2 windows open on the same application. When he/she 
 queries on one,
 then queries on another, and then comes back to the first 
 window and click
 Next, he/she will get bad results.
 
 Does this lead to EJB or any other persistence layers?
 
 Thanks,
 
 
 Dean Chen
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 

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

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


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




RE: Searching the Archives...

2002-10-10 Thread Kevin A. Smith

What about the mail archive at marc.theaimsgroup.com? URL for the struts-user list is: 
http://marc.theaimsgroup.com/?l=struts-userr=1w=2

While they're search functionality isn't out of this world, I think it is better than 
mail-archive.

--Kevin

-Original Message-
From: Sri Sankaran 
Sent: Thursday, October 10, 2002 10:39 AM
To: Struts Users Mailing List
Subject: RE: Searching the Archives...


In most cases, it is pointless searching the mail-archive.  As Jeff pointed out you 
either get nothing or everything and the kitchen sink.

This is probably the reason why we get so many repeat questions.

What are the chances that struts-user be archived elsewhere with a more useful/helpful 
search facility.  Or maybe the good folks at mail-archive can be nudged into improving 
their search engine.  It is ironic that Google does a better job of searching the 
archive than does their own engine.

Sri

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, October 10, 2002 10:08 AM
To: 'Struts Users Mailing List'
Subject: RE: Searching the Archives...


yep

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 9:58 AM

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

I guess I want Google to search this archive for me.

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


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


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




RE: [OT] which object-relational mapping framework?

2002-10-10 Thread Kevin A. Smith

I used Castor on a previous project, about 4 months ago. Overall it is a very solid 
tool with an active user and developer community. HOWEVER, I ran into a few quirks 
retrieving dependent objects (think parent-child relationship) and its OQL support is 
not complete which can be a pain.

Lately, I've been playing around with Hibernate and have found that to be pretty darn 
cool, too.

--Kevin

-Original Message-
From: Andy Kriger [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 2:29 PM
To: Struts Users Mailing List
Subject: [OT] which object-relational mapping framework?


I'm embarking on a project for which I'd like to use an ORM to abstract the
dB access. Since there are so many out there (e.g. I'm considering Castor,
Torque, and OJB just from mentions in various Java articles), I'm wondering
which frameworks people have had experience with and your opinions on them.

thx
a



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


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




RE:[OT] Struts1.1 B2 BUG OR Weblogic 6.1 SP2 BUG??????????

2002-10-15 Thread Kevin A. Smith

I've experienced a very similar problem with WL (I can't remember the version number 
but I think it was in the 6.x series) on W2K and WinNT.

The short version is that not shutting down the WebLogic server cleanly causes this 
problem. The operating system socket resources are not being released. Even though the 
socket and port do not show up on a netstat, the OS thinks they are in use. The only 
workaround we had was to bounce the entire box. Not fun.

The longer version is that WebLogic rolled their own socket handling code using a 
combination of native code and Java. My theory is that they did this to get the 
benefits of select() before it was available in JDK 1.4 (java.nio.*). Something about 
a less than clean shutdown causes the native code to do bad things.

--Kevin

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 15, 2002 1:13 PM
To: Struts Users Mailing List
Subject: Re: Struts1.1 B2 BUG OR Weblogic 6.1 SP2 BUG??


I honestly don't know :-/  If it's a Struts issue it needs a bug filed 
against it (I don't think I've seen one for this).  My bet is on it 
being a WebLogic and/or config issue though.  Unfortunately, I'm not 
sure where to point you for a solution :-(

Hopefully someone that uses WebLogic can point you toward a solution. 
 Could you post additional information that may help them assist you? 
 It would be helpful to know how your server is setup probably - are you 
clustered as Kevin suggested?

Good Luck!

Nekkalapudi, Viplava wrote:

Exactly, the server is not able to bind to the port and throws
java.net.BindException.
I couldn't guess why Weblogic didn't shut down clean with Struts1.1 B2.
We tried to shutdown the server from the command line also (Not by CTRL-C).
And netstat -a is not showing the port I am using. 


-- 
Eddie Bush




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


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