Re: How to run struts examples in Tomcat

2002-09-01 Thread congzhebin
http://localhost:8080/struts-example - Original Message - From: micael [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Sunday, September 01, 2002 12:37 PM Subject: Re: How to run struts examples in Tomcat Sorry, misunderstood your question. mea

MockStrutsTestCase error

2002-09-01 Thread Oren Gross
I am getting the following error with the simplest StrutsTestCase. Any ideas? //using struts 1.0.2 //using struts-testcase 1.6 public class AutoRedirectDbHandlerActionTest extends MockStrutsTestCase{ ... public AutoRedirectDbHandlerActionTest(String testName) { super(testName); } ...

ArrayIndexOutOfBoundsException while using logic:iterate

2002-09-01 Thread Shashikiran M
Hi All, Has any one faced with ArrayIndexOutOfBoundsException while using nested logic:iterate tags? Presently my implementation is as follows: logic:iterate id=ambiguityDet name=OrderEntryFormBean property=ambiguityList type=com.tycoelectronics.usosp.order.util.AmbiguityDetail

Problems using the date-Validator with non required attributes

2002-09-01 Thread Axel Stahlhut
With the Struts-Validator Framework i want to validate a Date. This works fine, but if the field i want to validate is not a required field and may be empty, the validator always reports an error, even if if i remove the depends=required. Do i have to implement the Validator-class in a way

question for the people who are using StrutsTestCase.

2002-09-01 Thread Oren Gross
Few question for the people who are using StrutsTestCase. 1. Can the Struts ActionServlet handle web-inf as WEB-INF? 2. How do I know if it found the file, and the requested path info? Thanks __ Oren Gross, Software Developer Mercury Interactive, APM - RD

Re: How to run struts examples in Tomcat

2002-09-01 Thread Vivian
Thank you all, http://localhost:8080/struts-example works. - Original Message - From: congzhebin [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Sunday, September 01, 2002 5:37 AM Subject: Re: How to run struts examples in Tomcat

To Aaron: Re: want to have errors to be displayed in different page

2002-09-01 Thread Jenny
Thank you, Aaron. The explaination is in very detail. But I still not clear about one thing. In the following part of your code: ul html:messages id=error libean:write name=error//li /html:messages /ul you use id=error. Where should define error? I tried to

How to have submit button with img

2002-09-01 Thread Lili
Hi, All: I want to have submit button with a image for display purpose. The following is part of my code: html:submit img src=struts-power.gif/ /html:submit struts-power.gif exists in same directory as my jsp files. But when I run it, it always show me a button with img src= on the button.

RE: [Mockobjects-java-users] MockStrutsTestCase error

2002-09-01 Thread Oren Gross
Drop it! my silly mistake sorry for the trouble __ Oren Gross, Software Developer Mercury Interactive, APM - RD +972-3-5399407, [EMAIL PROTECTED] -Original Message-From: Oren Gross [mailto:[EMAIL PROTECTED]]Sent: Sunday, September 01, 2002 1:09

Re: To Aaron: Re: want to have errors to be displayed in differentpage

2002-09-01 Thread Aaron Oathout
Hi Jenny, The html:messages tag by default will iterate over the ActionErrors stored in request scope under key org.apache.struts.action.ERROR. The value of the id attribute is just the name you want the tag to expose each individual ActionError/Message under. The docs do a better job of

RE: How to have submit button with img

2002-09-01 Thread James Mitchell
Try using: html:image src=struts-power.gif/ James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the Open Minded Developer Network http://www.open-tools.org/struts-atlanta -Original Message- From: Lili [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 8:52

Re: ArrayIndexOutOfBoundsException while using logic:iterate

2002-09-01 Thread John Raley
Hi Shashi, Where does the page generation stop? I don't think logic:iterate itself will walk off the end of a list (and even if it did that would throw IndexOutOfBounds, not ArrayIndexOutOfBounds). It might be thrown from some other code. John Shashikiran M wrote: Hi All, Has any one

RE: Java Server Faces and Developer Life Comments

2002-09-01 Thread Tiago Nodari
Bill, that is my point, with Visual Studio you get tons of good features in one IDE, which from my point of view helps speed development... I know what is out there, i have netbeans, eclipse, struts console, etc etc etc in my computer, I would rather have just one. Have to

Re: Java Server Faces and Developer Life Comments

