Re: Struts Menu Vs Struts Layout

2005-12-18 Thread Yves Sy
Another option would be SiteMesh. If you like working on the fringes of technology though, I recommend AJAX or OpenLaszlo... Br, -Yves- On 12/18/05, Agnisys <[EMAIL PROTECTED]> wrote: > > Hi, > I need to create an application with lots of Dynamic GUI features (like > dynamic number of > Panes)

Re: OT: Tool for detecting unclosed resources

2005-03-03 Thread Yves Sy
http://findbugs.sourceforge.net in case anyone's interested... On Thu, 3 Mar 2005 15:44:11 +0800, Yves Sy <[EMAIL PROTECTED]> wrote: > Anybody know a tool for scanning unclosed JDBC resources? I've done a > simple logging facility in my app to keep track of connections in

OT: Tool for detecting unclosed resources

2005-03-02 Thread Yves Sy
Anybody know a tool for scanning unclosed JDBC resources? I've done a simple logging facility in my app to keep track of connections in the pool at runtime but I'm just wondering if there's a less eye-straining way to do it.. something like a code analyzer of some sort... Br, -Yves- -- A bus sta

Error messages in logs

2005-01-23 Thread Yves Sy
Hi, We've been getting these error messages lately in the logs of our application which is running on BEA WLS 6.1. The application is OK and there's no problem but we're getting these in the logs from time to time: eshrap01-m eshrap01-m <> <> <101020> <[WebAppServletContext(705159,iip,/

Re: test

2004-12-15 Thread Yves Sy
I can send you an invite if you want one. Just email me privately. -Yves- On Tue, 14 Dec 2004 22:23:53 -0600, Eddie Bush <[EMAIL PROTECTED]> wrote: > Any word on when they might open that to GA? I'm curious to get a peek at > it ... > > Eddie > > - Original Message - > From: "James Mi

Re: getting value of object in a collection via tag

2004-12-07 Thread Yves Sy
I believe that wont work. Seems like you have two choices: 1. Extract the first element in your action and place it in request scope so you can use a simple in your jsp; 2. use and set the "length" attribute to 1: I prefer the 1st option. Regards, -Yves- On Tue, 7 Dec 2004 09:14:41

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Yves Sy
t; asynchronicity). The most important thing to do, though, is to ensure > > that you eventually kill the thread no matter what actually happens, > > so that you don't have something needlessly consuming resources for > > the remainder of the lifetime of your server instance

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Yves Sy
Here's a follow-up question: I remember creating a thread in one of my Action classes because I needed to show a "Wait while your request is being processed..." page. The flow goes something like: 1. the MAIN thread returns an ActionForward right away that contains the "processing" page;

Re: logging servlet to CATALINA.out

2004-12-05 Thread Yves Sy
Hi Jim, getDebug() was deprecated in 1.1 and totally removed in 1.2. You should use struts 1.1 jars if you still wish to use your existing code. -Yves- On Mon, 06 Dec 2004 03:21:25 +, Jim Douglas <[EMAIL PROTECTED]> wrote: > Hi all, > > I am trying to log servlet messages but can't get t

Re: validation question

2004-10-18 Thread Yves Sy
Hi, Struts doesn't have anything like that. IMHO, I also think that using validator on the login page is not good practice as it would give malicious users a good idea on how your app handles authentication. Usually, you'd just return a generic error message such as "Username/password invalid" w

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 yo

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: findForward nto going to correct place

2004-09-28 Thread Yves Sy
re tests about the validation. > > Thanks for the help. > > Tom > > Yves Sy wrote: > > > Hi Tom, > > > > > > Now you've got this all mixed up. You dont need to call: > > > > ActionErrors errors = ((MemberNewForm)form).validate(mapping,

Re: findForward nto going to correct place

2004-09-27 Thread Yves Sy
ure")); > } > > I didn't know there should be a validate method, in the MemberAction. I > haven't seen any samples of that, but that just means I haven't see > that. I may not be looking hard enough. > > So, since I am manually calling "fail

Re: findForward nto going to correct place

2004-09-26 Thread Yves Sy
What do you mean "failure"? You explicitly return mapping.findForward("failure")? Or do you mean when the validate method in ActionForm fails? And what's the path of the page where you're being redirected? -Yves- On Sat, 25 Sep 2004 13:03:58 -0400, Tom Holmes Jr. <[EMAIL PROTECTED]> wrote: > I'v

Re: and modules

2004-09-16 Thread Yves Sy
lt layer to the user login layer. > > Is this the correct approach, or should I stick to putting it all into > one web application? > > > > Yves Sy wrote: > > I would guess its because its not really standard practice to submit a > > form to a handler from ano

Re: and modules

2004-09-16 Thread Yves Sy
mit(); Not very elegant but it works. Regards, -Yves- On Thu, 16 Sep 2004 09:30:09 +0100, Ricardo Gladwell <[EMAIL PROTECTED]> wrote: > Hi, > > Thanks for that, I will try to use the switch action to forward onto the > correct module actions. Just out of interest, why doesn&

Re: and modules

