Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 21895 invoked from network); 12 Nov 2002 15:10:02 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 12 Nov 2002 15:10:02 -0000 Received: (qmail 13891 invoked by uid 97); 12 Nov 2002 15:10:38 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@jakarta.apache.org Received: (qmail 13860 invoked by uid 97); 12 Nov 2002 15:10:37 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 13841 invoked by uid 98); 12 Nov 2002 15:10:37 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Sensitivity: Subject: Re: StrutsTestCase configuration To: "Struts Users Mailing List" From: Kevin.Bedell@sunlife.com Date: Tue, 12 Nov 2002 10:08:03 -0500 Message-ID: X-Priority: 3 (Normal) X-MIMETrack: Serialize by Router on LN_SUNLIFE_G11/Servers/SunLife(Release 5.0.10 |March 22, 2002) at 11/12/2002 10:09:23 AM MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Which version of (or nightly build) of Struts are you using? "Jon.Ridgway" on 11/12/2002 07:52:15 AM Please respond to "Struts Users Mailing List" To: "'Struts Users Mailing List'" cc: (bcc: Kevin Bedell/Systems/USHO/SunLife) Subject: StrutsTestCase configuration Hi All I'm having some problems with the StrutsTestCase. I believe it is configured OK and all appropriate JARS (cactus etc) added to my WEB-INF/lib dir. T= he test runs but always throws the exception shown below: java.lang.StringIndexOutOfBoundsException: String index out of range: -= 1 at java.lang.String.substring(String.java:1525) at org.apache.struts.util.RequestUtils.selectApplication(RequestUtils.java= :1462 ) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1290)= at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:502) at servletunit.struts.CactusStrutsTestCase.actionPerform(CactusStrutsTestC= ase.j ava:307) at com.willhill.jackpot.portal.SaveCustomerActionTest.testSuccessfulRegist= ratio n(SaveCustomerActionTest.java:40) etc... Any idea what might be missing from my configuration? Jon Ridgway -----Original Message----- From: Xavier Combelle [mailto:xcombelle@kaptech.com] Sent: 12 November 2002 12:45 To: Struts Users Mailing List Subject: RE: From old JSP and Servlets to STRUTS I think that all the complex traitment on objects returned by logic should be simplified by the Action layer so the jsp work only with 'trivial' beans. Xavier > -----Message d'origine----- > De : Fernando Hernandez [mailto:fernando@bit-bang.com] > Envoy=E9 : lundi 12 novembre 2001 13:13 > =C0 : STRUTS Mailing-List > Objet : From old JSP and Servlets to STRUTS > > > Hi, > > I am student doing an intership and i just started to learn about Str= uts > because I'm currently transforming a J2EE web application composed by= > servlets and old-java-embedded-JSPs so it can adopt Model 2. > > To acomplish this i found that using Struts is the prefect > answer. To reach > my goal, at first I thought that maybe the best way to do it was to f= irst > address the interface by taking out all the Java embedded in all the JSPs, > and change it with Struts, JSTL, custom made taglibs. After doing thi= s, i > was going then to think about the Model and the framework itself... > > But i have found that to take out the embedded java from the JSP has = been > very difficult, since the objects(I'd like to say JavaBeans, bur they= 're > not exactly that, and actually that is part of the problem) which wer= e > sended from the logic to the presentation were very complex in nature= and > the content an not be presented just by using the strut's, JSTL or ma= ny > other libraries i have looked exhaustively. > > So, should i leave some Java embedded in the JSPs? > If the answer to the previous question is "yes", should I maybe put t= he > embedded Java into custom tag libraries made by me? or maybe use > includes or > imports? > > > I please ask your help on this since I'm running out of time. > > Thanks from Madrid. > > > Fernando Hernandez. > > > > -- > To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: The contents of this email are intended only for the named addressees a= nd may contain confidential and/or privileged material. If received in err= or please contact UPCO on +44 (0) 113 201 0600 and then delete the entire e-mail from your system. Unauthorised review, distribution, disclosure = or other use of this information could constitute a breach of confidence. = Your co-operation in this matter is greatly appreciated. -- To unsubscribe, e-mail: < mailto:struts-user-unsubscribe@jakarta.apache.org> For additional commands, e-mail: < mailto:struts-user-help@jakarta.apache.org> -----------------------------------------------------------------------= ---- This e-mail message (including attachments, if any) is intended for the= use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt f= rom disclosure. If you are not the intended recipient, you are notified th= at any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error,= please notify the sender and erase this e-mail message immediately. -----------------------------------------------------------------------= ---- = -- To unsubscribe, e-mail: For additional commands, e-mail: