RE: [OT] Is it possible to use commons-el in a standalone application?

2004-03-23 Thread Chappell, Simon P
Except on Friday afternoons, of course. :-)

>-Original Message-
>From: news [mailto:[EMAIL PROTECTED] Behalf Of Martin Cooper
>Sent: Tuesday, March 23, 2004 4:50 PM
>To: [EMAIL PROTECTED]
>Subject: Re: [OT] Is it possible to use commons-el in a standalone
>application?
>
>
>You're much more likely to get a good answer to this if you post to
>commons-user, where it would be ON topic. Asking on 
>struts-user if you can
>use a non-Struts library in a non-Struts app isn't the best 
>approach. ;-)
>
>--
>Martin Cooper



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



RE: Suggestion needed on good Struts book

2004-03-08 Thread Chappell, Simon P
Of course, back in the old days, we just used to read the source code for the example 
application. By the time you figured out it's convoluted approach to everything, you 
were an elite Struts developer! :-)

In terms of books, I like Sue Spielman's book:

http://www.amazon.com/exec/obidos/ISBN%3D1558608621/hitchhikeguidetoA/

and Struts Kick Start

http://www.amazon.com/exec/obidos/ISBN%3D0672324725/hitchhikeguidetoA/

I was involved in the pre-press technical review of Sue's book and found it to be a 
great guide: enough information but no spoonfeeding. At $15, try it, it's not a large 
investment.

Simon


>-Original Message-
>From: Frank Burns [mailto:[EMAIL PROTECTED]
>Sent: Monday, March 08, 2004 11:07 AM
>To: Struts Users Mailing List
>Subject: Re: Suggestion needed on good Struts book
>
>
>I would say I'm smack bang in the middle of my Struts learning 
>curve and, in
>my opinion, the single most useful resource I have found is 
>this six-part
>series of articles:
>
>http://www.ftponline.com/javapro/2002_09/online/servletsjsp_bku
>rniawan_09_13_02/
>
>In terms of books, I've got both "Struts In Action" and 
>"Programming Jakarta
>Struts".
>
>Each have their strengths and weaknesses in terms of the depth 
>and breadth
>of information that they contain.
>
>However, in terms of *how* the information is presented, I 
>personally find
>the "Struts In Action" really frustrating. It's as though the 
>content has
>been *forced* into the "In Action" format. And the result, 
>unfortunately, is
>that it works neither as a good hand-held tour through Struts (very
>long-winded, and repetitive), nor as a useful reference book 
>(the useful
>information is scattered throughout its various sections). 
>And, finally, I
>have the FOURTH *corrected* reprint, and it's still riddled with typos.
>
>My recommendation would be the above-mentioned series of articles and
>"Programming Jakarta Struts".
>
>Frank.
>
>- Original Message - 
>From: "Janarthan Sathiamurthy" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Sent: Monday, March 08, 2004 8:23 AM
>Subject: Re: Suggestion needed on good Struts book
>
>
>> Programming Jakarta Struts  - OReilly
>>
>> [EMAIL PROTECTED] wrote:Hi,
>>
>> I am a newbie to Struts.
>> I have been looking for books on Struts and found these on Amazon
>>
>> Programming Jakarta Struts - OReilly
>> Struts in Action - Manning
>> Struts Framework - Morgan Kaufmann
>> Struts Survival Guide - ObjectSource
>> Professional Jakarta Struts - Wrox
>> Struts Kick Start - Sams
>>
>> Can anybody suggest which is good?
>>
>> Thanks.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>> -
>> Do you Yahoo!?
>> Yahoo! Search - Find what you're looking for faster.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: ConcurrentModificationException

2004-03-04 Thread Sergei P. Volin


Yes, I got it! I' m just re-writing the code in that manner exactly.
Thank you very much for your attention :))

- Original Message - 
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, March 04, 2004 9:02 PM
Subject: Re: ConcurrentModificationException


|
| Quoting "Sergei P. Volin" <[EMAIL PROTECTED]>:
|
| >
| > Greetings,
| >
| > That is the question! Today morning I've found the reason of my
troubles. It
| > was my negligence in how I assigned a value to the iterated list that I
| > placed in the object which I then stored in a session for JSP's
iterator. I
| > declared the list in my action as a global variable, assigned a value to
it
| > in the protected void method which is called by the action execute
method
| > like this:
| >
| > public class MyAction  extends Action {
| > protected ArrayList list = new ArrayList();
| > ...
| > public ActionForward execute(...) ... {
| > list = new ArrayList();
| > myMethod(...);
| > obj.setList(list)
| > session.setAttribute("buinessObj", obj);
| > ...
| > return mapping.findForward(forward);
| > }
| > protected void myMethod(...) {
| > ...
| > while (rs.next()) {
| > ...
| > list.add(el);
| > ...
| > }
| > }
| > }
| >
| > Now this piece of code looks like:
| >
| > public class MyAction  extends Action {
| > protected ArrayList list = new ArrayList();
| > ...
| > public ActionForward execute(...) ... {
| > list = new ArrayList();
| > myMethod(...);
| > obj.setList(list)
| > session.setAttribute("buinessObj", obj);
| > ...
| > return mapping.findForward(forward);
| > }
| > protected void myMethod(...) {
| > ArrayList list = new ArrayList();// new
| > ...
| > while (rs.next()) {
| > ...
| > list.add(el);
| > ...
| > }
| > this.list =list;// new
| > }
| > }
| >
| > It looks that with this code I rid off all my troubles now - no
| > ConcurrentModificationException, no doubling of list size. I made a
dozen of
| > tests - no exceptions and the results were correct.
| >
| > Mr. Craig R. McClanahan! Am I right now with my code? Please, reply.
| > Thanks a lot,
|
| No, you are still going to have a problem with the shared instance
variable when
| two requests occur at the same time.  A general principle you should
follow is
| to *never* use instance variables in an Action (or a servlet, for that
matter)
| to store anything that relates only to the current request.  It's fine to
use
| instance variables to share things that are common to all requests,
though.
|
| An easy way to do this in your scenario would be something like this:
|
|  public class MyAction  extends Action {
|  // protected ArrayList list = new ArrayList(); (COMMENTED OUT)
|  ...
|  public ActionForward execute(...) ... {
|  List list = myMethod(); // NEWER
|  // myMethod(...); (COMMENTED OUT)
|  obj.setList(list)
|  session.setAttribute("buinessObj", obj);
|  ...
|  return mapping.findForward(forward);
|  }
|  // protected void myMethod(...) { (COMMENTED OUT)
|  protected List myMethod(...) {  // NEWER
|  ArrayList list = new ArrayList();// new
|  ...
|  while (rs.next()) {
|  ...
|  list.add(el);
|  ...
|  }
|  // this.list =list;// new (COMMENTED OUT)
|  return list;
|  }
|  }
|
|
| Craig
|
|
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
|



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



Re: ConcurrentModificationException

2004-03-04 Thread Sergei P. Volin

Oh, I'm sorry! Of course - Geeta! :-))
Yes, it's not Friday yet, though it's Thursday evening here already
(Moscow).

Sergei.
- Original Message - 
From: "Geeta Ramani" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, March 04, 2004 6:21 PM
Subject: Re: ConcurrentModificationException


|
| Yoohoo, Sergei, time to celebrate then, since you are on your way..:)  But
drop the
| "r" from my name, will ya..?! ;)
|
| (Sorry, it isn't Friday yet, is it..;).. Ok, maybe I need some sleep
too..)
| Geeta
|



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



Re: ConcurrentModificationException

2004-03-04 Thread Sergei P. Volin

Thank you very much, Greeta!
I'm just doing that :)) I'm moving out all instance stuff out of the class
declaration into local methods and transfer them into methods through
arguments.
Thanks to all you guys for your kind advices, I'm on the road now. My old
painfull problem is resolved! I started programming in Struts about 2 years
ago but didn't pay my attention on design guidelines when coding Action
classes. Too shame to me :((

- Original Message - 
From: "Geeta Ramani" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, March 04, 2004 4:22 PM
Subject: Re: ConcurrentModificationException


|
| Sergei:
|
| But you're getting there..:)  Take the declaration of ArrayList *out* of:
|
| >public class MyAction  extends Action {
| > protected ArrayList list = new ArrayList(); --->Take this out: BAD!!
|
| and move it inside the methods to make them local..:
|
| >public ActionForward execute(...) ... {
| > ArrayList list = new ArrayList(); -->GOOD!!
| > myMethod(list); --->GOOD!!
|
| and:
|
| > protected void myMethod(ArrayList list) { -->GOOD!!
| > ArrayList list = new ArrayList();-->Take this out: BAD!!
|
| Regards,
| Geeta
|
| Niall Pemberton wrote:
|
| > This is no good either. Action classes are not thread safe.
| >
| > Why not read the user manual. Theres a section "4.4.1 Action Class
Design
| > Guidelines"
| >
| >
http://jakarta.apache.org/struts/userGuide/building_controller.html#action_classes
| >
| > - Original Message -
| > From: "Sergei P. Volin" <[EMAIL PROTECTED]>
| > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
| > Sent: Thursday, March 04, 2004 9:32 AM
| > Subject: Re: ConcurrentModificationException
| >
| > >
| > > Greetings,
| > >
| > > That is the question! Today morning I've found the reason of my
troubles.
| > It
| > > was my negligence in how I assigned a value to the iterated list that
I
| > > placed in the object which I then stored in a session for JSP's
iterator.
| > I
| > > declared the list in my action as a global variable, assigned a value
to
| > it
| > > in the protected void method which is called by the action execute
method
| > > like this:
| > >
| > > public class MyAction  extends Action {
| > > protected ArrayList list = new ArrayList();
| > > ...
| > > public ActionForward execute(...) ... {
| > > list = new ArrayList();
| > > myMethod(...);
| > > obj.setList(list)
| > > session.setAttribute("buinessObj", obj);
| > > ...
| > > return mapping.findForward(forward);
| > > }
| > > protected void myMethod(...) {
| > > ...
| > > while (rs.next()) {
| > > ...
| > > list.add(el);
| > > ...
| > > }
| > > }
| > > }
| > >
| > > Now this piece of code looks like:
| > >
| > > public class MyAction  extends Action {
| > > protected ArrayList list = new ArrayList();
| > > ...
| > > public ActionForward execute(...) ... {
| > > list = new ArrayList();
| > > myMethod(...);
| > > obj.setList(list)
| > > session.setAttribute("buinessObj", obj);
| > > ...
| > > return mapping.findForward(forward);
| > > }
| > > protected void myMethod(...) {
| > > ArrayList list = new ArrayList();// new
| > > ...
| > > while (rs.next()) {
| > > ...
| > > list.add(el);
| > > ...
| > > }
| > > this.list =list;// new
| > > }
| > > }
| > >
| > > It looks that with this code I rid off all my troubles now - no
| > > ConcurrentModificationException, no doubling of list size. I made a
dozen
| > of
| > > tests - no exceptions and the results were correct.
| > >
| > > Mr. Craig R. McClanahan! Am I right now with my code? Please, reply.
| > > Thanks a lot,
| > >
| > > Sergei Volin.
| > >
| > >
| > > - Original Message -
| > > From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
| > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>;
"Sergei
| > P.
| > > Volin" <[EMAIL PROTECTED]>
| > > Cc: "Struts Users Mailing List" <[EMAIL PROTECTED]>
| > > Sent: Thursday, March 04, 2004 1:08 AM
| > > Subject: Re: C

Re: ConcurrentModificationException

2004-03-04 Thread Sergei P. Volin

Thanks:-) Good point. Definitely I need to refactor my application.

- Original Message - 
From: "Niall Pemberton" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, March 04, 2004 1:05 PM
Subject: Re: ConcurrentModificationException


|
| This is no good either. Action classes are not thread safe.
|
| Why not read the user manual. Theres a section "4.4.1 Action Class Design
| Guidelines"
|
|
http://jakarta.apache.org/struts/userGuide/building_controller.html#action_classes
|



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



Re: ConcurrentModificationException

2004-03-04 Thread Sergei P. Volin

Greetings,

That is the question! Today morning I've found the reason of my troubles. It
was my negligence in how I assigned a value to the iterated list that I
placed in the object which I then stored in a session for JSP's iterator. I
declared the list in my action as a global variable, assigned a value to it
in the protected void method which is called by the action execute method
like this:

public class MyAction  extends Action {
protected ArrayList list = new ArrayList();
...
public ActionForward execute(...) ... {
list = new ArrayList();
myMethod(...);
obj.setList(list)
session.setAttribute("buinessObj", obj);
...
return mapping.findForward(forward);
}
protected void myMethod(...) {
...
while (rs.next()) {
...
list.add(el);
...
}
}
}

Now this piece of code looks like:

public class MyAction  extends Action {
protected ArrayList list = new ArrayList();
...
public ActionForward execute(...) ... {
list = new ArrayList();
myMethod(...);
obj.setList(list)
session.setAttribute("buinessObj", obj);
...
return mapping.findForward(forward);
}
protected void myMethod(...) {
ArrayList list = new ArrayList();// new
...
while (rs.next()) {
...
list.add(el);
...
}
this.list =list;// new
}
}

It looks that with this code I rid off all my troubles now - no
ConcurrentModificationException, no doubling of list size. I made a dozen of
tests - no exceptions and the results were correct.

Mr. Craig R. McClanahan! Am I right now with my code? Please, reply.
Thanks a lot,

Sergei Volin.


- Original Message - 
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "Sergei P.
Volin" <[EMAIL PROTECTED]>
Cc: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, March 04, 2004 1:08 AM
Subject: Re: ConcurrentModificationException


|
| Quoting "Sergei P. Volin" <[EMAIL PROTECTED]>:
|
| >
| > I know this and I do not add/remove elements to/from list at all. Just
as I
| > said - only reading elements from list.
| > Are jsps (Tomcat) thread safe? I'm really worry about that.
| >
|
| Using instance variables to store request-specific state information, in a
JSP
| or servlet (or in a Struts Action class), is *not* thread safe, because
there
| is only one instance of the corresponding class, shared by simultaneous
| requests.  Using local variables, though, should be fine.
|
| Craig McClanahan
|
|
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
|
|



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



Re: ConcurrentModificationException

2004-03-02 Thread Sergei P. Volin

No add, no remove. More interesting fresh result. As I said it happens
sometimes, not always. Sometimes when I send two concurrent requests (from 2
*diferent* browser sessions!) there is no errors at all but the result jsp
data sheet is summarised! E.g. I get doubled amount of elements in the list
on both pages - 304 instead of 152 in normal situation. It seems obviously
that somewhere session objects of two different users are overlapped. How do
you like it?

- Original Message - 
From: "Guillermo Meyer" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, March 02, 2004 9:14 PM
Subject: RE: ConcurrentModificationException


|
| If the collection you are iterating is not synchronized, you can get
| this error if you remove or add elements. Try using java.util.Vector as
| your collection implementation.
|
| -Original Message-
| From: [EMAIL PROTECTED]
| [mailto:[EMAIL PROTECTED]
| Sent: Martes, 02 de Marzo de 2004 03:12 p.m.
| To: [EMAIL PROTECTED]
| Subject: RE: ConcurrentModificationException
|
|
| genarally you get this error with lists if you are iterating over list
| and remove element/add element to list..
|
| -Original Message-
| From: Sergei P. Volin [mailto:[EMAIL PROTECTED]
| Sent: Tuesday, March 02, 2004 7:08 PM
| To: Struts Users Mailing List
| Subject: Re: ConcurrentModificationException
|
|
|
| The exception arised by doAfterBody method of IterateTag class, namely
| at . It means that at least one time the body of
| iteration was done. I can guarantee that inside itereator tags -
| ... I do not change nor iterator either
| session attributes - just reading of session beans. So if smth of that
| changes is that only due to some kind of requests interaction. I don't
| know how it could be. This is really painful to me since I can't even
| think what could it be and the issue persists from time to time. And
| again - the application works smoothly when there is no collision of
| requests.
|
| - Original Message - 
| From: "Brad Balmer" <[EMAIL PROTECTED]>
| To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
| Sent: Tuesday, March 02, 2004 8:49 PM
| Subject: Re: ConcurrentModificationException
|
|
| |
| | Any chance that you were iterating through your HttpSession removing
| | attributes?
| |
| | Sergei P. Volin wrote:
| |
| | >Greetings!
| | >
| | >Why did I get this message when sending two concurent requests to the
| same page?
| | >I'm using:
| | >1) RH8.0, Linux 2.4.18 #2 SMP
| | >2) java version "1.4.0"
| | >Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0)
| | >Classic VM (build 1.4.0, J2RE 1.4.0 IBM build cxia32140-20020917a
| | >(JIT
| enabled: jitc))
| | >3) Tomcat 5.0.19
| | >4) Struts 1.1
| | >
| | >The same exception I've got on 4.1.24. I really have problems (with
| | >other
| symptoms) with concurrent requests. Not often (because server is not
| highly
| exploited) but persisted. And more often on Linux platform than on
| Windows. Why so? Could it be a jvm issue? Or may be Tomcat? Or Struts?
| Or mine? Without concurrent requests application works smoothly.
| | >
| | >Regards,
| | >
| | >Sergei Volin.
| | >
| | >HTTP Status 500 -
| | >



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



Re: ConcurrentModificationException

2004-03-02 Thread Sergei P. Volin

I know this and I do not add/remove elements to/from list at all. Just as I
said - only reading elements from list.
Are jsps (Tomcat) thread safe? I'm really worry about that.

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 02, 2004 9:11 PM
Subject: RE: ConcurrentModificationException


|
| genarally you get this error with lists if you are iterating over list and
remove element/add element to list..
|
| -Original Message-
| From: Sergei P. Volin [mailto:[EMAIL PROTECTED]
| Sent: Tuesday, March 02, 2004 7:08 PM
| To: Struts Users Mailing List
| Subject: Re: ConcurrentModificationException
|
|
|
| The exception arised by doAfterBody method of IterateTag class, namely at
| . It means that at least one time the body of iteration
was
| done. I can guarantee that inside itereator tags -
| ... I do not change nor iterator either
| session attributes - just reading of session beans. So if smth of that
| changes is that only due to some kind of requests interaction. I don't
know
| how it could be. This is really painful to me since I can't even think
what
| could it be and the issue persists from time to time. And again - the
| application works smoothly when there is no collision of requests.
|
| - Original Message - 
| From: "Brad Balmer" <[EMAIL PROTECTED]>
| To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
| Sent: Tuesday, March 02, 2004 8:49 PM
| Subject: Re: ConcurrentModificationException
|
|
| |
| | Any chance that you were iterating through your HttpSession removing
| | attributes?
| |
| | Sergei P. Volin wrote:
| |
| | >Greetings!
| | >
| | >Why did I get this message when sending two concurent requests to the
| same page?
| | >I'm using:
| | >1) RH8.0, Linux 2.4.18 #2 SMP
| | >2) java version "1.4.0"
| | >Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0)
| | >Classic VM (build 1.4.0, J2RE 1.4.0 IBM build cxia32140-20020917a (JIT
| enabled: jitc))
| | >3) Tomcat 5.0.19
| | >4) Struts 1.1
| | >
| | >The same exception I've got on 4.1.24. I really have problems (with
other
| symptoms) with concurrent requests. Not often (because server is not
highly
| exploited) but persisted. And more often on Linux platform than on
Windows.
| Why so? Could it be a jvm issue? Or may be Tomcat? Or Struts? Or mine?
| Without concurrent requests application works smoothly.
| | >
| | >Regards,
| | >
| | >Sergei Volin.
| | >
| | >HTTP Status 500 -
| | >
| |
|
>---
| -
| | >
| | >type Exception report
| | >
| | >message
| | >
| | >description The server encountered an internal error () that prevented
it
| from fulfilling this request.
| | >
| | >exception
| | >
| | >org.apache.jasper.JasperException
| | >
|
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
| 58)
| | >
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
| | > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
| | > javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
| | >
|
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
| 69)
| | >
|
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
| sor.java:455)
| | >
|
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
| | >
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
| | > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
| | > javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
| | > javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
| | >
com.volin.filters.CompressionFilter.doFilter(CompressionFilter.java:85)
| | >
| | >root cause
| | >
| | >java.util.ConcurrentModificationException
| | >
java.util.AbstractList$Itr.checkForComodification(AbstractList.java:444)
| | > java.util.AbstractList$Itr.next(AbstractList.java:417)
| | >
| org.apache.struts.taglib.logic.IterateTag.doAfterBody(IterateTag.java:401)
| | >
|
org.apache.jsp.admin.sidEditorSurveys_jsp._jspService(sidEditorSurveys_jsp.j
| ava:1214)
| | > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
| | > javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
| | >
|
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
| 11)
| | >
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
| | > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
| | > javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
| | >
|
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
| 69)
| | >
|
org.apache.struts.action.RequestProcessor.processForw

Re: ConcurrentModificationException

2004-03-02 Thread Sergei P. Volin

The exception arised by doAfterBody method of IterateTag class, namely at
. It means that at least one time the body of iteration was
done. I can guarantee that inside itereator tags -
... I do not change nor iterator either
session attributes - just reading of session beans. So if smth of that
changes is that only due to some kind of requests interaction. I don't know
how it could be. This is really painful to me since I can't even think what
could it be and the issue persists from time to time. And again - the
application works smoothly when there is no collision of requests.

