Re: [OT] Database password

2004-03-11 Thread Lucas Gonzalez
If the problem is the user accesing the plain text file by typing the URL in
the browser...

a better solution would be to tell apache 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
 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 plain text.

 Have you got some best practices in this scenario? How are your Java
 Applications get connected to production databases and how is the
 database password protected?
 If we encrypt the password with 3DES, how should the key be protected?

 Cheers.
 Guillermo.


 NOTA DE CONFIDENCIALIDAD
 Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente
a las personas direccionadas en el mail y puede contener informacion (i)de
propiedad exclusiva de Interbanking S.A. o (ii) amparada por el secreto
profesional. Cualquier opinion en el contenido, es exclusiva de su autor y
no representa necesariamente la opinion de Interbanking S.A. El acceso no
autorizado, uso, reproduccion, o divulgacion esta prohibido. Interbanking
S.A no asumira responsabilidad ni obligacion legal alguna por cualquier
informacion incorrecta o alterada contenida en este mensaje. Si usted ha
recibido este mensaje por error, le rogamos tenga la amabilidad de
destruirlo inmediatamente junto con todas las copias del mismo, notificando
al remitente. No debera utilizar, revelar, distribuir, imprimir o copiar
este mensaje ni ninguna de sus partes si usted no es el destinatario. Muchas
gracias.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Database password

2004-03-11 Thread Lucas Gonzalez
I believe that it will be easier to define a proper security policy in your
production server than trying to hide the password or encrypt it.

Another option is to hard-code it into your source, but you will loose some
flexibility there.

Hope that helps
Lucas

