RE: Best way of implementing application-specific config objects

2003-06-27 Thread Josh Rayls
I like to use this method, because I can then use my initalization servlet
for other sorts of initialization items.  For instance, if you have some
sort of scheduler in your app, this init servlet can also take care of
scheduling relevant tasks.  Perhaps you have other services within your web
app that need to be initialized; this servlet can also handle those items.
It's not just a way to load your configuration; it's a way to do
boostrapping sort of items without utilizing the proprietary interfaces of
your app server.

Don't get me wrong.  I love Struts, but I try to shy away from things that
tie me down to a certain framework.  That's why I tend to stay away from the
plugin options.  In my opinion, app configuration is vendor and framework
neutral.  It should work no matter where you deploy and be independent from
any frameworks that you choose to implement.

-Josh

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, June 27, 2003 10:56 AM
To: Struts Users Mailing List
Subject: RE: Best way of implementing application-specific config
objects


Hey Josh, you're really fast =)

Well, I thought about doing that (actually, that was my only shot) but 
that would mean creating a servlet that does nothing but calling the 
initialization method of the Factory (or, worse, creating the factory as a 
servlet). That's okay for me doing that, but if there was a better way 
:-)

Thanks!!!

=== 
 Augusto Cesar Guagliano
 [EMAIL PROTECTED]
 Project Manager
 +55 19 9106.9024
 Infosoftware Consulting
 http://www.infosoftware.com.br
===
 
Esta mensagem pode conter informação confidencial e/ou privilegiada. Se 
você não for o destinatário ou a pessoa autorizada a receber esta 
mensagem, não pode usar, copiar ou divulgar as informações nela contidas 
ou tomar qualquer ação baseada nessas informações. Se você recebeu esta 
mensagem por engano, por favor avise imediatamente o remetente, 
respondendo o e-mail e em seguida apague-o. Agradecemos sua cooperação.

This message may contain confidential and/or privileged information. If 
you are not the addressee or authorized to receive this for the addressee, 
you must not use, copy, disclose or take any action based on this message 
or any information herein. If you have received this message in error, 
please advise the sender immediately by reply e-mail and delete this 
message. Thank you for your cooperation.





Josh Rayls <[EMAIL PROTECTED]>
27/06/2003 11:53
Please respond to "Struts Users Mailing List"

 
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
cc: 
Subject:RE: Best way of implementing application-specific
config objects


I have my config factory's init method called in an init servlet as 
defined
in the web xml.  I also have a dev admin portion of the web app that has
useful actions for reinitializing key components of the system.  It's
particularly useful in a development environment.

So try initializing it in a servlet defined in your web.xml.  That way, 
it's
always called on app init.

-Josh

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, June 27, 2003 10:49 AM
To: Struts Users Mailing List
Subject: Best way of implementing application-specific config objects


Hi to everyone!

In my project, I  have a XML with some config data, like username, 
password (all connections made from my system to a target systenm must use 

this same info).

I'm a little lost about the best way of implementing this. I thought about 

doing: a  "Config" Factory, that should keep a singleton Config object 
(that should be populated with data from the XML). But I would need a way 
for calling some initialization action for this Factory (like creating the 

Hashtables and so on). How could I do that in a smart way so I don't have 
to check at every call if the Factory has already been initialized?

Sorry if this is a stupid question, but I am far from being a master =)

TIA!

=== 
 Augusto Cesar Guagliano
 [EMAIL PROTECTED]
 Project Manager
 +55 19 9106.9024
 Infosoftware Consulting
 http://www.infosoftware.com.br
===
 
Esta mensagem pode conter informação confidencial e/ou privilegiada. Se 
você não for o destinatário ou a pessoa autorizada a receber esta 
mensagem, não pode usar, copiar ou divulgar as informações nela contidas 
ou tomar qualquer ação baseada nessas informações. Se você recebeu esta 
mensagem por engano, por favor avise imediatamente o remetente, 
respondendo o e-mail e em seguida apague-o. Agradecemos sua cooperação.

This message may contain confidential and/or privileged information. If 
you are not the addressee or authorized to receive this for the addressee, 

you must not use, copy, disclose or take any ac

RE: Best way of implementing application-specific config objects

2003-06-27 Thread Josh Rayls
I have my config factory's init method called in an init servlet as defined
in the web xml.  I also have a dev admin portion of the web app that has
useful actions for reinitializing key components of the system.  It's
particularly useful in a development environment.

So try initializing it in a servlet defined in your web.xml.  That way, it's
always called on app init.

-Josh

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, June 27, 2003 10:49 AM
To: Struts Users Mailing List
Subject: Best way of implementing application-specific config objects


Hi to everyone!

In my project, I  have a XML with some config data, like username, 
password (all connections made from my system to a target systenm must use 
this same info).

I'm a little lost about the best way of implementing this. I thought about 
doing: a  "Config" Factory, that should keep a singleton Config object 
(that should be populated with data from the XML). But I would need a way 
for calling some initialization action for this Factory (like creating the 
Hashtables and so on). How could I do that in a smart way so I don't have 
to check at every call if the Factory has already been initialized?

Sorry if this is a stupid question, but I am far from being a master =)

TIA!

=== 
 Augusto Cesar Guagliano
 [EMAIL PROTECTED]
 Project Manager
 +55 19 9106.9024
 Infosoftware Consulting
 http://www.infosoftware.com.br
===
 
Esta mensagem pode conter informação confidencial e/ou privilegiada. Se 
você não for o destinatário ou a pessoa autorizada a receber esta 
mensagem, não pode usar, copiar ou divulgar as informações nela contidas 
ou tomar qualquer ação baseada nessas informações. Se você recebeu esta 
mensagem por engano, por favor avise imediatamente o remetente, 
respondendo o e-mail e em seguida apague-o. Agradecemos sua cooperação.

This message may contain confidential and/or privileged information. If 
you are not the addressee or authorized to receive this for the addressee, 
you must not use, copy, disclose or take any action based on this message 
or any information herein. If you have received this message in error, 
please advise the sender immediately by reply e-mail and delete this 
message. Thank you for your cooperation.


RE: how to access hidden field value

2003-06-13 Thread Josh Rayls
You can't (assuming you mean actually accessing the ).

You could always set the value into a page scoped variable with JSTL:



-Josh

-Original Message-
From: Kommana, Sridhar [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 5:16 PM
To: Struts Users Mailing List
Subject: how to access hidden field value


i have a hidden value getting from the form and how can i access the hidden
field value on the same jsp without using javascript.

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


RE: Newbie- needs help again!!

2003-06-13 Thread Josh Rayls
+1 For the O'Reilly book.  That's a great one.

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 8:34 AM
To: 'Struts Users Mailing List'
Subject: RE: Newbie- needs help again!!


Get Monson-Haefel's "Enterprise JavaBeans, 3rd ed." (O'Reilly 2002).  It's
really a great step-by-step tutorial on build an EJB application from start
to finish.

Mark