- Original Message - 
From: "Brad Balmer" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 02, 2004 8:49 PM
Subject: Re: ConcurrentModificationException


|
| Any chance that you were iterating through your HttpSession removing
| attributes?
|
| Sergei P. Volin wrote:
|
| >Greetings!
| >
| >Why did I get this message when sending two concurent requests to the
same page?
| >I'm using:
| >1) RH8.0, Linux 2.4.18 #2 SMP
| >2) java version "1.4.0"
| >Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0)
| >Classic VM (build 1.4.0, J2RE 1.4.0 IBM build cxia32140-20020917a (JIT
enabled: jitc))
| >3) Tomcat 5.0.19
| >4) Struts 1.1
| >
| >The same exception I've got on 4.1.24. I really have problems (with other
symptoms) with concurrent requests. Not often (because server is not highly
exploited) but persisted. And more often on Linux platform than on Windows.
Why so? Could it be a jvm issue? Or may be Tomcat? Or Struts? Or mine?
Without concurrent requests application works smoothly.
| >
| >Regards,
| >
| >Sergei Volin.
| >
| >HTTP Status 500 -
| >
|
>---
-
| >
| >type Exception report
| >
| >message
| >
| >description The server encountered an internal error () that prevented it
from fulfilling this request.
| >
| >exception
| >
| >org.apache.jasper.JasperException
| >
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
58)
| > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
| > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
| > javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
| >
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
69)
| >
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
sor.java:455)
| >
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
| > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
| > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
| > javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
| > javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
| > com.volin.filters.CompressionFilter.doFilter(CompressionFilter.java:85)
| >
| >root cause
| >
| >java.util.ConcurrentModificationException
| > java.util.AbstractList$Itr.checkForComodification(AbstractList.java:444)
| > java.util.AbstractList$Itr.next(AbstractList.java:417)
| >
org.apache.struts.taglib.logic.IterateTag.doAfterBody(IterateTag.java:401)
| >
org.apache.jsp.admin.sidEditorSurveys_jsp._jspService(sidEditorSurveys_jsp.j
ava:1214)
| > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
| > javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
| >
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
11)
| > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
| > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
| > javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
| >
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
69)
| >
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
sor.java:455)
| >
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
| > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
| > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
| > javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
| > javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
| > com.volin.filters.CompressionFilter.doFilter(CompressionFilter.java:85)
| >
| >note The full stack trace of the root cause is available in the Tomcat
logs.
| >
| >
|
>---
-
| >
| >Apache Tomcat/5.0.19
| >
| >
|
|
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
|
|



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



ConcurrentModificationException

2004-03-02 Thread Sergei P. Volin
Greetings!

Why did I get this message when sending two concurent requests to the same page?
I'm using:
1) RH8.0, Linux 2.4.18 #2 SMP
2) java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0)
Classic VM (build 1.4.0, J2RE 1.4.0 IBM build cxia32140-20020917a (JIT enabled: jitc))
3) Tomcat 5.0.19
4) Struts 1.1

The same exception I've got on 4.1.24. I really have problems (with other symptoms) 
with concurrent requests. Not often (because server is not highly exploited) but 
persisted. And more often on Linux platform than on Windows. Why so? Could it be a jvm 
issue? Or may be Tomcat? Or Struts? Or mine? Without concurrent requests application 
works smoothly.

Regards,

Sergei Volin.

HTTP Status 500 - 



type Exception report

message 

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception 

org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
com.volin.filters.CompressionFilter.doFilter(CompressionFilter.java:85)

root cause 

java.util.ConcurrentModificationException
java.util.AbstractList$Itr.checkForComodification(AbstractList.java:444)
java.util.AbstractList$Itr.next(AbstractList.java:417)
org.apache.struts.taglib.logic.IterateTag.doAfterBody(IterateTag.java:401)

org.apache.jsp.admin.sidEditorSurveys_jsp._jspService(sidEditorSurveys_jsp.java:1214)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
com.volin.filters.CompressionFilter.doFilter(CompressionFilter.java:85)

note The full stack trace of the root cause is available in the Tomcat logs.




Apache Tomcat/5.0.19

RE: Life, the Universe and Everything (was: RE: [OT] RE: Memory usage)

2004-03-02 Thread Chappell, Simon P
Good point about the testing. I didn't mention it because I was responding to specific 
issues in the original email, but testing is everything. Your end-user/customer will 
not care if you used all the trendy GoF patterns, if the software doesn't work. The 
software must work. Testing is the best way that we have at this time of ensuring 
that. Thus we have:

Simon's 1st of Software Development: "Working code trumps everything".

Learn it, live it , love it. There will be a test (pun intended! :-)

Simon

>-Original Message-
>From: Martin Gainty [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, March 02, 2004 10:18 AM
>To: Struts Users Mailing List; [EMAIL PROTECTED]
>Subject: Re: Life, the Universe and Everything (was: RE: [OT] 
>RE: Memory
>usage)
>
>
>Interesting point about tech leads.. I agree wholeheartedly
>I specifically have agree with "enthusiasm for learning new
>technologies/methodologies"
>I would also add "Must ensure product works on all client platforms"
>You would be surprised how much software is shipped without 
>any testing or
>consideration
>for the user's environment
>~My 2 cents~
>Martin Gainty
>- Original Message -
>From: "P K" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>;
><[EMAIL PROTECTED]>
>Sent: Tuesday, March 02, 2004 10:50 AM
>Subject: RE: Life, the Universe and Everything (was: RE: [OT] 
>RE: Memory
>usage)
>
>
>> so you reckon that hinting to my Manager, whom we both 
>report to, about my
>frustrations isn't going to help much?
>>
>> Thanks for the suggestion about the small company though. 
>Looking back,
>the most fun I had at work was working for a small company.
>>
>> Simons, Your suggestion # 4 is great nad #5 really 
>interesting. Thanks.
>>
>> Andrew Hill <[EMAIL PROTECTED]> wrote:
>> Ive found the best way to avoid those kind of morons is to 
>work at small
>> companies where any deadwood has nowhere to hide and is 
>quickly pruned :-)
>> Our tech leads really know their stuff here.
>>
>>
>> -Original Message-
>> From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, 2 March 2004 06:28
>> To: Struts Users Mailing List
>> Subject: Life, the Universe and Everything (was: RE: [OT] RE: Memory
>> usage)
>>
>>
>> While the original flame war was less helpful, the question that has
>emerged
>> from it's ashes is a good one. I don't claim to have all the 
>answers, but
>I
>> can offer some personal observations. Feel free to disagree.
>>
>> 1. You can do nothing about those who choose not to learn. I've tried
>> changing them and it doesn't work. I consider this a basic fact.
>>
>> 2. You have a great deal of control over your ability to 
>learn. If you
>> aren't big time into learning, then I recommend catching 
>some enthusiasm
>for
>> it.
>>
>> 3. There will be always be good and bad tech leads. I am a 
>tech lead; I
>try
>> to be a good one. I can put a String to standard out or 
>standard error!
>;-)
>>
>> 4. I had the same frustrations that you have. I made the 
>decision that the
>> best way to restore the balance of good in the universe, was 
>to try to
>> become the kind of tech lead that I would have wanted when I was a
>> newbie/humble grunt. I teach a class on learning Java one 
>lunchtime a week
>> and try to bestow a little wisdom and encouragement whenever 
>I can. I am a
>> Java mentor here and I lead a study group of us that are 
>seeking our Java
>> Certification.
>>
>> 5. No one reads documentation. This is a fact. Learn what is 
>"drop dead
>> fired and escorted from the building" important and then try to
>> auto-generate it. :-)
>>
>> 6. Leadership is a rare commodity. There's a lot of 
>management out there,
>> but precious little leadership. Again, deal with it. Become 
>a leader and
>> just do what needs to be done. This is what I have tended to 
>do. The ol'
>> saying about "it's easier to ask forgiveness than 
>permission" is very true
>> (except I sometimes forget to ask for forgiveness! :-)
>>
>> 7. Black team? How 90's, Our team wears Hawaiian shirts! (Honest. :-)
>>
>> Simon
>>
>> >-Original Message-
>> >From: P K [mailto:[EMAIL PROTECTED]
>> >Sent: Monday, March 01, 2004 3:58 PM
>> >To: [EMAIL PROTECTED]
>> >Subject: RE: [OT] RE: Memory usage
>> >
>> >

RE: Life, the Universe and Everything (was: RE: [OT] RE: Memory usage)

2004-03-02 Thread P K
so you reckon that hinting to my Manager, whom we both report to, about my 
frustrations isn't going to help much?

Thanks for the suggestion about the small company though. Looking back, the most fun I 
had at work was working for a small company.
 
Simons, Your suggestion # 4 is great nad #5 really interesting. Thanks.

Andrew Hill <[EMAIL PROTECTED]> wrote:
Ive found the best way to avoid those kind of morons is to work at small
companies where any deadwood has nowhere to hide and is quickly pruned :-)
Our tech leads really know their stuff here.


-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 2 March 2004 06:28
To: Struts Users Mailing List
Subject: Life, the Universe and Everything (was: RE: [OT] RE: Memory
usage)


While the original flame war was less helpful, the question that has emerged
from it's ashes is a good one. I don't claim to have all the answers, but I
can offer some personal observations. Feel free to disagree.

1. You can do nothing about those who choose not to learn. I've tried
changing them and it doesn't work. I consider this a basic fact.

2. You have a great deal of control over your ability to learn. If you
aren't big time into learning, then I recommend catching some enthusiasm for
it.

3. There will be always be good and bad tech leads. I am a tech lead; I try
to be a good one. I can put a String to standard out or standard error! ;-)

4. I had the same frustrations that you have. I made the decision that the
best way to restore the balance of good in the universe, was to try to
become the kind of tech lead that I would have wanted when I was a
newbie/humble grunt. I teach a class on learning Java one lunchtime a week
and try to bestow a little wisdom and encouragement whenever I can. I am a
Java mentor here and I lead a study group of us that are seeking our Java
Certification.

5. No one reads documentation. This is a fact. Learn what is "drop dead
fired and escorted from the building" important and then try to
auto-generate it. :-)

6. Leadership is a rare commodity. There's a lot of management out there,
but precious little leadership. Again, deal with it. Become a leader and
just do what needs to be done. This is what I have tended to do. The ol'
saying about "it's easier to ask forgiveness than permission" is very true
(except I sometimes forget to ask for forgiveness! :-)

7. Black team? How 90's, Our team wears Hawaiian shirts! (Honest. :-)

Simon

>-Original Message-
>From: P K [mailto:[EMAIL PROTECTED]
>Sent: Monday, March 01, 2004 3:58 PM
>To: [EMAIL PROTECTED]
>Subject: RE: [OT] RE: Memory usage
>
>
>Sorry to continue on this topic. I've learnt a great deal of
>non struts stuff on this list and this only adds to it.
>I've been bothered (mostly in my mind) with questions about
>peoples capabilities and desires when it comes to work. Viru,
>this original poster of the question on Memory Usage clearly
>has a desire to learn, but what about people who don't? How do
>you deal with them?
>I currently work with a Tech Lead who wouldn't be able to
>output a String to standard out if asked to write a program. I
>don't care about her taking credit for the work that we do.
>She doesn't provide any leadership whatsoever to the project
>except produce paper that no one bothers to read. Have you
>guys come across situations like this? What have you done
>about it? Don't get me wrong - I am not prone to complaining
>nor do I think I am a member of the elite 'Black Team'.
>
>Quoting "Dhaliwal, Pritpal (HQP)" 
:
>> +1
>>
>> I agree with everyone who has responded. We should not
>clutter this very
>> friendly mailing list with things that don't belong here,
>that includes "not
>> so nice" responses. I haven't been on many, but this is by
>far my favorite
>> list, even though I am mainly a spectator.
>>
>> I lashed out because this question clearly didn't belong
>here. If the person
>> had followed anything in
>http://www.catb.org/~esr/faqs/smart-questions.html,
>> it must that they were polite. They certainly didn't do much
>investigation
>> outside on the internet. The little bit of unfriendliness, I
>dunno why it
>> came out. Unprofessional, it shouldn't have came out.
>>
>Even questions that don't belong here deserve to be treated
>with respect. That
>is the single most obvious characteristic of STRUTS-USER that
>is distinctive
>(even though it has lots of other good qualities).
>Unfortunately, you decided to unload on a poster in a manner
>that is decidedly
>out of the norm for STRUTS-USER. Your response is the kind of

RE: Life, the Universe and Everything (was: RE: [OT] RE: Memory usage)

2004-03-02 Thread Chappell, Simon P
Of course, it's possible to take that to the extreme. The first place where I worked 
when I moved to America, was so small that I was the IS department! :-)

Simon

>-Original Message-
>From: Andrew Hill [mailto:[EMAIL PROTECTED]
>Sent: Monday, March 01, 2004 9:47 PM
>To: Struts Users Mailing List
>Subject: RE: Life, the Universe and Everything (was: RE: [OT] 
>RE: Memory
>usage)
>
>
>Ive found the best way to avoid those kind of morons is to 
>work at small
>companies where any deadwood has nowhere to hide and is 
>quickly pruned :-)
>Our tech leads really know their stuff here.

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



Life, the Universe and Everything (was: RE: [OT] RE: Memory usage)

2004-03-01 Thread Chappell, Simon P
While the original flame war was less helpful, the question that has emerged from it's 
ashes is a good one. I don't claim to have all the answers, but I can offer some 
personal observations. Feel free to disagree.

1. You can do nothing about those who choose not to learn. I've tried changing them 
and it doesn't work. I consider this a basic fact.

2. You have a great deal of control over your ability to learn. If you aren't big time 
into learning, then I recommend catching some enthusiasm for it.

3. There will be always be good and bad tech leads. I am a tech lead; I try to be a 
good one. I can put a String to standard out or standard error! ;-)

4. I had the same frustrations that you have. I made the decision that the best way to 
restore the balance of good in the universe, was to try to become the kind of tech 
lead that I would have wanted when I was a newbie/humble grunt. I teach a class on 
learning Java one lunchtime a week and try to bestow a little wisdom and encouragement 
whenever I can. I am a Java mentor here and I lead a study group of us that are 
seeking our Java Certification.

5. No one reads documentation. This is a fact. Learn what is "drop dead fired and 
escorted from the building" important and then try to auto-generate it. :-)

6. Leadership is a rare commodity. There's a lot of management out there, but precious 
little leadership. Again, deal with it. Become a leader and just do what needs to be 
done. This is what I have tended to do. The ol' saying about "it's easier to ask 
forgiveness than permission" is very true (except I sometimes forget to ask for 
forgiveness! :-)

7. Black team? How 90's, Our team wears Hawaiian shirts! (Honest. :-)

Simon

>-Original Message-
>From: P K [mailto:[EMAIL PROTECTED]
>Sent: Monday, March 01, 2004 3:58 PM
>To: [EMAIL PROTECTED]
>Subject: RE: [OT] RE: Memory usage
>
>
>Sorry to continue on this topic. I've learnt a great deal of 
>non struts stuff on this list and this only adds to it.
>I've been bothered (mostly in my mind) with questions about 
>peoples capabilities and desires when it comes to work. Viru, 
>this original poster of the question on Memory Usage clearly 
>has a desire to learn, but what about people who don't? How do 
>you deal with them?
>I currently work with a Tech Lead who wouldn't be able to 
>output a String to standard out if asked to write a program. I 
>don't care about her taking credit for the work that we do. 
>She doesn't provide any leadership whatsoever to the project 
>except produce paper that no one bothers to read. Have you 
>guys come across situations like this? What have you done 
>about it? Don't get me wrong - I am not prone to complaining 
>nor do I think I am a member of the elite 'Black Team'.
>
>Quoting "Dhaliwal, Pritpal (HQP)" <[EMAIL PROTECTED]>:
>> +1
>> 
>> I agree with everyone who has responded. We should not 
>clutter this very
>> friendly mailing list with things that don't belong here, 
>that includes "not
>> so nice" responses. I haven't been on many, but this is by 
>far my favorite
>> list, even though I am mainly a spectator. 
>> 
>> I lashed out because this question clearly didn't belong 
>here. If the person
>> had followed anything in 
>http://www.catb.org/~esr/faqs/smart-questions.html,
>> it must that they were polite. They certainly didn't do much 
>investigation
>> outside on the internet. The little bit of unfriendliness, I 
>dunno why it
>> came out. Unprofessional, it shouldn't have came out.
>> 
>Even questions that don't belong here deserve to be treated 
>with respect. That
>is the single most obvious characteristic of STRUTS-USER that 
>is distinctive
>(even though it has lots of other good qualities).
>Unfortunately, you decided to unload on a poster in a manner 
>that is decidedly
>out of the norm for STRUTS-USER. Your response is the kind of 
>behavior that
>creates problems for the perception of open source projects as 
>being "friendly"
>to users or not. If you think the topic is totally out of scope for
>STRUTS-USER, then you should either (a) answer the question 
>anyway but point
>people to where they should really be asking; (b) *gently* 
>encourage the user
>to explore the other resources that are available (the 
>archives are full of
>examples of folks who have done this), or (c) shut your yap 
>and press DELETE
>instead of SUBMIT on your replies :-).
>The culture of the STRUTS-USER list has always been 
>*deliberately* different
>from the "you idiot, how could you be so stupid as to as

RE: [OT] RE: Memory usage

2004-03-01 Thread P K
Sorry to continue on this topic. I've learnt a great deal of non struts stuff on this 
list and this only adds to it.
I've been bothered (mostly in my mind) with questions about peoples capabilities and 
desires when it comes to work. Viru, this original poster of the question on Memory 
Usage clearly has a desire to learn, but what about people who don't? How do you deal 
with them?
I currently work with a Tech Lead who wouldn't be able to output a String to standard 
out if asked to write a program. I don't care about her taking credit for the work 
that we do. She doesn't provide any leadership whatsoever to the project except 
produce paper that no one bothers to read. Have you guys come across situations like 
this? What have you done about it? Don't get me wrong - I am not prone to complaining 
nor do I think I am a member of the elite 'Black Team'.

Quoting "Dhaliwal, Pritpal (HQP)" <[EMAIL PROTECTED]>:
> +1
> 
> I agree with everyone who has responded. We should not clutter this very
> friendly mailing list with things that don't belong here, that includes "not
> so nice" responses. I haven't been on many, but this is by far my favorite
> list, even though I am mainly a spectator. 
> 
> I lashed out because this question clearly didn't belong here. If the person
> had followed anything in http://www.catb.org/~esr/faqs/smart-questions.html,
> it must that they were polite. They certainly didn't do much investigation
> outside on the internet. The little bit of unfriendliness, I dunno why it
> came out. Unprofessional, it shouldn't have came out.
> 
Even questions that don't belong here deserve to be treated with respect. That
is the single most obvious characteristic of STRUTS-USER that is distinctive
(even though it has lots of other good qualities).
Unfortunately, you decided to unload on a poster in a manner that is decidedly
out of the norm for STRUTS-USER. Your response is the kind of behavior that
creates problems for the perception of open source projects as being "friendly"
to users or not. If you think the topic is totally out of scope for
STRUTS-USER, then you should either (a) answer the question anyway but point
people to where they should really be asking; (b) *gently* encourage the user
to explore the other resources that are available (the archives are full of
examples of folks who have done this), or (c) shut your yap and press DELETE
instead of SUBMIT on your replies :-).
The culture of the STRUTS-USER list has always been *deliberately* different
from the "you idiot, how could you be so stupid as to ask that question in that
way" sort of attitude that far too many open source projects have. 
Fortunately, despite the fact that this is the most-subscribed-to user list at
Jakarta (ten short of 3000 at the moment), the occurrences of rude behavior are
so rare that they immediately attract notice for being out of character for
what we're trying to achieve :-). I'd say that we've been doing a pretty good
job maintaining a friendly, welcoming, and helpful community. I'd also like to
keep it that way.
Craig McClanahan
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 


-
Do you Yahoo!?
Get better spam protection with Yahoo! Mail

Grid..........

2004-02-29 Thread Milind P
Hi All!
Iam a new developer using the struts framework...
We are developing a web application where in we are using the MVC 
architecture..Hence we are using the Jsp for the view.
Now the problem is our project demands to dsiplay the data and read the same from a 
grid.
So how do I do this .

RE: [OT] RE: Java / J2EE Developer

2004-02-16 Thread Chappell, Simon P
You tell 'em Jacob. It's not even Friday!

>-Original Message-
>From: Hookom, Jacob [mailto:[EMAIL PROTECTED]
>Sent: Monday, February 16, 2004 1:33 PM
>To: Struts Users Mailing List
>Subject: RE: [OT] RE: Java / J2EE Developer
>
>
>Please stop discussing this on the STRUTS-USER mailing list.
>
>Thanks
>


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



RE: Orkut (NOT!)

2004-02-10 Thread Chappell, Simon P
Just for the record, I do not wish to be added to Orkut! :-)

