Re: How does one get an instance of the GenericDataSource?

2000-12-27 Thread Ted Husted
I've adapted to Struts the first JDBC example from Core Servlets and JavaServer Pages by Marty Hall http://coreservlets.com/ . There's a ZIP available for download at http://husted.com/about/struts/ . Comments are of course welcome. The Struts treatment is only meant to be as robust as

Re: Help: logic:iterate and form input fields

2000-12-27 Thread Ted Husted
A clear statement of what you need to accomplish, without posing a particular implementation, might be helpful. I'm not exactly sure what it is you need to do. My first guess is that the part about "count" should be encapsulated in a bean, and not exposed to the JSP. But I'm not sure if I

Re: Help: logic:iterate and form input fields

2000-12-27 Thread Ted Husted
Are youtrying to do something like this order form (Javascript) https://public.wxxi.org/schedules/fm/voice-order.htm This only shows one item, but the idea is that there would be one line for each item in a small inventory. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom

Can't Connect to PostgreSQL with struts-example on Orion App Server

2000-12-27 Thread Neal Kaiser
Can someone tell me what I'm missing? In web.xml I have: servlet servlet-namedatabase/servlet-name servlet-classorg.apache.struts.example.DatabaseServlet/servlet-class init-param param-namedebug/param-name param-value2/param-value /init-param

RE: Proposal: RetroFit Struts with the Delegation Event Model

2000-12-27 Thread McCay, Larry
I agree - I would like to see the inclusion of events for any and all interesting events. I think the following article link may be of some interest as well: http://www.sys-con.com/java/archives/0601/grant/ It includes an interesting implementation of events for template based processing - for

Null Pointer Exception in Stuts 0.5 example

2000-12-27 Thread HT Levine
Hi. I am new to using struts. I requested the FAQ for this mailgroup and apparently there isn't one. I am using version 0.5 with Weblogic5.1 and trying to run the example application. I am getting the following stacktrace. It seems the ApplicationResources.properties files is not being found?

Re: Mildly complex bean:message situation

2000-12-27 Thread Craig R. McClanahan
Erik Horstkotte wrote: [snip] The problem, of course, is that bean:message key="foo" arg="uri" won't work, because I can't use form:rewrite for the uri arg. Any ideas? How about something like this: bean:message key="foo" arg0='%= response.encodeURL("url") %'/ Craig

Re: Example App - A Walking Tour