2002-09-01 Thread Michael Delamere
sometimes you just need JBuilder open for the PC to hang :-) Sorry, couldn´t help it! Regards, Michael - Original Message - From: Tiago Nodari [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Sunday, September 01, 2002 9:21 PM Subject: RE: Java Server Faces and

How can use use nested tag to populate form data with variable element size?

2002-09-01 Thread William Wan
I have been using the nested tag for a moment and it is great for displaying nested information but I got a problem when submitting information using the tag. When I submitting the form with nested tag, it always comes out with null pointer exception during populating values to the bean if I do

Re: Java Server Faces and Developer Life Comments

2002-09-01 Thread Tiago Nodari
Try opening JBuilder(or netbeans), tomcat, mysql, and just for fun together At 09:30 PM 9/1/2002 +0200, you wrote: sometimes you just need JBuilder open for the PC to hang :-) Sorry, couldn´t help it! Regards, Michael - Original Message - From: Tiago Nodari [EMAIL

Re: Java Server Faces and Developer Life Comments

2002-09-01 Thread Michael Delamere
h. that´s not all that much! Mind you, I found that JBuilder was fairly slow (especially JBuilder6 - JB4 was ok) and caused everything else to slow down aswell. I don´t have this problem when using Eclipse... Regards, Michael - Original Message - From: Tiago Nodari [EMAIL

[OT] Java Server Faces and Developer Life Comments

2002-09-01 Thread Tiago Nodari
Depends how much RAM you have :) I tried JBuilder 7 and netbeans 3.4, both are slow starting, but after its alright, I dont do GUI work. Eclipse is nice also, the only problem I have is when you alt-tab alot, it seems to take a while going back to it, that doesnt happen

Re: [OT] Java Server Faces and Developer Life Comments

2002-09-01 Thread Michael Delamere
Yes, the Tomcat-Plugin is nice is 256 MB SDRAM enough? :-) Regards, Michael - Original Message - From: Tiago Nodari [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Sunday, September 01, 2002 9:56 PM Subject: [OT] Java Server Faces and Developer Life

Re: [OT] Java Server Faces and Developer Life Comments

2002-09-01 Thread Eddie Bush
You're probably aware that I've been evaluating IDEs recently. I finally wound up deciding that Netbeans 3.4 suited my needs/wants more closely than any other IDE. Yes, you're kind of locked in to whatever Tomcat installation they packaged with it, but, other than that, it's really nice.

Extending RequestProcessor of ActionServlet

2002-09-01 Thread Bunty
Hi All, How to extend RequestProcessor class ? Also if someone can elaborate on the struts-config.xml configuration to configure controller. Thanks Bunty -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

DynaValidatorActionForm date validation struts 1.1 b2

2002-09-01 Thread Zimmer, Robin (SSABSA)
If I use a DynaValidatorActionForm and leave a date field blank, when validation occurs an error is raised saying the field is not a date. Is this a bug with Struts 1.1 b2 as it was OK in beta 1? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL

Templates tag library, nesting templates

2002-09-01 Thread Sean Gay
Hey guys Im just new to the users list and was wondering whether anyone could help me out with how to nest templates. I have only been able to do this by the following way -technologies_expertise.jsp- --- Main file which uses

Database Connection in Logic Beans - pooling?

2002-09-01 Thread Steve McLeod
I am using: Tomcat 4.0 Struts 1.0.2 The problem I have successfully used the Struts database connection pooling in a trial web app, but as far as I can tell, a reference to the datasource can only be obtained from within an Action class (or directly within a JSP page but let's not

Re: Database Connection in Logic Beans - pooling?

2002-09-01 Thread David Graham
Here's how I do it: I defined a Database class with a constructor that takes a Datasource object. It also has a static getSystemDatabase() method and a getConnection method. I subclassed the struts ActionServlet and get ahold of its DataSource (defined in struts-config.xml) and pass it into

RE: Extending RequestProcessor of ActionServlet

2002-09-01 Thread Andrew Hill
Hi Bunty, Most of the time you probably wont actually need to override the RequestProcessor, however on those occasions when you do need to you will be glad to hear that it is actually quite a straightforward task. First you create your own class that extends RequestProcessor, and to make

Controller design

2002-09-01 Thread Mohan Radhakrishnan
Hi, What are the J2EE patterns that struts already implements? I am trying to create a WebController which acts as a proxy( after the petstore sample) so that my business tier is loosely coupled with the presentation tier. So my presentation tier and business tier send Data Transfer Objects

AW: Java Server Faces and Developer Life Comments

2002-09-01 Thread Rademacher Tobias
Hi Vic, Also, C# is a ECMA standard and here is the open source version: http://www.infoworld.com/articles/hn/xml/02/07/22/020722hnoreilly.xml ..and currently it does not work on Linux, SunOS, HPUX and Mac. Java is desinged to run on a huge portion of OS and so it's the best joice if you want

FW: Database Connection in Logic Beans - pooling?

2002-09-01 Thread Steve McLeod
There's a couple of pieces missing in my understanding of this: 1. How do you get hold of the DataSource of the ActionServlet subclass? Is this what getSystemDatabase() does? If so, then how? 2. Am I right in assuming that the getSystemDatabase() method instantiates a new Database