How to get MyException from ExceptionHandler

2004-10-08 Thread Ralf Schneider
I want to implement an application specific exception handling for my struts application. So, I defined my own Exception class that extends a normal Exception by an error code and the filename where the exception occured: public class MyException extends Exception { private int

How Jakarta Struts become Apache Struts

2004-10-08 Thread Antony Paul
Hi all, Why Struts got its own host in apache.org. Also it seems that it is renamed from Jakarta Struts to Apache Struts. Is there any particular reason for it ?. If popularity is the reason then why Tomcat is not promoted ? rgds Antony Paul

[OT] Struts Networking / BOF IV / Friday / October 22 @ 19:30 / Restaurant / The Furnace

2004-10-08 Thread Pilgrim, Peter
Hi The reservation for the BOF IV at The Furnace has been confirmed yesterday. The following people are attending so far: Peter Pilgrim Alan Mehio Christopher Marsh-Bourdon Thomas Pluempe Tim Penhey Charles Cordingley Marco Mistroni

iterate paging

2004-10-08 Thread Sebastian Ho
hi anyone has codes on how to display paging? i.e. display 10 rows per page with 'next' / 'back' functions. Thanks sebastian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[ANNOUNCE] XMoon 0.6.0

2004-10-08 Thread Mario Neè
XMoon is a dynamic OO (Object Oriented) opensource extension released under * Lgpl License* for Jakarta Struts, powerfull and easy to use. XMoon lets you develop business logic classes following a fully Java compatible scripting language allowing execution of Java code at runtime without any

RE: iterate paging

2004-10-08 Thread Viral_Thakkar
Use ValueListHandler design pattern .. -Original Message- From: Sebastian Ho [mailto:[EMAIL PROTECTED] Sent: Friday, October 08, 2004 1:21 PM To: 'Struts Users Mailing List' Subject: iterate paging hi anyone has codes on how to display paging? i.e. display 10 rows per page with 'next'

Re: iterate paging

2004-10-08 Thread Peng Tuck Kwok
Or you coud use displaytag. http://displaytag.sf.net It's pretty ok from what I can see. On Fri, 8 Oct 2004 14:32:58 +0530, Viral_Thakkar [EMAIL PROTECTED] wrote: Use ValueListHandler design pattern .. -Original Message- From: Sebastian Ho [mailto:[EMAIL PROTECTED] Sent:

Nested properties do not work with html-el:image/html-el:submit ?

2004-10-08 Thread Thomas Dudziak
Hi, I wanted to apply the ideas of the Html Buttons and Struts - The Right Way tutorial (http://j2ee-01.lagnada.com/struts/html-buttons.htm) to my struts app, but it does not work at all. Here's the JSP snippet : %@ taglib uri=http://java.sun.com/jstl/core; prefix=c % %@ taglib

RE: Unable to display Errors

2004-10-08 Thread ravi.vedala
Did you put html:errors / in the JSP ? -Original Message- From: Satish Talim [mailto:[EMAIL PROTECTED] Sent: Friday, October 08, 2004 12:51 PM To: Struts Users Mailing List Subject: Unable to display Errors Hello all, I am new to Struts and experimenting with a simple Login screen

Struts /silly question

2004-10-08 Thread Marco Mistroni
Hello all, I am sure this is a very easy question, but I cannot Figure out the solution... I have a XAction class which is in charge of calling a business delegate, Get some data and put it into the session.. Now, I want to be able to call this XAction class from different action class

SV: Struts /silly question

2004-10-08 Thread hermod . opstvedt
Hi Call ActionForward af=yourActionClass.method(maaping,form,request,response); From your class -Opprinnelig melding- Fra: Marco Mistroni [mailto:[EMAIL PROTECTED] Sendt: 8. oktober 2004 13:33 Til: 'Struts Users Mailing List' Emne: Struts /silly question Hello all, I am sure

Problem sharing Tiles between applications (2)

2004-10-08 Thread Brown, Robert
Greetings: Perhaps you can help me with a real problem I am having using Tiles. I have an understanding of how to use Tiles; I have several pages that use several parts of JSPs, as illustrated by the example below: %@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % tiles:insert

RE: Struts /silly question / ignore

2004-10-08 Thread Marco Mistroni
Hello, Shame on me :-( It was enough to extend XAction to get the method that gets the data And put it into the session.. Sorry all Regards marco -Original Message- From: Marco Mistroni [mailto:[EMAIL PROTECTED] Sent: 08 October 2004 12:33 To: 'Struts Users Mailing

Re: Struts /silly question

2004-10-08 Thread Jin Bal
The trick is to make your action classes very thin i.e. implement as much logic as you possible can in your delegate without violating separation of concerns. This way it becomes less of a problem making your actions fine grained and have a number of actions reusing logic in your delegate

Localization

2004-10-08 Thread Freddy Villalba A.
Hi, I'm having troubles getting a Double property correctly processed by Struts. The problem: I'm passing values with European number format (decimal separator = '.') but Struts seems not to understand this. The bizarre part is that, instead of throwing an Exception, it assigns 0.0 to the

RE: Localization

2004-10-08 Thread Freddy Villalba A.
Oppss... make that: European = ',' US = '.' -Mensaje original- De: Freddy Villalba A. [mailto:[EMAIL PROTECTED] Enviado el: viernes, 08 de octubre de 2004 13:49 Para: Struts Users Mailing List Asunto: Localization Hi, I'm having troubles getting a Double property correctly processed

RE: Localization

2004-10-08 Thread Hiran.Chaudhuri
Hi, Freddy. - Use string properties in your for bean. - If you use the validation framework, check whether that supports different number formats (for dates it does) - parse the number according to the user's locale in your action class and pass that double on to your delegate Hiran

SV: Localization

2004-10-08 Thread hermod . opstvedt
Hi Welcome to the ugly world of Struts, Commons and Internationalization. I also had this problem, but solved it by rewriting some of the Struts tags, registering my own version of DoubleConverter with BeanUtils, and a couple og other places that I have forgotten. Nevertheless it works. I had a

Re: cleaning session

2004-10-08 Thread Erik Weber
I can't promise when, but whenever I find myself working on it again, I'll try to remember to contact you guys, or at least I'll repost. Right now I'm working on Swing stuff, but I'll be doing another web app soon, and maybe I can try something better then. Erik Freddy Villalba A. wrote: Ok

Re: Q: Switching Modules

2004-10-08 Thread jean kon-sun-tack
None of the 4 ways described in the user guide suits me... 1- Using html:link module=moduleB path=/menu.do/ means page flow is coded in JSP 2- Using ActionMapping means you are coding a Action class 3- Using global-forwards means you are coding a Action class or referencing it in a html:link =

Re: How Jakarta Struts become Apache Struts

2004-10-08 Thread Joe Germuska
The Apache Software Foundation, which has ultimate authority and responsibility for projects developed anywhere within the Apache community, realized that the large size of the Jakarta community led to some difficulties in ensuring that all of the formalities (which are invisible to most

RE: Q: Switching Modules

2004-10-08 Thread Hiran.Chaudhuri
Hi, Jean. Maybe I missed a bit, but do you not always have page flow coded in JSP AND Action classes? In the action the server decides what to do with user input and what page to go next. This page will be presented to the user. There may be several buttons on it allowing the user to choose

Re: Periods in form attribute names prevents retrieval

2004-10-08 Thread Laurent Duperval
Jeff Beal wrote: Have you tried html:text name=profile.account property=name/? Ahaaa! No I haven't. Thanks! L - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: checking for an object in a collection

2004-10-08 Thread Muhammad Momin Rashid
Thank you for replying, I believe that your idea of using the hashMap is probably the best one. Is it possible for you to provide me some assistance with a sample jsp tag to accomplish this? e.g. lets say that I have a hashMap with rules x, y and z defined (where x, y and z are the keys.

Properties of Nested Beans

2004-10-08 Thread Chris Stavrianou
HI all, I am having a problem with collections of beans nested within beans. I have found that I can only nested beans and get property names if the property names are unique across the entire application. Is this a usual quirk of the way Struts uses reflection? Are there restrictions on

Re: How Jakarta Struts become Apache Struts

2004-10-08 Thread Niall Pemberton
One of the main motivations for moving Struts to a TLP was the fact that as a TLP Struts can have sub-projects - each with their own release cycle. The plan was/is to split Struts into modules/components such as core, tiles, tags etc. - and then hopefully releasing new component versions would be

Struts - XML - XSL - Xquery

2004-10-08 Thread Yoni . RACHOVITCH
Hi, I would like to integrate all the mechanism about Struts and XML management (XML database) I have just got adocument about stxx (Struts for transforming XML with XSL) using XPath but I would prefer XQuery. However, I am not yet closed to XML, XPath and XQuery in Struts, so have you got

RE: cleaning session

2004-10-08 Thread Freddy Villalba A.
OK -Mensaje original- De: Erik Weber [mailto:[EMAIL PROTECTED] Enviado el: viernes, 08 de octubre de 2004 14:46 Para: Struts Users Mailing List Asunto: Re: cleaning session I can't promise when, but whenever I find myself working on it again, I'll try to remember to contact you guys, or

RE: Struts - XML - XSL - Xquery

2004-10-08 Thread Marco Mistroni
Hello, You may want to check apache xalan / xerces / jaxp for samples of using XML and XSL. Then you can integrate them with struts... Regards marco -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 08 October 2004 14:53 To: [EMAIL

[OT] Request for comments on DAO pattern implementation

2004-10-08 Thread atta-ur rehman
Dear all, I've contemplated two ways of implementing DAO pattern; and I'm unable to decide which is better :) Any comments on pros and cons of these two approaches will be greatly appericiated. Implementation 1: Have IDAO interface and let all the DAO objects implement this interface; with

RE: [OT] Request for comments on DAO pattern implementation

2004-10-08 Thread Marco Mistroni
Hello, My 2 cents.. go for the interface... it will make your life Easier for the future when you want to change implementation Regards marco -Original Message- From: atta-ur rehman [mailto:[EMAIL PROTECTED] Sent: 08 October 2004 15:13 To: Struts Users Mailing List

RE: Struts - XML - XSL - Xquery

2004-10-08 Thread Jeroen Breedveld
Hi Yoni, || -Original Message- || From: [EMAIL PROTECTED] || [mailto:[EMAIL PROTECTED] || Sent: vrijdag 8 oktober 2004 16:13 || To: [EMAIL PROTECTED] || Subject: RE: Struts - XML - XSL - Xquery || || || Hi, || || in fact, I already know about XML and XSL syntaxes and not

RE: Struts - XML - XSL - Xquery

2004-10-08 Thread Hiran.Chaudhuri
Hi, Jeroen. That's also the way I'd do it. However with XQuery you can combine the query part and the formatting (to HTML) in one step. Information and samples can be found here: http://tamino.demozone.softwareag.com/demoXQuery/XQueryDemo/reference.jsp Creating a tag that executes the query and

RE: [OT] Request for comments on DAO pattern implementation

2004-10-08 Thread Freddy Villalba A.
Hi, Let me try to complicate it a bit more! ;) Have you thought about just not coding at all (the DAO implementation, that is)? Take a look at sql2java. With that, you'd have a nice DAO implementation and be able to implement just about anything you want over it. HTH, Freddy. -Mensaje

Upgrading Woes

2004-10-08 Thread Matt Hughes
Hi, I just starting working on a project at work that is using a very old version of Struts (1.0). Having used the newest version of Struts, I am desperate to upgrade this application to use the newest version, but I have fixed all I can fix without a little assistance. The application has

RE: Localization

2004-10-08 Thread David Suarez
Hello, I've been through the same recently with dates formatting. Sounds like we did exactly the same thing, seen on the web where others have also done the same. Do you remember the reasoning for not handling it within struts? I wanted to see if maybe there was a good reason for this that I

Checkbox frustration

2004-10-08 Thread Appel, Jeremy
Hi, I have a page that lists a set of DB records and I am giving the user the ability to edit any number of these records and do a multiple update by using checkboxes to signify what rows have been modified. I am using a session-scoped form that has a List of Map-backed Forms with

Re: Checkbox frustration

2004-10-08 Thread Wendy Smoak
From: Appel, Jeremy [EMAIL PROTECTED] c:forEach items=${TaxCmpDef.values} var=rows varStatus=status html:checkbox styleClass=its indexed=true name=rows property=value(selected)/ With multiple checkboxes, you probably want html:multibox, not html:checkbox. What is the syntax with parentheses in

RE: Checkbox frustration

2004-10-08 Thread Appel, Jeremy
Question: If I have sorting on the page as well, how do I relate the multibox array to entries in form? As for the syntax, it is for a Map-backed form. I am actually iterating over a list of Map-backed forms. -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Friday,

Re: Checkbox frustration

2004-10-08 Thread Wendy Smoak
From: Appel, Jeremy [EMAIL PROTECTED] Question: If I have sorting on the page as well, how do I relate the multibox array to entries in form? As for the syntax, it is for a Map-backed form. I am actually iterating over a list of Map-backed forms. Sorry, you should probably ignore me-- I use

Re: Properties of Nested Beans

2004-10-08 Thread Yves Sy
Try keyboardmonkey.com It has good stuff on nested tags which is what probably need. -Yves- On Fri, 08 Oct 2004 11:39:27 -0400, Bill Siggelkow [EMAIL PROTECTED] wrote: There is no such restriction -- please provide some code so we can help diagnose your problem. -Bill Siggelkow

Re: iterate paging

2004-10-08 Thread Bill Siggelkow
Or you could do it yourself with JSTL: %@ page contentType=text/html;charset=UTF-8 language=java % %@ taglib uri=http://jakarta.apache.org/struts/tags-bean; prefix=bean % %@ taglib uri=http://java.sun.com/jstl/core; prefix=c % html head titlePaging Example/title /head body jsp:useBean

How to get at Action Path?

2004-10-08 Thread Alan Pocklington
I have an Action defined as: action path=/myaction/** type=...MyAction/ Within the Action class itself I want to get at the path attribute, i.e. /myaction/**. I can get the requested path, for example /myaction/somepath/xxx.do via actionMapping.getPath() but not the

How To Get At Action Path?

2004-10-08 Thread Alan Pocklington
I have an Action defined as: action path=/myaction/** type=...MyAction/ Within the Action class itself I want to get at the path attribute, i.e. /myaction/**. I can get the requested path, for example /myaction/somepath/xxx.do via actionMapping.getPath() but not the

ActionMessage and bean:message tag

2004-10-08 Thread Travis Reeder
I am trying to use the paramaterized bean:message tag with an ActionMessage object and am wondering why there is no way to put the the values array from the ActionMessage into the bean:message tag. If i try to use the arg0, arg1, etc, it uses those as hard values, it does not get the value from

Re: iterate paging

2004-10-08 Thread Yves Sy
I like using pager taglibrary myself... http://jsptags.com/tags/navigation/pager/pager-taglib-2.0.html ... although display tag is also cool if you need the sorting and exporting stuff. -Yves- On Fri, 08 Oct 2004 13:05:58 -0400, Bill Siggelkow [EMAIL PROTECTED] wrote: Or you could do it

[OT] Running one web application in another.

2004-10-08 Thread Susan Bradeen
I have two web applications. App A is a finished, working web application. App B, a work in progress, is using Struts and Tiles, and has a requirement to essentially 'put App A in a content Tile' for use in App B. This will in affect produce a 'portal-like' function, with App A working as normal

Re: [OT] Running one web application in another.

2004-10-08 Thread fzlists
Frames probably would in fact be your path of least resistance. Frames have, for some reason, gotten a very bad rap, probably because it's so easy to abuse them (or architect them poorly and have all sorts of trouble because of it). However, when used properly, I fail to see why anyone has a

Re: [OT] Running one web application in another.

2004-10-08 Thread Susan Bradeen
On Fri, 8 Oct 2004 12:46:01 -0700 (PDT), [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Frames probably would in fact be your path of least resistance. Frames have, for some reason, gotten a very bad rap, probably because it's so easy to abuse them (or architect them poorly and have all sorts of

Re: [OT] Running one web application in another.

2004-10-08 Thread fzlists
Well, if you do decide to go the frames rate, feel free to contact me directly (probably no need to keep this on the mailing list) with any questions you may have. I've done three large and rather complex apps, all frames-based, so I've probably dealt with whatever issues you may run in to.

Re: [OT] Running one web application in another.

2004-10-08 Thread Susan Bradeen
On Fri, 8 Oct 2004 12:54:07 -0700 (PDT), [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Well, if you do decide to go the frames rate, feel free to contact me directly (probably no need to keep this on the mailing list) with any questions you may have. I've done three large and rather complex

Re: How To Display Check Boxes in Struts?

2004-10-08 Thread Caroline Jen
Thank you very much for your reply and your code. My check boxes and other requirements are working now. -Caroline --- [EMAIL PROTECTED] wrote: I'll assume you have an iteration in your JSP that goes like this: logic:iterate name=yourForm property=clients id=client ...

Re: [OT] Running one web application in another.

2004-10-08 Thread Michael McGrady
I am unclear as to what you want to do. I realize you have two web applications and want in some sense one to port to the other, but beyond that cannot tell what the requirements are. You could have many different requirements in that situation and which you do have is not clear. On frames,

Re: Localization

2004-10-08 Thread Craig McClanahan
On Fri, 8 Oct 2004 10:17:17 -0500, David Suarez [EMAIL PROTECTED] wrote: Hello, I've been through the same recently with dates formatting. Sounds like we did exactly the same thing, seen on the web where others have also done the same. Do you remember the reasoning for not handling it

Re: Localization

2004-10-08 Thread Hubert Rabago
Or, you can use the FormDef Struts plugin, which supports these localization features, including localized dates and numbers. =p On Fri, 8 Oct 2004 14:51:17 -0700, Craig McClanahan [EMAIL PROTECTED] wrote: On Fri, 8 Oct 2004 10:17:17 -0500, David Suarez [EMAIL PROTECTED] wrote: Hello,

RE: Struts /silly question

2004-10-08 Thread Karr, David
It may not have been the answer the original poster was looking for, but it is the correct way to solve this problem. Action methods should only be used as direct responses to a single user action. Business delegate behaviors should be aggregated and reused by different actions. -Original

Re: How work to DynaValidatorForm and java.sql.Date

2004-10-08 Thread Gabriel França Campolina
Hi Pedro, I'd like know how i work to java.sql.Date, in my form bean I'm know work to fields String , but in Specification of DynaValidator show that DynaValidator support java.sql.date, but I have the problem show in e-mail number one, Somebody help me Thanks, On Thu, 07 Oct 2004

Re: How work to DynaValidatorForm and java.sql.Date

2004-10-08 Thread Daniel H. F. e Silva
Hi Gabriel, As many of struts people here i think that the less error prone approach is using only String properties in your custom ActionForm classes. So, it will be quite easy to handle invalid data and whatelse you need to. After validating your form (calling your validate() method from

Re: Struts /silly question

2004-10-08 Thread Frank W. Zammetti
While I 100% agree with the theory and separate the layers as much as possible in my own code, I can't say I've never broken the rules (and I doubt any of you can frankly). I also know that in development, especially in a corporate environment where the emphasis many times is on just getting

Re: Properties of Nested Beans

2004-10-08 Thread Chris Stavrianou
I have narrowed the behaviour down somewhat - it appears to be related to using capital letters in properties. If I change the name of the LocationID String in the LocationBean from locationID to LocationID I get the following error: [ServletException

Re: OT: jstl equivalent of logic:present

2004-10-08 Thread Zoran Avtarovski
Thanks guys, In the end I stuck with the logic tag. But I do think this highlights a deficiency in the JSTL tags. Is sun open to suggestions on this topic? I think there is a need for a security/authorisation tagset as part of JSTL. Zoran I couldn't find a way in JSTL/EL using the standard

Re: Unable to display Errors

2004-10-08 Thread Satish Talim
Thanks it worked. Also, by mistake I had given the name of the Message resource as LoginMessageResources.properties instead of LoginMessageResources in my struts-config.xml. I have been wondering as to why we cannot use: html:messages id=msg message=true bean:write name=msg /

Re: OT: jstl equivalent of logic:present

2004-10-08 Thread Craig McClanahan
On Sat, 09 Oct 2004 11:39:41 +1000, Zoran Avtarovski [EMAIL PROTECTED] wrote: Thanks guys, In the end I stuck with the logic tag. But I do think this highlights a deficiency in the JSTL tags. Is sun open to suggestions on this topic? I think there is a need for a security/authorisation