2000-12-27 Thread Craig R. McClanahan
Wong Kok Wai wrote: Thanks! I was hoping for Struts 1.0 FCS for Christmas I was too :-(. But this week should go a long ways towards getting to a 1.0 release. but this also make my day. Yep. Thanks Ted! Craig

Weblogic 510 struts

2000-12-27 Thread Sharon Curlee
Can anyone help shed some light on this error? I have been aggrivated with this error all morning and havent the faintest clue ... Oh - and this is being deployed to Weblogic 510 sp6. Wed Dec 27 13:17:55 EST 2000:E WebAppServletContext-prototype Root cause of ServletException

Is there a good documentation for all the xml config files parameters/settings that can be used?

2000-12-27 Thread Johan Compagner
Hi, What parameters can i use and is recognized by struts in the WEB.XML file? And the struts-config.xml? (i know i can look into the dtd but is there also a doc/html that explains everything?) johan

Re: Weblogic 510 struts

2000-12-27 Thread Andreas Doerr
Hi Sharon, Can anyone help shed some light on this error? I have been aggrivated with this error all morning and havent the faintest clue ... Oh - and this is being deployed to Weblogic 510 sp6. I guess your want to run the struts example application ... Please see the message "Re: Null

Re: Weblogic 510 struts

2000-12-27 Thread Doug Bateman
I guess your want to run the struts example application ... Please see the message "Re: Null Pointer Exception in Struts 0.5 example" by Alain Bienvenue. The basic problem is, that WLS 510 does not honor the "load-on-startup" attribute. This means that ActionServlet will not be properly

RE: Weblogic 510 struts

2000-12-27 Thread Sharon Curlee
calling the .do directly worked. Grr .. just a tad bit frustrating. Thanks so much! -Original Message- From: Andreas Doerr [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 27, 2000 1:44 PM To: [EMAIL PROTECTED] Subject: Re: Weblogic 510 struts Hi Sharon, Can anyone help

Re: Weblogic 510 struts

2000-12-27 Thread Andreas Doerr
Hi Doug, I've successfully worked around the problem by reconfiguring struts to "lazy initialize" itself, meaning that every servlet first runs an init method, which then checks the config and initializes it as necessary. could you please explain this in a little more detail? The problem

Re: Example App - A Walking Tour

2000-12-27 Thread Ted Husted
My pleasure! (Though, to be honest, I had to turn my clock back to make my Christmas deadline!) *** REPLY SEPARATOR *** On 12/27/2000 at 9:54 AM Craig R. McClanahan wrote: Wong Kok Wai wrote: Thanks! I was hoping for Struts 1.0 FCS for Christmas I was too :-(. But this week

Re: Proposal: RetroFit Struts with the Delegation Event Model

2000-12-27 Thread David Geary
"Craig R. McClanahan" wrote: * As fleshed out, the only events reported with this model so far are before and after an Action's perform() method is called. The abstract talks about building listeners for all "interesting" events. If we're going to do a listeners model, I think we

RE: Weblogic 510 struts

2000-12-27 Thread Doug Bateman
calling the .do directly worked. Grr .. just a tad bit frustrating. What did you do exactly? This sounds like a nice and really simple work around. -- He who pursues learning will increase every day; He who pursues The Eternal will decrease every day. He will decrease and continue to

Re: Proposal: RetroFit Struts with the Delegation Event Model

2000-12-27 Thread Ted Husted
On 12/26/2000 at 6:57 PM Craig R. McClanahan wrote: An ActionEvent, or the ActionListener that receives it, should have knowledge of the ActionServlet it is associated with, to provide access to underlying resources provided by the servlet. (The whole event listener model is intimately tied to

Re: Can't Connect to PostgreSQL with struts-example on Orion App Server

2000-12-27 Thread Ted Husted
On 12/27/2000 at 2:31 PM Ted Husted wrote: http://husted.com/struts/about/ Ooops, should be http://husted.com/about/struts/

RE: Weblogic 510 struts

2000-12-27 Thread Doug Bateman
That looks more like a classpath problem. Is the struts jar in listed in the weblogic servlet classpath, weblogic.httpd.servlet.classpath (in weblogic.properties)? On Wed, 27 Dec 2000, Sharon Curlee wrote: well, I spoke too soon. All I did was called action.do directly. It did well in

RE: Weblogic 510 struts

2000-12-27 Thread Sharon Curlee
no, but it I put it explicitly in the startWeblogic.cmd file. I will modify the .properties file and try again. (Should it matter?) -Original Message- From: Doug Bateman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 27, 2000 3:00 PM To: [EMAIL PROTECTED] Subject: RE: Weblogic

PropertyUtils handling multiple getter methods

2000-12-27 Thread Chandan Kulkarni
I had a question about this part of PropertyUtils.java. public static PropertyDescriptor getPropertyDescriptor(Object bean, String name) snipped PropertyDescriptor descriptors[] = getPropertyDescriptors(bean); if (descriptors

Example app - ApplicationResources.properties not found?

2000-12-27 Thread HT Levine
ok, I'm getting warmer... I deployed the .war that came with the struts0.5 release. The ApplicationResources.properties file is in the .war file, in the same path as the example files. Where did I go wrong. btw: is there a better way to go through the archives besides the list-server

RE: Example app - ApplicationResources.properties not found?

2000-12-27 Thread HT Levine
Never mind, I got this. I assumed the .war deployment would put this in my classpath for the ActionServlet but no dice. I made sure it was in the classpath and now I'm good to go. -Original Message- From: HT Levine To: '[EMAIL PROTECTED]' Sent: 12/27/2000 12:17 PM Subject: Example app

My fix for Weblogic5.1 and struts example

2000-12-27 Thread HT Levine
Having suffered through this problem this morning, here is what I added to my weblogic.properties file to successfully get the ActionServlet to initialize at the startup of Weblogic. this works like a charm and is way better than rewriting code? and browsing to a .do? Thanks for the help

Struts design question

2000-12-27 Thread Punyansky, Alex
Hi, I'm going through Struts code trying to understand how this whole thing works. I could figure out almost everything except one thing: Why do Action, ActionForm and ActionMappings classes keep references to the ActionServlet? Can anybody explain this? Thanks Alex

Re: Struts design question

2000-12-27 Thread Ted Husted
Why do Action, ActionForm and ActionMappings classes keep references to the ActionServlet? So that they can access the many features available through the servlet, like logging and (lately) a JBDC DataSource. The ActionServlet is like a switchboard, and the references a way they can dial "0"

Re: Weblogic 510 struts

2000-12-27 Thread Wong Kok Wai
WLS 5.1 SP8 has fixed the load-on-startup problem. The Struts example works fine except for the ApplicationResources.properties file is not unjar from the WAR and will cause a null pointer exception when the bean:message is encountered. My workaround is to add ApplicationResources.properties

Re: Missing resources attribute org.apache.struts.action.MESSAGE

2000-12-27 Thread Ted Husted
In trying to set-up Struts on a hosted machine running Apache and Tomcat, I ran into javax.servlet.ServletException: Missing resources attribute org.apache.struts.action.MESSAGE The configuration works fine under my standalone Apache. Besides what is in the install file, do I need to do