-Original Message-
From: Rajat Nayer [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2003 7:32 AM
To: Struts Users Mailing List
Subject: Newbie- needs help again!!


Hi,

I have been able to run my first Struts "hello world"
using Tomcat 3.2 and Struts 1.0.2 , thanks to the
debugging support of this list whcih helped me to
achieve that.

Now, I need to get a simple "Hello world" running
under Weblogic 6.0 using Struts 1.0.2 and EJBs. 

Could anyone guide me to it.. i require some hand
holding support here. Any links to Primers, tutorials,
steps description in a mail would be most beneficial.

Thanks in advance!!!


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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



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


RE: [OT] Java Trivia

2003-06-12 Thread Josh Rayls
Doesn't compile for me either.



-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 10:28 AM
To: 'Struts Users Mailing List'
Subject: RE: [OT] Java Trivia


yes it will - I've been doing it all morning.

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 12, 2003 10:00 AM
To: [EMAIL PROTECTED]
Subject: Re: [OT] Java Trivia


That won't compile.  length() is a method on String not a property.

David


>Anybody know why the length of a String is a property of the String 
>when used as a logical qualifier in a for{} block but a function of the 
>String in a conditional if{} statement?
>
>for( int i = 0; i < string.length; i++ ) {}
>
>if( string.length() != 4 ) {}
>
>
>Mark
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

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


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



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


RE: unit test in presentation layer

2003-06-11 Thread Josh Rayls
Check out the StrutsTestCase for JUnit from SourceForge.

http://strutstestcase.sourceforge.net/

-Josh

-Original Message-
From: Peng Zhao [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 7:31 PM
To: [EMAIL PROTECTED]
Subject: unit test in presentation layer


As the presentation layer developer, I found it is difficult to do unit
test. The action classes in this layer call the methods of business layer,
which return the interface of data from the persistence layer. In order to
do unit test in presentation layer, I have to duplicate the work of other
layers. Could anyone give me some suggestions?

Thanks!

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


RE: need all info. regd Tags in Struts..

2003-06-11 Thread Josh Rayls
If you're wanting to use EJB, you'll need to add an app server like JBoss to
the equation.  Tomcat is only a servlet/JSP container.

http://www.jboss.org

-Josh

-Original Message-
From: Gemes Tibor [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 8:21 AM
To: Struts Users Mailing List
Subject: Re: need all info. regd Tags in Struts..


Rajat Nayer írta:

>Where can i get a complete list of Tags available in
>the Struts framework (and abt all the tld files that
>we keep in WEB-INF).
>
http://jakarta.apache.org/struts/userGuide/dev_html.html
http://jakarta.apache.org/struts/userGuide/dev_logic.html
etc

>
>Also, could you guide me to a tutorial which will help
>me use EJBs in a struts framework on Tomcat 3.2.4( i
>have this server currently).
>  
>
afaik tomcat 3.2 series are not supported.




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


RE: Loop In JSP Page

2003-06-11 Thread Josh Rayls
Create a Map in your action class, put it into the request, and then use the
html:select tag.  Specify the collection as the one you put into the
request.

-Josh

-Original Message-
From: Anurag Garg [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 7:11 AM
To: Struts Users Mailing List
Subject: Loop In JSP Page 


Hi,
I have an integer variable in my ActionForm class whose value is say 20.
Now in my JSP I would like to show a drop down with values 1 till 20.
Question is how to run a loop in JSP using the struts.

Anurag Garg


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


RE: Checkbox problem?

2003-06-10 Thread Josh Rayls
public ... execute (..., , ) {

BeanUtils.setProperty(actionForm, "checkboxPropertyName", "true" )

}

or something similar, I believe.

-Josh

-Original Message-
From: Bjørn T Johansen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 3:38 PM
To: Struts Users Mailing List
Subject: Re: Checkbox problem?


oki, maybe my explanation isn't the best :) (I know that I can't do it
in the reset method, as it is clearly not working)  but I am still not
sure where to put the code to set the checkbox to true then.
As far as I know, the action class isn't called before after the form
bean has called the reset method and the page has been rendered (and the
submit button has been pressed), or is it something I am missing?

BTJ

On Tue, 2003-06-10 at 20:28, James Mitchell wrote:
> On Tuesday 10 June 2003 14:11, Bjørn T Johansen wrote:
> > You are missing my point! If I just could set the checkbox value to
> > false in the reset method, everything is fine. But there are times when
> > that value has to be reset to true and not false and if I do that in my
> > reset method, I am not able to see of the user unchek the checkbox,
> > because the boolean variable is still true after the form has been
> > posted!
> 
> No, actually *YOU* are missing the point!  Several people have tried to 
> explain how this works to you.
> 
> So, for one last effort
> 
> 
> DO *NOT* SET THE FIELDS YOU INTENT TO USE AS CHECKBOXES (booleans) TO TRUE
IN 
> THE RESET METHOD!  
> 
> 
> If you want the field to be true when the page is rendered, set it to true

> from your action class, NOT in the reset of your formbean.
> 
> I hope that clears it up for you.
> 
> 
> >
> >
> > BTJ
> >
> > On Tue, 2003-06-10 at 19:22, Tor Henrik Hanken wrote:
> > > [EMAIL PROTECTED]
> > >
> > > | Yes, but to clarify...
> > > | I am showing a jsp page with values read from a database. If the
> > > | checkbox value is true, how do I then make the checkbox on my
jsp-page
> > > | checked and how do I then find out if the checkbox has been
unchecked?
> > > | Do I have to manually read the posted data and see if the checkbox
> > > | attribute is missing or is there a better way?
> > >
> > > I assume that you are using an Action with an ActionForm.
> > >
> > > To make the value of the checkbox come up correctly, import
> > > struts tags into your jsp-page:
> > >
> > > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="strb" %>
> > > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="strh" %>
> > > <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="strl" %>
> > >
> > > Then use the Struts checkbox tag:
> > >
> > > 
> > >
> > > Assuming that your form has the methods getDone and setDone,
> > > these methods will be used to render the value of the checkbox
> > > correctly.
> > >
> > > As to the question of boolean values that are set to false by the
> > > user: You don't have to parse the posted data manually.  The
> > > method reset() in ActionForm is run before the posted data is
> > > used to populate the form.  Write your own reset() method where
> > > you set the boolean fields to false.



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


RE: html:errors tag lost?

2003-06-10 Thread Josh Rayls
I believe the answer to your question is that a redirect causes a new
request to be made.  Because of this, the errors object in your request is
gone.  It was a part of the old request.  When redirect is set to false,
it's merely forwarding a request and therefore keeping all of the attributes
intact.

-Josh

-Original Message-
From: Gregory F. March [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 3:08 PM
To: Struts Users Mailing List
Subject: html:errors tag lost?



While playing with Kevin's action input= suggestion, I found I needed
to mess with the redirect= values.  If I set redirect=true, my
relative paths work fine.

However, I am using the html:errors tag and it seems that it has
gotten "lost", i.e. I do not get my validation errors displayed.

I'm still not entirely clear on how the html:errors tag works, but I
have this in my tile jsp:





And when I have redirect=false, I get things like "Password is
required" in the html, but the url is my .do and my relative paths
don't work and I can't see my images.  When it is true, I don't get
the error text (but the url is what I want and the paths are just fine
- I can see my images).

Sorry for all the questions... Hopefully I'll be able to answer a few
myself some day...

Thanks,

/greg

--
Gregory F. March-=-http://www.gfm.net:81/~march-=-AIM:GfmNet

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


RE: Using Bean Tag inside html Tag. Urgent

2003-06-09 Thread Josh Rayls
You can't nest tags as properties in other tags.

-Josh

-Original Message-
From: Anurag Garg [mailto:[EMAIL PROTECTED]
Sent: Monday, June 09, 2003 11:20 AM
To: [EMAIL PROTECTED]
Subject: Using Bean Tag inside html Tag. Urgent


Hi,

I am facing problem in using  tag inside .
What I am trying to do is something like this
"  />
I am not getting the output I am expecting. I expect to get the
value
stored in "useStyleClass" in styleClass attribute but What I am
getting in
styleClass is the entire tag i.e. bean:write tag.
Any solutions for this problem.

Anurag Garg


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


RE: struts-el question

2003-06-04 Thread Josh Rayls
Is there a property in class MyForm named "columns"?

-Josh

-Original Message-
From: David Chelimsky [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 6:52 AM
To: Struts Users Mailing List
Subject: Re: struts-el question


Can you post the block using tags and the error?

Matthew Van Horn wrote:

> How do I access the form bean properties from my jsp page?
>
> I have a property called columns which is a String[] array.
> I'd like to do the equivalent of the following using tags.
>
> <%
> String[] myArray = myForm.getColumns();
> for (int i=0; i < myArray.length; i = i+7) {
> out.print("");
> for (int j=0; j < 7; j++) {
> out.print(""+ myArray[(i*7)+j] +"");
> }
> out.print("");
> }
> %>
>
> I tried this (saw it online) -  but I get an error about accessing the 
> columns property.
>
> 
>
> If it matters, columns is inherited from a BaseForm class.
>
> Thanks for helping,
> Matt
>
> -
> 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: out-of-memory exp

2003-06-04 Thread Josh Rayls
You could raise the memory size of your VM via the -Xms128m -Xmx128m
arguments.
 
It's just Weblogic, the memory hog, telling you that it has run out of
memory.  It seems to me that there's some sort of memory leak when hot
deploying.
 
-Josh

-Original Message-
From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 10:15 AM
To: [EMAIL PROTECTED]
Subject: out-of-memory exp



hi,
i am using struts 1.1 with ejb on weblogic7.1
 
i  frequently get this error while working with the web application
 
   <101017>
<[ServletContext(id=4550717,name=cwbweb,context-path=/cwbweb)] Root cause of
ServletException
java.lang.OutOfMemoryError
<>
no idea why this comes
 
any help TIA
 
--nagi
 
Nagendra Kumar O V S
Member Technical Staff
Ikigo India Private Ltd.
470-B, Road No. 36,
Jubilee Hills,
Hyderabad 500033
Contact(O): 23544671
Cell: 98482-41789



    IncrediMail -
Email has finally evolved -
 Click Here 



RE: Collection Implementation

2003-06-03 Thread Josh Rayls
Don't use class scoped variables.  Only use local variables on the stack,
and everything will be fine.  

Generally speaking, you're returning a new Collection for each request
anyway.  In that case, each user will still have their own copy of the
Collection.

-Josh

-Original Message-
From: Michael Ruppin [mailto:[EMAIL PROTECTED]
Sent: Monday, June 02, 2003 4:17 PM
To: Struts Users Mailing List
Subject: Re: Collection Implementation


Gee, isn't thread safty an issue with Struts?  I
thought I should use synchronized Objects in my
Actions.

--- David Graham <[EMAIL PROTECTED]> wrote:
> Vector was a poorly designed class that has been
> replaced by ArrayList.  New 
> code should not use Vector.  If you need a
> synchronized list do this 
> instead:
> 
> List myList = Collections.synchronizedList(new
> ArrayList());
> 
> David
> 
> >Without checking the archives for specific
> references,
> >I'm still sure I've read on multiple occasions,
> "Don't
> >use Vectors, use ArrayLists".  I was under the
> >impression that this was because Vectors are not
> >synchronized.  After refactoring, today, I read
> here
> >that ArrayLists are not synchronized:
> >
>
>http://java.sun.com/j2se/1.4.1/docs/api/java/util/ArrayList.html
> >
> >Time to refactor again?  I need to be using one of
> the
> >static Collections.synchronized* methods, right?
> >Beyond using Objects that are synchronized, what
> >difference does it make which implementation of
> >Collection I choose?
> >
> >m
> >
> >
> >__
> >Do you Yahoo!?
> >Yahoo! Calendar - Free online calendar with sync to
> Outlook(TM).
> >http://calendar.yahoo.com
> >
>
>-
> >To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> 
>
_
> Protect your PC - get McAfee.com VirusScan Online  
>
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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


RE: Collection Implementation

2003-06-03 Thread Josh Rayls
Do you specifically need a synchronized Collection?  If not, then it's
needless overhead.  An ArrayList will be faster than a Vector.  A Vector is
synchronized, while an ArrayList is not.

As for which implementation of Collection to use, there are many different
reasons for using various types of Collections.  You can find lots of info
on Sun's site.

-Josh

-Original Message-
From: Michael Ruppin [mailto:[EMAIL PROTECTED]
Sent: Monday, June 02, 2003 4:03 PM
To: Struts Users Mailing List
Subject: Collection Implementation


Without checking the archives for specific references,
I'm still sure I've read on multiple occasions, "Don't
use Vectors, use ArrayLists".  I was under the
impression that this was because Vectors are not
synchronized.  After refactoring, today, I read here
that ArrayLists are not synchronized:

http://java.sun.com/j2se/1.4.1/docs/api/java/util/ArrayList.html

Time to refactor again?  I need to be using one of the
static Collections.synchronized* methods, right? 
Beyond using Objects that are synchronized, what
difference does it make which implementation of
Collection I choose?

m


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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


RE: [OT] slackers

2003-05-30 Thread Josh Rayls
Don't forget Otter Creek, Rapscallion, and the Cambridge Brewing Company!
:)

-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]
Sent: Friday, May 30, 2003 8:46 AM
To: Struts Users Mailing List
Subject: Re: [OT] slackers




Mark Galbreath wrote:
> Hey! Don't forget those slacker Aussies, drinking good beer while sending
> that Fosters slime to Canada, which then forwards it down to the States.
I
> thought they were our allies, but now I think it's a terrorist conspiracy
to
> rob all Americans of their taste for good beer.  And forget about the
> Canucks...they think Molson and Labatts is good beer.  UGH!  The only
thing
> worse than Budweasel I can think of is Canadian beer.  Even Fosters is
> better than that

Bah.

In New England we have Harpoon (brewed right here in Boston, I like the 
"U.F.O." hefeweizen), Magic Hat (brewed right up in Vermont, I like the 
"#9" ale), and BBC (brewed just over in South Deerfield MA, I like the 
"Steel Rail Extra Pale").

And for imports there's always Tetley's and Guiness!



Erik


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


[OT] RE: [ANN] Barracuda 1.2.0 Released!

2003-05-28 Thread Josh Rayls
I don't suppose it was Kurtz Shiraz from the Barossa Valley, was it?
(Although McCrea is pretty good as well!) That is most certainly one of my
favorite Aussie wines.

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 1:38 AM
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: RE: [ANN] Barracuda 1.2.0 Released!


I thought you were pulling a gig in London - you are in Sydney?  whatever,
I've noticed over the past year you and me seem to be to only ones working
late nights and weekends (those slackers!).  Anyway, I just ran into a bug I
cannot solve after so many hours and a bottle of good Aussie wine (a quite
tasty Shiraz).  So good-night (morning?) to all, and to all, a day without
bugs.

I am close to comatoseall I see is 



l8r d00ds
mark

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 28, 2003 1:19 AM
To: Struts
Subject: RE: [ANN] Barracuda 1.2.0 Released!


Hehe, the only way you would ever catch me awake at such an ungodly hour is
if I hadnt gone home the night before.

Its 1pm here mate, and for once Ive had a decent rest having had to take a
sicky yesterday and having taken the weekend off too. (Sure beats the
previous weekend where I did 26 hours straight at the office)

Reckon I might even be sneaking off home early (8pm) today. :-)

So... what times it over there? Guess you would have done what? 18 , 19
hours straight so far?

;-)

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 28 May 2003 13:05
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: RE: [ANN] Barracuda 1.2.0 Released!


What the hell are you doing at keyboard at what must be 0600 London time?

:-)

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 1:02 AM
To: Struts Users Mailing List
Subject: RE: [ANN] Barracuda 1.2.0 Released!


+1

-Original Message-
From: Daniel Joshua [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 28 May 2003 12:05
To: 'Struts Users Mailing List'
Subject: RE: [ANN] Barracuda 1.2.0 Released!


I think you are being too strict... give him a break.

His title is clear, just delete it if you are not interested...

Regards,
Daniel


-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 28 May, 2003 1:09 AM
To: [EMAIL PROTECTED]
Subject: Re: [ANN] Barracuda 1.2.0 Released!


>I normally wouldn't post this type of info to the Struts list, but 
>since a number of you have asked to be kept abreast of Barracuda 
>develpments, I figured I would let you know that the long awaited 
>stable release of Barracuda 1.2.0 is finally here!

IMO, people interested in Barracuda developments should subscribe to
whatever mailing list you publish.  This really has nothing to do with
Struts and, at best, should be posted as [OT].

Thanks,
David


>
>You can download it at:
>http://barracudamvc.org/downloads/
>
>A lot has changed since the 1.1.1 release.  Barracuda moved to 
>http://www.barracudamvc.org , the source has been refactored, there now 
>exist two contrib packages with reusable code and example webapps to 
>show off their functionality, numerous bugs have been fixed, quite a 
>few new features have been added and many features improved, and 
>deployment of Barracuda and BarracudaDiscRack is now incredibly 
>simplified.
>
>See the most important changes here... 
>http://barracudamvc.org/Barracuda/docs/changes.html#1_2_0_Release_Notes
>and here... http://barracudamvc.org/BarracudaDiscRack/docs/changes.html
>
>For a more detailed explanation of the changes, see 
>http://barracudamvc.org/Barracuda/javadocs/org/enhydra/barracuda/A_Chan
>ges_
H
>istory.html
>
>For information on building and deploying Barracuda, see... 
>http://barracudamvc.org/Barracuda/docs/build_deploy.html
>
>And, of course, don't forget to try out the new contrib apps.  See... 
>http://barracudamvc.org/Barracuda/docs/contrib_package.html
>
>All this information, and more, is available at: 
>http://barracudamvc.org/Barracuda/index.html
>and here... http://barracudamvc.org/BarracudaDiscRack/docs/index.html
>
>
>Thanks to everyone on the BarraucdaMVC team for all your hard work and 
>thanks to all the users who continue to utilize this great project! Oh, 
>and special thanks to those who donated hosting, time, money, and 
>effort to make barracudamvc.org possible.
>http://www.visi.com/~hoju/barracuda/donations.html
>
>Enjoy!
>
>Christian
>--
>Christian Cryder [EMAIL PROTECTED]
>Internet Architect, ATMReports.com
>Barracuda - http://barracudamvc.org
>--
>"Coffee? I could quit anytime, just not today"
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_

RE: Indexed Properties with DynaActionForm Problems

2003-03-18 Thread Josh Rayls
m t_daypart order by begin_time asc
   <101017>
<[ServletContext(id=6914328,name=ctweb.war,context-path=)] Root cause
vletException
java.lang.IndexOutOfBoundsException: Index: 2, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:508)
at java.util.ArrayList.set(ArrayList.java:336)
at
org.apache.struts.action.DynaActionForm.set(DynaActionForm.java:460)
at
org.apache.commons.beanutils.PropertyUtilsBean.setIndexedProperty(PropertyUt
ilsBean.java:1373)
at
org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:10
23)
at
org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:818)
at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:343)
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1136)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:815)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1421)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1058)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:401)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:306)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:5445)
at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:780)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3105)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2588)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)