- Original Message - 
From: Guillermo Meyer [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, March 11, 2004 3:59 PM
Subject: RE: [OT] Database password


Users cant access this file, but the file can be accessed by people that
is not from Information Security area (Seguridad Informática). The
password shouldnt be known neither by the application deployer, nor the
system administrator, but only by Information Security people.

-Original Message-
From: Lucas Gonzalez [mailto:[EMAIL PROTECTED]
Sent: Jueves, 11 de Marzo de 2004 03:56 p.m.
To: Struts Users Mailing List
Subject: Re: [OT] Database password


If the problem is the user accesing the plain text file by typing the
URL in the browser...

a better solution would be to tell apache 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 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 plain text.

 Have you got some best practices in this scenario? How are your Java

 Applications get connected to production databases and how is the
 database password protected? If we encrypt the password with 3DES, how

 should the key be protected?

 Cheers.
 Guillermo.


 NOTA DE CONFIDENCIALIDAD
 Este mensaje (y sus anexos) es confidencial, esta dirigido
 exclusivamente
a las personas direccionadas en el mail y puede contener informacion
(i)de propiedad exclusiva de Interbanking S.A. o (ii) amparada por el
secreto profesional. Cualquier opinion en el contenido, es exclusiva de
su autor y no representa necesariamente la opinion de Interbanking S.A.
El acceso no autorizado, uso, reproduccion, o divulgacion esta
prohibido. Interbanking S.A no asumira responsabilidad ni obligacion
legal alguna por cualquier informacion incorrecta o alterada contenida
en este mensaje. Si usted ha recibido este mensaje por error, le rogamos
tenga la amabilidad de destruirlo inmediatamente junto con todas las
copias del mismo, notificando al remitente. No debera utilizar, revelar,
distribuir, imprimir o copiar este mensaje ni ninguna de sus partes si
usted no es el destinatario. Muchas gracias.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

NOTA DE CONFIDENCIALIDAD
Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente a
las personas direccionadas en el mail y puede contener informacion (i)de
propiedad exclusiva de Interbanking S.A. o (ii) amparada por el secreto
profesional. Cualquier opinion en el contenido, es exclusiva de su autor y
no representa necesariamente la opinion de Interbanking S.A. El acceso no
autorizado, uso, reproduccion, o divulgacion esta prohibido. Interbanking
S.A no asumira responsabilidad ni obligacion legal alguna por cualquier
informacion incorrecta o alterada contenida en este mensaje. Si usted ha
recibido este mensaje por error, le rogamos tenga la amabilidad de
destruirlo inmediatamente junto con todas las copias del mismo, notificando
al remitente. No debera utilizar, revelar, distribuir, imprimir o copiar
este mensaje ni ninguna de sus partes si usted no es el destinatario. Muchas
gracias.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



html:multibox with DynaValidatorForm reset problem

2004-03-08 Thread Lucas Claude
Hello, 
As I'm using html:multibox in my JSP and need to reset the selected items,
I've extended the DynaValidatorForm and written a reset() method to do this.
Although the reset() method is called, the list of selected items is never
reseted. What did I missed? Thanks for help. 
It seems the list managed by the genericForm is not the same as the one
declared in Struts-config.xml : when the check boxes are checked, I recover
them in the Action but did not see them in reset method (the string list is
always empty.) Also , getSelectedItems and setSelectedItems are never called
I tried not to declare selectedItems in Struts-config.xml but an error tells
there is no getter method for property selectedItems. 
ANNEX : Struts-config.xml :
 form-bean name=genericForm type=project.transmissionGenericForm
dynamic=true
  form-property name=selectedItems type=java.lang.String[] /
 /form-bean
Action Form : 
public final class genericForm extends DynaValidatorForm
{
String[] selectedItems = {};

public String[] getSelectedItems()
{
return (this.selectedItems);
}

public void setSelectedItems(String[] _selectedItems)
{
this.selectedItems = _selectedItems;
}

public void reset(ActionMapping mapping, HttpServletRequest request)
{
   if ( this.selectedItems != null )
   {
  String[] empty = {};
  this.selectedItems = empty;
  }
}
JSP : (mutlibox are not attached to calls list !) 
logic:iterate name=genericForm id=calls property=calls
type=clients.ConnectionExt offset=offset length=length
  tr
%  String valueId = String.valueOf(calls.getId());%
td

.etc.
/td
td bgcolor=#C9DBF1 width=34
html:multibox name=genericForm property=selectedItems
value=%=valueId% /html:multibox
/td
tr
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT]Ant Script

2004-02-25 Thread Lucas Gonzalez
Hi,
I do not mean to be harsh or something, but a simple look at the doc
would have solved your problem
http://ant.apache.org/manual/CoreTasks/copy.html

It´s on the second sentence!
Copies a file or FileSet to a new file or directory. By default,
files are only copied if the source file is newer than the destination file

Best Regards,
Lucas


- Original Message - 
From: Ramadoss Chinnakuzhandai [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 25, 2004 2:50 PM
Subject: [OT]Ant Script


Hi,
  Using Ant Script is it possible to detect the latest modified file by
comparing the same file across two different locations and make them sync or
override the old file with the latest modified file and make sure that same
version of file exists on these two different location??


dirX/abc.jsp(timestamp as today)
ant script which will update abc.jsp under dirY with
abc.jsp under dirX
dirY/abc.jsp(timestamp as yesterday)

is there any ANT guru to solve my my brain's fuzzing

-Ramadoss





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Formating a float

2004-02-05 Thread Lucas Gonzalez
Hi,
I´ve been searching the list for any insight about this issue, but found no
real solutions.

I need to format a float that is shown using:

bean:write name=netTotal filter=true format=#,###.00/

but it does not works.
I´ve tried with many formats, but none seems to work. There is anything I am
doing wrong?

I wonder if anyone could point me some docs or anything that might help
=)

Thanks a lot!
Lucas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Formating a float

2004-02-05 Thread Lucas Gonzalez
Ben,
Thanks a lot!
that got me on the right way...

but now I am getting this error:

org.apache.jasper.JasperException: In formatNumber, value attribute can
not be parsed into java.lang.Number: ${invoice.totalBilling}

I´ve tried to find out why is this happening, but the property
invoice.totalBilling is correct since
 bean:write name=invoice property=totalBilling / works fine ( and
getTotalBilling returns a double just in case ).

Anyone has any clue about this error?

Thanks a lot
Lucas González



- Original Message - 
From: Ben Anderson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 05, 2004 12:40 PM
Subject: RE: Formating a float


 are you using jstl?
 fmt:formatNumber pattern=#,###.00 value=${netTotal}/

 From: Lucas Gonzalez [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Formating a float
 Date: Thu, 5 Feb 2004 11:55:18 -0300
 
 Hi,
 I´ve been searching the list for any insight about this issue, but found
no
 real solutions.
 
 I need to format a float that is shown using:
 
  bean:write name=netTotal filter=true format=#,###.00/
 
 but it does not works.
 I´ve tried with many formats, but none seems to work. There is anything I
 am
 doing wrong?
 
 I wonder if anyone could point me some docs or anything that might
help
 =)
 
 Thanks a lot!
 Lucas
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

 _
 Learn how to choose, serve, and enjoy wine at Wine @ MSN.
 http://wine.msn.com/


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Getting parameters from html:link

2004-01-14 Thread Lucas Gonzalez
Hi!
I´ve been trying to get aditional parameters that came in a html:link that
with no success.

the link is this one

html:link action=TrafficReport.do name=notBilled

and notBilled was aded to the request like this:
public Map getNotBilled() {
  Map map = new HashMap();
  map.put(type, NotBilled);
  return map;
}

the problem is that when I do a
request.getSession(true).getAttribute(type);
returns null always.

There´s anything i´m doing wrong? I´ve been reading the mailing lists, but
haven´t found something useful...

Best Regards,
Lucas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: configuration is frozen

2004-01-09 Thread Lucas Halim
Craig, thanks for the clarification. It helps.

 * We'd have to synchronize around all accesses to the
   HashMap instances inside the configuration beans that
   are accessed on every request, causing a performance hit.
I assume this means Struts 1.1 has significant performance improvement comparing to 
1.0 and it's
good to upgrade.

Lucas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



configuration is frozen

2004-01-08 Thread Lucas Halim
Hi,

I was upgrading Struts 1.0 to 1.1 and encounter a Configuration is Frozen illegal 
state exception
and I found out that the redirection code causes this exception.

  ActionForward success = mapping.findForward(success);
  success.setRedirect(true);

I aware that we can set an attribute of redirect=true in the forward tag in config 
file
(struts-config.xml) but what happen if we need to dynamically en/disable the 
redirection?

Thanks in advance.

Lucas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: configuration is frozen

2004-01-08 Thread Lucas Halim
Thanks Hubert.

Anybody knows why is it frozen at the first place? Is that just another mod in Struts 
1.1?

Lucas

 -Original Message-
 From: Hubert Rabago [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 08, 2004 11:05 AM
 To: Struts Users Mailing List
 Subject: Re: configuration is frozen
 
 You can try something like:
 
 ActionForward basis = mapping.findForward(success);
 ActionForward success = new ActionForward();
 success.setPath(basis.getPath());
 // also copy other relevant properties from basis
 success.setRedirect(true);
 return success;
 
 hth,
 Hubert
 
 --- Lucas Halim [EMAIL PROTECTED] wrote:
  Hi,
 
  I was upgrading Struts 1.0 to 1.1 and encounter a Configuration is Frozen
  illegal state exception
  and I found out that the redirection code causes this exception.
 
ActionForward success = mapping.findForward(success);
success.setRedirect(true);
 
  I aware that we can set an attribute of redirect=true in the forward tag in
  config file
  (struts-config.xml) but what happen if we need to dynamically en/disable the
  redirection?
 
  Thanks in advance.
 
  Lucas
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 __
 Do you Yahoo!?
 Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
 http://hotjobs.sweepstakes.yahoo.com/signingbonus
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: configuration is frozen

2004-01-08 Thread Lucas Halim
That makes sense.

 -Original Message-
 From: Hubert Rabago [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 08, 2004 11:49 AM
 To: Struts Users Mailing List
 Subject: RE: configuration is frozen
 
 There was a thread just recently discussing that.  You may be better off creating
 another instance anyway, because AFAIK mapping.findForward() returns the same
 instance for the same forward name, so even if you were able to modify that in an
 action call, you'd be modifying the forward being used in all requests, and you
 probably don't want that.
 
 --- Lucas Halim [EMAIL PROTECTED] wrote:
  Thanks Hubert.
 
  Anybody knows why is it frozen at the first place? Is that just another mod in
  Struts 1.1?
 
  Lucas
 
   -Original Message-
   From: Hubert Rabago [mailto:[EMAIL PROTECTED]
   Sent: Thursday, January 08, 2004 11:05 AM
   To: Struts Users Mailing List
   Subject: Re: configuration is frozen
  
   You can try something like:
  
   ActionForward basis = mapping.findForward(success);
   ActionForward success = new ActionForward();
   success.setPath(basis.getPath());
   // also copy other relevant properties from basis
   success.setRedirect(true);
   return success;
  
   hth,
   Hubert
  
   --- Lucas Halim [EMAIL PROTECTED] wrote:
Hi,
   
I was upgrading Struts 1.0 to 1.1 and encounter a Configuration is Frozen
illegal state exception
and I found out that the redirection code causes this exception.
   
  ActionForward success = mapping.findForward(success);
  success.setRedirect(true);
   
I aware that we can set an attribute of redirect=true in the forward tag
  in
config file
(struts-config.xml) but what happen if we need to dynamically en/disable
  the
redirection?
   
Thanks in advance.
   
Lucas
   
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
  
  
   __
   Do you Yahoo!?
   Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
   http://hotjobs.sweepstakes.yahoo.com/signingbonus
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 __
 Do you Yahoo!?
 Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
 http://hotjobs.sweepstakes.yahoo.com/signingbonus
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



bean:include problem

2004-01-08 Thread Lucas Gonzalez
Hi!
I´m new to struts and I have a small problem.
I want to include a jsp ( navBar.jsp ) that has something like:
snipet
html:link action=/Login.dobean:message
key=navigation.customerData//html:link
/snipet

So I did a little research, and tried using
bean:include forward=navBar id=navBar /
unfortunately I do not understand what the id attribute is for.
the docs state:
Specifies the name of the scripting variable (and associated page scope
attribute) that will be made available with the value of the specified web
application resource.

and still I do not understand what to do with it.

I can´t get it to work, it does not throw any error, but the navBar.jsp is
not included into the main page.

There´s anything I´m missing here?
I wondered if anyone could give me some help or maybe point to some
documentation that might be useful

btw... here is the globalForward just in case it might help to clarify my
problem.
forward name=navBar path=/pages/navBar.jsp/

Thanks a lot,
and Best Regards,

Lucas






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problems with Tomcat and nested:iterate + jsp:include

2003-12-11 Thread Lucas
I had experience something like this before... 

Try check out bug ID # 4724356 in Java Bug Parade.

http://developer.java.sun.com/developer/bugParade/bugs/4724356.html

I'm not sure if this is related but it sounds like it. May be Resin  WSAD parse JSP 
differently.

Lucas

 -Original Message-
 From: Rouven Gehm [mailto:[EMAIL PROTECTED]
 Sent: Thursday, December 11, 2003 12:18 AM
 To: Struts Users Mailing List
 Subject: Re: Problems with Tomcat and nested:iterate + jsp:include
 
 Well the WSAD build in version, which is 1.1beta2.
 
 But is it a Struts problem, cause why does it work with Resin  WSAD,
 but not with Tomcat ???
 
 Thanx
 
 Rouven
 
 - Original Message -
 From: Arron Bates [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, December 11, 2003 3:34 AM
 Subject: Re: Problems with Tomcat and nested:iterate + jsp:include
 
 
  Rouven,
 
  What Struts version are you running?
 
 
  Arron.
 
 
 
 
   Hi there,
  
   hope someone has a clue, why this doesn't work with Tomcat, but
   works with Resin :
  
   I have a tile, where i want to show a treelike menu based on the
   monkey example for the struts-nested taglibs, see my code at the
   bottom. On the Resin and WSAD server, the tree is shown correctly,
   but with tomcat (4.1.?  5.0.?), only the first children of each
   node is shown, and i don't know why, i assume that somehow tomcat
   only includes the treenode.jsp once, like on PHP where i can you
   have include  include_once. But where can i change this behavior of
   Tomcat ???
  
   Thanx in advance
  
   Rouven
  
   
   submenu.jsp :
   %@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
  
   %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
  
   %@ taglib uri=/WEB-INF/struts-nested.tld prefix=nested %
  
   nested:form action=/treechange.do
  
   nested:nest property=rootNode 
  
   jsp:include page=treenode.jsp /
  
   /nested:nest
  
   /nested:form
  
   ---
  
   treenode.jsp :
  
   ---
  
   [EMAIL PROTECTED] contentType=text/html%
  
   %@ taglib uri=/WEB-INF/struts-nested.tld prefix=nested %
  
   %@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
  
   %-- monkey magic goes here --%
  
   nested:root
  
   img src=%=request.getContextPath()%/pix/spacer.gif
   width=nested:write property=nodeIndent / height=1
  
   nested:equal property=showChildren value=true
  
   nested:notEqual property=level value=0
  
   nested:image src=pix/km_minus.gif property=toggle /
  
   nested:equal property=active value=true
  
   nested:link styleClass=active page=/goneu.do paramId=method
  paramProperty=method
  
   nested:write filter=false property=nodeName /
  
   /nested:link
  
   /nested:equal
  
   nested:equal property=active value=false
  
   nested:link styleClass=notactive page=/goneu.do
   paramId=method paramProperty=method
  
   nested:write filter=false property=nodeName /
  
   /nested:link
  
   /nested:equal
  
   /nested:notEqual
  
   br
  
   nested:iterate property=children
  
   jsp:include page=treenode.jsp /
  
   /nested:iterate
  
   /nested:equal
  
   nested:equal property=showChildren value=false
  
   nested:equal property=hasChildren value=true
  
   nested:image src=pix/km_plus.gif property=toggle /
  
   /nested:equal
  
   nested:equal property=hasChildren value=false
  
   img src=%=request.getContextPath()%/pix/km_empty.gif
  
   /nested:equal
  
   nested:equal property=active value=true
  
   nested:link styleClass=active page=/goneu.do paramId=method
  paramProperty=method
  
   nested:write filter=false property=nodeName /
  
   /nested:link
  
   /nested:equal
  
   nested:equal property=active value=false
  
   nested:link styleClass=notactive page=/goneu.do
   paramId=method paramProperty=method
  
   nested:write filter=false property=nodeName /
  
   /nested:link
  
   /nested:equal
  
   br
  
   /nested:equal
  
   /nested:root
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



1.0 to 1.1

2003-12-10 Thread Lucas
Dear all,

I'm in the process of upgrading a pretty large application from Struts 1.0 to 1.1. Do 
you know any
documentation/guidelines that I can attend to in order to assist me in the process?

Thanks a bunch.

Lucas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: 1.0 to 1.1

2003-12-10 Thread Lucas
Thanks! Any online resources?

Lucas


From: Marcus Peixoto [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 10, 2003 2:55 PM
To: Struts Users Mailing List
Subject: Re: 1.0 to 1.1

Struts in Action by Ted Husted Chapter 16 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



html:option dependant on prior html:option

2003-05-30 Thread Michael Lucas
	Is there a way to make a pull down menu using the Struts html:option tag 
dependant upon another pull down menu on the same page? I want to let a 
user only see a list of choices based on what they chose previously. If 
they leave the first choice blank, then the next pull down should show no 
choices. Any help would be appreciated. Thanks.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: html:option dependant on prior html:option

2003-05-30 Thread Michael Lucas
Thanks for the help, Matt!  That was exactly what I needed.

At 08:32 AM 5/29/2003, you wrote:
   Is there a way to make a pull down menu using the
 Struts html:option tag
 dependant upon another pull down menu on the same page?
Unless you want to go back to the server every time they change the first
drop-down list (not recommended) then you'll need to use Javascript. I have
a library to do exactly this:
http://www.mattkruse.com/javascript/dynamicoptionlist/
This is #2 on my list of javascript libs I want to convert into struts tags,
so hopefully in the near future creating dependent lists will be much
simpler :)
Matt Kruse

Michael Lucas
California National Primate Research Center
Data Services Programmer
University of California, Davis
One Shields Avenue
Davis, CA 95616
(530) 752-3359
[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


FW: Problem while accessing a JSP page

2003-03-24 Thread Lucas Claude
 I implement a struts WEB application and I have an error while accessing
 the following JSP index page :
 
 %@ taglib uri=/WEB-INF/tld/struts-logic.tld prefix=logic %
 logic:forward name=welcome/
 
 Error : 
 org.apache.jasper.compiler.CompileException: /index.jsp(4,0) Unable to
 load class org.apache.struts.taglib.logic.ForwardTag
 
 However, the file struts.jar (containing the forward tag class) is present
 in the WEB-INF/lib directory of my web app.
 
 What I am missing?
 
 Thanks by advance,
 Claude
 
 
 --
 -- 
 As of February 12th, 2003 Thomson unifies its email addresses on a
 worldwide basis. 
 Please note my new email address: [EMAIL PROTECTED] 
 
 http://www.thomson.net/ 
 


RE: Problem while accessing a JSP page

2003-03-24 Thread Lucas Claude
In the WEB-INF directory of my web app.

I also defined a redirection in this web.xml file : 
  taglib
taglib-uri/WEB-INF/tld/struts-logic.tld/taglib-uri
taglib-location/WEB-INF/tld/struts-logic.tld/taglib-location
  /taglib

Thanks
Claude




As of February 12th, 2003 Thomson unifies its email addresses on a worldwide
basis. 
Please note my new email address: [EMAIL PROTECTED] 

http://www.thomson.net/ 

Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 24 March 2003 17:38
To: [EMAIL PROTECTED]
Subject: RE: Problem while accessing a JSP page


Where is the web.xml?

 
  _  

Thank You
 
Mick Knutson
 
Sr. Designer - Project Trust
aUBS AG, Financial - Zürich
Office: +41 (0)1/234.42.75
Internal: 48194
Mobile: 079.726.14.26
  _  



-Original Message-
From: Lucas Claude [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 5:31 PM
To: '[EMAIL PROTECTED]'
Subject: FW: Problem while accessing a JSP page


 I implement a struts WEB application and I have an error while accessing
 the following JSP index page :
 
 %@ taglib uri=/WEB-INF/tld/struts-logic.tld prefix=logic %
 logic:forward name=welcome/
 
 Error : 
 org.apache.jasper.compiler.CompileException: /index.jsp(4,0) Unable to
 load class org.apache.struts.taglib.logic.ForwardTag
 
 However, the file struts.jar (containing the forward tag class) is present
 in the WEB-INF/lib directory of my web app.
 
 What I am missing?
 
 Thanks by advance,
 Claude
 
 
 --
 -- 
 As of February 12th, 2003 Thomson unifies its email addresses on a
 worldwide basis. 
 Please note my new email address: [EMAIL PROTECTED] 
 
 http://www.thomson.net/ 
 

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Help please in ApplicationResources

2002-10-31 Thread Lucas
Hi Yann,

IMHO, from my understanding, the idea of having message resources bundle
in a separate text file is so that we do not have to change any codes
(JSP/Java) which means easier maintenance and more flexibility. So I
would suggest using a text file for a resource bundle and put it
anywhere below your WEB-INF/classes/dir1/dir2 as somefilename.properties
(I would put all the resources in the same directory) and then you can
access using
bean:message key=somekeyname bundle=dir1.dir2.somefilename/ (note
that the .properties extension is not needed).

If you insist on using JSP then you should just use scriplet variables
like
%
String emailProtocol = POP3
%

and call it using

%= emailProtocol %

Do I get your question right?

Hope it helps,

Lucas



 -Original Message-
 From: Yann Verlynde [mailto:yverlynde;oxade.com]
 Sent: Wednesday, October 30, 2002 11:58 PM
 To: Struts
 Subject: Help please in ApplicationResources
 
 If I want to have a message in a JSP, I use this code:
 bean:message key=email.protocol
bundle=APPLICATION_CONFIGURATION/
 
 But I want to have all the messages resources in my JSP,
 How can I do that please?
 
 Thanks in advance



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Problem with struts

2002-09-05 Thread Masllorens Sibils, Lucas

Hello, 

I have a problem with Struts Validator. 
Last month, I read that Validator could be 
used from outside Struts but now that the 
product is intergated with struts... I don´t 
know. 

I would like to use it in a Swing application. 
Is it posible? 

I try to use it like this: 

RegistrationForm bean = new RegistrationForm(); 
Vector lErrors  = new Vector(); 
ValidatorResources resources = 
ValidatorResourcesInitializer.initializevalidation.xml); 
Validator validator = new Validator(resources, registrationForm); 
validator.addResource(validator.BEAN_KEY, bean); 
validator.addResource(java.util.List, lErrors); 
validator.validate(); 
System.out.println(lErrors); 

It doesn´t work because lError is empty. 
...but it doesn´t throw any exception. 

Can you help me. 
I not. There is any other product for javabean validation? 


***

DISCLAIMER: Este mensaje contiene información propietaria 
de la cual parte o toda puede contener información confidencial
o protegida legalmente. Esta exclusivamente destinado al 
usuario de destino.
Si, por un error de envio o transmisión, ha recibido este mensaje 
y usted no es el destinatario del mismo, por favor, notifique
de este hecho al remitente.
Si no es el destinatario final de este mensaje no debe usar, 
informar, distribuir, imprimir, copiar o difundir este mensaje 
bajo ningún medio.

-

DISCLAIMER: This e-mail contains propietary information some 
or all of which may be legally privileged. It is for the intended 
recipient only. If an addressing or transmission error has 
misdirected this e-mail, please notify the author by replying to
this e-mail. If you are not the intended recipient you must not use,
disclose, distribute, copy, print or rely on this e-mail.

***

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




java.io.IOException: The system cannot find the path specified

2002-06-24 Thread Lucas Fragomeni


Hi, i'm sorry but I think this is a bit stuped. But i'm stucked on it:

When i try do make and upload I get this error.

java.io.IOException: The system cannot find the path specified
at java.io.Win32FileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1159)
at java.io.File.createTempFile(File.java:1244)
at 
org.apache.struts.upload.MultipartIterator.createLocalFile(MultipartIterator.java:485)
at 
org.apache.struts.upload.MultipartIterator.getNextElement(MultipartIterator.java:217)
at 
org.apache.struts.upload.DiskMultipartRequestHandler.handleRequest(DiskMultipartRequestHandler.java:76)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:735)
at 
org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:2061)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:115)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:83)
at com.caucho.server.http.Invocation.service(Invocation.java:291)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:238)
at 
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:157)
at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
at java.lang.Thread.run(Thread.java:484)

I've already tried setting the system property 'java.io.tmpdir', i've 
alreary tried to set the init-parmeter of the ActionServlet 'tempDir' and 
i've changed the general system temp dir. None of those tries worked.
So, please, give me a light!
Thanks.

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: html:radio problems

2001-11-30 Thread Mimpin Halim [Lucas]

Hi Chris,

Make sure you have getFlag() and setFlag() methods in your User bean. The
error says that it can't find the getFlag() method. In the example you gave
for property=name, I'm sure you have getName() and setName methods in your
User bean.

Hope this helps,

Lucas


-Original Message-
From: Christopher Book [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 30, 2001 11:36 AM
To: '[EMAIL PROTECTED]'
Subject: html:radio problems


Hi,

I'm having a problem using the html:radio tag using another bean.

For my text fields, I define an object bean called User and set
the value
using:
html:text name=User property=name/

This sets the value of the text field to whatever the getName()
method of my
form returns.

When I try to do the same thing with my radio buttons:
html:radio name=User property=flag value=TRUE/ true
html:radio name=User property=flag value=FALSE/ false

I get the following exception:
javax.servlet.ServletException: No getter method available for
property flag
for bean under name User

I can use text boxes, selects, and textareas using this method
and they all
work properly, so why does this not work with radio buttons?

Chris Book

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Escaped HTML characters in bean:write/

2001-11-27 Thread Mimpin Halim [Lucas]

sure chris,

there is an attribute that says filter just put filter=false and you're
all set.

lucas

-Original Message-
From: Chris Birch [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 27, 2001 2:29 PM
To: [EMAIL PROTECTED]
Subject: Escaped HTML characters in bean:write/


Hi,

I have a simple CRUD struts application which stores text in a
database.  The text stored is often something like:

Struts is a bbrilliant/b framework

The idea is that simple html formatting can be applied to the text when
it is output in a JSP.

The text above gets stored in the DB without any problems, selects on
the database show the information in there is exactly as was typed in,
also, simple System.out.println on a ResultSet of that data show it as
above.  However, in my JSP I output the text from a bean property using
bean:write / and in the html source I see that my  and  have become
lt; gt;  I actually want the markup to work as markup and not be
escaped like this.  Is it bean:write thats doing this, if so, is there a
way to turn it off?

Regards,
Chris



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Redirecting under TOMCAT-UNIX

2001-10-02 Thread Mimpin Halim [Lucas]

Hi everyone,

I'm wondering if any of you experience the same problem with me when trying
to do redirection under TOMCAT-UNIX. I keep getting the page cannot be
displayed error when i do the ActionForward.setSetRedirect(true) and return
the ActionForward object to from the perform().

Is there any other setting or alternative that I can do to do redirection
under struts?

Thanks guys,

Mimpin Halim
IT Specialist
Management Information System
Information Technology Services
UH Manoa




logic:iterator indexId?

2001-07-10 Thread Mimpin Halim [Lucas]

Hi Everyone,

Anybody knows how to use the indexId in the logic:iterator tag?
Will it give us indexed html form element?

Please hell...

Thanks,

Lucas