Simon

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

"Wisdom is not the prerogative of the academics." - Peter Chappell

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



RE: Debugging JSP

2004-02-09 Thread Edgar P Dollin
In my experience, if your jsp is so complicated you need a debugger, you
should write java classes and/or tags and debug them using junit/httpunit
and logging.

Edgar

> -Original Message-
> From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 09, 2004 10:10 AM
> To: [EMAIL PROTECTED]
> Subject: Debugging JSP
> 
> 
> Hi,
>   I'm debugging Java code using JBoss IDE installed 
> with Eclipse 2.1 and I found I could not debug JSP using the 
> same IDEthen I installed MyEclipse to debug JSP and 
> tested working fine with JSP when I come to debug Java code 
> the break point which I put seems to be does not working then 
> I found MyEclipse has got its own JBoss IDE and it clashes 
> with JBoss IDE which I installed already.
> 
> Can anybody suggest me how can get rid of this problem or 
> suggest is there anyother way I can debug JSP without getting 
> into this problem? or any better alternatives debug JSP 
> without affecting debugging of java code??
> 
> Thankx in advance,
> 
> -Ramadoss
> 
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004
>  
> 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004
 

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



RE: [FRIDAY] RE: What does "do" stand for in .do files

2004-01-30 Thread Chappell, Simon P
Quite so.

And never underestimate the space savings that come from using a lower-case oh instead 
of a zero and a lower-case i instead of a one. Being smaller, the "o" and the "i" take 
up less space than the "0" and "1" ... in large programs this can result in quite 
significant space savings.

This wisdom brought to you by the Struts Mailing List Friday Afternoon Club. :-)

Simon "Charter Member of the SMLFAC" Chappell

>-Original Message-
>From: Dhaliwal, Pritpal (HQP) [mailto:[EMAIL PROTECTED]
>Sent: Friday, January 30, 2004 4:37 PM
>To: 'Struts Users Mailing List'
>Cc: [EMAIL PROTECTED]
>Subject: [FRIDAY] RE: What does "do" stand for in .do files
>
>
>Hello Nushin,
>
>Foo Bar :) (Greetings)
>
>Lazy programmers. People were tired of using .html, so they 
>started using
>.do. Its smaller to write, less code, so your code executes 
>much faster. One
>of the way java can run much faster than "other competing 
>technologies".
>This is also another way to staying away from Microsoft 
>Technologies like
>html, htm, doc (this one is tricky, very simlar, but different).. Etc..
>
>!(HTH)
>Pritpal Dhaliwal
>Its Friday, I could have gone for a bit longer. 
>
>-Original Message-
>From: Nushin Nushin [mailto:[EMAIL PROTECTED] 
>Sent: Friday, January 30, 2004 2:27 PM
>To: 'Struts Users Mailing List'
>Cc: [EMAIL PROTECTED]
>Subject: RE: What does "do" stand for in .do files
>
>
>Vic,
>
>Would you elaborate on *.do? What does "do" stand for?
>
>Regards,
>Nushin
>
>-Original Message-
>From: Matthias Wessendorf <[EMAIL PROTECTED]>
>Sent: Jan 30, 2004 11:27 AM
>To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>, 
>   'Nushin Nushin' <[EMAIL PROTECTED]>
>Subject: RE: What does "do" stand for in .do files
>
>and note,
>that in some cases you should use
>(trouble with firewalls)
>  
>action
>/do/*
>  
>
>instead of *.do
>look at Book: Struts Fast Track:
>by Vic Cekvenich
>
>
>-Original Message-
>From: Nushin Nushin [mailto:[EMAIL PROTECTED] 
>Sent: Friday, January 30, 2004 7:54 PM
>To: [EMAIL PROTECTED]
>Subject: What does "do" stand for in .do files
>
>
>Greetings,
>
>What does *do* mean in *.do files.
>
>Regards,
>Nushin
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: session control

2004-01-29 Thread P. Hill


Manfred Wolff wrote:
Vinicius.

I think having objects in the session is no good solution. It might have 
a little bit of global variables, but thats only my 0.02$. I try to 
group objects into own contexts - I call it action-contexts, and allow 
actions only write information in these context. So you have better 
control which objects may removed.
Some architectures put _everything_ behind one big application
facade, so that other than various forms you are always dealing with the
same applicaiton object on all pages.
Others might think that a few objects is the right balance between
1 large application facade and lots of curiously named object running
around in the session.
-Paul



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


RE: [OT] RE: log4j integration

2004-01-28 Thread Chappell, Simon P
We do specify the log filenames in each properties file, so we don't have any 
possibility of overlap there.

We did have a problem with JRun 4 before we switched to WAS, because it came with an 
old version of log4j in it's internal library. This caused us no end of problems and 
we did have to put log4j in the server classpath to overcome the issue. This has not 
been a problem under WAS 4.x

Simon

>-Original Message-
>From: Hookom, Jacob [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, January 28, 2004 11:33 AM
>To: Struts Users Mailing List
>Subject: RE: [OT] RE: log4j integration
>
>
>Thanks, we are having problems though with multiple 
>applications (basically
>I used commons-logging/log4j on a new project, then it was 
>decided to modify
>another application to also use log4j).
>
>But it seems to create a race condition in the apps as to which
>log4j.properties file actually gets used, one application logs 
>and the other
>doesn't.
>
>The reason I believe they are conflicting is because there was a period
>where both of our applications were outputting to the same log 
>file, despite
>the fact that our log4j jars were in per application scope.  
>It's probably
>another issue with Weblogic that we're going to have to work around :-(
>
>Thanks,
>Jacob
>
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED] 
>Sent: Wednesday, January 28, 2004 11:31 AM
>To: Struts Users Mailing List
>Subject: RE: [OT] RE: log4j integration
>
>Jacob,
>
>We use log4j 1.2.8 and we include the jar file right in out WEB-INF/lib
>directory of our application. The log4j.properties file then 
>lives inside
>the WEB-INF/classes directory. This works well for us on IBM's WAS 4.x.
>
>I've never seen anyone recommend having log4j at the container 
>level, so go
>with it at the application level and forget about conventional 
>wisdom! :-)
>
>Hope this helps.
>
>Simon
>
>-
>Simon P. Chappell [EMAIL PROTECTED]
>Java Programming Specialist  www.landsend.com
>Lands' End, Inc.   (608) 935-4526
>
>"Wisdom is not the prerogative of the academics." - Peter Chappell
>
>>-Original Message-
>>From: Hookom, Jacob [mailto:[EMAIL PROTECTED]
>>Sent: Wednesday, January 28, 2004 11:08 AM
>>To: Struts Users Mailing List
>>Subject: [OT] RE: log4j integration
>>
>>
>>I'm wondering if anyone has gotten log4j to be deployed 
>within separate
>>apps?  We are having issues with log4j jars and their 
>>properties files being
>>deployed on each application under Weblogic.  Most of what I've read
>>recommends putting log4j at the container level along with a single
>>properties file, but that isn't as flexible as what we want it to be.
>>
>>-Thanks
>>
>>-Original Message-
>>From: [EMAIL PROTECTED] 
>>[mailto:[EMAIL PROTECTED]
>>
>>Sent: Wednesday, January 28, 2004 10:20 AM
>>To: [EMAIL PROTECTED]
>>Subject: RE: log4j integration
>>
>>Hi,
>>Also there is something called 
>>ReloadingPropertyConfigurator..May be this in
>>combination with HierarchyEventListener will do the trick for you.
>>
>>I mean the log4j API is so feature rich, you should not be 
>>required to write
>>something for such a common task.
>>
>>regards,
>>Shirish.
>>
>>-Original Message-
>>From: Geeta Ramani [mailto:[EMAIL PROTECTED]
>>Sent: Wednesday, January 28, 2004 4:02 PM
>>To: Struts Users Mailing List
>>Subject: Re: log4j integration
>>
>>
>>*Yes*!!  The LogManager is the ticket - I didn't know about 
>>this class, so
>>tried it
>>out.  Works like a charm.. :) Thanks, Shirish (I think?  I 
>>inadvertently
>>erased the
>>response to this question so am not sure of its author..)
>>
>>Geeta
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



RE: [OT] RE: log4j integration

2004-01-28 Thread Chappell, Simon P
Jacob,

We use log4j 1.2.8 and we include the jar file right in out WEB-INF/lib directory of 
our application. The log4j.properties file then lives inside the WEB-INF/classes 
directory. This works well for us on IBM's WAS 4.x.

I've never seen anyone recommend having log4j at the container level, so go with it at 
the application level and forget about conventional wisdom! :-)

Hope this helps.

Simon

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

"Wisdom is not the prerogative of the academics." - Peter Chappell

>-Original Message-
>From: Hookom, Jacob [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, January 28, 2004 11:08 AM
>To: Struts Users Mailing List
>Subject: [OT] RE: log4j integration
>
>
>I'm wondering if anyone has gotten log4j to be deployed within separate
>apps?  We are having issues with log4j jars and their 
>properties files being
>deployed on each application under Weblogic.  Most of what I've read
>recommends putting log4j at the container level along with a single
>properties file, but that isn't as flexible as what we want it to be.
>
>-Thanks
>
>-Original Message-
>From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED]
>
>Sent: Wednesday, January 28, 2004 10:20 AM
>To: [EMAIL PROTECTED]
>Subject: RE: log4j integration
>
>Hi,
>Also there is something called 
>ReloadingPropertyConfigurator..May be this in
>combination with HierarchyEventListener will do the trick for you.
>
>I mean the log4j API is so feature rich, you should not be 
>required to write
>something for such a common task.
>
>regards,
>Shirish.
>
>-Original Message-
>From: Geeta Ramani [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, January 28, 2004 4:02 PM
>To: Struts Users Mailing List
>Subject: Re: log4j integration
>
>
>*Yes*!!  The LogManager is the ticket - I didn't know about 
>this class, so
>tried it
>out.  Works like a charm.. :) Thanks, Shirish (I think?  I 
>inadvertently
>erased the
>response to this question so am not sure of its author..)
>
>Geeta
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Torque and Struts problem

2004-01-27 Thread P. Daniell
The problem is neither with Struts nor Torque but rather with the reflection
API, which exhibits strange behavior when asked to deal with classes named
"Component." Strangely enough, I found a thread on the struts-user thread

http://www.mail-archive.com/[EMAIL PROTECTED]/msg60817.html

dealing with the same problem. Everything behaves properly when the class is
renamed Komponent.

PD

- Original Message - 
From: "Kris Schneider" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, January 26, 2004 3:14 PM
Subject: Re: Torque and Struts problem


> My email's acting flaky, sorry if this gets posted twice:
>
> What happens with this instead of JSTL:
>
>scope="request"
>   type="org.ttemplating.internal.dataobjects.Component"/>
> 
>
> Paul Daniell wrote:
>
> > From: "Kris Schneider" <[EMAIL PROTECTED]>
> >
> >>I suppose this could be a classloader issue. Are all your Struts,
Torque,
> >
> > and
> >
> >>JSTL JAR files colocated?
> >
> >
> > Yes. I am using Struts 1.1 rc1, Torque 3.0.2, and JSTL 1.0.
> >
> >
> >
> >
> >>Quoting Paul Daniell <[EMAIL PROTECTED]>:
> >>
> >>
> >>>I've encountered a strange problem with Struts when used with Torque. I
> >>>retrieve an object using the following:
> >>>
> >>>ArrayList list = (ArrayList)ComponentPeer.doSelect(new Criteria());
> >>>request.setAttribute("components", list);
> >>>Component c = (Component)list.get(0);
> >>>request.setAttribute("comptest", c);
> >>>System.out.println(c.getName());
> >>>
> >>>In the logs this will appropriately print the name of the object "c".
> >>>However, when I invoke the following JSP
> >>>...
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>I get the following Exception:
> >>>
> >>>HTTP ERROR: 500 An error occurred while evaluating custom action
> >
> > attribute
> >
> >>>"value" with value "${comptest.name}": An error occurred while getting
> >>>property "name" from an instance of class
> >>>org.ttemplating.internal.dataobjects.Component
> >>>(java.lang.IllegalArgumentException: object is not an instance of
> >
> > declaring
> >
> >>>class)
> >>>
> >>>Any advice appreciated.
> >>>Paul
> >>
> >>-- 
> >>Kris Schneider 
> >>D.O.Tech   
>
> -- 
> Kris Schneider 
> D.O.Tech   
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: Favorite tag reference?

2004-01-26 Thread P. Hill
Adam Hardy wrote:
There is a seperate JSTL spec doc in pdf format from Sun somewhere I 
think. I guess the link is on the jakarta-commons website.
Just to make this thread more complete, both the PDF and a very short java Doc 
summary version of just the STL can be found at:
http://jcp.org/aboutJava/communityprocess/final/jsr052/

-Paul



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


Re: Favorite tag reference?

2004-01-26 Thread P. Hill
Adam Hardy wrote:
I find the struts docs for struts taglibs the best. [...]
2nd to that is the JSTL spec for the JSTL taglibs 
I wrote:
Reading the new JSP 2.0 spec [...]
I assume now that the JSP 2.0 is out, you are flipping through that spec, if 
needed. Or is there a seperate JSTL doc that comes in handy here?

-Paul



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


Favorite tag reference?

2004-01-25 Thread P. Hill
Hi,

Just thought I'd ask if anyone has any favorite on-line or paper references for
the various tag libraries.  Reading the new JSP 2.0 spec is certainly the brute 
force and often instructive approach and each of the taglibs in struts contains
a reference like:
http://jakarta.apache.org/struts/userGuide/dev_bean.html
Just wondering if others have found any useful on-line summaries/references
just to look up summaries, explanations, and maybe short examples for the 
various libraries.

What's your favorite? Are the Apache doc's as good as any?  Better than
some? Worse?
TIA,
-Paul


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


RE: JSP to static html...

2004-01-23 Thread Edgar P Dollin
You could use webtest with one of the logging options.  Then if they change
you could run your test to regenerate the pages.

Edgar

> 
> - Original Message - 
> From: "Jacob Wilson" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, January 23, 2004 12:30 PM
> Subject: JSP to static html...
> 
> 
> > Hi All...
> >
> > I have a specific requirement in my project... I want to 
> convert the JSP
> pages to static html pages and save them in a local 
> directory... How do I
> achieve this functionality??? Any suggestions appreciated.
> >
> > Thanks much.
> >
> > -Jacob
> >
> >
> > -
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free web site building tool. Try it!
> 
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004
>  
> 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004
 

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



RE: Unit Test in struts

2004-01-23 Thread Chappell, Simon P
On our intranet application, we make a round trip to the server everytime the user 
enters a piece of data. This sounds like it would be dreadfully slow, but in practise 
it isn't. Internally, we have bandwidth to spare and we keep our pages fairly 
streamlined (need to switch to CSS, so that we can shrink them even more, but they're 
not bad even now). So our users get their dynamic feedback and we threw out JavaScript 
... a win-win situation if I ever heardof one. :-)

Simon

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

"Wisdom is not the prerogative of the academics." - Peter Chappell

>-Original Message-
>From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
>Sent: Friday, January 23, 2004 7:26 AM
>To: 'Jesse Alexander (KAID 11)'; 'Struts Users Mailing List'
>Subject: RE: Unit Test in struts
>
>
>Could you share with us how you worked around some of my issues, i.e.
>
>The user is entering items.  User needs dynamic feedback as to 
>to how much
>is entered 
>so correctness of data entry can be determined.
>
>Thanks
>
>Edgar
>
>
>> -Original Message-
>> From: Jesse Alexander (KAID 11)
>> [mailto:[EMAIL PROTECTED]
>> Sent: Friday, January 23, 2004 3:37 AM
>> To: 'Struts Users Mailing List'
>> Subject: RE: Unit Test in struts
>> 
>> 
>> not true.
>> I've seen web-apps that use strictly html (not a line of JavaScript)
>> and look very dynamic and responsive (one app reports its users are
>> more happy with the html-version than with the smalltalk fat client
>> solution (with the same functionality)). Unfortunately these apps are
>> company internal intranet-webapps, that cannot be shown to 
>> the outside.
>> 
>> It is basically a way of thinking.
>> 
>> Remember what we usually hate about stuff like M$ Office?
>> -> The UI is overkill. Way too much unnecessary stuff. 
>> Give the users a FAST but very simple and clean (forget about 
>> animated gif's,...) UI, make it intuitively (NO learning curve)
>> and they will love it.
>> 
>> hth 
>> Alexander
>> 
>> PS: These apps are easier to be tested... (to bring us back on the
>> original trail)
>> 
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004
> 
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



RE: Unit Test in struts

2004-01-23 Thread Edgar P Dollin
Could you share with us how you worked around some of my issues, i.e.

The user is entering items.  User needs dynamic feedback as to to how much
is entered 
so correctness of data entry can be determined.

Thanks

Edgar


> -Original Message-
> From: Jesse Alexander (KAID 11)
> [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 23, 2004 3:37 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Unit Test in struts
> 
> 
> not true.
> I've seen web-apps that use strictly html (not a line of JavaScript)
> and look very dynamic and responsive (one app reports its users are
> more happy with the html-version than with the smalltalk fat client
> solution (with the same functionality)). Unfortunately these apps are
> company internal intranet-webapps, that cannot be shown to 
> the outside.
> 
> It is basically a way of thinking.
> 
> Remember what we usually hate about stuff like M$ Office?
> -> The UI is overkill. Way too much unnecessary stuff. 
> Give the users a FAST but very simple and clean (forget about 
> animated gif's,...) UI, make it intuitively (NO learning curve)
> and they will love it.
> 
> hth 
> Alexander
> 
> PS: These apps are easier to be tested... (to bring us back on the
> original trail)
> 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004
 

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



RE: Unit Test in struts

2004-01-22 Thread Edgar P Dollin
Maybe I am not smart enough for my applications (order entry, inventory,
etc.) 
I just don't see how to give any real functionality in the
application space without JavaScript.  

Some issues where I don't see a work around for which are intrisic
to all the applications I am working on.

1) The user is entering items.  User needs dynamic
feedback as to to how much is entered so correctness
of data entry can be determined.

2) User can't remember a code from a 'large' list and
needs to look it up and return to where he was with
the correct value filled in.  Perhaps it can be done
with some fancy footwork with actions but...

3) Menus, yes there are plenty of static menus but
all the real ones are javascript, i.e. coolmenus
cannot be tested with the existing test tools.  Menu's are
not required to be tested but it would be nice.

Edgar

> -Original Message-
> From: Ashikuzzaman [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 22, 2004 1:25 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Unit Test in struts
> 
> 
> I somehow dislike JavaScript from the very beginning. I try 
> my best to avoid
> it in big projects and so far successful. :-{
> 
> Regards,
>  
> Muhammad Ashikuzzaman (Fahim)
> Senior Software Engineer, SurroundApps Inc.
> 
> 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004
 

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



RE: Unit Test in struts

2004-01-22 Thread Edgar P Dollin
I wish I had the luxury.

Edgar

> -Original Message-
> From: Matt Raible [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 22, 2004 9:42 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Unit Test in struts
> 
> 
> I use a fair amount of JavaScript in my apps, and what I've found is
> that the best thing to do is this:
> 
> Write your app so it can be tested (and used) with JavaScript turned
> off.  
> 
> Works for me!
> 
> Matt
> 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004
 

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



RE: Unit Test in struts

2004-01-22 Thread Edgar P Dollin
I have spent a fair amount of time with WebTest and HttpUnit.  The major
issues with both of these are JavaScript related.  For example if you use
JavaScript to populate select lists or html objects they are not available
in WebTest or HttpUnit (HttpUnit is a little better since you have finer
grained control).  

How does jWebUnit compare?

Thanks.

Edgar

> -Original Message-
> From: Richard Hightower [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 21, 2004 4:26 PM
> To: Struts Users Mailing List
> Subject: RE: Unit Test in struts
> 
> 
> you should try jWebUnit.
> i like it a lot.
> 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004
 

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



RE: Unit Test in struts

2004-01-21 Thread Chappell, Simon P
Richard,

What do you use jWebUnit to test?

Simon

>-Original Message-
>From: Richard Hightower [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, January 21, 2004 3:26 PM
>To: Struts Users Mailing List
>Subject: RE: Unit Test in struts
>
>
>you should try jWebUnit.
>i like it a lot.
>



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



RE: Unit Test in struts

2004-01-21 Thread Chappell, Simon P
Well, we use Junit for testing our business logic (you do have your business logic 
split out into seperate objects right?), HttpUnit for functional testing and JUnitPerf 
for performance/load testing. We use all of these right now and are very happy with 
them. (ok, the DOM stuff in HttpUnit sucks, but we wrote our own tag content utilities 
and forgot about converting HTML to a DOM model.)

I'm actually just in the process of trying out StrutsTestCase 
(http://strutstestcase.sourceforge.net) for testing our actions. I got the examples to 
work, but I haven't gotten any further than that yet. Is this the tool that you were 
asking about?

Simon

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

"Wisdom is not the prerogative of the academics." - Peter Chappell

>-Original Message-
>From: Vinicius Carvalho [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, January 21, 2004 1:17 PM
>To: [EMAIL PROTECTED]
>Subject: Unit Test in struts
>
>
>   Hi there! I've heard about a tool (like JUnit) but 
>especific to be used 
>with struts, where I can test my actions, forms and jsp pages, 
>problem is 
>... I cant rememeber the name, does anyone knows about it?
>
>thnx
>
>Vinicius
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



RE: Struts-Menu (Support URL Re-writing)

2004-01-16 Thread Edgar P Dollin
Unless I am mistaken the relative url in struts-menu is just the text passed
in from menu-config.xml.  

In the CoolMenuDisplayer it calls, buildMenuString --> getArgs --> getUrl
which unless there is prior transformation the string from the config.

Let me know if I am seeing it wrong or if this is different from displayer
to displayer.

Thanks.

Edgar

-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 10:14 AM
To: 'Struts Users Mailing List'; 'Parag Pattewar'
Subject: RE: Struts-Menu (Support URL Re-writing)


Struts Menu makes use of Struts classes to support "forward" and
"action" attributes.  If you use those, you'll likely get the re-writing
you're looking for.  I did this on a previous project and did find that
the "forward" attribute worked, but not the "action" attribute.  I
believe this is a bug in Struts since it should do rewriting when
looking up an Action's path.

The one issue with re-writing is that if you're using a menu that
matches URLs (i.e. tabbed-menu) - they probably won't get matched up.
At a previous project, we were using URLs to highlight the current page
we were on and we found that we had to use the "action" attribute or the
"page" attribute so that the jsessionid wasn't appended.  Of course, we
could've stripped this off in our Velocity template, but we wen't with
the quick, less-logic, way.

To see this project, go to http://telluride.resortquest.com and drill
down a bit.  The menu with highlight is on the right.  BTW, this site
uses the Velocity displayer for both the top menu and the side menu.

If you're not familiar with struts-menu, checkout the demo at
http://raibledesigns.com/struts-menu.

Matt

> -Original Message-
> From: Edgar P Dollin [mailto:[EMAIL PROTECTED] 
> Sent: Friday, January 16, 2004 7:54 AM
> To: 'Parag Pattewar'; [EMAIL PROTECTED]
> Subject: RE: Struts-Menu (Support URL Re-writing)
> 
> 
> You have the source to struts and the source to struts-menu, 
> grab the code from struts and plug it into struts-menu and 
> submit a patch.  You might need a menu-config.xml option to 
> indicate that you will be url rewriting.
> 
> Edgar
> 
> -Original Message-
> From: Parag Pattewar [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 16, 2004 7:21 AM
> To: [EMAIL PROTECTED]
> Subject: Struts-Menu (Support URL Re-writing)
> 
> 
> Hi all
> 
> How do I change Struts-Menu implemention, so it can support 
> URL ReWriting for session tracking?
> 
> Thanks and Regards
> Parag Pattewar
> Persistent Systems Private Limited
> "Bhageerath"
> 402, Senapati Bapat Road
> Pune 411016
> India
> 
> Tel: +91 (20) 2567 8900 extn. 2640
> Fax: +91 (20) 2567 8901
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004
 

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



RE: JSP Protection

2004-01-16 Thread Edgar P Dollin
There is one other way and that is to foward *.jsp in web.xml to a filter
which always fails.  

Edgar

-Original Message-
From: lixin chu [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 15, 2004 8:24 PM
To: Struts Users Mailing List
Subject: Re: JSP Protection


thanks !

--- Max Cooper <[EMAIL PROTECTED]> wrote:
> The images are requested directly by the browser, so
> they must be accessible
> from the outside. Here's a little browser-server
> dialog to illustrate how it
> works:
> 
> Browser: please give me /DoSomething.do
> Server: Here you go... (server invokes Struts action
> servlet, action servlet
> invokes the requested action, action says it wants
> to forward to a JSP,
> action servlet does the forward...)
> 
> 
> Browser: please give me /images/bitchin_camaro.jpg
> Server: Here you go...
>
24927image247data7902578259image293data85984396574389...
> 
> The request for the action returns HTML. The browser
> reads the HTML and sees
> that it references an image. The browser then makes
> a separate request for
> the image file so that it can render the page. The
> image file must be
> "request-able" by the browser or it won't show up
> when someone wants to view
> the page.
> 
> -Max
> 
> - Original Message - 
> From: "lixin chu" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> Sent: Thursday, January 15, 2004 5:07 PM
> Subject: RE: JSP Protection
> 
> 
> > I can successfully move all the files into
> > /WEB-INF/subfolder (WEB-INF is protected by
> default)
> > except the images/ folder. It seems that I have to
> > leave it outside - in the webapp root.
> > I am using Tomcat 5.0.16. Is it a defect or it is
> like
> > this ?
> >
> > --- "Karr, David" <[EMAIL PROTECTED]> wrote:
> > > Put all JSP pages that can't be accessed
> directly
> > > into a security constraint, only accessible by
> the
> > > role "nobody", which you will never add a user
> to.
> > > All accesses of JSPs will be through forwards
> from
> > > actions, which will not be blocked by that
> security
> > > constraint (unless you either have a broken web
> > > container or a Servlet 2.4 container where
> you've
> > > enabled auth on forward).
> > >
> > > -Original Message-
> > > From: J黵gen Scheffler
> > > [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, January 15, 2004 8:15 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: JSP Protection
> > >
> > >
> > > Hi,
> > >
> > > how do i block URL guessing?
> > > if someone requests abc.com/secret_page.jsp
> > > he gets it. In my Action i check if the user
> object
> > > has the right rights for this action and then i
> > > forward him. But if guesses the jsp, he opens
> it.
> > >
> > > Help me!
> > >
> > > J黵gen
> > >
> > >
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> > >
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> >
> >
> > __
> > Do you Yahoo!?
> > Yahoo! Hotjobs: Enter the "Signing Bonus"
> Sweepstakes
> > http://hotjobs.sweepstakes.yahoo.com/signingbonus
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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



RE: Session Problem

2004-01-16 Thread Edgar P Dollin
If IE opens a new window (either through javascript or from the
file/new/window menu) and IE is in a session, the session is shared between
the two browser sessions.

If you open two copies of IE from the operating system, they will not share
the session.

The only way to solve this that I know of, is to keep a session token, if
you find it out of sequence, forward to a page which closes the window (if
javascript is enabled).  If you use tokens on your update sequences you
should be able to live with the two browsers in the same session.

Edgar

-Original Message-
From: Guillermo Meyer [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 7:19 AM
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: RE: Session Problem


I had a similar problem.
I have two browsers opened with diferent sessions (and logged on with
different users to my app) in the same machine.
In one browser, I click a button that opens a new window (window.open in
javascript) and in this new window a submit is performed to an action of
struts. This action has an execute that checks isTokenValid and gives
false, not because I haven't saved token first, but because session are
different. 

 */
protected boolean isTokenValid(HttpServletRequest request) {

// Retrieve the saved transaction token from our session
HttpSession session = request.getSession(false);

//--> here, session id is different of the main window
session, but equals to the other window session.

if (session == null)
.
.
.

//as session id is wrong, token is invalid.
}

If I have one only main browser opened this problem doesn't happen. I
think that it can be a window.open IE problem, but I still couldn't find
out a solution. 

If anyone has one...
Thanks..
Guillermo.

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED] 
Sent: Viernes, 16 de Enero de 2004 08:38 a.m.
To: Struts
Subject: RE: Session Problem



