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
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
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
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
. 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
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.
-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
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
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 =
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
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
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
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
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
();
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
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
[/]
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
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
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
: 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
' (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
: 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
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
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
. 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
;
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
(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
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.
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
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
-
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
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
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
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,
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,
+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
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:
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
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
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
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
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
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
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
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
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]
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
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
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.
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
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;
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]
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
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
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
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
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,
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
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
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
) and click back button to return wherever i was called.
Thanks in advance.
Guillermo Meyer
System Engineer.
EDS Argentina.
61 matches
Mail list logo