[OT] Database password

2004-03-11 Thread Guillermo Meyer
Hi: Our Struts application is currently in production. This applciation uses an Oracle Database (we are using DBCP from jakarta). We access this database through url, user a password and we need to hide the production database password. The password is stored in a configuration file and is in

RE: [OT] Database password

2004-03-11 Thread Guillermo Meyer
to hide those files... - Original Message - From: Guillermo Meyer [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, March 11, 2004 3:49 PM Subject: [OT] Database password Hi: Our Struts application is currently in production. This applciation uses

RE: Multi-page session forms

2004-03-08 Thread Guillermo Meyer
Your form should have all needed fields for all pages in the workflow. And the scope for the form should be session scoped, if you want to avoid persisting all previous fields as hiddens. When cant use session scope (for whatever reason) I use a tag that generates all hidden fields given a form

RE: 1 request 2 forms

2004-03-06 Thread Guillermo Meyer
Struts fills Forms attributes before invoking an action. How are you chaining these actions? In case 2: Source.jsp post to Aaction. Aform is populated with request parameters and execute in Aaction is called. You do something with this and then, returns an actionForward that as Baction.do. So, you

RE: 1 request 2 forms

2004-03-06 Thread Guillermo Meyer
. Then, i've removed enctype=multipart from my form declaration (in source.jsp). Now, request.getParameterMap() is working...I will investigate this odd behaviour (because our application has some Filters and HttpServletRequestWrappers). Thanks all Guillermo Meyer wrote: Struts fills Forms

RE: ConcurrentModificationException

2004-03-02 Thread Guillermo Meyer
If the collection you are iterating is not synchronized, you can get this error if you remove or add elements. Try using java.util.Vector as your collection implementation. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Martes, 02 de Marzo de 2004 03:12 p.m.

RE: DropDowns....

2004-03-01 Thread Guillermo Meyer
-How can I make for get pa parameter value and pass this value for other JDBC dropdown ??? obrigado Daniel S. - Original Message - From: Guillermo Meyer [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Saturday, February 28, 2004 10:24 AM Subject: RE: DropDowns

RE: DropDowns....

2004-02-28 Thread Guillermo Meyer
Take a look at http://providers.sourceforge.net/ and see ComboSelectTag. This tag allows you to create 2 or more dependant drop down lists using Struts and javascript. With this tag, you do not need to reload the page in the onchange of the first select. Cheers. Guillermo. -Original

RE: Must have action=..... in html:form tag?

2004-02-24 Thread Guillermo Meyer
Struts places mapping name in the request before redirecting to the JSP We extended FormTag and allows action not to be mandatory. If no action is defined in the tag, we have the following code to get action name: ActionMapping mapping =

RE: Extra Lines in Compiled JSP

2004-02-20 Thread Guillermo Meyer
I had this problem that produced me a CSV file with blank lines at top. I solved it by removing al enter in the file, I mean, JSP tags (including %@ tags, etc) are all concatenated without break lines. You will get the ugliest JSP page you have ever seen from developer perspective, but this solved

RE: 2 combo Box (drop down list)....

2004-02-19 Thread Guillermo Meyer
You can use ComboSelectTag from http://providers.sourceforge.net/ -Original Message- From: Paul-J Woodward [mailto:[EMAIL PROTECTED] Sent: Jueves, 19 de Febrero de 2004 09:09 a.m. To: Struts Users Mailing List Subject: Re: 2 combo Box (drop down list) If you don't want to submit

RE: 2 combo Box (drop down list)....

2004-02-19 Thread Guillermo Meyer
of popup, populate one think on the back ground, without don't come all the page again. thanks Daniel S. - Original Message - From: Guillermo Meyer [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, February 19, 2004 9:10 AM Subject: RE: 2 combo

RE: Tiles and website skinnability

2004-02-18 Thread Guillermo Meyer
You can use Xkins to add skins to the website while still using tiles (http://xkins.sourceforge.net). You can use XkinsForms tags or create your own taglibs and use xkins to generate HTML. You can use css with Xkins, and each skin can have it's own path for it's css: For example, if you have this

RE: preview form

2004-02-17 Thread Guillermo Meyer
Have in mind that in selects tags, you have a value and a text, and the user sees the text, but the value is in fact the id, so if you shows the value with bean:write name=orderForm property=productId user will see the id and not the description. For this problem we use a tag that extends WriteTag

RE: [OT] Case insensitive Map keys [Results]

2004-02-17 Thread Guillermo Meyer
(); int len = bytes.length(); for (int i=0; ilen; i++) bytes[i] = 3; return new String(bytes); } } -Original Message- From: Guillermo Meyer [mailto:[EMAIL PROTECTED] Sent: Saturday, February 14, 2004 8:16 PM To: 'Struts Users Mailing List' Subject: RE

RE: Problem Dynamically creating form properties

2004-02-17 Thread Guillermo Meyer
I previuosly posted a mail to this list asking why DynaForms are called Dynamic if you have to declare them statically in Struts-Config. But there was no answer :( We created in our project a DynamicBean (previous DynaBean release and when Struts 1.1 was no available) and extended ActionForm to

RE: Problem Dynamically creating form properties

2004-02-17 Thread Guillermo Meyer
[/] Guillermo Meyer [EMAIL PROTECTED] 17/02/2004 09:43 Please respond to Struts Users Mailing List To: 'Struts Users Mailing List' [EMAIL PROTECTED] cc: Subject:RE: Problem Dynamically creating form properties I previuosly posted a mail to this list asking

RE: [SPAM] - repost : creation of UI from DB - Bayesian Filter de tected spam

2004-02-17 Thread Guillermo Meyer
You could generate different Skins (for example using Xkins at http://xkins.sourceforge.net) and the user can choose the one that he or she likes. But creating user's own skin on the fly... Xkins doesn't support it nowadays, but i think it could be done. May it be a new feature for Xkins. You

RE: Problem Dynamically creating form properties

2004-02-17 Thread Guillermo Meyer
properties Hi Guillermo, I have one question: will 'your trick' work also if I have properties of type, for example, Short, or Integer, or java.sql.Date? Thanx and regards marco -Original Message- From: Guillermo Meyer [mailto:[EMAIL PROTECTED] Sent: 17 February 2004 12:43

RE: Problem Dynamically creating form properties

2004-02-17 Thread Guillermo Meyer
: Guillermo Meyer [mailto:[EMAIL PROTECTED] Sent: 17 February 2004 12:43 To: 'Struts Users Mailing List' Subject: RE: Problem Dynamically creating form properties I previuosly posted a mail to this list asking why DynaForms are called Dynamic if you have to declare them statically in Struts

RE: Problem Dynamically creating form properties

2004-02-17 Thread Guillermo Meyer
' (persistence layer I guess)? Since as far as I understood that is the only place that knows about properties stored in the DynaBean.. Regards marco -Original Message- From: Guillermo Meyer [mailto:[EMAIL PROTECTED] Sent: 17 February 2004 15:44 To: 'Struts Users Mailing List

RE: Problem Dynamically creating form properties

2004-02-17 Thread Guillermo Meyer
: Guillermo Meyer [mailto:[EMAIL PROTECTED] Sent: 17 February 2004 15:44 To: 'Struts Users Mailing List' Subject: RE: Problem Dynamically creating form properties Our DynamicBean holds java.util.Calendar, not java.util.Date nor java.sql.Date. We have a persistence framework that converts

RE: Problem Dynamically creating form properties

2004-02-17 Thread Guillermo Meyer
wants it - or even better if someone could offer/suggest a site to load it up to. Niall - Original Message - From: Guillermo Meyer [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 2:07 PM Subject: RE

RE: [OT] Case insensitive Map keys [Results]

2004-02-14 Thread Guillermo Meyer
subtraction-assign. object creation is same. you create Integer. I create String. please let us know if you gain some performance. -Original Message- From: Guillermo Meyer [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 7:08 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Case

RE: [OT] Case insensitive Map keys

2004-02-13 Thread Guillermo Meyer
. By the time you ask the Q and wait for reply. you could have written on your own. Navjot Singh -Original Message- From: Guillermo Meyer [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 5:24 PM To: 'Struts Users Mailing List' Subject: [OT] Case insensitive Map keys Hi: Does anyone

RE: how to send checkbox value?

2004-02-13 Thread Guillermo Meyer
; import org.apache.struts.util.ResponseUtils; /** * CheckBox, que tiene un hidden asociado para que mande siempre valor, esté o no checkeado. [EMAIL PROTECTED] Guillermo Meyer **/ public class CheckBoxTag extends BaseFieldTag { /** * Genera el checkBox * */ private

RE: [OT] Case insensitive Map keys

2004-02-13 Thread Guillermo Meyer
(and more standard). BAL From: Villalba Arias, Fredy [BILBOMATICA] [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED],[EMAIL PROTECTED] Subject: RE: [OT] Case insensitive Map keys Date: Fri, 13 Feb 2004 17:12:44 +0100 -Mensaje original- De: Guillermo Meyer [mailto:[EMAIL

[OT] Case insensitive Map keys

2004-02-12 Thread Guillermo Meyer
Hi: Does anyone know an implementation of Map where keys are String and case insensitive? I want to do this: map.put(propertyName, DATA); And then, I should be able to get the value like this: Object obj = map.get(PROPERTYNAME); Or like this: Object obj = map.get(propertyname); //or whatever.

RE: Regarding Array List - Select

2004-02-11 Thread Guillermo Meyer
Take a look at http://providers.sourceforge.net/ -Original Message- From: Samyukta Akunuru [mailto:[EMAIL PROTECTED] Sent: Miércoles, 11 de Febrero de 2004 11:43 a.m. To: Struts Users Mailing List Subject: RE: Regarding Array List - Select Qn again: In the following bean:define

RE: Persisting Messages/Errors when redirect=true

2004-02-10 Thread Guillermo Meyer
We added a method in the base action called saveErrorsInSession. We created a custom tag called GetErrorsTag that takes ActionErrors from session and places it in the request to be caught by ErrorsTag and then removes it from session. I place this tag before ErrorsTag. Also you could extend

RE: Back to the originating screen...

2004-02-09 Thread Guillermo Meyer
- From: Guillermo Meyer [mailto:[EMAIL PROTECTED] Sent: Freitag, 6. Februar 2004 17:13 To: 'Struts Users Mailing List' Subject: RE: Back to the originating screen... The action that changes the Language should target in a hidden frame and the forwarding JSP to be rendered in this hidden frame could

RE: Supporting a back button without JavaScript

2004-02-09 Thread Guillermo Meyer
We solve this problem by implementing a stack to mantain the previous pages. This stack is kept in session and has steps. Each step has a reference to the mapping , form and method name (we use dispatch action). The base action has a stepBack and a stepToCheckpoint. This global methods can be

RE: Back to the originating screen...

2004-02-06 Thread Guillermo Meyer
The action that changes the Language should target in a hidden frame and the forwarding JSP to be rendered in this hidden frame could reload the frames that need to be changed by language change: html:form action=/changeLanguiage target=hiddenFrame . /html:form When you submit this form, the

RE: Formating a float

2004-02-05 Thread Guillermo Meyer
Lucas: Inspecting WriteTag.java code i found this: */ protected String formatValue(Object valueToFormat) throws JspException { Format format = null; Object value = valueToFormat; Locale locale = RequestUtils.retrieveUserLocale( pageContext,

RE: Formating a float

2004-02-05 Thread Guillermo Meyer
Lucas: Inspecting WriteTag.java code i found this: */ protected String formatValue(Object valueToFormat) throws JspException { Format format = null; Object value = valueToFormat; Locale locale = RequestUtils.retrieveUserLocale( pageContext,

RE: generic component

2004-02-04 Thread Guillermo Meyer
+1 You could create a taglib and use Xkins templates to generate HTML this tag and add skinning capabilities to this generic component. -Original Message- From: Frédéric Dreier [mailto:[EMAIL PROTECTED] Sent: Miércoles, 04 de Febrero de 2004 12:51 p.m. To: Struts Users Mailing List

RE: html:options and html:select

2004-02-02 Thread Guillermo Meyer
Otto, you can take a look at http://providers.sourceforge.net/, this project can help you in filling options in selects. There is a 0.1 version, butwe are working in 0.2 with a lot of improvements. Cheers. Guillermo. -Original Message- From: Otto, Frank [mailto:[EMAIL PROTECTED] Sent:

RE: stop user from clicking the submit button twice

2004-01-30 Thread Guillermo Meyer
We use: 1) Struts token to prevent reload (F5) problems, 2) page redirection in a in process page for long transactions (usually with JMS) 3) javascript to prevent user doubleclicking buttons. We use Xkins and our buttons are images generated by xkins, and have taglibs to generate this buttons

Are DynaForms dynamic?

2004-01-30 Thread Guillermo Meyer
Why DynaForms attributes have to be declared in struts-config file? Doesn't it inivalidates the Dynamic feature of the form? Maybe I'm misunderstanding the concept of dynamism of this. If so, Can anyone explain? I would like to have a really dynamic form so I could reuse it in many actions that

RE: best way to handle an indexed property and a textarea

2004-01-29 Thread Guillermo Meyer
I needed this feature in one place of my application and made it but didn´t subclass TextAreaTag, neither created a custom tag (thought i should). In fact, now that I see it, it's a little messy :P. I know it can be done better, but it's just only as an idea of what i did and a starting point for

RE: Problem : Xkins with Tomcat 5

2004-01-24 Thread Guillermo Meyer
Lixin: I'm going to investigate this problem, but I dont' think it's a Xkins error, but some misconfiguration problem. I tested Xkins 0.9.6 on tomcat 5.0.16 and the war archive was deployed and run without problems. Beside Xkins, Struts-Layout has a Skin management, but I don't know it in deep. I

RE: Designing for various Actions on JSP

2004-01-21 Thread Guillermo Meyer
Im my experience, Option 2 is better if you have various use cases that share the same behaviour (list, add, delete, edit). You can create a BaseAction that extends from DispatchAction and have all these methods. For each use case (ie. Operators, Accounts, Clients, etc) you can extend this base

RE: [ANNOUNCE] Providers: Select solutions

2004-01-20 Thread Guillermo Meyer
INFO: JK2: ajp13 listening on /0.0.0.0:8009 Jan 19, 2004 8:38:21 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/30 config=C:\tomcat\jakarta-tomcat-4.1.27\conf\jk2.properties -Original Message- From: Guillermo Meyer [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 2

RE: [ANNOUNCE] Providers: Select solutions

2004-01-20 Thread Guillermo Meyer
INFO: Jk running ID=0 time=0/30 config=C:\tomcat\jakarta-tomcat-4.1.27\conf\jk2.properties -Original Message- From: Guillermo Meyer [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 2:09 PM To: 'Struts Users Mailing List' Subject: [ANNOUNCE] Providers: Select solutions Hi: We

RE: [ANNOUNCE] Providers: Select solutions

2004-01-20 Thread Guillermo Meyer
INFO: Jk running ID=0 time=0/30 config=C:\tomcat\jakarta-tomcat-4.1.27\conf\jk2.properties -Original Message- From: Guillermo Meyer [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 2:09 PM To: 'Struts Users Mailing List' Subject: [ANNOUNCE] Providers: Select solutions Hi: We

Struts-Faces Xkins

2004-01-19 Thread Guillermo Meyer
be used with Struts to add skins to web applications. Cheers. Guillermo Meyer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[ANNOUNCE] Providers: Select solutions

2004-01-19 Thread Guillermo Meyer
it from http://sourceforge.net/project/showfiles.php?group_id=99364 and test it. It's very easy. Please, send me the comments and keep monitoring next releases. If you have suggestions send them and we can add the functionality. Cheers. Guillermo Meyer

RE: how to disable a html:option tag?

2004-01-17 Thread Guillermo Meyer
I found this solution searching in google: (http://www.experts-exchange.com/Web/Web_Languages/HTML/Q_20756860.html) [copy of that solution...] html form select onChange=if(this.options[this.selectedIndex].state=='disabled') this.selectedIndex=0 option value=1 state=enabledone/option option

RE: Session Problem

2004-01-16 Thread Guillermo Meyer
I had a similar problem. I have two browsers opened with diferent sessions (and logged on with different users to my app) in the same machine. In one browser, I click a button that opens a new window (window.open in javascript) and in this new window a submit is performed to an action of struts.

RE: Back and Refresh Button Effect

2004-01-15 Thread Guillermo Meyer
As ther is no way to disable browser's back button, I've made a tricky javascript that I place in my base template (or tile) that is as follows: script language=JavaScript !-- window.history.forward(window.history.length); //-- /script Additionally, I use tokens and pragma no cache, but

RE: How to enable Text formatting in Text area using struts html tagshtml:TextArea...

2004-01-15 Thread Guillermo Meyer
I saw an open source product to use in formating HTML WYSIWYG fashion: http://www.fredck.com/FCKeditor/ There are many other products like this. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Jueves, 15 de Enero de 2004 09:18 a.m. To: Struts Users Mailing List;

RE: Struts Tiles Double Post Issue

2004-01-14 Thread Guillermo Meyer
I had a similar problem (double submit to my action) but it was not a tiles problem. It happened when I was using my application with Netscape 7. The problem has a table tag problem, where I was using a background= attribute. -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED]

RE: Detecting PDF plugin on users browser

2004-01-10 Thread Guillermo Meyer
Have you seen http://www.dithered.com/javascript/acrobat_detect/ ? -Original Message- From: Prashanth.S [mailto:[EMAIL PROTECTED] Sent: Sábado, 10 de Enero de 2004 12:08 a.m. To: [EMAIL PROTECTED] Subject: Detecting PDF plugin on users browser Hi all, I need to detect weather pdf

RE: [OT] Eclipse/Tomcat WebappLoader

2004-01-09 Thread Guillermo Meyer
Try marking yout context with reloadable=false in server.xml or if using the eclipse plugin, uncheck the reloadable chechbox (project - Properties - Tomcat - General - marck this context as reloadable) In this way, when you change a class implementation, only this class is changed and Tomcat won't

RE: Tiles with XML and XSL

2004-01-07 Thread Guillermo Meyer
I did'n try it, but what about Struts-Cocoon? http://struts.sourceforge.net/struts-cocoon/index.html ? It doesn't actually support tiles, but there has to be a solution for this: Cannot be used side-by-side with the Tiles or Stxx plugin - This is a limitation of Struts as it doesn't allow request

RE: Dependent Drop Down Boxes

2004-01-07 Thread Guillermo Meyer
I've got a tag that works in this way: x71:comboselect name=tiposCtaMon metadata=idTipoCuenta,tipoCuenta,idMoneda,moneda html:select property=idCuenta/html:select html:select property=idMoneda/html:select /x71:comboselect tiposCtaMon is a collection of objects with properties

Filling select with options and getting description from ids: Providers

2004-01-05 Thread Guillermo Meyer
Using Struts tags, you do this for creating a select filled with options tags: html:select property=idDocument html:options collection=documents property=id labelProperty=descrip/ /html:select In this case, you should create a collection with beans for each document type (Passport,

RE: Design Questions

2004-01-03 Thread Guillermo Meyer
This is our experience using DispatchAction. I'll try to summarize: Our application uses DispatchAction. In fact, we have one action for each use case. All administration use cases (Operators admin, accounts admin, banks admin, etc) uses actions that extends from an AdministrationBaseAction. This

RE: Boolean checkbox in session form

2004-01-02 Thread Guillermo Meyer
by setting the corresponding form bean property before fowarding to the page. Craig McClanahan -Original Message- From: Guillermo Meyer [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 4:40 PM To: 'Struts Users Mailing List' Subject: RE: Boolean checkbox in session form

RE: Boolean checkbox in session form

2003-12-29 Thread Guillermo Meyer
To solve this problem, i created a new taglib for checkbox (extending BaseFieldTag), that creates a hidden input with a value of true|false and an auxiliary checkbox (named as propertyName + _chk) with a javascript handler that checks on checkbox value to set true or false to the hidden field, so

Navigation Stack

2003-12-24 Thread Guillermo Meyer
) and click back button to return wherever i was called. Thanks in advance. Guillermo Meyer System Engineer. EDS Argentina.