I'll give the debugger a shot and see what happens.

-Josh

-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 4:32 PM
To: Struts Users Mailing List
Subject: RE: Indexed Properties with DynaActionForm Problems


It would be hard for us to figure out anything without any description
of what really happens.  Do you have an exception stack trace?

You could really help yourself out by setting this up in a JPDA debugger
and really tracking exactly what happens at the point of the error (and
before).

> -Original Message-----
> From: Josh Rayls [mailto:[EMAIL PROTECTED]
> 
> Hello,
> 
> I have been struggling with this for a couple of days now.  I've
scoured
> the
> archives from top to bottom, and I've found some useful tidbits, but
> nothing
> that directly addresses my dilemma.  Then again, maybe I'm just not
> getting
> it!
> 
> I get an IndexOutOfBoundsException each time.  I want to be able to
have
> an
> arbitrary numbers of rows in the form and then be able to construct
beans
> from the rows in my action class.
> 
> Any help would be greatly appreciated.  I'm going to have very little
hair
> left when this is done
> 
> -Josh
> 
> Code is below:
> 
> 
> JSP ---
> 
> 
> 
>  
>  
>   
>   
>
> 
>  indexed="true"/>
>  indexed="true"/>
>  value="${dayPart.code}" indexed="true"/>
>
>
>  indexed="true"/>
>
>
>  value="${dayPart.beginTime}" onblur="check24Hours(this)"
indexed="true"/>
>
>
>  value="${dayPart.endTime}" onblur="check24Hours(this)"
indexed="true"/>
>
>
> 
>  
>href="javascript:post('delete','null','${dayPart.id}');">
>
>   
>  
> 
>
>   
>  
>  
> 
> 
> 
> Action -
> 
> // instance variables
> ActionErrors errors = new ActionErrors();
> Collection c = new ArrayList();
> int rows = ((Integer)PropertyUtils.getProperty(actionForm,
> "rows")).intValue();
> 
> // populate the collection with day parts
> DayPart dayPart = null;
> PropertyDescriptor[] props =
> PropertyUtils.getPropertyDescriptors(DayPart.class);
> for (int x=0; x   dayPart = new DayPart();
>   for (int

RE: Indexed Properties with DynaActionForm Problems

2003-03-18 Thread Josh Rayls
Yep.  Using Struts-EL.

-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 4:16 PM
To: Struts Users Mailing List
Subject: RE: Indexed Properties with DynaActionForm Problems


Are you using Struts-EL?  You can't reference EL expressions in Struts
tags, just Struts-EL.

> -Original Message-
> From: Josh Rayls [mailto:[EMAIL PROTECTED]
> 
> I have been struggling with this for a couple of days now.  I've
scoured
> the
> archives from top to bottom, and I've found some useful tidbits, but
> nothing
> that directly addresses my dilemma.  Then again, maybe I'm just not
> getting
> it!
> 
> I get an IndexOutOfBoundsException each time.  I want to be able to
have
> an
> arbitrary numbers of rows in the form and then be able to construct
beans
> from the rows in my action class.
> 
> Any help would be greatly appreciated.  I'm going to have very little
hair
> left when this is done
> 
> -Josh
> 
> Code is below:
> 
> JSP ---
> 
> 
> 
>  
>  
>   
>   
>
> 
>  indexed="true"/>
>  indexed="true"/>
>  value="${dayPart.code}" indexed="true"/>
>
>
>  indexed="true"/>
>
>
>  value="${dayPart.beginTime}" onblur="check24Hours(this)"
indexed="true"/>
>
>
>  value="${dayPart.endTime}" onblur="check24Hours(this)"
indexed="true"/>
>
>
> 
>  
>href="javascript:post('delete','null','${dayPart.id}');">
>
>   
>  
> 
>
>   
>  
>  
> 
> 
> 
> Action -
> 
> // instance variables
> ActionErrors errors = new ActionErrors();
> Collection c = new ArrayList();
> int rows = ((Integer)PropertyUtils.getProperty(actionForm,
> "rows")).intValue();
> 
> // populate the collection with day parts
> DayPart dayPart = null;
> PropertyDescriptor[] props =
> PropertyUtils.getPropertyDescriptors(DayPart.class);
> for (int x=0; x   dayPart = new DayPart();
>   for (int i=0; i PropertyUtils.getIndexedProperty(actionForm,
props[i].getName(),
> x);
>   }
>   // add the new day part to the collection
>   c.add(dayPart);
> }
> 
> try {
>   CorporateManager manager = JNDIUtil.createCorporateManager();
>   manager.updateDayParts(c);
> } catch (SetupException se) {
>   LogManager.error(this.getClass(), "There has been a problem
updating
> dayparts.", se);
>   errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("The day
parts
> could not be updated."));
> }
> 
> // forward request
> if (errors.isEmpty()) {
>   return actionMapping.findForward("view");
> } else {
>   this.saveErrors(request, errors);
>   return actionMapping.findForward("view");
> }
> 
> Struts-Config.xml 
> 
>type="org.apache.struts.action.DynaActionForm">
>
>
>
>
> type="java.util.ArrayList"/>
>
>
> type="java.util.ArrayList"/>
>
>
>   

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


RE: Indexed Properties with DynaActionForm Problems (forgot versions)

2003-03-18 Thread Josh Rayls
JDK 1.4.1
Struts 1.1 Nightly
JSTL 1.0.3


Indexed Properties with DynaActionForm Problems

2003-03-18 Thread Josh Rayls
Hello,

I have been struggling with this for a couple of days now.  I've scoured the
archives from top to bottom, and I've found some useful tidbits, but nothing
that directly addresses my dilemma.  Then again, maybe I'm just not getting
it!

I get an IndexOutOfBoundsException each time.  I want to be able to have an
arbitrary numbers of rows in the form and then be able to construct beans
from the rows in my action class.

Any help would be greatly appreciated.  I'm going to have very little hair
left when this is done

-Josh

Code is below:


JSP ---



 
 
  
  
   




   
   

   
   

   
   

   
   

 
  
   
  
 

   
  
 
 



Action -

// instance variables
ActionErrors errors = new ActionErrors();
Collection c = new ArrayList();
int rows = ((Integer)PropertyUtils.getProperty(actionForm,
"rows")).intValue();

// populate the collection with day parts
DayPart dayPart = null;
PropertyDescriptor[] props =
PropertyUtils.getPropertyDescriptors(DayPart.class);
for (int x=0; x
   
   
   
   
   
   
   
   
   
   
  


RE: Rendering in XHTML

2003-03-03 Thread Josh Rayls
Thanks.  The declaration was choking it.  :(  That's pretty rediculous.

-Original Message-
From: Miller, Jason [mailto:[EMAIL PROTECTED]
Sent: Monday, March 03, 2003 11:31 AM
To: 'Struts Users Mailing List'
Subject: RE: Rendering in XHTML


One other thing I forgot - the XML declaration also caused it to choke.  

>Hello,
>
>I'm having problems getting my browser to render the XHTML properly.  My
>doctype is correct, and my page is well formed.  For some reason, when I 
>hit
>the page, the DOM is shown in IE 6.0.  I'm running Struts 1.1 on Weblogic
>7.0.
>
>Thanks in advance!
>
>-Josh


Rendering in XHTML

2003-03-03 Thread Josh Rayls
Hello,

I'm having problems getting my browser to render the XHTML properly.  My
doctype is correct, and my page is well formed.  For some reason, when I hit
the page, the DOM is shown in IE 6.0.  I'm running Struts 1.1 on Weblogic
7.0.

Thanks in advance!

-Josh


Struts-EL

2003-02-28 Thread Josh Rayls
Hi,

Is there a property that I can use to get the size of a collection?

Basically, I want to do this:

${resultBean.result.length}

Where result is a Collection.

Thanks for any help!

-Josh