2004-09-15 Thread Yves Sy
Try using SwitchAction -Regards- Yves On Wed, 15 Sep 2004 23:46:16 +0100, Ricardo Gladwell <[EMAIL PROTECTED]> wrote: > Hi, > > I'm experimenting with struts modules, but I've encountered a problem > whereby I have a struts referencing an action in my > non-default module. Instead of referenci

Re: please wait page... like NWA.com

2004-09-14 Thread Yves Sy
The "threading stuff" only sounds intimidating but its actually simple. In the execute() method of your action class, all you need to do is go something like: new Thread() { public void run() { //your processing logic Business.processWhatever(); //place flag in sess

Re: please wait page... like NWA.com

2004-09-14 Thread Yves Sy
One way to do this is: 1. Start a thread on your search action that does the actual retrieval and processing of the data. At the end of the thread's execution, place a flag in the session that you will check for later on to see if the search/processing is done. 2. Right after starting the thread,

Re: Not happy with approaches.. looking for better/other suggestions

2004-09-12 Thread Yves Sy
Dude all you have to do is do something as simple as entering "ListUtils" in Google and you'll find out. -Yves- On Mon, 13 Sep 2004 17:04:18 +1200, struts Dude <[EMAIL PROTECTED]> wrote: > Just a silly question. > > Where did ListUtils come from?? I can't find this > in my JDK1.4.2. > > Thanks

Re: Invoking global-forwards from browser

2004-09-10 Thread Yves Sy
You cant call forwards by typing its name because its an object, not a valid path. Struts uses the "path" property of a forward object to know where to forward to. Instead, you should create an ActionMapping that uses a ForwardAction and pass /Login.jsp as parameter. Then you can call that action

Re: Gracefully handling invalid paths

2004-09-08 Thread Yves Sy
You can specify it in your web.xml: 404 /error_404.jsp -Yves- On Wed, 8 Sep 2004 20:36:38 -0700 (PDT), Andy Engle <[EMAIL PROTECTED]> wrote: > Hi all, > > I am wondering how I should handle invalid path situations within my > Struts application. I want to be able to have a "

Re: tiles ForwardAction

2004-09-08 Thread Yves Sy
One note about tiles is that you cannot redirect to a tiles-definition since it's not a valid URI. The usual way to get around that is to create an ActionMapping that uses a ForwardAction and pass the tiles definition as your parameter. -Yves-. On Wed, 8 Sep 2004 08:28:21 +0200, [EMAIL PROTECTED

Re: html:cancel usage

2004-09-08 Thread Yves Sy
What I usually do is check for isCancelled() in my Action (or BaseAction) before anything else so I can forward to the appropriate place if cancel was clicked. As for the validation, I had to put my validation in a private method in the Action instead of using the one in the ActionForm. On Wed, 0

Re: whats going wrong ?

2004-09-06 Thread Yves Sy
The ActionServlet does not see your struts-config or a struts-config for a specific module. Check your pathnames in web.xml and that it matches the physical location of your struts-config files. -Yves- On Mon, 6 Sep 2004 12:40:33 +0530, Viral_Thakkar <[EMAIL PROTECTED]> wrote: > 500 Internal Ser

Re: code snippet for

2004-09-02 Thread Yves Sy
Assuming you have a collection "myList" stored in some scope where each item in the list has the "name" and "id" properties: -Yves- - Original Message - From: viji.george <[EMAIL PROTECTED]> Date: Fri, 3 Sep 2004 10:07:24 +0530 Subject: code snippe

Re: Image Does Not Get Picked Up

2004-09-02 Thread Yves Sy
You can also use the "src" attribute: to get to your image using relative paths... -Yves- On Thu, 02 Sep 2004 09:44:19 -0700, Michael McGrady <[EMAIL PROTECTED]> wrote: > Caroline Jen wrote: > > >Thanks for your reply. > > > >I followed your advices: > > > >1. Try just: > >frame/common/image

Re: dynamically change the dropdown list from a database...

2004-09-02 Thread Yves Sy
There are 2 ways to go about this: 1) use an onchange() handler in your select-A that submits the new value and retrieves the corresponding values for select-B everytime there's a change; 2) pre-load all possibilities and use javascript to change the values of select-B that depends on A. This opt

Re: RE: [OT] someone using Outlook 2003, please tell me it can't be t his LAME...

2004-09-02 Thread Yves Sy
Same goes with Outlook 2002 for me. -Yves- On Thu, 2 Sep 2004 15:57:56 +0100, Paul McCulloch <[EMAIL PROTECTED]> wrote: > In Outlook 2000 you can do this by choosing View:Current View:By > Conversation Topic, then click the data column to sort. > > Paul > > > -Original Message- > > From

Re: Log4j output

2004-09-01 Thread Yves Sy
You can specify a different appender for different packages in your configuration file. That way, you can specify all org.apache.struts logs to go to a certain appender and foo.bar to go to another. Note though that this question is more log4j-related rather than struts. On Wed, 01 Sep 2004 21:36

Re: [OT] Funny phone call from my Dad:)

