Recovery of data whith MySql

2006-12-19 Thread Nabil ALI-MOUSSA

Hi all,

I make a request in my dB MySql with a variable "date" :

PersistenceManager pm=JDOFactory.getInstance().getPM();
   pm.currentTransaction().begin();
   Collection c = (Collection) 
pm.newQuery(SuiviTraitement.class, 
"'date'=='"+date+"'").execute();   //(-mm-dd)

   pm.retrieveAll(c);
   pm.makeTransientAll(c);
   setListeTraitements(new ArrayList(c));   
   pm.currentTransaction().commit();


The recovery of data is made to a form JSp, I recover well the data 
seized in the variable "date", (under the same format that in my data base)
but I do not find anything, it does not have there correspondence 
somebody has an idea of problem ??


Thanks in Advance,

Regards,




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



to list contents repertoire

2006-12-14 Thread Nabil ALI-MOUSSA

Hi,
I would like to reach a repertory and to list his contents.
how can I make.
Thank you.
Nam.

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



Re: Formatting numbers in text field

2006-12-11 Thread Nabil ALI-MOUSSA

[EMAIL PROTECTED] a e'crit :

Have you tried the JSTL  tag?

  

-Original Message-
From: chamal desilva [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 07, 2006 3:35 AM

To: Struts Users Mailing List
Subject: RE: Formatting numbers in text field


Thanks Richard

But if do it uing getter methods I will have to write
a lot of getters since I have many properties.

Is n't there an another way. Can't we control the
formatting through a common place in Struts.

Best Regards,
Chamal.


--- "Gundersen, Richard" 
<[EMAIL PROTECTED]> wrote:




If you are using an ActionForm, you could modify
your getter to do the
formatting. Or, have an additional getter method
e.g.

Double amount;

Double getAmount() {
// bog standard method
}
String getFormattedAmount() {
// do some formatting
}

Then, in the form, do something like property="formattedAmount"/>


You can manipulate the setters in a similar way to
accept the formatted
text submitted by the form.

There are probably other ways for dealing with the
same problem in
DynaActionForms that I don't know of.

Hope this helps

Richard

-Original Message-
From: chamal desilva [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 05, 2006 8:52 AM
To: user@struts.apache.org
Subject: Formatting numbers in text field

Hi,

Is there a way display numbers in a text field in a
formatted way.

For example I want to display 100 as 1,000 in a text
field.

My form field attribute type is Double.


Thanking You,
Chamal.


 

  

__
__



Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail
beta.
http://new.mail.yahoo.com


  

-


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



  

__


This email has been scanned by the MessageLabs Email
Security System.
For more information please visit http://www.messagelabs.com/email

  

__


*** Disclaimer ***

This electronic communication is confidential and
for the exclusive use of the addressee. It may
contain private and confidential information. The information, 
attachments and opinions contained in this E-mail are those of its 
author only and do not necessarily represent those of 
  
London Scottish 


Bank PLC or any other members of the London Scottish
Group. 


If you are not the intended addressee, you are
prohibited from any disclosure, distribution or
further copying or use of this communication or the 
  
information in it 

or taking any action in reliance on it. If you have received this 
communication in error please notify the Information 
  

Security Manager


at [EMAIL PROTECTED] as soon as possible and
delete the message from all places in your computer
where it is stored. 


We utilise virus scanning software but we cannot
guarantee the security of electronic communications
and you are advised to check any attachments for
viruses. We do not accept liability for any loss
resulting from any corruption or alteration of data
or importation of any virus as a result of receiving
this electronic communication.

Replies to this E-mail may be monitored for
operational or business reasons. London Scottish
Bank PLC is regulated by the Financial Services
Authority.

  

__


This email has been scanned by the MessageLabs Email
Security System.


  

-


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


  


 
__

__
Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates. 
http://voice.yahoo.com


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





yes, but I do not manage to find good syntax, somebody can it help me?
  

thank you.


-
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 format a date

2006-12-07 Thread Nabil ALI-MOUSSA

Hi,

I have data dates that I would like to transform into format dates in my 
page JSP .

there is my code JSP :


   
Date de naissance
value="dateNaissancePorteur" />




somebody can help me, please, thank you.

nam.

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