How do I make sure the session on both the browsers will be different
other than URL Rewriting. 

This I do not know. :-(
You can take a look through all the browser options and see if there is
anything to make it associate cookies only with a specific window, but I
would be quite surprised if there is such an option. I suspect in the
absense of url rewriting you will need to use either different machines
for each browser, or a different browser (ie open second window in
mozilla or something). Hopefully Im wrong on that and someone else on
this list has a better idea!

-Original Message-
From: Parag Pattewar [mailto:[EMAIL PROTECTED]
Sent: Friday, 16 January 2004 19:31
To: [EMAIL PROTECTED]
Subject: RE: Session Problem


Hi

I tried to use URL rewriting explicetly for session tracking,
unfortunately I wont be able to use this because Its not been guaranteed
in the code is been written using  always for the links. As
both the browsers sessions are using only the same cookies, so I think
the problem is because of that. How do I make sure the session on both
the browsers will be different other than URL Rewriting.

Thanks
Parag

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 4:51 PM
To: Struts Users Mailing List
Subject: RE: Session Problem


On the same machine? Rather sounds like its the same session. Im not
sure about IE6, but as I recall, IE5 will share its cookies between the
various windows if cookies are enabled. If cookies are disabled then url
writing takes over (asuming youve made sure your links are re-written by
using the appropriate tags) which means they shouldlnt share sessions if
opened seperately. You could test this theory by disabling cookies in
your browser and see if it makes a difference.

Put it a log statement somewhere to log the sessionId and compare the
results for both the windows to see if it is indeed a different session,
or if the second window causes the first window to end up in the
second's session.


-Original Message-
From: Parag Pattewar [mailto:[EMAIL PROTECTED]
Sent: Friday, 16 January 2004 19:17
To: [EMAIL PROTECTED]
Subject: Session Problem


Hi

I am getting session collusion problem , if I open my application on two
IE5.5 browsers , after some time , I am getting same values and junk
values which are not applicable for that session , but will be
applicable for the session present on other browser.

Please help, What could be the problem?

Thanks and Regards
Parag Pattewar
Persistent Systems Private Limited
"Bhageerath"
402, Senapati Bapat Road
Pune 411016
India

Tel: +91 (20) 2567 8900 extn. 2640
Fax: +91 (20) 2567 8901


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



-
To unsubscribe, e-mail: [EMAIL PROT

RE: Struts-Menu (Support URL Re-writing)

2004-01-16 Thread Edgar P Dollin
You have the source to struts and the source to struts-menu, grab the code
from struts and plug it into struts-menu and submit a patch.  You might need
a menu-config.xml option to indicate that you will be url rewriting.

Edgar

-Original Message-
From: Parag Pattewar [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 7:21 AM
To: [EMAIL PROTECTED]
Subject: Struts-Menu (Support URL Re-writing)


Hi all

How do I change Struts-Menu implemention, so it can support URL ReWriting
for session tracking?

Thanks and Regards
Parag Pattewar
Persistent Systems Private Limited
"Bhageerath"
402, Senapati Bapat Road
Pune 411016
India

Tel: +91 (20) 2567 8900 extn. 2640
Fax: +91 (20) 2567 8901


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



RE: report in struts

2004-01-15 Thread Edgar P Dollin
JasperReports on sourceforge is pretty good with a decent base of support.

Edgar

-Original Message-
From: Hari_s [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 8:25 PM
To: Struts Users Mailing List
Subject: report in struts


Hi all
is there any reporting tools (for creating report) that can embedded in
struts project that free of charge.?

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004
 

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



RE: filters / tomcat / httpunit / webtest

2004-01-12 Thread Edgar P Dollin
FYI, using HTTP 'error' 202 SC_ACCEPTED (and maybe others) works around the
problem.  In other words is compatible with IE, Mozilla, etc and still works
with HttpUnit / Webtest.  I haven't loaded the application too much so I
will find out later if this issue is truly resolved.

If anyone is familiar with any drawbacks of trapping http error 202, your
commentary would be appreciated.

Thanks again

Edgar

-Original Message-----
From: Edgar P Dollin 
Sent: Monday, January 12, 2004 7:10 PM
To: Struts Users Mailing List
Subject: filters / tomcat / httpunit / webtest


I have a an interesting issue which at first blush doesn't seem solvable but
could be a bug in struts 1.1 or my use of struts. 

I have a partially implemented struts application which is using filters for
security (not the sourceforge security filter).  I used to issue a 401
error, have the container trap the error and forward to the logon page.
That worked fairly well with tomcat 4.1.18.  I had a testsuite in
Struts-Test, HttpUnit and WebTest which was working reasonably well.

I updated to tomcat 4.1.29 which passes the http 401 error to the page, with
the actual login page.  This causes failures in HttpUnit and WebTest which
assume a 401 error is a Basic Authentication Error.  I thought about
throwing / catching other errors but have not completed tests.

The sourceforge security filter just does a RequestDispatcher forward to the
login page.  This works fine on straight jsp pages.  However on struts pages
there is some additional processing and something (I have not yet figured
out) from struts gets put in the response so that there is an
IllegalStateException thrown when the filter performs the forward.
Additionally, response.redirect has the same issue.

The only struts log messages have to do with PropertyMessageResources, which
are not there for both straight JSP and struts resources.  Does anyone know
what in struts could be writing to the response or where to start looking?

Thanks in advance.

Edgar

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004
 

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



filters / tomcat / httpunit / webtest

2004-01-12 Thread Edgar P Dollin
I have a an interesting issue which at first blush doesn't seem solvable but
could be a bug in struts 1.1 or my use of struts. 

I have a partially implemented struts application which is using filters for
security (not the sourceforge security filter).  I used to issue a 401
error, have the container trap the error and forward to the logon page.
That worked fairly well with tomcat 4.1.18.  I had a testsuite in
Struts-Test, HttpUnit and WebTest which was working reasonably well.

I updated to tomcat 4.1.29 which passes the http 401 error to the page, with
the actual login page.  This causes failures in HttpUnit and WebTest which
assume a 401 error is a Basic Authentication Error.  I thought about
throwing / catching other errors but have not completed tests.

The sourceforge security filter just does a RequestDispatcher forward to the
login page.  This works fine on straight jsp pages.  However on struts pages
there is some additional processing and something (I have not yet figured
out) from struts gets put in the response so that there is an
IllegalStateException thrown when the filter performs the forward.
Additionally, response.redirect has the same issue.

The only struts log messages have to do with PropertyMessageResources, which
are not there for both straight JSP and struts resources.  Does anyone know
what in struts could be writing to the response or where to start looking?

Thanks in advance.

Edgar

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004
 

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



RE: Data Sources problem

2004-01-12 Thread Edgar P Dollin
I don't mean to discourage you however you are developing an application
using struts.  The current struts datasource is deprecated and it is
recomended that you use either a jndi datasource or a product like poolman
on sourceforge or a DAO product which maintains the datasource itself.

I suspect your problem is due to not including struts-legacy.jar since the
datasource is only marginally supported and was not included in the base
jar.

Edgar

-Original Message-
From: Sandy Bingham-Porter [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 10:55 AM
To: Struts Users Mailing List
Subject: Data Sources problem


Hi,

I am new to struts and am trying to use the data-source element within 
my struts-config.xml.

When I execute the web app I get the following error:

503 Initializing application data source 
org.apache.struts.action.DATA_SOURCE

I have placed the commons-dbcp-1.1.jar file in my lib path.  My platform 
is Jrun4 and a SQL2000 database.

Does anyone have any ideas or suggestions as to why I am getting this error?

My struts-config.xml is as follows:


http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>


   




   
   

   


..etc.



Thanks for any help.

Frank Kingery
Applications Programmer III
Information Technology Services
Eastern Illinois University



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004
 

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



Re: To Ted Husted: struts-hibernate problem

2004-01-09 Thread Sergei P. Volin
To whom it is interested:
it's a FB specific problem. to correct the problem just enclose a word
"user" in double qoutes in all HQL queries.
Thanks to all ;-)




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



To Ted Husted: struts-hibernate problem

2004-01-08 Thread Sergei P. Volin


  Hello Ted-

  I'm a newb w/ Hibernate and not Struts. With some difficulties but
i've managed to install struts-hibernate example on Tomcat-4.1.24 and
Firebird-1.0. And have a lot of questions.
  What should this example show? I mean how to play with this example? I
did not find any help, only readme about how to install this example. Well,
I've installed it. What next? I see a text entry with Submit button and 3
links at http://localhost/eg1/Welcome.do. What should I enter? And what
shall I expect after pressing submit? Really lost.
  Moreover, when i press submit butoom (whatever i enter) the result is
always error. Why? I see message - Could not execute query. And find it:

  public static String HQL_FIND_USER = "FROM user IN class eg.User WHERE
user.userName = ?";

  Is it really a problem in this query? Its incompleteness? Tomcat
complaints on dot. Or is this a firebird sql specific problem?

  Really appreciate your comments,
  Sergei.

  root cause

  net.sf.hibernate.JDBCException: Could not execute query
  at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1478)
  at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1454)
  at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1450)
  at eg1.ContactList.login(ContactList.java:187)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at
org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:
280)
  at
org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)
  at eg1.ContactList.execute(ContactList.java:82)
  at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:484)
  at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
  at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
  at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
  at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
  at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
  at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
  at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
  at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
  at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
o

RE: [OT] Canoe Webtest / HttpUnit

2004-01-08 Thread Edgar P Dollin
Thanks for the article.  Something about the update from 4.1.18 to 4.1.29
caused my cookie test javascript to give inconsistent feedback in the
HttpUnit javascript.  I tried another algorithm and worked past the error.

BTW for you test junkies, if you used web.xml  to
trap http errors and return a different page, tomcat 4.1.18 doesn't pass on
the http error with the page redirect while 4.1.29 does.  Tests of pages
which take advantage of those automatic redirects will start failing when
you do an upgrade.

Thanks again.

Edgar

-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 07, 2004 10:44 PM
To: Struts Users Mailing List
Subject: Re: [OT] Canoe Webtest / HttpUnit


I use WebTest a lot. I think you have turn cookies on via the HttpUnit
config.

http://lists.canoo.com/pipermail/webtest/2003q2/000735.html

-Ted.

On Wed, 07 Jan 2004 22:28:10 -0500, Edgar P Dollin wrote:
> I have been struggling with these two testing tools for a while now
> attempting to retrofit http tests over an existing working
> application.
>
> JavaScript has been a bear, stuff that works on Mozilla and IE
> breaks in HttpUnit (not that the review didn't turn up myriads of
> errors).  Repairing the scripts has really strengthened the code.
>
> I know that others on this list use Canoe Webtest.  It is much
> nicer writing Webtest scripts than HttpUnit java code.
>
> However, I am ready to give up on WebTest, but before I do would
> like to hear if others have had similar problems.  The issue I
> can't seem get around is that my site requires cookies.  I have a
> hidden field and some javascript to test if cookies are enabled and
> value the hidden field.  Webtest won't value the field and won't
> let me set the value of the field.  Additionally, this issue
> cropped up when I upgraded from Tomcat 4.1.18 to 4.1.29.
>
> Any insight is welcome.
>
>
> Thanks.
>
>
> Edgar
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com). Version:
> 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004
>
>
> 
> - To unsubscribe, e-mail: struts-user-
> [EMAIL PROTECTED] For additional commands, e-mail:
> [EMAIL PROTECTED]




---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004
 

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



[OT] Canoe Webtest / HttpUnit

2004-01-07 Thread Edgar P Dollin
I have been struggling with these two testing tools for a while now
attempting to retrofit http tests over an existing working application.