2004-09-01 Thread Yves Sy
We all laugh now but we might just end up like that ourselves someday :) I myself have been stuck with the grunge music of the early 90's already. I try to keep up with the new stuff but... its just different! :( On Wed, 01 Sep 2004 10:25:32 -0400, Rick Reumann <[EMAIL PROTECTED]> wrote: > Jitesh

Re: Where Do I Download the Artimus Source Code?

2004-09-01 Thread Yves Sy
Hi, Its in sourceforge.net. Try searching Google. It comes up right away. -Yves- On Wed, 1 Sep 2004 06:04:02 -0700 (PDT), Caroline Jen <[EMAIL PROTECTED]> wrote: > I want to download the Artimus example source code in > the "Struts in Action". Where (what is the URL) do I > find the download? >

Re: Action Class Reusable

2004-09-01 Thread Yves Sy
Hi, Some action classes can be made reusable, such as actions that add attachments. You have to try to make your code as generic as possible in these actions and simply define a different path in the forward of the corresponding ActionMapping. But these are generally rare cases. Often times, its

Re: ActionForm: simply calling reset() or have to recreate one ?

2004-09-01 Thread Yves Sy
Probably to discourage subclasses from creating/maintaining their own instance of ActionServlet... But then it doesn't make any sense to do that anyway, although you'll never believe what some users end up coming up with. I'd be very interested to hear the answer to this one. -Yves- On Wed, 01 S

Re: The jar files in the C:\jakarta-struts-1.1\contrib\struts-el\lib directory

2004-08-31 Thread Yves Sy
Hi, There's a long thread about that just yesterday. Check the messages history. -Yves- On Tue, 31 Aug 2004 04:36:57 -0700 (PDT), Caroline Jen <[EMAIL PROTECTED]> wrote: > There are three .jar files in the > C:\jakarta-struts-1.1\contrib\struts-el\lib directory > that are not in the C:\jakarta-s

Re: prechecked checkbox using DynaValidatorForm

2004-08-31 Thread Yves Sy
Hi, Try declaring eatable in your form-bean declaration as java.lang.Boolean and in the action before your edit page go myForm.set("eatable", new Boolean(true)) -Yves- On Tue, 31 Aug 2004 12:25:18 +0200, Wolfgang Woger <[EMAIL PROTECTED]> wrote: > Hi, > I have acheckbox that needs to be precheck

Re: manual validation of a form field

2004-08-29 Thread Yves Sy
Hi, You can write your own validator to take care of that -- see the Pluggable Validators section on the Struts site. -Yves- On 29 Aug 2004 22:24:43 -0400, Gary S. Cuozzo <[EMAIL PROTECTED]> wrote: > Hello, > I am using Struts 1.1 and the built-in validation framework, which works > great. Howe

RE: Which is better? Auto validate or Manual validate?

2004-08-26 Thread Yves Sy
When you use DynaValidatorForm, you don't really have a choice other than to use the Validator framework as you cannot override the validate() method. You can only override when you write your own ActionForm. Validating using the validator framework can help off-load traffic from the server when y

RE: how to reset form

2004-08-26 Thread Yves Sy
: Struts Users Mailing List > Subject: RE: how to reset form > > 1. I need to use session for this one. > > 2. The textfield in the JSP didn't load the value from the bean. It is a > normal textfield. > > How do I reset in my case? > > > On Thu, 2004-08-26 at 16:07,

RE: how to reset form

2004-08-26 Thread Yves Sy
I mean your "actionform" is stored in session scope by default :) Regards, -Yves- > -Original Message- > From: Yves Sy [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 26, 2004 4:02 PM > To: 'Struts Users Mailing List' > Subject: RE: how to reset for

RE: how to reset form

2004-08-26 Thread Yves Sy
This is happening because your session is stored in session scope by default. You should explicitly specify scope="request" in your actionmapping. Regards, -Yves- > -Original Message- > From: Sebastian Ho [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 26, 2004 3:33 PM > To: Struts

RE: ActionForm and Transfer Object

2004-08-26 Thread Yves Sy
The problem with that approach is you'll end up putting your validation code in your TO and you'll have to write your own error handling routine too. If you use ActionForms, you can save time by taking advantage of Struts' error handling mechanism via the validate() method and checkbox handling via

RE: Refresh - Duplicate Records Issue.

2004-05-14 Thread Yves Sy
Use redirect = "true" in the forward property of your action mapping. As a rule of thumb, you should redirect if you do any action that involves writing in the persistence layer such as deleting, saving, updating, etc... HTH, -Yves- > -Original Message- > From: Tarun Dewan [mailto:[EMAIL

RE: Newbie question: Deleting an ActionForm that is in session scope.

2004-05-14 Thread Yves Sy
That doesn't seem lika a really a good idea especially if you're keeping track of the user logged in! invalidate() is used only when a user clicks log out or if you want something to that effect. Just remove the actionform from the session" Session.removeAttribute("yourActionFormNameDeclaredInTh

RE: submit form question

2004-05-14 Thread Yves Sy
Seems to me that the best way to go around it would be just to warn the users before they unload the page (whether closing it or moving to another page) that they haven't submitted the form yet and that all the data they inputted will get lost if they continue their action... Regards, -Yves- > -