Miguel Flecha

Ranch Hand
+ Follow
since Jun 23, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Miguel Flecha

Hi all.
I'm trying to use a DynaActionForm, as I want to send an array of Strings with it. When I get it, the array is empty. What am I doing wrong? How do I have to configure struts-config.xml?
Regards
Miguel
18 years ago
It works perfect. Thank you.
Can I make you another question about DB?
I am using MySQL and I want to store a password encrypted with Java Crypto API. I have used Varchar and it doesn't store it correctly, what type do I have to do?
Thanks
Ah... ok ok, I didn't call that 'wild card'
I'll have a try
But do I have to search for 'a*', for example??
or is it another way

I used this and didn't work

session.createQuery("from IbtUsuarios as u where u.login LIKE '"+inicial+"*'").list()
session.createQuery("from IbtUsuarios as u where u.login%'"+inicial+"*'")

this way?
Hi all. I want to do a select sentence that returns me all rows whose "APELLIDO" field starts with a specific letter that I have as parameter
How can I do that?
Regards
Miguel
I forgot! "candidatos" and "elegidos" are defined in the form bean as array of Integer
18 years ago
Hi all.
I have the following problem.
I have a form and 2 of its fields are always null. I have inserted log messages in the set methods of the form bean and the program never enters there. With the rest of the fields I have no problem.

This is the JSP code of those fields, which are 2 lists and I move elements between them, using Javascript.

<bean:message key="asignar.candidatos"/><br/>
<html:select property="candidatos" multiple="multiple" >
<html ptions collection="candidatosBeans" property="id" labelProperty="descripcion"/>
</html:select>

<td align="center">
<bean:message key="asignar.elegidos"/><br/>
<html:select property="elegidos" multiple="multiple"
</html:select>
</td>
18 years ago
Hi Paval!!
I haven't answered before because I just came from holidays. Thanks for your help!
The problem I have is that prefix = getServletContext().getRealPath("/"); returns null. If I set the prefix this way : prefix= "F:\ibt\logs\" it works perfectly
What am I doing wrong?
Regards
Miguel
Thanks
18 years ago
Hi all!! I have the next code, where estados is a vector of beans Estado, whose properties are id and descripcion (both String).
My question is what type is the value submitted in select's property estado, Estado or String.

<html:select property="estado">
<html ptions collection="estados" property="id" labelProperty="descripcion"/>
</html:select>

Thanks
Miguel
18 years ago
it is a table with form elements, and one of them is an array containing the information that is not submitting correctly
the second table is in the form and within form tags
so it is not a problem of javascript??
Hi all. I'm using this Javascript code to move elementes among 2 tables.
The problem is that I want to submit the content of the second table, which is an array, but when I get the content of the form that field is null.
What am I doing wrong? This is the code...


<script language="JavaScript">
var proyecto;
var truncado=0;
function openWindow() {
var url = "/defaultroot/buscarproyecto.do";
window.open(url,'buscar_proyecto','width=400,height=400,top=134,left=262,resizable=1,scrollbars=1');
}
function actualizar(){
proyecto=notificar.projectId.value;
var url="/defaultroot/prenotificar.do?projectId="+proyecto;
window.navigate(url);
}
function codigoSeleccionado(codigo){
if(codigo!=""){
if(document.notificar.projectId.options[0]!=""){
truncado=1;
}

if(truncado==0){var opciones=document.notificar.projectId.options;
document.notificar.projectId.options[0].text=codigo;
document.notificar.projectId.options[0].value=codigo;
for (i = 1; i < opciones.length ; i++){
if ((opciones[i].value==codigo)&&(i!= (opciones.length-1))){
for (j = i;j<opciones.length;j++){document.notificar.projectId.options[j]=opciones[j+1];
truncado=1;
}
break;
}
}
document.notificar.projectId.options[opciones.length-1]=null;
document.notificar.projectId.options.length--;
}else{
var opcion=document.notificar.projectId.options[0];
var opciones=document.notificar.projectId.options;
document.notificar.projectId.options[0].text=codigo;
document.notificar.projectId.options[0].value=codigo;
for (i = 1; i < opciones.length ; i++){
if(opciones[i].value==codigo){
document.notificar.projectId.options[i]=opcion;
break;
}
}
}
}
}

</script>

Thanks!

[ Tried to add code tags but it made it look worse - Eric ]
[ August 25, 2004: Message edited by: Eric Pascarello ]