JavaScript has been a bear, stuff that works on Mozilla and IE breaks in
HttpUnit (not that the review didn't turn up myriads of errors).  Repairing
the scripts has really strengthened the code.

I know that others on this list use Canoe Webtest.  It is much nicer writing
Webtest scripts than HttpUnit java code.  

However, I am ready to give up on WebTest, but before I do would like to
hear if others have had similar problems.  The issue I can't seem get around
is that my site requires cookies.  I have a hidden field and some javascript
to test if cookies are enabled and value the hidden field.  Webtest won't
value the field and won't let me set the value of the field.  Additionally,
this issue cropped up when I upgraded from Tomcat 4.1.18 to 4.1.29.

Any insight is welcome.

Thanks.

Edgar

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004
 

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



RE: Design Questions

2004-01-04 Thread Edgar P Dollin
> -Original Message-
> From: Scott McClure [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, January 03, 2004 10:50 AM
> To: [EMAIL PROTECTED]
> Subject: Design Questions
> 
> 
> First, I was thinking about using a single UserForm to validate all 
> forms relating to a user, for instance. The problem is, is that some 
> fields would not be necessary for update actions and their validation 
> code would throw a ActionError with the default value. I could use 
> conditional validation in the ActionForm based upon the 
> ActionMapping, 
> but that would create ties between the config file and code that I am 
> not sure I want to make. What is your opinion?

In your load action, always fill out the entire form.  As long as you
session based form beans and don't use the reset (for checkboxes) the data
will pass without input fields in the jsp.

> 
> Next, I am trying to tackle the problem of the granularity of 
> my Action 
> objects. At first, I thought about using a DispatchAction, 
> but that only 
> allows me to use one ActionForm for all of the Actions in that class. 
> Then, I thought that maybe wildcards would solve my problem. 
> Wildcards, 
> though, seem like a security concern, where it would be theoretically 
> possible to run an action that is not intended to be run (to 
> exploit any 
> handling errors). Also, I am not sure if that solves any granularity 
> problems, but merely simplifies configuration in the config file. Are 
> there any other good solutions for solving granularity 
> problems? Did I 
> mis-understand DispatchAction? General comments on security with 
> wildcards would also be very interesting.

I am a believer in standard actions and have your business classes implement
interfaces for the actions to use.  So in the save/update/delete sequence
you have a single action which calls standard functions in your business
classes.

> 
> Also, slightly off-topic of my previous questions, what naming 
> conventions do people use for application messages? In struts I have 
> seen a general format of prompt.*, heading.*, and using page specific 
> messages under the page name. What are some suggestions? I want to 
> resolve to a naming standard now so I dont have to go through 
> and change 
> everything if it becomes a code managibilty concern.

If you can name them .. or
.. it works well as well.

> 
> Thanks,
> Scott
> 
> 

Good luck

Edgar

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



RE: Is there a way to prevent urls from being entered from the browser?

2003-12-29 Thread Chappell, Simon P
It wouldn't be useful for most people, but for an intranet application where a regular 
PC would be overkill, it made sense to use thin clients, and even more sense to use 
touchscreens and toss the keyboard and mouse (we have space constraints in the packing 
stations as it is, there was no way that the engineers would give us room for 
luxuries! :-)

Simon

>-Original Message-
>From: Mark Lowe [mailto:[EMAIL PROTECTED]
>Sent: Monday, December 29, 2003 1:59 PM
>To: Struts Users Mailing List
>Subject: Re: Is there a way to prevent urls from being entered from the
>browser?
>
>
>So to "prevent urls from being entered from the browser" all you have 
>to do is take the keyboard and mouse out the equation.
>
>Nice solution I can see how that would be useful for most folk's.
>
>
>On 29 Dec 2003, at 19:48, Chappell, Simon P wrote:
>
>> Nope. There is no keyboard and no mouse. :-)
>>
>>> -Original Message-
>>> From: Mark Lowe [mailto:[EMAIL PROTECTED]
>>> Sent: Monday, December 29, 2003 1:41 PM
>>> To: Struts Users Mailing List
>>> Subject: Re: Is there a way to prevent urls from being entered from 
>>> the
>>> browser?
>>>
>>>
>>> Is like the one in virgin stores where you can ctrl+esc and get the
>>> menu/desktop up?
>>>
>>>
>>> On 29 Dec 2003, at 19:30, Chappell, Simon P wrote:
>>>
>>>> Oh that's far too clever!
>>>>
>>>> We just used thin-client terminals locked in kiosk mode with I.E.
>>>> running in full screen, using touch screens and taking away the
>>>> keyboard and mouse. Ha ha ... now try typing in a URL!!! :-)
>>>>
>>>> Simon
>>>>
>>>>> -Original Message-
>>>>> From: Brice Ruth [mailto:[EMAIL PROTECTED]
>>>>> Sent: Monday, December 29, 2003 1:09 PM
>>>>> To: Struts Users Mailing List
>>>>> Subject: Re: Is there a way to prevent urls from being 
>entered from
>>>>> the
>>>>> browser?
>>>>>
>>>>>
>>>>> In theory, you could write a filter for the forwards that
>>>>> would check to
>>>>> see if a REFERER is set for the request. If not, the request
>>>>> was likely
>>>>> entered directly in a browser.
>>>>>
>>>>> Jim Anderson wrote:
>>>>>
>>>>>> To clarify: I would like to be able to define
>>> ActionForwards for use
>>>>>> within the app but which cannot be entered directly into
>>> the browser
>>>>>> by the user. Is this possible?
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>> jim
>>>>>>
>>>>>>
>>>>>>
>>> 
>-
>>>>>> To unsubscribe, e-mail: 
>[EMAIL PROTECTED]
>>>>>> For additional commands, e-mail:
>>> [EMAIL PROTECTED]
>>>>>>
>>>>>
>>>>> -- 
>>>>> Brice D. Ruth
>>>>> Sr. IT Analyst
>>>>> Fiskars Brands, Inc.
>>>>>
>>>>>
>>>>>
>>> 
>-
>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>> For additional commands, e-mail: 
>[EMAIL PROTECTED]
>>>>>
>>>>>
>>>>
>>>> 
>-
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: 
>[EMAIL PROTECTED]
>>>>
>>>
>>>
>>> 
>-
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



RE: Is there a way to prevent urls from being entered from the browser?

2003-12-29 Thread Chappell, Simon P
Nope. There is no keyboard and no mouse. :-)

>-Original Message-
>From: Mark Lowe [mailto:[EMAIL PROTECTED]
>Sent: Monday, December 29, 2003 1:41 PM
>To: Struts Users Mailing List
>Subject: Re: Is there a way to prevent urls from being entered from the
>browser?
>
>
>Is like the one in virgin stores where you can ctrl+esc and get the 
>menu/desktop up?
>
>
>On 29 Dec 2003, at 19:30, Chappell, Simon P wrote:
>
>> Oh that's far too clever!
>>
>> We just used thin-client terminals locked in kiosk mode with I.E. 
>> running in full screen, using touch screens and taking away the 
>> keyboard and mouse. Ha ha ... now try typing in a URL!!! :-)
>>
>> Simon
>>
>>> -Original Message-
>>> From: Brice Ruth [mailto:[EMAIL PROTECTED]
>>> Sent: Monday, December 29, 2003 1:09 PM
>>> To: Struts Users Mailing List
>>> Subject: Re: Is there a way to prevent urls from being entered from 
>>> the
>>> browser?
>>>
>>>
>>> In theory, you could write a filter for the forwards that
>>> would check to
>>> see if a REFERER is set for the request. If not, the request
>>> was likely
>>> entered directly in a browser.
>>>
>>> Jim Anderson wrote:
>>>
>>>> To clarify: I would like to be able to define 
>ActionForwards for use
>>>> within the app but which cannot be entered directly into 
>the browser
>>>> by the user. Is this possible?
>>>>
>>>> Thanks.
>>>>
>>>> jim
>>>>
>>>>
>>>> 
>-
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: 
>[EMAIL PROTECTED]
>>>>
>>>
>>> -- 
>>> Brice D. Ruth
>>> Sr. IT Analyst
>>> Fiskars Brands, Inc.
>>>
>>>
>>> 
>-
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



RE: Is there a way to prevent urls from being entered from the browser?

2003-12-29 Thread Chappell, Simon P
Oh that's far too clever!

We just used thin-client terminals locked in kiosk mode with I.E. running in full 
screen, using touch screens and taking away the keyboard and mouse. Ha ha ... now try 
typing in a URL!!! :-)

Simon

>-Original Message-
>From: Brice Ruth [mailto:[EMAIL PROTECTED]
>Sent: Monday, December 29, 2003 1:09 PM
>To: Struts Users Mailing List
>Subject: Re: Is there a way to prevent urls from being entered from the
>browser?
>
>
>In theory, you could write a filter for the forwards that 
>would check to 
>see if a REFERER is set for the request. If not, the request 
>was likely 
>entered directly in a browser.
>
>Jim Anderson wrote:
>
>> To clarify: I would like to be able to define ActionForwards for use 
>> within the app but which cannot be entered directly into the browser 
>> by the user. Is this possible?
>>
>> Thanks.
>>
>> jim
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
>-- 
>Brice D. Ruth
>Sr. IT Analyst
>Fiskars Brands, Inc.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



RE: .NET: We are just like Struts... only better.

2003-12-26 Thread Edgar P Dollin
It is a complement that Microsoft is worried about the feature set of
struts.  However, a lot of the stuff that comes in ASP.NET sounds good
compared to the java equivalents.

Edgar

> -Original Message-
> From: Vic Cekvenich [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, December 25, 2003 6:16 AM
> To: [EMAIL PROTECTED]
> Subject: .NET: We are just like Struts... only better.
> 
> 
> Just like everyone else. 
> http://msdn.microsoft.com/asp.net/default.aspx?pull=/library/e
> n-us/dnaspp/html/aspnet-aspnet-j2ee-struts.asp
> 
> This was fun to read, it puts a smile on my face. Somone has 
> a chip on 
> their sholder.
> 
> 
> *
>   Main point made in there: Do not use JDBC, you make us look 
> bad, use 
> an auto caching DAO (data caching in data layer, get it). 
> Clients I see 
> in real life do, but some people on this list dont use a DAO 
> and do 
> caching in layers other than Model.
> *
> 
> 
> "Struts framework is ... many of its key components have been 
> absorbed 
> into the main J2EE framework." - not one! CommonsBeans? 
> CommonsCollections? CommonsValidator? Tiles? Action? 
> FormBean? It's a community of users, not a vendor thing. I do 
> not think they get it. They think Sun does Struts? Look 
> MS."There is no vendor". It' called open source. If Sun shuts 
> down... it will have no impact on the market (for example 
> jRockit JVM, 
> one of 6 VM's I know - 
> http://www.j2eegeek.com/blog/archives/2003_09_01_j2eegeek_arch
ive.html#106336646351242237 
)

Save session state to db... I hope no one here does that (but I do think 
that if .Net suggests for them to do it, GREAT)

Version is a strength of .Net? Have you ever had .DLL hell?

OK, I do not think the author knows that J2EE comes with built in JAAS 
and... it's declerative role based security. Struts and other tags uses 
Servlets (since 2.2, go read JavaDoc) Role based API.

Again, I do not think the Author is familiar with localization in 
Java... for example JSTL's localization.

Again... on testing, I happen to use OpenSta that runs circles. I think 
he is implying that I can't test in J2EE. The benefit of MVC layers is 
that you can test each layer.

PageController is an MVC? Looks a lot like MV... with a small c.

This is commic: "How to migrate Struts to ASP". ??

That is what I want to do, get propiratory with a Vendor, who want's choice?
You know, clients no longer say should I use .Net or Struts, topic 
just does not come up for large projects.

Oh, does it run on the largest comercial platform, Linux?

I do my development on Linux, w/Eclipse and Tomcat and pgSQL. but, every 
3 months, I reformat my windows machinee and re-install XP.
I do not do this with Linux(Fedora)... and I guess my new OSX is BSD, 
but I have had it less than 3 months.

.V






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



RE: Source code for "Mastering Jakarta Struts"

2003-12-23 Thread Edgar P Dollin
Buy the book.

Edgar

> -Original Message-
> From: deepak saini [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, December 23, 2003 6:27 AM
> To: [EMAIL PROTECTED]
> Subject: Source code for "Mastering Jakarta Struts"
> 
> 
> hi!
> 
> any idea from where cna i get the source code of "Mastering 
> Jakarta Struts"
> 
> Regards
> Deepak Saini
> 
> _
> Marriage? 
> http://www.bharatmatrimony.com/cgi-> bin/bmclicks1.cgi?74 Join 
> 
> BharatMatrimony.com for free.
> 
> 

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



RE: How find DataSource?

2003-12-23 Thread Edgar P Dollin
It can be done, use poolman.  Easiest DB pool to get going, works well with
more DB than others.

http://sourceforge.net/projects/poolman

Edgar


> -Original Message-
> From: Vic Cekvenich [mailto:[EMAIL PROTECTED] 
> Sent: Monday, December 22, 2003 4:50 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How find DataSource?
> 
> 
> 
> 
> e-denton Java Programmer wrote:
> 
> > 
> > Has anyone set up a connection pool using web.xml? Steps? Examples? 
> > Tips?
> 
> 
> No one has, it can't be done. You can declare it in web.xml, 
> that's all. Read Rick Reumans tutorial on ibatis dao and 
> ibatis petstore 3 example 
> and do that, and you will be in a good place.
> 
> It's sad, no books on this. All JDBC books talk about JDBC 1.0, not 
> about JDBC 3 pooleddatasource, or DAO.
> 
> > 
> > Vic, I might have two problems with keeping it in a static 
> block. 1. 
> > My container can be passivated, so everything must be serializable.
> 
> Passivation is not a good idea ever, so just ignore it. 
> Change the co-lo 
> or host if you have to.   It sure does not give scalability 
> to the host 
> or to app.
> 
> hth,
> .V
> 
> 
> 

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



RE: URGENT - Help defending Struts

2003-12-18 Thread Chappell, Simon P
This question comes up periodically, so I started a list of Struts-powered sites.

http://simonpeter.com/techie/java/struts/sites.html

I hope this helps.

I know that I wouldn't like to think about not using it on the Intranet application 
that I head up the development team for. It has greatly aided our productivity and has 
now come through it's second peak season with flying colours. We started with Struts 
1.0 and with a little help from Chuck Cavaness we were early adopters of 1.1. :-)

Simon

>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]
>Sent: Thursday, December 18, 2003 9:49 AM
>To: [EMAIL PROTECTED]
>Subject: URGENT - Help defending Struts
>Importance: High
>
>
>All:
>
> 
>
>Our CIO is currently fighting the use of Struts by saying that 
>it is not
>widely used in B2C sites.  Does anyone know of any sites, preferably
>commerce sites that are using Struts?  This would be extremely helpful.
>
> 
>
>The issue is that the CIO is looking for sites that may be similar to
>ours that are using Struts already.
>
> 
>
>Thanks very much,
>
>Russell
>
> 
>
>[EMAIL PROTECTED]
>
>310-426-5587
>
> 
>
>
>
>This message is for the designated recipient only and may 
>contain privileged, proprietary, or otherwise private 
>information.  If you have received it in error, please notify 
>the sender immediately and delete the original.  Any other use 
>of the email by you is prohibited.
>

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



RE: Generate Java class from xml?

2003-12-18 Thread Edgar P Dollin
Castor from exolab http://www.castor.org/ is an excellent xml parser.  There
is also an interesting project for xml -> beans
http://xml.apache.org/xmlbeans.

Edgar

> -Original Message-
> From: Adam Hardy [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, December 17, 2003 8:31 PM
> To: Struts Users Mailing List
> Subject: Re: Generate Java class from xml?
> 
> 
> Hmm, looks pretty good but it doesn't seem to do what I need. Thanks 
> though.
> 
> On 12/17/2003 11:54 PM Mark Lowe wrote:
> > Dont know about using digester but html parser is a handy library.
> > 
> > http://htmlparser.sourceforge.net/
> > 
> > Might help you do what you want.
> > 
> > On 17 Dec 2003, at 22:45, Adam Hardy wrote:
> > 
> >> Hi Christopher,
> >> just a quick question about Digester, perhaps you can save me the
> >> effort of reading up on it to find out myself, but will 
> Digester be  
> >> able to parse HTML?
> >>
> >> I am dealing with the Internet Explorer bookmarks export 
> file. I have
> >> already tried JAXB but JAXB chokes on it, saying that the 
> XML is not  
> >> well-formed.
> >>
> >> The bookmarks file has quite a few unpaired  and  elements,
> >> which is obviously bad XML.
> >>
> >> Thanks
> >> Adam
> >>
> >> On 12/17/2003 09:38 PM Christopher Milton wrote:
> >>
> >>> I use Digester which is used by Struts itself. 
> >>> http://jakarta.apache.org/commons/digester/
> >>> http://www.google.com/search?q=jakarta+digester
> >>> http://www.javaranch.com/newsletter/August2003/
> >>> TouringTheCommonsPart2.html
> >>> --- John Smart <[EMAIL PROTECTED]> wrote:
> >>>
>  There's also XMLBeans (http://xml.apache.org/xmlbeans/) , which,
>  unlike Castor, works with JDK 1.4...
> 
>  Martin Gainty wrote:
> 
> 
> > Castor (http://www.castor.org) which generate the java classes
> > with  marshall
> > and unmarshall methods, but it is not finished, doesn't 
> care to  
> > namespaces,
> > owns severals bugs ...
> >
> > The second one is Xml Spy 5.0, it generate classes from an xsd
> > file  which
> > wrap on the Dom Tree, but all facets are not implemented as  
> > enumeration ...
> > but I think that a better version will come soon. 
> Generates JAXP  
> > compliant
> > Java Beans
> > http://www.altova.com/features_java.html
> >
> > -Martin
> >
> > - Original Message - From: "Vicky"  
> > <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, December 17, 2003 2:01 PM
> > Subject: Generate Java class from xml?
> >
> >
> >
> >
> >> Does anyone have an idea of how i can generate .java file from
> >> xml  file?
> >>
> >
> > Tools like jakrata digester, JOX are there but both of them are
> > useful in
> > populating java beans from xml. My requirement is to generate 
> > .java  file
> 
> 
> > from .xml with getters and setters methods for xml
> > elements/attributes. I
> 
> 
> > also tried JAXB. But JAXB generates bunch of files and most of
> > them  are
> > interfaces, which is not going to work for me.
> >
> >
> >> For e.g. i have following xml file and i want to generate
> >> Address.java
> >>
> >
> > file with getters/setters. Any ideas?
> >
> >
> >> 
> >> 
> >>   
> >>   
> >> ..
> >> 
> >>
> >>
> >> Thanks,
> >> Vicky
> >>
> >>
> >>
> >> --
> >> struts 1.1 + tomcat 5.0.16 + java 1.4.2
> >> Linux 2.4.20 Debian
> >>
> >> 
> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: 
> [EMAIL PROTECTED]
> >>
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> -- 
> struts 1.1 + tomcat 5.0.16 + java 1.4.2
> Linux 2.4.20 Debian
> 

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



RE: Connection Pooling

2003-12-18 Thread Edgar P Dollin
Drop connection pooling in struts and either go to Container pooling or use
a product like Poolman (on sourceforge).  Struts DataSource is no longer
supported.

Edgar

> -Original Message-
> From: hernux [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, December 18, 2003 1:39 AM
> To: [EMAIL PROTECTED]
> Subject: Connection Pooling
> 
> 
> Hi all,
> 
> I'm having problems with db pooling, in my sistem, there is a 
> process that creates lot's of subsystems, and it opens lots 
> of connections in the pool... I have to create 380 
> subsystems, but I can't create more than 4 at once.at 
> number 5, pool dies .. out of conexions it sais..
> 
> So, I got two cuestions... 
> 
> 1- what am I doing wrong?...
> 2- is it posible to clean the pool by code, avoiding to 
> restart tomcat every time pool dies?
> 
> I'm using struts dbpooling .. here's my config:
> 
> 
>  
>   value="org.postgresql.Driver" />  property="maxCount" value="256" />  property="minCount" value="20" />  property="user" value="xxx" />  property="password" value="xxx" />  property="url" value="jdbc:postgresql://xxx/xxx" /> 
> 
> Thanx...
> 
> 

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



RE: [OT] Beer

2003-12-12 Thread Chappell, Simon P
In America, the colour is different, but the process seems to be identical.

>-Original Message-
>From: Carlos Duque [mailto:[EMAIL PROTECTED]
>Sent: Friday, December 12, 2003 9:50 AM
>To: Struts Users Mailing List
>Subject: RE: [OT] Beer
>
>
>I see.  The pilsner/lager phenomena.  Ale is different?
>
>Carlos
>
>At 07:29 AM 12/12/2003, you wrote:
>>I'm trying to think how to explain this delicately ... 
>consider the process:
>>
>>1. drink beer
>>2. use bathroom
>>repeat
>>
>>Now carefully consider step two in light of the word 
>"recycling". See? Now 
>>... be careful about drinking clear yellow liquids. ;-)
>>
>>Simon
>>
>> >-Original Message-
>> >From: Carlos Duque [mailto:[EMAIL PROTECTED]
>> >Sent: Friday, December 12, 2003 9:25 AM
>> >To: Struts Users Mailing List
>> >Subject: RE: [OT] Beer
>> >
>> >
>> >Perhaps you'd do well to clarify what you mean by recycled?
>> >
>> >OTOH, "beer" at room temperature isn't quite beer, eh wot?
>> >
>> >:-D
>> >
>> >Carlos
>> >
>> >At 07:12 AM 12/12/2003, you wrote:
>> >>I still stand by my original assertion: ALL American beer is
>> >recycled! Is
>> >>it any wonder that I quit drinking the stuff when I moved
>> >from England to
>> >>America.
>> >>
>> >> >-Original Message-
>> >> >From: Ben Anderson [mailto:[EMAIL PROTECTED]
>> >> >Sent: Friday, December 12, 2003 9:05 AM
>> >> >To: [EMAIL PROTECTED]
>> >> >Subject: RE: [OT] Beer
>> >> >
>> >> >
>> >> >alright, didn't think I'd need to chime in, but someone's
>> >> >gotta defend the
>> >> >black & gold:
>> >> >representing the great city of Pittsburgh:
>> >> >Iron City Beer
>> >> >
>> >> >>From: "Chappell, Simon P" <[EMAIL PROTECTED]>
>> >> >>Reply-To: "Struts Users Mailing List"
>> ><[EMAIL PROTECTED]>
>> >> >>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>> >> >>Subject: RE: [OT] Beer
>> >> >>Date: Fri, 12 Dec 2003 08:57:50 -0600
>> >> >>
>> >> >>I think that these replies kinda prove my point! :-)
>> >> >>
>> >> >>(Notice how no one ever defends American beer!)
>> >> >>
>> >> >>Simon
>> >>
>> >>
>> >>
>> 
>>>-
>> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >>For additional commands, e-mail: 
>[EMAIL PROTECTED]
>> >
>> >
>> 
>>-
>> >To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



RE: [OT] Beer

2003-12-12 Thread Chappell, Simon P
I'm trying to think how to explain this delicately ... consider the process:

1. drink beer
2. use bathroom
repeat

Now carefully consider step two in light of the word "recycling". See? Now ... be 
careful about drinking clear yellow liquids. ;-)

Simon

>-Original Message-
>From: Carlos Duque [mailto:[EMAIL PROTECTED]
>Sent: Friday, December 12, 2003 9:25 AM
>To: Struts Users Mailing List
>Subject: RE: [OT] Beer
>
>
>Perhaps you'd do well to clarify what you mean by recycled?
>
>OTOH, "beer" at room temperature isn't quite beer, eh wot?
>
>:-D
>
>Carlos
>
>At 07:12 AM 12/12/2003, you wrote:
>>I still stand by my original assertion: ALL American beer is 
>recycled! Is 
>>it any wonder that I quit drinking the stuff when I moved 
>from England to 
>>America.
>>
>> >-Original Message-
>> >From: Ben Anderson [mailto:[EMAIL PROTECTED]
>> >Sent: Friday, December 12, 2003 9:05 AM
>> >To: [EMAIL PROTECTED]
>> >Subject: RE: [OT] Beer
>> >
>> >
>> >alright, didn't think I'd need to chime in, but someone's
>> >gotta defend the
>> >black & gold:
>> >representing the great city of Pittsburgh:
>> >Iron City Beer
>> >
>> >>From: "Chappell, Simon P" <[EMAIL PROTECTED]>
>> >>Reply-To: "Struts Users Mailing List" 
><[EMAIL PROTECTED]>
>> >>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>> >>Subject: RE: [OT] Beer
>> >>Date: Fri, 12 Dec 2003 08:57:50 -0600
>> >>
>> >>I think that these replies kinda prove my point! :-)
>> >>
>> >>(Notice how no one ever defends American beer!)
>> >>
>> >>Simon
>>
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



RE: [OT] Beer

2003-12-12 Thread Chappell, Simon P
I don't like Miller's either, and I live closer to Milwaukee than Chippewa Falls.

>-Original Message-
>From: Hookom, Jacob [mailto:[EMAIL PROTECTED]
>Sent: Friday, December 12, 2003 9:10 AM
>To: Struts Users Mailing List
>Subject: RE: [OT] Beer
>
>
>What about Leinie's?  If you live in Wisconsin, it's a 
>requirement to love
>Leinie's-- you should know that Simon.
>
>Wisconsin-- where you have to bring your own fun.
>
>Jake
>
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED] 
>Sent: Friday, December 12, 2003 8:58 AM
>To: Struts Users Mailing List
>Subject: RE: [OT] Beer
>
>I think that these replies kinda prove my point! :-)
>
>(Notice how no one ever defends American beer!)
>
>Simon
>
>>-Original Message-
>>From: Brice Ruth [mailto:[EMAIL PROTECTED]
>>Sent: Friday, December 12, 2003 8:54 AM
>>To: Struts Users Mailing List
>>Subject: Re: [OT] Beer
>>
>>
>>Or Ireland or Germany, for that matter. You need stray no 
>further than 
>>Guiness (your stout) and Hacker Pschorr, your Hefeweiss.
>>
>>Set for life :)
>>
>>VAN BROECK Jimmy wrote:
>>
>>>Then you were lucky that at that moment no one from Belgium 
>>was active or they would have proved otherwise. ;)
>>>
>>>
>>>-Original Message-
>>>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
>>>Sent: vrijdag 12 december 2003 15:51
>>>To: Struts Users Mailing List; [EMAIL PROTECTED]
>>>Subject: [OT] Beer
>>>
>>>
>>>Andrew,
>>>
>>>A few of the recent conversations about beer, took a 
>>geopolitical turn ... especially when I pointed out that all 
>>American beer is recycled and the only good stuff comes from 
>>England! :-P
>>>
>>>Simon
>>>
>>>  
>>>
>>>>-Original Message-
>>>>From: Andrew Hill [mailto:[EMAIL PROTECTED]
>>>>Sent: Friday, December 12, 2003 1:22 AM
>>>>To: Struts Users Mailing List
>>>>Subject: RE: [OFF TOPIC - VERY OT] STRUTS PROGRAMMER JOB.
>>>>
>>>>
>>>>
>>>>thank god they have a free trade agreement with the rest of 
>the world
>>>>
>>>>
>>>>I would suggest that this thread is veering dangerously 
>>>>towards a discussion of global geopolitical economics. Such 
>>>>discussions are inappropriate for the struts list (imho 
>>>>somewhat more so than the usual OT stuff).
>>>>
>>>>This being Friday Id suggest you return to a far more 
>>>>appropriate topic.
>>>>ie: BEER
>>>>
>>>>-Original Message-
>>>>From: Mike Deegan [mailto:[EMAIL PROTECTED]
>>>>Sent: Friday, 12 December 2003 15:14
>>>>To: Struts Users Mailing List
>>>>Subject: Re: [OFF TOPIC - VERY OT] STRUTS PROGRAMMER JOB.
>>>>
>>>>
>>>>they are but to get a fair price for one???
>>>>who knows ...
>>>>
>>>>thank god they have a free trade agreement with the rest of 
>the world
>>>>
>>>>.. ohhh sorry let me re-phrase
>>>>
>>>>a free trade agreement with whoever they see fit at the time of the
>>>>agreement !
>>>>
>>>>- Original Message - 
>>>>From: "Marcus Peixoto" <[EMAIL PROTECTED]>
>>>>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>>>Sent: Thursday, December 11, 2003 12:28 PM
>>>>Subject: Re: [OFF TOPIC] STRUTS PROGRAMMER JOB.
>>>>
>>>>
>>>>
>>>>
>>>>>Are you kidding ? Are programmers for sale in US ?
>>>>>
>>>>>Em Qui, 2003-12-11 às 20:59, Martin Gainty escreveu:
>>>>>  
>>>>>
>>>>>>Going rate is about 6$/hr
>>>>>>- Original Message - 
>>>>>>From: "Tiago Henrique Costa Rodrigues Alves"
>>>>>><[EMAIL PROTECTED]>
>>>>>>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>>>>>>Sent: Thursday, December 11, 2003 1:37 PM
>>>>>>Subject: RE: [OFF TOPIC] STRUTS PROGRAMMER JOB.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>>I wrote my email wrong: [EMAIL PROTECTED]
>>>>>>>
>>>>>>>YO

RE: [OT] Beer

2003-12-12 Thread Chappell, Simon P
I still stand by my original assertion: ALL American beer is recycled! Is it any 
wonder that I quit drinking the stuff when I moved from England to America.

>-Original Message-
>From: Ben Anderson [mailto:[EMAIL PROTECTED]
>Sent: Friday, December 12, 2003 9:05 AM
>To: [EMAIL PROTECTED]
>Subject: RE: [OT] Beer
>
>
>alright, didn't think I'd need to chime in, but someone's 
>gotta defend the 
>black & gold:
>representing the great city of Pittsburgh:
>Iron City Beer
>
>>From: "Chappell, Simon P" <[EMAIL PROTECTED]>
>>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>Subject: RE: [OT] Beer
>>Date: Fri, 12 Dec 2003 08:57:50 -0600
>>
>>I think that these replies kinda prove my point! :-)
>>
>>(Notice how no one ever defends American beer!)
>>
>>Simon



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



RE: [OT] Beer

2003-12-12 Thread Chappell, Simon P
I think that these replies kinda prove my point! :-)

(Notice how no one ever defends American beer!)

Simon

>-Original Message-
>From: Brice Ruth [mailto:[EMAIL PROTECTED]
>Sent: Friday, December 12, 2003 8:54 AM
>To: Struts Users Mailing List
>Subject: Re: [OT] Beer
>
>
>Or Ireland or Germany, for that matter. You need stray no further than 
>Guiness (your stout) and Hacker Pschorr, your Hefeweiss.
>
>Set for life :)
>
>VAN BROECK Jimmy wrote:
>
>>Then you were lucky that at that moment no one from Belgium 
>was active or they would have proved otherwise. ;)
>>
>>
>>-Original Message-
>>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
>>Sent: vrijdag 12 december 2003 15:51
>>To: Struts Users Mailing List; [EMAIL PROTECTED]
>>Subject: [OT] Beer
>>
>>
>>Andrew,
>>
>>A few of the recent conversations about beer, took a 
>geopolitical turn ... especially when I pointed out that all 
>American beer is recycled and the only good stuff comes from 
>England! :-P
>>
>>Simon
>>
>>  
>>
>>>-Original Message-
>>>From: Andrew Hill [mailto:[EMAIL PROTECTED]
>>>Sent: Friday, December 12, 2003 1:22 AM
>>>To: Struts Users Mailing List
>>>Subject: RE: [OFF TOPIC - VERY OT] STRUTS PROGRAMMER JOB.
>>>
>>>
>>>
>>>thank god they have a free trade agreement with the rest of the world
>>>
>>>
>>>I would suggest that this thread is veering dangerously 
>>>towards a discussion of global geopolitical economics. Such 
>>>discussions are inappropriate for the struts list (imho 
>>>somewhat more so than the usual OT stuff).
>>>
>>>This being Friday Id suggest you return to a far more 
>>>appropriate topic.
>>>ie: BEER
>>>
>>>-Original Message-
>>>From: Mike Deegan [mailto:[EMAIL PROTECTED]
>>>Sent: Friday, 12 December 2003 15:14
>>>To: Struts Users Mailing List
>>>Subject: Re: [OFF TOPIC - VERY OT] STRUTS PROGRAMMER JOB.
>>>
>>>
>>>they are but to get a fair price for one???
>>>who knows ...
>>>
>>>thank god they have a free trade agreement with the rest of the world
>>>
>>>.. ohhh sorry let me re-phrase
>>>
>>>a free trade agreement with whoever they see fit at the time of the
>>>agreement !
>>>
>>>- Original Message - 
>>>From: "Marcus Peixoto" <[EMAIL PROTECTED]>
>>>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>>Sent: Thursday, December 11, 2003 12:28 PM
>>>Subject: Re: [OFF TOPIC] STRUTS PROGRAMMER JOB.
>>>
>>>
>>>
>>>
>>>>Are you kidding ? Are programmers for sale in US ?
>>>>
>>>>Em Qui, 2003-12-11 Ãs 20:59, Martin Gainty escreveu:
>>>>  
>>>>
>>>>>Going rate is about 6$/hr
>>>>>- Original Message - 
>>>>>From: "Tiago Henrique Costa Rodrigues Alves"
>>>>><[EMAIL PROTECTED]>
>>>>>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>>>>>Sent: Thursday, December 11, 2003 1:37 PM
>>>>>Subject: RE: [OFF TOPIC] STRUTS PROGRAMMER JOB.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>I wrote my email wrong: [EMAIL PROTECTED]
>>>>>>
>>>>>>YOU DONT NEED TO REPLY TO THE MAILING LIST send me an email
>>>>>>([EMAIL PROTECTED])
>>>>>>
>>>>>>Sorry for the off topic, but I just need to hear from you guys...
>>>>>>
>>>>>>I am looking for an American Job, I live in Brazil and I 
>>>>>>  
>>>>>>
>>>have 2 years
>>>
>>>
>>>>>>experience in Java + Struts + OJB + Apache + TomCat + 
>>>>>>  
>>>>>>
>>>UML + PHP + ASP.
>>>Web
>>>
>>>
>>>>>>in General
>>>>>>
>>>>>>How much an Web/Java Developer can make?
>>>>>>
>>>>>>How easy can I get a job from Brazil?
>>>>>>
>>>>>>Thanks,
>>>>>>Tiago Henrique C. R. Alves
>>>>>>
>>>>>>
>>>>>>  
>>>>>>
>>>---

[OT] Beer

2003-12-12 Thread Chappell, Simon P
Andrew,

A few of the recent conversations about beer, took a geopolitical turn ... especially 
when I pointed out that all American beer is recycled and the only good stuff comes 
from England! :-P

Simon

>-Original Message-
>From: Andrew Hill [mailto:[EMAIL PROTECTED]
>Sent: Friday, December 12, 2003 1:22 AM
>To: Struts Users Mailing List
>Subject: RE: [OFF TOPIC - VERY OT] STRUTS PROGRAMMER JOB.
>
>
>
>thank god they have a free trade agreement with the rest of the world
>
>
>I would suggest that this thread is veering dangerously 
>towards a discussion of global geopolitical economics. Such 
>discussions are inappropriate for the struts list (imho 
>somewhat more so than the usual OT stuff).
>
>This being Friday Id suggest you return to a far more 
>appropriate topic.
>ie: BEER
>
>-Original Message-
>From: Mike Deegan [mailto:[EMAIL PROTECTED]
>Sent: Friday, 12 December 2003 15:14
>To: Struts Users Mailing List
>Subject: Re: [OFF TOPIC - VERY OT] STRUTS PROGRAMMER JOB.
>
>
>they are but to get a fair price for one???
>who knows ...
>
>thank god they have a free trade agreement with the rest of the world
>
>.. ohhh sorry let me re-phrase
>
>a free trade agreement with whoever they see fit at the time of the
>agreement !
>
>- Original Message - 
>From: "Marcus Peixoto" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Sent: Thursday, December 11, 2003 12:28 PM
>Subject: Re: [OFF TOPIC] STRUTS PROGRAMMER JOB.
>
>
>> Are you kidding ? Are programmers for sale in US ?
>>
>> Em Qui, 2003-12-11 Ãs 20:59, Martin Gainty escreveu:
>> > Going rate is about 6$/hr
>> > - Original Message - 
>> > From: "Tiago Henrique Costa Rodrigues Alves"
>> > <[EMAIL PROTECTED]>
>> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>> > Sent: Thursday, December 11, 2003 1:37 PM
>> > Subject: RE: [OFF TOPIC] STRUTS PROGRAMMER JOB.
>> >
>> >
>> > > I wrote my email wrong: [EMAIL PROTECTED]
>> > >
>> > > YOU DONT NEED TO REPLY TO THE MAILING LIST send me an email
>> > > ([EMAIL PROTECTED])
>> > >
>> > > Sorry for the off topic, but I just need to hear from you guys...
>> > >
>> > > I am looking for an American Job, I live in Brazil and I 
>have 2 years
>> > > experience in Java + Struts + OJB + Apache + TomCat + 
>UML + PHP + ASP.
>Web
>> > > in General
>> > >
>> > > How much an Web/Java Developer can make?
>> > >
>> > > How easy can I get a job from Brazil?
>> > >
>> > > Thanks,
>> > > Tiago Henrique C. R. Alves
>> > >
>> > > 
>-
>> > > To unsubscribe, e-mail: 
>[EMAIL PROTECTED]
>> > > For additional commands, e-mail: 
>[EMAIL PROTECTED]
>> > >
>> > >
>> >
>> > 
>-
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: 
>[EMAIL PROTECTED]
>> >
>> >
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>


RE: Tabbed menus using Tiles

2003-12-10 Thread Edgar P Dollin
Try struts-menu at sourceforge.  It integrates very well and gives you nice
choices for menus without writing a lot of javascript.

Edgar

> -Original Message-
> From: Gopal Venkata Achi [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, December 10, 2003 3:36 PM
> To: Struts Users Mailing List
> Subject: Tabbed menus using Tiles
> 
> 
> Hi All,
> 
> I am presently designing a web application, and curious to 
> learn whether there is any way we can create and use the 
> tabbed menus using Struts libraries.  We have chosen tiles 
> for the layout design already.
> 
> I appreciate any help.
> 
> cheers
> 
> gopal
> 
> 

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



RE: [OT] Log4J and Pre-Processor

2003-12-09 Thread Edgar P Dollin
The difference between scientists and engineers

The funny part is they are both right.  The hard part is deciding
which you are and living with the decision.

Edgar

> -Original Message-
> From: Ted Husted [mailto:[EMAIL PROTECTED] 

> You might first run some load tests to see if the boolean statements do 
> have a non-negligable performance impact. It's easy to loose something 
> like this in the rounding, and there may be better places to spend your 
> optimization dollars. As scientists, we should should more than "feel", 
> we should know.


> -Original Message-
> From: Kirk Wylie [mailto:[EMAIL PROTECTED] 

> So if you care THAT much about 5ns per call, do it this way (through 
> compilation) and let the java compiler do the work for you. For this, 
> even if you decide to pre-process, you don't have to pre-process.
> 
> But do you really care that much about 5ns? Are you SURE you 
> care that 
> much about 5ns?
> 
> Kirk Wylie
> M7 Corporation
> 

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



RE: HELP: about to get datasource of struts and pass to logic bea ns...

2003-12-08 Thread Edgar P Dollin
Don't spend the time to get DataSource working.  It is deprecated and will
be removed from struts in 1.2.  I use Poolman at sourceforge (I highly
reccomend it for non-j2ee projects).  Most others use the DataSource
supplied with the container.

Edgar

-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Monday, December 08, 2003 4:29 PM
To: Struts Users Mailing List
Subject: Re: HELP: about to get datasource of struts and pass to logic
beans...


There are lots of classes involved.  I will give you
an example:

1. my LogonAction calls EditorService.java (business
delegate)
2. EditorService.java calls MySQLEditorDAO.java (data
access object implements EditorDAO.java, which is a
data access interface)
3. the MySQLEditorDAO.java returns EditorBean.java (a
Java bean with three properties)

Here is my LogonAction.java:

package org.apache.artimus.logon;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionServlet;

import org.apache.artimus.lang.Tokens;

public final class LogonAction extends Action {

public ActionForward execute(ActionMapping
mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws java.lang.Exception {

// Obtain username and password from web tier
String username = ((LogonForm)
form).getUsername();
String password = ((LogonForm)
form).getPassword();

EditorService service = new EditorService();
EditorBean editor = service.findEditorData(
username );

HttpSession session = request.getSession();
session.setAttribute( "editor", editor );

// Log this event, if appropriate

if (servlet.getDebug() >= Tokens.DEBUG) {
StringBuffer message =
new StringBuffer("LogonAction: User
'");
message.append(username);
message.append("' logged on in session ");
message.append(session.getId());
servlet.log(message.toString());
}

// Return success
return (mapping.findForward(Tokens.VALID));

}

} // End LogonAction

Here is the EditorService.java:

package org.apache.artimus.logon;

import org.apache.artimus.logon.dao.*;

public class EditorService 
{
   EditorDAO ed = new MySQLEditorDAO();
   public EditorBean findEditorData( String username )
   {
  return ed.findEditor( username );
   }
}

Here is the EditorDAO.java:

package org.apache.artimus.logon.dao;

import org.apache.artimus.logon.EditorBean;
import
org.apache.artimus.logon.exceptions.EditorDAOSysException;

public interface EditorDAO.java
{
public EditorBean findEditor( String username )
throws EditorDAOSysException;
}

Here is the MySQLEditorDAO.java:

package org.apache.artimus.logon.dao;

import java.io.IOException;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
import java.sql.SQLException;

import org.apache.artimus.logon.EditorBean;
import
org.apache.artimus.logon.exceptions.EditorDAOSysException;
import org.apache.artimus.ConnectionPool.DBConnection;

public class MySQLEditorDAO implements EditorDAO
{
   // Here the return type is EditorBean
   public EditorBean findEditor( String username ) 
   throws EditorDAOSysException 
   {
  Connection conn = null;
  Statement stmt = null;
  ResultSet rs = null;

  try 
  {
 conn = DBConnection.getDBConnection();
 stmt = conn.createStatement();
 String query = "SELECT user_role,
journal_category FROM members WHERE user_name = '" +
username + "'";   
 rs = stmt.executeQuery( query );
 if (rs.next()) 
 {
return new EditorBean( username,
rs.getString( "user_role" ), rs.getString(
"journal_category" ) );
 }
 else
 {
System.out.println( "invalid user name" );
return null;
 }
  } 
  catch (SQLException se)
  {
 throw new
EditorDAOSysException("SQLException: " +
se.getMessage());
  }
  finally
  {
 if ( conn != null )
 {
try
{
   rs.close();
   rs = null;
   stmt.close();
   stmt = null;
   conn.close();
}
catch( SQLException sqlEx )
{
   System.out.println( "Problem occurs
while closing " + sqlEx );
}
conn = null;
 }   
  }
   }
}

Here is the EditorBe

RE: Struts User Roles

2003-12-08 Thread Edgar P Dollin
I wasn't aware that such a concept existed.  There are roles for container
managed security, is that what you are refering to?

Edgar

-Original Message-
From: Tiago Henrique Costa Rodrigues Alves
[mailto:[EMAIL PROTECTED]
Sent: Monday, December 08, 2003 1:06 PM
To: Struts Users Mailing List (E-mail)
Subject: Struts User Roles


Where can I find Struts Roles documentation?

Tiago Henrique C. R. Alves



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



RE: How to detect that session has expired ?

2003-12-08 Thread Edgar P Dollin
If you use container authentication or filters, this isn't an issue.  The
user will never get to an action class with an invalid session.

Edgar

-Original Message-
From: Kirk Wylie [mailto:[EMAIL PROTECTED]
Sent: Monday, December 08, 2003 1:19 PM
To: Struts Users Mailing List
Subject: Re: How to detect that session has expired ?


Ashish Kulkarni wrote:

> HI
> if u are using servelt 2.3 , then u can use servelt
> filter, in this filter u can have logic to check
> session before each request so u dont need to add any
> code in jsp or action class

If he's using Servlet 2.3, then he can also use the 
ServletContextListener in conjunction, where is where the logic for 
whether the session has been restarted could likely belong.

Kirk Wylie
M7 Corporation

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



truncated data in the form

2003-12-02 Thread Sergei P. Volin
Hi there,

Can anybody shed light on why data sent by POST is truncated sometimes. The
form is actually sufficiently big, 200kb (it is a survey form). The form has
text, textarea fields, checks and radios. The fields that are truncated are
text and textarea types. The problem occurres not often but persists. Could
it be some "bad" symbols that users enter? Then what are they?
It is more a html specific question than struts. But once I use struts
(struts-1.1) I place the question here.

Best regards,
S.Volin.




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



RE: [FRIDAY] YA Stuts In Action / JUnit in Action Trivia Quiz

2003-11-28 Thread Edgar P Dollin
My apologies.  I just replied w/o thinking.  Please remove me from the
competition.

Edgar

> -Original Message-
> From: Andrew Hill [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, November 27, 2003 11:33 PM
> To: Struts Users Mailing List
> Cc: [EMAIL PROTECTED]
> Subject: RE: [FRIDAY] YA Stuts In Action / JUnit in Action Trivia Quiz
> 
> 
> Garrgh!
> And it was the first one of his trivias I knew the answer 
> for. :-( Even spent 5 minutes googling the bonus question, 
> and emailing Ted just now. I really should read the latest 
> emails first when I come back from leave. Sigh.
> 
> Hey Ted,
> How about a new question for those of us who didnt get our 
> answer in before the result was prematurely revealed. (ie 
> anyone who answered before Edgars post is still in the 
> running but anyone after (like me :-< ) has to answer a new 
> question)???
> 
> -Original Message-
> From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 27 November 2003 21:35
> To: 'Ted Husted'; Struts Users Mailing List
> Subject: RE: [FRIDAY] YA Stuts In Action / JUnit in Action Trivia Quiz
> 
> 
> 1) Computing Machinery and Intelligence
> 2) Alan M. Turing
> Bonus I Have No Mouth and I Must Scream
> 
> Edgar
> 
> PS, never read any Turing, but now I understand his 
> influence.  Still haven't read an Ellison, my patience with 
> Science Fiction left after 30 years of Trek.
> 
> 

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



RE: [FRIDAY] YA Stuts In Action / JUnit in Action Trivia Quiz

2003-11-27 Thread Edgar P Dollin
1) Computing Machinery and Intelligence
2) Alan M. Turing
Bonus I Have No Mouth and I Must Scream

Edgar

PS, never read any Turing, but now I understand his influence.  Still
haven't read an Ellison, my patience with Science Fiction left after 30
years of Trek.


> -Original Message-
> From: Ted Husted [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, November 27, 2003 12:56 AM
> To: Struts Users Mailing List
> Subject: [FRIDAY] YA Stuts In Action / JUnit in Action Trivia Quiz
> 
> 
> Last time, we asked contestants to identify the cartoonist 
> responsible for this gem:
> 
> 
> 
> Tour of Accounting:
> 
> "Over here we have our random number generator."
> 
> "NINE NINE NINE NINE NINE NINE"
> 
> "Are you sure that's random?"
> 
> "That's the problem with randomness: You can never be sure."
> 
> 
> 
> The answer, of course, is: Scott Adams, born June 8, 1957, 
> who launched the Dilbert strip in 1989.
> 
>  From the several correct responses, we arbitrarily selected
> 
> 
>BECKY L. NORUM
> 
> 
> as our winning contestant. (Becky, please send your surface 
> mail address to [EMAIL PROTECTED], and indicate whether you 
> would like JUnit in Action or Struts in Action)
> 
> 
> 
> NEXT:
> 
> In 1950, the journal MIND, a Quarterly Review of Psychology 
> and Philosophy, published a seminal paper regarding 
> artificial intelligence.
> 
> 1 What was the title of the paper?
> 
> 2 Who was the author of the paper?
> 
> Any contestants correctly answering these two questions will 
> qualify for this week's drawing. As always, the correct 
> answers are the ones that I expect :)
> 
> ** BONUS QUESTION **
> 
> 3 The author of this paper used his initials for his first 
> and middle name. What Hugo-winning story by Harlan Ellison 
> regarding artificial intelligence features a protagonist 
> whose name are these same two initials?
> 
> Any contestant correctly answering the bonus question will 
> also qualify, regardless. :) [I do love my Ellison!]
> 
> 
> 
> The contest will run until Thursday, December 4, 2003, 
> 23:59:59, so everyone has a chance to participate.
> 
> The lucky winner selected from the correct responses will 
> receive their choice of either a signed copy of Struts in 
> Action *OR* JUnit in Action.
> 
> PLEASE be sure to reply to [EMAIL PROTECTED]
> 
> If you have an interesting science fiction or computer 
> science question that is hard, or at least fun, to google, 
> please send it to me. The first to suggest a question that we 
> use also wins!
> 
> -Ted.
> 
> PLEASE be sure to reply to [EMAIL PROTECTED]
> 
> 
> -- 
> Ted Husted,
>Junit in Action  - ,
>Struts in Action - ,
>JSP Site Design  - 
>  1861005512>.
> 
> 
> 
> 
> 
> 

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



RE: Reporting System

2003-11-25 Thread Edgar P Dollin
Jasper reports is pretty good.  

http://jasperreports.sourceforge.net

Edgar

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, November 25, 2003 9:35 AM
> To: Struts-User
> Subject: Reporting System
> 
> 
> Hello,
> 
> we are looking for a good ReportingSystem.
> We want to create Reports easy in a Struts Web Applikation.
> 
> Any ideas ?
> 
> Mit freundlichen Grüßen
> 
> Christian Reps, Dipl. Inf. (FH)
> Web Applications
> 
> 

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



RE: Server manged vs. struts managed db pools

2003-11-25 Thread Edgar P Dollin
I will speak about tomcat since that is the one I have used most recently.  

The web.xml file which is in the war file has a reference to the JNDI
objects created by the container.  Say you have the same application
deployed multiple times (one for each customer).  In my application(s), each
customer has a separate physical database which means that you have to mess
with server.xml in the web container configuration to add the additional
database for each customer added (not really an issue if you are adding
context elements for virtual servers).  Additionally, you don't need a
configuration parameter in your application for the JNDI database handle as
it can be hardcoded and only change struts-config.xml to reference the
correct database.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-how
to.html

Edgar

> -Original Message-
> From: Vic Cekvenich [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, November 25, 2003 6:17 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Server manged vs. struts managed db pools
> 
> 
> 
> 
> Edgar P Dollin wrote:
> 
> > There is another issue regarding connection pooling in struts vs 
> > connection pooling in the container.  In struts the war 
> file contains 
> > all the information the app needs to run.  With container 
> pooling (at 
> > least with tomcat and resin) you have to coordinate the container 
> > configuration with struts configuration.  With a single container 
> > running multiple apps this is a bit of an issue.
> > 
> > Edgar
> > 
> 
>   I have that same example. The war has JNDI.
> How the connection pool is provided is of no issue for the 
> war. It works 
> great. You can just lean on J2EE and let it take you home.
> 
> 
> .V
> 
> 
> 

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



RE: What is CornerStone?

2003-11-25 Thread Chappell, Simon P
Well, I've never heard of it, but I went to the apache.org website and used their 
search facility to find it within the Avalon project. Here's a link:

http://avalon.apache.org/components/index.html

And here's a description:

"The cornerstone project is the home of a set of utility components that can be used 
to simplify application development."

Hope this helps.

Simon

>-Original Message-
>From: Raj A [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 24, 2003 9:33 PM
>To: [EMAIL PROTECTED]
>Subject: What is CornerStone?
>
>
>Hi,
> 
>  Does anybody have any idea about Apache "Cornerstone" 
>framework . I am in the process of choosing a MVC 
>implementation and somebody told me about it. Can anybody shed 
>some light about it. How is it similar/dissimilar to Struts or 
>is it not an MVC framework at all.
> 
>Thanks in advance
>Raaj
>
>
>
>-
>Do you Yahoo!?
>Protect your identity with Yahoo! Mail AddressGuard
>

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



RE: Does Taglibs cause any performance Issues ???

2003-11-25 Thread Edgar P Dollin
Tags stay in memory (in pools) based on the tags used and the parameter
values of the tags.  If memory is an issue then you can disable tag pooling.
If cpu performance is an issue (pooling the tags saves object instantiation
and release) then leave tag pooling in place.

Edgar

> -Original Message-
> From: Shakti [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, November 25, 2003 6:16 AM
> To: Struts Users Mailing List
> Subject: Does Taglibs cause any performance Issues ???
> 
> 
> Hi All,
>   I want to know whether use of taglibs in jsp cause 
> any kind of performance issues. Someone told me that i should 
> avoid using taglibs becuz they r being loaded into memory and 
> in many cases during stress testing applications have failed 
> because of excess use of taglibs . I want to know your views 
> regarding this !
> 
> Cheers..
> Shakti
> 
> 

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



RE: Types supported by DynaActionForm (or DynaValidatorForm)

2003-11-25 Thread Edgar P Dollin
There is some contradiction when it comes to types in ActionForms.  The
general idea of struts is to put a bunch of Strings (or booleans) between
the application and view layer so that after unsuccessful validation the
framework can return the typed values unchanged.  In certain cases,
individual developers put in support for types other than Strings for
certain features.

The bottom line is, until there is more concensus on the use of data types,
use non String ActionForm properties at your own risk.

Edgar

> -Original Message-
> From: Sasha Borodin [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 24, 2003 6:10 PM
> To: Struts Users Mailing List
> Subject: Types supported by DynaActionForm (or DynaValidatorForm)
> 
> 
> OK, in the Struts manual, it says:
> 
> The types supported by DynaActionForm include:
> - java.sql.Date
> - java.sql.Time
> - java.sql.Timestamp
> ...(among others)...
> 
> What does "supported" mean though?
> 
> Cause if I try to specify a java.sql.Date field in my form in 
> struts-config:
>  name="commissionReport"
> type="org.apache.struts.validator.DynaValidatorForm">
>  name="payDate"
> type="java.sql.Date"/>
> 
> 
> ...and then submit a form, I get a ConversionException:
> 
> org.apache.commons.beanutils.ConversionException at 
> org.apache.commons.beanutils.converters.SqlDateConverter.conve
> rt(SqlDateConv
> erter.java:162)
> 
> And upon searching the archives, I found suggestions to use 
> SimpleDateFormat to do convert Strings-->Dates manually.
> 
> So what does "support" mean? Is there any automated 
> (non-custom) way to do this, so I can just say "(Date) 
> dynaForm.get('dateField')" :-)  Thanks!
> 
> -Sasha Borodin
> 
> 

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



RE: Server manged vs. struts managed db pools

2003-11-25 Thread Edgar P Dollin
There is another issue regarding connection pooling in struts vs connection
pooling in the container.  In struts the war file contains all the
information the app needs to run.  With container pooling (at least with
tomcat and resin) you have to coordinate the container configuration with
struts configuration.  With a single container running multiple apps this is
a bit of an issue.

Edgar

> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 24, 2003 11:03 PM
> To: Struts Users Mailing List
> Subject: RE: Server manged vs. struts managed db pools
> 
> 
> Quoting Edgar P Dollin <[EMAIL PROTECTED]>:
> 
> > I like struts managed db pools, however, the struts 
> developers aren't 
> > too happy about the quality and the dependency on the 
> commons-pooling 
> > library and are attempting to phase it out.
> > 
> 
> The existing connection pool in struts-legacy.jar (and the 
> one in commons-dbcp.jar nowdays) works fine.  However, there 
> are several important pros for using container managed 
> connection pools:
> 
> * A connection pool implementation provided by your app server
>   is likely to be optimized for better performance on that particular
>   app server than a generic pool included with the app.
> 
> * A connection pool implementation provided by your app server
>   is likely to be supported by the graphical admin tools of that
>   app server, versus having to be hand configured in 
> struts-config.xml.
> 
> * On some app servers, you can dynamically tweak the characteristics
>   of the connection pool (such as how many active connections 
> are allowed)
>   without restarting the app.  That's not the case for a pool included
>   inside the app, where you have to go tweak 
> struts-config.xml and restart.
> 
> * A connection pool provided by your app server vendor is accessible
>   (via JNDI) *anywhere* in your application, versus having to 
> be passed
>   in as a parameter to any method that needs it (or making 
> your business
>   logic dependent on the servlet API in order to access 
> application scope
>   attributes).
> 
> * In environments where you have two or three different deployment
>   scenarios (say, "development", "test", and "production") you can
>   deploy exactly the same WAR file in all three places, yet have each
>   of them talk to the correct database simply by administering the
>   server.  No tweaking of the struts-config.xml file to reflect which
>   environment you are deploying to.
> 
> The only reason Struts ever included a connection pool in the 
> first place is that most standalone servlet containers at 
> that time didn't support JNDI-based pools.  Now, that is no 
> longer an issue, and I would always recommend using the 
> container's facilities for that purpose.
> 
> > Edgar
> > 
> 
> Craig
> 
> 
> > > -Original Message-
> > > From: Nathan Maves [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, November 18, 2003 2:52 PM
> > > To: Struts Users Mailing List
> > > Subject: Server manged vs. struts managed db pools
> > > 
> > > 
> > > Are there any pro/con 's for either?
> > > 
> > > Nathan
> > > 
> > > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> 
> 

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



RE: [OT] Stress Test

2003-11-24 Thread Chappell, Simon P
Go for it. JMeter is a nice tool and the guys on the mailing list are as helpful as 
you could wish. I'm looking to try JMeter for some functional testing in the near 
future.

Simon

>-Original Message-
>From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 24, 2003 9:26 AM
>To: 'Struts Users Mailing List'
>Subject: RE: [OT] Stress Test
>
>
>Simon, Paul, and Vic - 
>
>Thanks for the suggestions.  One initial glance it looks like 
>JMeter will do
>what I want, so I'm going to head down that path  8-)
>
>Jerry Jalenak
>Development Manager, Web Publishing
>LabOne, Inc.
>10101 Renner Blvd.
>Lenexa, KS  66219
>(913) 577-1496
>
>[EMAIL PROTECTED]
>
>
>> -Original Message-
>> From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
>> Sent: Monday, November 24, 2003 9:05 AM
>> To: '[EMAIL PROTECTED]'
>> Subject: [OT] Stress Test
>> 
>> 
>> Hi All,
>> 
>> I've got a problem with my current web app where it stops 
>> responding after
>> about 6 hours.  I need to set up a test environment and 
>> simulate multiple
>> logon's so I can trap my way through the code and figure out 
>> where it is
>> failing.  I think there is a tool available that can be used 
>> to do this -
>> HTTPerf (I think), but I'm not sure if this will do what I 
>want.  Does
>> anyone have any experience with this?
>> 
>> Thanks.
>> 
>> Jerry Jalenak
>> Development Manager, Web Publishing
>> LabOne, Inc.
>> 10101 Renner Blvd.
>> Lenexa, KS  66219
>> (913) 577-1496
>> 
>> [EMAIL PROTECTED]
>> 
>> 
>> This transmission (and any information attached to it) may be 
>> confidential and
>> is intended solely for the use of the individual or entity to 
>> which it is
>> addressed. If you are not the intended recipient or the 
>> person responsible for
>> delivering the transmission to the intended recipient, be 
>> advised that you
>> have received this transmission in error and that any use, 
>> dissemination,
>> forwarding, printing, or copying of this information is 
>> strictly prohibited.
>> If you have received this transmission in error, please 
>> immediately notify
>> LabOne at the following email address: 
>> [EMAIL PROTECTED]
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>
>This transmission (and any information attached to it) may be 
>confidential and
>is intended solely for the use of the individual or entity to 
>which it is
>addressed. If you are not the intended recipient or the person 
>responsible for
>delivering the transmission to the intended recipient, be 
>advised that you
>have received this transmission in error and that any use, 
>dissemination,
>forwarding, printing, or copying of this information is 
>strictly prohibited.
>If you have received this transmission in error, please 
>immediately notify
>LabOne at the following email address: 
>[EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



RE: [OT] Stress Test

2003-11-24 Thread Chappell, Simon P
I must admit that I have not tried JProbe or Clover, so I can't help there.

I liked JUnitPerf for the task that I had. I originally wanted to use JMeter, but was 
unable to figure out quickly enough how to have unique test data for each simulated 
user, which was crucial for the test that I wanted to run. Also, the tool had to work 
from within Ant, which both JUnitPerf and JMeter will do.

Simon

>-Original Message-
>From: Martin Gainty [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 24, 2003 2:32 PM
>To: Struts Users Mailing List
>Subject: Re: [OT] Stress Test
>
>
>Simon
>Do you prefer JunitPerf to JProbe or Clover?
>Thanks,
>Martin
>- Original Message - 
>From: "Chappell, Simon P" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Sent: Monday, November 24, 2003 10:11 AM
>Subject: RE: [OT] Stress Test
>
>
>I stress-tested our app with a combination of HttpUnit and 
>JUnitPerf. My
>test was designed to see what the maximum throughput was, rather than
>testing longevity, but the basic principles should be the same. I had
>multiple simulated users, logging in. each in independent 
>sessions, and then
>running unique data through the application.
>
>Simon
>
>-
>Simon P. Chappell [EMAIL PROTECTED]
>Java Programming Specialist  www.landsend.com
>Lands' End, Inc.   (608) 935-4526
>
>"Wisdom is not the prerogative of the academics." - Peter Chappell
>
>>-Original Message-
>>From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
>>Sent: Monday, November 24, 2003 9:05 AM
>>To: '[EMAIL PROTECTED]'
>>Subject: [OT] Stress Test
>>
>>
>>Hi All,
>>
>>I've got a problem with my current web app where it stops
>>responding after
>>about 6 hours.  I need to set up a test environment and
>>simulate multiple
>>logon's so I can trap my way through the code and figure out
>>where it is
>>failing.  I think there is a tool available that can be used
>>to do this -
>>HTTPerf (I think), but I'm not sure if this will do what I want.  Does
>>anyone have any experience with this?
>>
>>Thanks.
>>
>>Jerry Jalenak
>>Development Manager, Web Publishing
>>LabOne, Inc.
>>10101 Renner Blvd.
>>Lenexa, KS  66219
>>(913) 577-1496
>>
>>[EMAIL PROTECTED]
>>
>>
>>This transmission (and any information attached to it) may be
>>confidential and
>>is intended solely for the use of the individual or entity to
>>which it is
>>addressed. If you are not the intended recipient or the person
>>responsible for
>>delivering the transmission to the intended recipient, be
>>advised that you
>>have received this transmission in error and that any use,
>>dissemination,
>>forwarding, printing, or copying of this information is
>>strictly prohibited.
>>If you have received this transmission in error, please
>>immediately notify
>>LabOne at the following email address:
>>[EMAIL PROTECTED]
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



RE: [OT] Stress Test

2003-11-24 Thread Chappell, Simon P
I stress-tested our app with a combination of HttpUnit and JUnitPerf. My test was 
designed to see what the maximum throughput was, rather than testing longevity, but 
the basic principles should be the same. I had multiple simulated users, logging in. 
each in independent sessions, and then running unique data through the application.

Simon

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

"Wisdom is not the prerogative of the academics." - Peter Chappell

>-Original Message-
>From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 24, 2003 9:05 AM
>To: '[EMAIL PROTECTED]'
>Subject: [OT] Stress Test
>
>
>Hi All,
>
>I've got a problem with my current web app where it stops 
>responding after
>about 6 hours.  I need to set up a test environment and 
>simulate multiple
>logon's so I can trap my way through the code and figure out 
>where it is
>failing.  I think there is a tool available that can be used 
>to do this -
>HTTPerf (I think), but I'm not sure if this will do what I want.  Does
>anyone have any experience with this?
>
>Thanks.
>
>Jerry Jalenak
>Development Manager, Web Publishing
>LabOne, Inc.
>10101 Renner Blvd.
>Lenexa, KS  66219
>(913) 577-1496
>
>[EMAIL PROTECTED]
>
>
>This transmission (and any information attached to it) may be 
>confidential and
>is intended solely for the use of the individual or entity to 
>which it is
>addressed. If you are not the intended recipient or the person 
>responsible for
>delivering the transmission to the intended recipient, be 
>advised that you
>have received this transmission in error and that any use, 
>dissemination,
>forwarding, printing, or copying of this information is 
>strictly prohibited.
>If you have received this transmission in error, please 
>immediately notify
>LabOne at the following email address: 
>[EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



RE: Token documentation

2003-11-21 Thread Edgar P Dollin
I haven't seen any but there isn't really much to document.  You put an
integer into the form with a value that is updated by the action.  This
value must change from request to request, typically it is incremented.  You
must carry a hidden field in the jsp to carry the token to the following
request (if you don't have the hidden field and are using session beans the
value will always be correct, with request beans it will always be
incorrect).  The load action also puts the token value into the session so
the next action can check the value.  When the target action is invoked, it
picks up the token and checks the value against the actionform.  If the
value is not the same, i.e. the user hit the back button and resubmitted,
you have an error situation.  You can forward to an error page or take
whatever action you deem necessary at that point.

Edgar

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> Sent: Friday, November 21, 2003 11:52 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Token documentation
> 
> 
> 
> 
> ok, I will try to get this book.
> And what about online documentation?
> 
> 
> 
> 
> Extranet
> [EMAIL PROTECTED] - 11/21/2003 05:22 PM
> 
> 
> Please respond to [EMAIL PROTECTED]
> To:struts-user
> 
> cc:
> 
> 
> Subject:RE: Token documentation
> 
> 
> I found the description of how and when to use tokens in "The 
> Struts Framework, Practical Guide for Java Programming" by 
> Sue Spielman very useful.
> 
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 21, 2003 11:19 AM
> To: [EMAIL PROTECTED]
> Subject: Token documentation
> 
> 
> 
> Hi all,
> 
> I have problems with the refresh button of my brower: it 
> resend automatically the form to the server. I found the 
> mailing archive that with the use of tokens, I can avoid 
> that. But I don't really understand how I have to use it 
> properly. Can someone tell me when i could find a good 
> documentation concerning this point? Is it a recommanding 
> desing to associated with tokens ?
> 
> thanks,
> 
> Ludo.
> 
> 
> 
> 
> 
> 
> 
> This message and any attachments (the "message") is intended 
> solely for the addressees and is confidential. If you receive 
> this message in error, please delete it and immediately 
> notify the sender. Any use not in accord with its purpose, 
> any dissemination or disclosure, either whole or partial, is 
> prohibited except formal approval. The internet can not 
> guarantee the integrity of this message. BNP PARIBAS (and its 
> subsidiaries) shall (will) not therefore be liable for the 
> message if modified.
> 
> -
> 
> Ce message et toutes les pieces jointes (ci-apres le 
> "message") sont etablis a l'intention exclusive de ses 
> destinataires et sont confidentiels. Si vous recevez ce 
> message par erreur, merci de le detruire et d'en avertir 
> immediatement l'expediteur. Toute utilisation de ce message 
> non conforme a sa destination, toute diffusion ou toute 
> publication, totale ou partielle, est interdite, sauf 
> autorisation expresse. L'internet ne permettant pas d'assurer 
> l'integrite de ce message, BNP PARIBAS (et ses filiales)
> decline(nt) toute responsabilite au titre de ce
> message, dans l'hypothese ou il aurait ete modifie.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> This message and any attachments (the "message") is intended 
> solely for the addressees and is confidential. 
> If you receive this message in error, please delete it and 
> immediately notify the sender. Any use not in accord with 
> its purpose, any dissemination or disclosure, either whole or 
> partial, is prohibited except formal approval. 
> The internet can not guarantee the integrity of this message. 
> BNP PARIBAS (and its subsidiaries) shall (will) not 
> therefore be liable for the message if modified. 
> 
> -
> 
> Ce message et toutes les pieces jointes (ci-apres le 
> "message") sont etablis a l'intention exclusive de ses 
> destinataires et sont confidentiels. Si vous recevez ce 
> message par erreur, merci de le detruire et d'en avertir 
> immediatement l'expediteur. Toute utilisation de ce message 
> non conforme a sa destination, toute diffusion 
> ou toute publication, totale ou partielle, est interdite, 
> sauf autorisation expresse. L'internet ne permettant pas 
> d'assurer l'integrite de ce message, BNP PARIBAS (et ses 
> filiales) decline(nt) toute responsabilite au titre de ce 
> message, dans l'hypothese ou il aurait ete modifie.
> 
> 

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



RE: [OT] Veggie Tales! (was: Lazy questions on this list)

2003-11-20 Thread Chappell, Simon P
I just can't get into the cartoon adventures. I only like the CG ones. :-)

>-Original Message-
>From: Brandon Goodin [mailto:[EMAIL PROTECTED]
>Sent: Thursday, November 20, 2003 11:48 AM
>To: [EMAIL PROTECTED]
>Subject: [OT] Veggie Tales! (was: Lazy questions on this list)
>
>
>Has anyone caught the most recent LarryBoy adventure?
>
 [EMAIL PROTECTED] 11/20/2003 10:40:09 AM >>>
>

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



RE: Lazy questions on this list

2003-11-20 Thread Chappell, Simon P
>HAHAHAH! Dang I missed a veggie tales thread!
>
>Why do I doubt Mark was in on that one?

If I recall correctly, he was right up there with the rest of us. :-)

Simon

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



RE: Lazy questions on this list

2003-11-20 Thread Chappell, Simon P


>-Original Message-
>From: Long, Robert [mailto:[EMAIL PROTECTED]
>Sent: Thursday, November 20, 2003 11:36 AM
>To: Struts Users Mailing List
>Subject: RE: Lazy questions on this list
>
>So from what I'm hearing here, as a newb,  it is safe to 
>assume that all answers to my questions will be www.google.com...

Actually, a good number of answers will come from taking that route first.

>Well, that is typically the first place to look. I guess my 
>next search should for a more newbie friendly list...

This is it. It ain't perfect, but it works.

>Btw, the "experts" here have spent more time b*tching about 
>"lazy questions" than any other topic I've seen here. Kind of funny.

You should have seen the "great veggietales outbreak" ... now that was fun! :-)

>--- back to lurk mode ---

Me too. :-)

Simon

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

"Wisdom is not the prerogative of the academics." - Peter Chappell

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



RE: Lazy questions on this list

2003-11-20 Thread Chappell, Simon P
Perhaps, instead of just pointing people at the smart questions FAQ (however much it 
seems like the right thing to do), we could point them at the appropriate entry in the 
various Struts FAQ documents. This would be a much more helpful thing to do and over 
time people would both get help and maybe even get the hint that there are places to 
look before asking the list. And if appropriate FAQ entries do not exist for such 
questions, then shame on us long-time Struts users (me included)!

Be nice to the newbies, because eventually, if they stick around, they become the 
grizzled old fogies like me and Mark and a few others around here.

So everyone raise their right hand and repeat after me: "I will not flame the newbies, 
and I will point them at appropriate sections of the FAQ" See, that didn't hurt. :-)

Simon

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

"Wisdom is not the prerogative of the academics." - Peter Chappell

>-Original Message-
>From: Long, Robert [mailto:[EMAIL PROTECTED]
>Sent: Thursday, November 20, 2003 10:14 AM
>To: Struts Users Mailing List
>Subject: RE: Lazy questions on this list
>
>
>What may seem like a lazy question to some, may seem like a 
>valid question for a newbie. 
>Some people just need to remember what it was like to try to 
>learn this stuff for the first time.
>
>Also remember, you have total control of your delete key. 
>
> -Original Message-
>From:  Paul McCulloch [mailto:[EMAIL PROTECTED] 
>Sent:  Thursday, November 20, 2003 9:51 AM
>To:Struts Users Mailing List (E-mail)
>Subject:   Lazy questions on this list
>
>Is it my imagination or are the number of downright lazy 
>requests to this
>list getting worse?
>
>If the only replies any lazy questions ever got was
>http://www.catb.org/~esr/faqs/smart-questions.html then maybe 
>people would
>get the point. Has anyone got any other ideas about how we can 
>reduce the
>amount of lazy and totally off-topic posts to the list?
>
>
>Paul
>
>
>
>**
>Axios Email Confidentiality Footer
>Privileged/Confidential Information may be contained in this 
>message. If you are not the addressee indicated in this 
>message (or responsible for delivery of the message to such 
>person), you may not copy or deliver this message to anyone. 
>In such case, you should destroy this message, and notify us 
>immediately. If you or your employer does not consent to 
>Internet email messages of this kind, please advise us 
>immediately. Opinions, conclusions and other information 
>expressed in this message are not given or endorsed by my 
>Company or employer unless otherwise indicated by an 
>authorised representative independent of this message.
>WARNING:
>While Axios Systems Ltd takes steps to prevent computer 
>viruses from being transmitted via electronic mail attachments 
>we cannot guarantee that attachments do not contain computer 
>virus code.  You are therefore strongly advised to undertake 
>anti virus checks prior to accessing the attachment to this 
>electronic mail.  Axios Systems Ltd grants no warranties 
>regarding performance use or quality of any attachment and 
>undertakes no liability for loss or damage howsoever caused.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



RE: Fruits of your help

2003-11-20 Thread Chappell, Simon P
Very nice. Did Mark help you with the Flash movie? ;-)

Simon

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

"Wisdom is not the prerogative of the academics." - Peter Chappell

>-Original Message-
>From: Brice Ruth [mailto:[EMAIL PROTECTED]
>Sent: Thursday, November 20, 2003 10:08 AM
>To: Struts Users Mailing List
>Subject: Fruits of your help
>
>
>Thanks to all on this list that helped me with my 
>JSP/Servlet/Struts/Tiles issues ... the fruit of your help is now live 
>(under a MUCH accelerated schedule and not nearly enough time 
>for QA/QC, 
>but what's new?)
>
>http://www.fiskars.com/
>
>If the first thing you see isn't a Flash movie, and the home 
>page isn't 
>distinctively orange, then you're probably seeing the old site because 
>of DNS propagation delays.
>
>This site makes use of heavy internationalization, is almost entirely 
>Tiles driven from tiles-defs.xml, only a handful of pages 
>still use the 
>Struts ForwardAction to an actual .jsp file. A lot of XML on the 
>backend, loaded & parsed into application context for optimization, 
>iBATIS access to a MySQL database (transparent to the application, our 
>testing servers connect directly to an AS/400 DB2 instance - thank you 
>iBATIS!), and of course, Struts/Tiles/JSTL used throughout.
>
>I couldn't have done it without this list's help ... thank you again!!
>
>-- 
>Brice D. Ruth
>Sr. IT Analyst
>Fiskars Brands, Inc.
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



RE: MessageResources...

2003-11-20 Thread Edgar P Dollin
A brute force approach is to loop through the context objects looking for
ActionMessages or ActionError objects which contain the key you are looking
for.  Of course, once you have it, just put the key somewhere for future
reference.

Edgar


> -Original Message-
> From: Mitesh Patel [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, November 20, 2003 9:22 AM
> To: '[EMAIL PROTECTED]'
> Subject: MessageResources...
> 
> 
> Hi,
> 
> Using Struts 1.1b2 
> 
> Is it possible to get the message-resource parameter in the 
> struts-config file from a customTag?
> 
>parameter="com.misys.sts.ms.customiser.utils.ApplicationResources" />
> 
> (Any examples would be much appreciated)
> 
> Thanks
> 
> Mitesh Patel
> --
> --
> 
> This email message is intended for the named recipient only 
> and may be privileged and/or confidential. If you are 
> not the intended or named recipient or have received this 
> email in error then you should not copy, forward or 
> disclose it to any other person. The views and opinions 
> expressed in this e-mail are those of the sender and 
> may not represent the views and opinions of Misys Securities 
> Trading Systems. If you have received this email  in error 
> you should destroy it or contact postmaster [EMAIL PROTECTED] so 
> that we may take appropriate action.
> --
> --
> -
> 
> 
> 

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



RE: URGENT:static methods in JSPs

2003-11-20 Thread Edgar P Dollin
All the tags us introspection to access the objects.  Introspection works
only on non-static public fields and methods.  You must find a way, possible
with a façade, to make your static method non-static.

Edgar 

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, November 19, 2003 6:18 PM
> To: [EMAIL PROTECTED]
> Subject: URGENT:static methods in JSPs
> 
> 
> Hi i have a static method in one of my bean classes as
> public static List getCountriesListing() , and i am trying to 
> call this collection in my options tag as
> 
>  labelProperty="countryName" property="countryCode" />
> 
> But the JSP page gives an error saying :
> Cannot find bean under name countriesListing.countriesListing
> 
> Do i also need to create a setter for this method to be 
> recognized as a bean or something?
> 
> --Mohan
> 
> 
> 
> 

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



RE: Large scale Internationalization using struts

2003-11-19 Thread Edgar P Dollin
There have been lots of discussions of this on the archives.  As released,
there are no on the fly changes to the messages.  There are many solutions
in the archives although you might have to role your own using the ideas
presented.

Edgar

> -Original Message-
> From: Linus Nikander [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, November 19, 2003 3:44 AM
> To: [EMAIL PROTECTED]
> Subject: Large scale Internationalization using struts
> 
> 
> I posted this same question a few months back but didn't 
> really get any answers that helped me decide on what to do. 
> So here goes again:
> 
> The thing I've been looking at Internationalization issues 
> concerned with Struts. The thought of being able to change 
> the whole language of a site simply by changing the locale of 
> the user really appeals to me. All examples i've seen so far 
> use parallel versions of the ApplicationResources.properties 
> file to accomplish this. Whilst this may be feasibel for a 
> fairly small site I don't see how this solution would hold up 
> for a large site (with serveral hundred concurrent requests 
> to anyone of several thousand pages).
> 
> The problems/questions I can see are:
> 
> As a single textfile is used, when there are several thousand 
> entries it will become difficult to manage. Can updates be 
> made, during operation, to the content ? What happens if a 
> user requests the files content while it is being edited ? Is 
> the textfile cached for performance, or will concurrent calls 
> compete for the same file-resource ?
> 
> As I'm probably not the first person who is trying to use 
> Struts on a larger scale for internationalization issues I 
> thought someone might have a better solution. Suggestions ?
> 
> //Linus Nikander - [EMAIL PROTECTED]
> 
> 
> 
> 

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



RE: Server manged vs. struts managed db pools

2003-11-18 Thread Edgar P Dollin
I like struts managed db pools, however, the struts developers aren't too
happy about the quality and the dependency on the commons-pooling library
and are attempting to phase it out.

Edgar

> -Original Message-
> From: Nathan Maves [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, November 18, 2003 2:52 PM
> To: Struts Users Mailing List
> Subject: Server manged vs. struts managed db pools
> 
> 
> Are there any pro/con 's for either?
> 
> Nathan
> 
> 

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



RE: Which framework to choose?

2003-11-18 Thread Edgar P Dollin
You are right.  This is not the right forum.  

The reason you are asking on this forum (you will get a good answer quickly)
is the reason you are using struts and the reason struts has a future.  All
the other frameworks except for JSF and Microsoft are of technical interest
only.

Edgar
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, November 18, 2003 11:07 AM
> To: [EMAIL PROTECTED]
> Subject: Which framework to choose?
> 
> 
> Hi all,
> 
> Altough this might not be the right place to ask, but I'm 
> just curious.
> 
> Recently I see a lot of different frameworks which pretty 
> much promise the 
> same functionality as the Struts framework.
> 
> For instance I found:
> 
> struts
> webwork
> Spring
> etc...
> 
> Which one is the best? I have been using Struts for some time 
> now... But 
> maybe some other framework has more future then Struts.
> I would like to hear your opionions...
> 
> Thanks,
> 
> Regards,
> 
> Harm de Laat
> Informatiefabriek
> The Netherlands
> 
> 
> 

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



RE: new to struts

2003-11-11 Thread Saravanakumar P
Programming Jakarta Struts By Chuck Cavaness -O'Reilly publication
is a good book to start.

SaravanaKumar

-Original Message-
From: Sumit S. [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 3:07 PM
To: Struts Users Mailing List
Subject: RE: new to struts



http://jakarta.apache.org/struts/learning.html is a good place to start.


Sumit



-Original Message-
From: sanjay paithankar [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 2:47 PM
To: [EMAIL PROTECTED]
Subject: new to struts


Hello 

can any one point the basic document 
regarding Struts which has given small examples.

thnx
-cs..


__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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


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


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



RE: Wanted API to handle user roles

2003-11-03 Thread Edgar P Dollin
Write your own and implement with a filter.

Edgar

> -Original Message-
> From: Zsolt Koppany [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 03, 2003 9:56 AM
> To: Tomcat Users List; Struts Users Mailing List
> Subject: Wanted API to handle user roles
> 
> 
> Hi,
> 
> I'm searching for a Java library to implement Role based 
> access in a Web application. This API must support some kind 
> of hierarchy. For example a user might have all roles in a 
> project (project administrator) but only limited (or no) 
> roles in an other project.
> 
> As far as I know, tomcat supports only user based roles, thus 
> a user has a role assigned to him everywhere.
> 
> Any suggestion?
> 
> Zsolt
> 
> 
> 

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



Mappings

2003-10-31 Thread Edgar P Dollin
Has anyone encoded map keys as path parameters in the struts config?  I am
doing this but was wondering if there were any 'gotchas' I haven't forseen.

What I am doing (in MockStrutsTestCase) is using the 'success' forward from
an action be conditional or hard-coded.  If it was conditional (developer
would use the 'key' as the path in struts-config) the forward path is looked
up elsewhere, else it is used as is.

Thanks in advance.

Edgar

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



struts source (newbie)

2003-10-31 Thread J P
Hello,
Pardon me, but Struts by nature is configurable / extendable and therefore 
editable? One would quite frequently like to get into the source of the .javas? I have 
downloaded and installed 1.1 but can see nothing but classes, JARs and WARs. I for 
expample want to configure the ActionServlet, but cannot becasue I cannot find the 
.java! I have unpacked the JARs and WARs but the source is thus far elusive. In the 
struts-blank app for example, all classes and config files are present, but what of 
the source? Is it not included in the distribution or is it separate?
 
Regards
 
Eager 2 Start. 


-
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears

RE: Please help: Cannot find message resources under key org.apa che. struts.action. MESSAGE

2003-10-29 Thread Edgar P Dollin
Looks like you need a file ApplicationResources.properties in your
/WEB-INF/classes directory.

Edgar

> -Original Message-
> From: Prashanth Narayanan [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, October 29, 2003 4:57 PM
> To: 'Struts Users Mailing List'
> Subject: Please help: Cannot find message resources under key 
> org.apache. struts.action. MESSAGE
> 
> 
> still couldn't resolve this
> any help will be appreciated - this is my first struts example!
> 
> -Original Message-
> From: Prashanth Narayanan 
> Sent: Wednesday, October 29, 2003 1:54 PM
> To: '[EMAIL PROTECTED]'
> Subject: Cannot find message resources under key 
> org.apache.struts.action. MESSAGE
> 
> 
> hi,
>   i am getting the following message:
> org.apache.jasper.JasperException: Cannot find message 
> resources under key org.apache.struts.action.MESSAGE 
> at 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
> Wrapper.java:2
> 54) 
> at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:295) 
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) 
> ...
>   i am running struts 1.1 on apache 4.1. and this is the most 
> basic example:
> --
> my BookView.jsp
> --
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> 
> 
> 
> BookView  
> 
> --
> from my web.xml:
> --
> 
> 
> action
> org.apache.struts.action.ActionServlet
> 
> application
> ApplicationResources
> 
> 
> config 
> /WEB-INF/struts-config.xml
> 
> 
> 
> 
> my struts-config.xml:
> 
> 
>  "-//Apache Software Foundation//DTD Struts Configuration 
> 1.0//EN" 
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>




any help will be much appreciated,
thanks,
-prash.



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

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



RE: Session Timeout on post

2003-10-29 Thread Edgar P Dollin
Strictly a container issue.

If you keep the login information in hidden fields, you will be able to
reinstate the user session although the session information will be gone.
You should be able to post the submited record however.  You can use a
filter for this.

Edgar

> -Original Message-
> From: Srinivas Gunturu [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, October 28, 2003 4:48 PM
> To: <
> Subject: Session Timeout on post
> 
> 
> Is there a recommended way of handling session timeouts?  
> Especially when a user fills out a form and submits after 
> session has timedout.
> 
> Using Tomcat realm is the preferred/recommended way or is 
> there any other alternative in Struts?
> 
> TIA
> 
> 

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



RE: Struts-config

2003-10-28 Thread Edgar P Dollin
Very cool, exactly what I was looking for.

Edgar

-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 8:22 AM
To: Struts Users Mailing List
Subject: RE: Struts-config


Or, if you're using Ant, try the optional xmlvalidate task (this is almost
exactly one of the examples given):


  


http://ant.apache.org/manual/OptionalTasks/xmlvalidate.html

Quoting Matt Raible <[EMAIL PROTECTED]>:

> Download XML Spy (or another good XML tool) and validate it against the
> DTD.
> 
> -Original Message-
> From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 27, 2003 4:37 PM
> To: Struts Users Mailing List
> Subject: Struts-config
> 
> 
> Has anyone experienced situtation where struts 1.1 will not allow any
> configuration items (controller / message-resources / plug-in) after the
> end
> of the action-mappings section.
> 
> The error message is
> 
>   xml.sax.SAXParseException: Element "struts-config" allows no further
> input; "controller" is not allowed.
> 
> I have checked the DTD and the position for these elements should follow
>  yet something is upsetting the digester.  I have double
> checked the syntax and made sure it is correct.
> 
> If anyone has an insight, thanks in advance
> 
> Edgar

-- 
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech   <http://www.dotech.com/>

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



StrutsTestCase and Multiple Struts Configuration files

2003-10-27 Thread Edgar P Dollin
Has anyone used StrutsTestCase with multiple comma-delimited struts
configuration files and multiple message files.  If so are there any issues
which might make it less straight forward than straight struts?

Thanks

Edgar

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



  1   2   3   4   5   6   7   8   9   >