Re: select box with lot of options. Need help.

2005-06-06 Thread Nitesh
Looks like a Javascript problem... try this script... hope it helps. function addMapping(objSourceElement, objTargetElement) { if (objSourceElement.selectedIndex == -1) { alert(Please select the tasks from the Available Tasks); return; } var objectsToRemove = new Array();

Re: Problems with tiles

2005-06-06 Thread lk
Davi G. Friedman wrote: Luke, Your settings look normal. I've checked the 1.2.4 code relating to your error and somehow the struts initialization isn't loading or loading correctly. Have you turned on any sort of debugging and can show the webapp startup messages? Have you done any logging

Message resource exception caused by bean:write inside logic:iterate

2005-06-06 Thread redford
Hey all, I get an exception and cannot find any explanation or solution. An OverviewBody.jsp page intends to list all data items from a database. It therefore cretaes an appropriate table, the table body is implemented using a logic:iterate tag, the single table columns/cells are supposed to get

Tiles: Howto nest attributes! Is it possible?

2005-06-06 Thread Nils Liebelt
Hi all, Let's say I got a typical tile main layout definition: definition name=.mainLayout path=/common/mainLayout.jsp put name=header value=/common/header.jsp / put name=content value=sample type=string/ put name=footer value=/common/footer.jsp / /definition Now

Tiles: Howto nest attributes! Is it possible?

2005-06-06 Thread Nils Liebelt
Hi all, Let's say I got a typical tile main layout definition: definition name=.mainLayout path=/common/mainLayout.jsp put name=header value=/common/header.jsp / put name=content value=sample type=string/ put name=footer value=/common/footer.jsp / /definition Now

RE: how do I switch off Struts - internal logging?

2005-06-06 Thread Abhinav Bhatnagar
Thanks Martin, I have these parameters in my log4j xml file, but that's for my application's logs. If I change it there, my application logging will also stop, which I don't want. Can I do it specifically for struts internal logging only? Thanks and regards, Abhinav -Original

RE: how do I switch off Struts - internal logging?

2005-06-06 Thread Nils Liebelt
Try something like this: # Whattaa logga log4j.logger=FATAL log4j.logger.fr.improve.struts=INFO log4j.logger.org.apache.ojb=INFO log4j.logger.org.apache.struts=INFO log4j.logger.com.candor.hummingbird=DEBUG GreetZ Nils -Original Message- From: Abhinav Bhatnagar [mailto:[EMAIL

RE: how do I switch off Struts - internal logging?

2005-06-06 Thread Nils Liebelt
Try something like this: # Whattaa logga log4j.logger=FATAL log4j.logger.fr.improve.struts=INFO log4j.logger.org.apache.ojb=INFO log4j.logger.org.apache.struts=INFO log4j.logger.com.candor.hummingbird=DEBUG GreetZ Nils -Original Message- From: Abhinav Bhatnagar [mailto:[EMAIL

Re: how do I switch off Struts - internal logging?

2005-06-06 Thread Martin Gainty
Mr Bhatnagar: I do not answer registered return receipt emails as I find the behavior quite disrepectful. Martin- Privacy and Confidentiality Notice: Please do not email me directly - Original Message - From: Abhinav Bhatnagar [EMAIL PROTECTED] To: Struts Users Mailing List

RE: how do I switch off Struts - internal logging?

2005-06-06 Thread Abhinav Bhatnagar
Sorry Martin, Due to official purposes I have it as the default setting. Regards, Abhinav -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Monday, June 06, 2005 6:38 PM To: Abhinav Bhatnagar; Struts Users Mailing List Subject: Re: how do I switch off Struts -

Dispatch action and validation, howto?

2005-06-06 Thread delbd
Hello, i have a form using a dispatch action, amongst the actions in the DispatchAction is the add of new fields to the form. I need some of those dispatch action to be validated. But some actions need to take place whever the form is valid or not (eg adding field to the form should add the

Business Layer Ideas (the blog entry)

2005-06-06 Thread Simon Chappell
Alright, after receiving permission from Frank, I posted his summary of the recent thread with this same name to my blog. http://uab.blogspot.com/2005/06/funny-thread-on-struts-mailing-list.html Enjoy. Remember, the summary is Frank's and the blog is mine. So don't blame Frank if you don't like

Re: Tricky configuration?

2005-06-06 Thread amol k
I tried that but it doesnt exactly help. I think I'll go the manipulate URLs @ the web server route. It looks the best option. Thanks all. On 6/3/05, Laurie Harper [EMAIL PROTECTED] wrote: Another option might be to use two URL mappings: *.do and /users/*. Would that get you what you want?

access to dataSource configured in struts-config.xml in a Plugin

2005-06-06 Thread Thibaut Lassalle
hi, i'd like to access to dataSource configured in struts-config.xml in the Plugin init method. But i don't have a clue how to do that. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: access to dataSource configured in struts-config.xml in a Plugin

2005-06-06 Thread Martin Gainty
Thibault- Have you had the opportunity to look at http://www.docjar.com/html/api/org/apache/struts/action/ActionServlet.java.html ? This is a customised ActionServlet which initialises data-sources thru initModuleDataSources method and the initModulePlugIns method which initialises the PlugIns

Re: access to dataSource configured in struts-config.xml in a Plugin

2005-06-06 Thread Thibaut Lassalle
thank you for your help. I find the solution. To access to database in a plugin method you can do: javax.sql.DataSource aDataSource = (DataSource)servletc.getServletContext().getAttribute(dataBase1); where dataBase1 is the key witch identify the data-source in the struts-config.xml

Transfering control with struts-faces

2005-06-06 Thread Emond Papegaaij
Hello, I'm looking for a elegant way of transfering control from a JSF page back to an action. The situation is as follows: An action has its 'input' set to the JSF page and forwards control to 'getInputForward'. The JSF page contains several input fields and a navigation panel, using

struts - view, create, update user page

2005-06-06 Thread Tony Smith
Hi, I am using struts to develop a webapp. One piece of work is the user information. I will allow user to create, view, and update his personal information. Usually, the three pages are very similar. What is the best way to do this with Struts? Is there any Pattern for this? I checked the Struts

Re: Exception Handler

2005-06-06 Thread Leandro_Dorileo/ABACO
Hi Joe! When I posted the initial mail I didn't understand well how ExceptionHandler works, but now I think already do, I'll tell you how I figure it out and if perhaps I'm wrong please correct me, ok? - We can have as many exceptionHandler as we need, and we configure who will be or

Re: Transfering control with struts-faces

2005-06-06 Thread gvanmatre
Hello, I'm looking for a elegant way of transfering control from a JSF page back to an action. The situation is as follows: An action has its 'input' set to the JSF page and forwards control to 'getInputForward'. The JSF page contains several input fields and a navigation panel, using

Re: struts - view, create, update user page

2005-06-06 Thread Michael Jouravlev
On 6/6/05, Tony Smith [EMAIL PROTECTED] wrote: Hi, I am using struts to develop a webapp. One piece of work is the user information. I will allow user to create, view, and update his personal information. Maybe you would like to reconsider your three pages, and split them into edit new, vew

Re: Dispatch action and validation, howto?

2005-06-06 Thread Michael Jouravlev
Turn validation off by setting validate=false in your action mapping difinition in struts-config.xml file, and call form.validate() manually from appropriate handler methods. On 6/6/05, delbd [EMAIL PROTECTED] wrote: Hello, i have a form using a dispatch action, amongst the actions in the

Error Handling Strategy

2005-06-06 Thread Matthew Hughes
I really do not like the way my current application handles errors as every error requires three or four lines and it is very redundant. I have been reading a lot about Exception(s) and how developers are slowly seeing the benefits of extending their Exception(s) from RuntimeException freeing

Re: struts - view, create, update user page

2005-06-06 Thread Tony Smith
Thank yoy very much. --- Michael Jouravlev [EMAIL PROTECTED] wrote: On 6/6/05, Tony Smith [EMAIL PROTECTED] wrote: Hi, I am using struts to develop a webapp. One piece of work is the user information. I will allow user to create, view, and update his personal information. Maybe you

Re: Tricky configuration?

2005-06-06 Thread Michael Jouravlev
I wonder, what kind of usability issue that could be? I see two cases: 1) At best, URL should show the path to the object, like app/task/itemid/actiontype or something. I think this is better than artificial breadcrumbs, which do basically the same. And, if a user tries to go one directory up,

Re: Error Handling Strategy

2005-06-06 Thread Rick Reumann
Matthew Hughes wrote the following on 6/6/2005 12:21 PM: Can anyone tell me why this isn't a good idea? I've found it easiest to not have any try/catch logic in my Actions, and I just define the global exceptions I want to catch in my struts-config which forwards to an action that logs my

Oracle 10g and 'forward with redirect'

2005-06-06 Thread Michael Rasmussen
I am working with Oracle Application Server 10G (version 9.0.4.0.0 according to help) with an application using Struts 1.1. We want to use Struts' forward with redirect option, but have had intermittent success. Meaning, sometimes the forward re-direct will work and other times it returns an

Re: Error Handling Strategy

2005-06-06 Thread Frank W. Zammetti
I've gotten into the habit of using the Struts global exception handling mechanism... Anything that can be handled in my code I catch and handle (i.e., retrying a connection to a back-end system perhaps), anything else I let bubble up and handle it in the global handler. This to me is pretty much

Re: html-el:checkbox quandary

2005-06-06 Thread gdeschen
I gave it a go and I get this error now... more precise but an error none the less... [06/06/05 15:40:53:846 EDT] 5dc35dc3 WebGroup E SRVE0026E: [Servlet Error]-[No getter method for property dependent.healthEligibilityIndicator of bean org.apache.struts.taglib.html.BEAN]:

Re: html-el:checkbox quandary

2005-06-06 Thread Martin Gainty
Good catch Hubert..Thats what I noticed ..2 property references and no value= In the future you may want to debug with display statement like c:out value= ${dependentForm.dependent.healthEligibilityIndicator}/ Martin- - Original Message - From: Hubert Rabago [EMAIL PROTECTED] To:

Re: html-el:checkbox quandary

2005-06-06 Thread gdeschen
Apolgies it is my typo... I have property twice... one should be value. - Glenn Martin Gainty [EMAIL PROTECTED] 06/06/2005 03:46 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org, Hubert Rabago [EMAIL PROTECTED] cc

Re: Error Handling Strategy

2005-06-06 Thread Xinsheng \[mike\] Huang
Rule 1: let the global exception handler handle the unwanted-exceptions,usually they are system exceptions. Rule 2: for business exceptions that your action catchs and put an action error/message in request so that the jsp displays a message to user to recovery. A business exception is required

Re: struts - view, create, update user page

2005-06-06 Thread Leandro_Dorileo/ABACO
Let me see if I undertood well, are you willing a paper about patterns to work with struts? Try to read about MVC, I think it's a good startup. * Leandro Dorilêo Desenvolvedor Java ÁBACO Tecnologia de Informação Ltda Qualidade: Um Compromisso de todos! ( (0xx65) 617-0777 ( FAX 623-0646

Re: Transfering control with struts-faces

2005-06-06 Thread Craig McClanahan
On 6/6/05, Emond Papegaaij [EMAIL PROTECTED] wrote: On Monday 06 June 2005 18:06, [EMAIL PROTECTED] wrote: Currently I'm using a construction similar to the one used in the struts-faces examples. A backing bean contains the forwards and these are called from the JSF with the following

Re: Best Place for config values

2005-06-06 Thread gdeschen
Currently we have an XML. This file is loaded in a filter using apache digester. HTH, Glenn Brian McGovern [EMAIL PROTECTED] 06/06/2005 03:51 PM Please respond to Struts Users Mailing List user@struts.apache.org To user@struts.apache.org cc Subject Best Place for config values Whats

RE: Best Place for config values

2005-06-06 Thread Durham David R Jr Ctr 805 CSPTS/SCE
Whats the best place / access method to storing and retriving config attributes like administrator email addresses and directories to store uploaded files in a multi-tiered webapp, web.xml? Resources file? Both servlets and non servlets need to access these values. Opinions greatly

Re: html-el:checkbox quandary

2005-06-06 Thread Hubert Rabago
Is dependentForm is form bean associated with the HTML form that your checkbox is a part of? There could be a typo in your struts-config, or your html:form, or your form declaration. Hubert On 6/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I gave it a go and I get this error now... more

Re: Error Handling Strategy

2005-06-06 Thread Martin Gainty
Huang- I am a bit confused by statement 'by accessing database' Could you explain why am error message must be done 'by accessing database' instead of by properties or ResourceBundles? Thanks, Martin- - Original Message - From: Xinsheng [mike] Huang [EMAIL PROTECTED] To: Struts Users

Re: Error Handling Strategy

2005-06-06 Thread Xinsheng \[mike\] Huang
Validator Framework only validates against STATIC value, not dynamic ones. For example. a user input a deposit rate. the validator in web tier only validate whether it is a number or whether its value is positive and not excess 100( a static boundary). But the company's business rule also

date validation

2005-06-06 Thread Riyaz Mansoor
i've got a date validation set up with datePattern -MM-dd, ie standard JDBC SQL format. but date validation seems to pass values of type 1980 (without month or day) and subsequently i get a SQL DATE conversion error. is this expected behavior for date validation? is there a way to

Re: Transfering control with struts-faces

2005-06-06 Thread Emond Papegaaij
On Monday 06 June 2005 22:21, Craig McClanahan wrote: On 6/6/05, Emond Papegaaij [EMAIL PROTECTED] wrote: On Monday 06 June 2005 18:06, [EMAIL PROTECTED] wrote: I believe that you can use a string instead of a binding expression, like you would a action forward (action='next') This is

Re: html-el:checkbox quandary

2005-06-06 Thread Hubert Rabago
Yes. Maybe if you include the actual mappings, JSP text, form declaration, etc, someone will find something. From what you've said, it should work. Hubert On 6/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yes the form bean is associated with the HTML form. If I simply do this: c:out

Re: html:img tag question

2005-06-06 Thread Dave Newton
Scott Purcell wrote: But today, I realized that a lot of sites use a fully qualified: img src=http://mysite/mycontext/images/images/spacer.gif; for their sites. I would like to be able to do that. Why? Seems unnecessary if you're linking to your own site. If you're linking off-site,

Re: Transfering control with struts-faces

2005-06-06 Thread Craig McClanahan
On 6/6/05, Emond Papegaaij [EMAIL PROTECTED] wrote: I don't suppose it is possible to have a single rule like this: navigation-rule from-view-id/*.jsp/from-view-id navigation-case from-outcome*/from-outcome to-view-id/{1}.do/to-view-id /navigation-case /navigation-rule The

Re: Transfering control with struts-faces

2005-06-06 Thread Emond Papegaaij
On Tuesday 07 June 2005 00:29, Craig McClanahan wrote: On 6/6/05, Emond Papegaaij [EMAIL PROTECTED] wrote: I don't suppose it is possible to have a single rule like this: navigation-rule from-view-id/*.jsp/from-view-id navigation-case from-outcome*/from-outcome

Re: date validation

2005-06-06 Thread erikweber
Sorry if you get this twice. Did you try DatePatternStrict? Erik -Original Message- From: Riyaz Mansoor [EMAIL PROTECTED] Sent: Jun 6, 2005 4:49 PM To: Struts Users Mailing List user@struts.apache.org Subject: date validation i've got a date validation set up with datePattern

Re: date validation

2005-06-06 Thread Riyaz Mansoor
no i did not; but i cannot use it as i want to allow single digit months/days in user input. more generally; i wud have expected the DateValidator to return FALSE if the user input is form 1980 for pattern -MM-dd anybody wanna weigh in? :) riyaz [EMAIL PROTECTED] wrote: Sorry if

Re: struts - view, create, update user page

2005-06-06 Thread Tony Smith
Hi, I read your article and found it very informative. But in my situation, I have about 10 different items. If I use the technology described in the paper, I need to create about 40 forms and even more actions. Is there any other ways to get around of this? Thanks, --- Michael Jouravlev

Re: struts - view, create, update user page

2005-06-06 Thread Larry Meadors
Give us some more info Tony. Are you talking about a relational database with 20 tables, or is this user information just a few bits in an xml file? Larry On 6/6/05, Tony Smith [EMAIL PROTECTED] wrote: Hi, I am using struts to develop a webapp. One piece of work is the user information. I

Date UI

2005-06-06 Thread Martin Ravell
Hi all, Having just joined the list I am unaware if this topic has been done to death already but I was wondering what were peoples views on handling date input with Struts? I'm scanning archives right now and don't see it come up too often. If this is a little OT then please flame me. (Just