RE: Date format

2003-08-01 Thread Tamia Ramírez
with type is your date, java.sql or java.util?

-Original Message-
From: Silverio Wagner Silva(Secorp) [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 10:27 AM
To: 'Struts Users Mailing List'
Subject: Date format


A beginner question:

When my date field is shown in my jsp it appears in a different way,
although my Locale object is correctly set.

Anyone knows how to solve this problem?

Thanks.




-
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: Date format

2003-08-01 Thread Tamia Ramírez
THIS CODE BECOME A JAVA.UTIL.DATE WITH FORMAT: dd/MM/ to a date MMM dd,
:

SimpleDateFormat dateFormatter = new SimpleDateFormat(MMM dd, );
String new_Date = dateFormatter.format(myDate);
reservacion.setFechaSalString(new_Date);

you may need to import java.text first.

I hope it can help to you too... it works for me.

-Original Message-
From: Silverio Wagner Silva(Secorp) [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 10:33 AM
To: 'Struts Users Mailing List'
Subject: RES: Date format


java.util.Date

-Mensagem original-
De: Tamia Ramírez [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 1 de agosto de 2003 13:33
Para: Struts Users Mailing List
Assunto: RE: Date format

with type is your date, java.sql or java.util?

-Original Message-
From: Silverio Wagner Silva(Secorp) [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 10:27 AM
To: 'Struts Users Mailing List'
Subject: Date format


A beginner question:

When my date field is shown in my jsp it appears in a different way,
although my Locale object is correctly set.

Anyone knows how to solve this problem?

Thanks.




-
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]



RE: 2 different submits on a single JSP - how?

2003-08-01 Thread Tamia Ramírez
Give a different value to every submit... in your form make just one submit
and ask for its value, so you can know with one they chosse:

input type=submit value=Login
input type=submit value=request

-Original Message-
From: yan [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 11:18 AM
To: [EMAIL PROTECTED]
Subject: 2 different submits on a single JSP - how?


Not sure how best to set this up and indeed, if it is possible so any advice
would be appreciated.



I have an ActionForm called 'RegisterForm' that allows a new user to enter
their details (name, email, school name and school address) or, an existing
registered user to edit these fields.



Alongside the 'school address' field I have a submit button, 'Find School'
that allows a user to enter part of the school name or address and hit this
'FindSchool' button which then goes off to another page (selectSchool.jsp)
that displays a list of matching schools.  The user then clicks on their
chosen school on selectSchool.jsp and is then returned to the RegisterForm
with the 'school name' and 'school address' fields populated.



The user then hits another submit (either 'Register Me' or 'Update Details')
button at the bottom of the page which saves the user details.



My query is this: I am aware that I have 2 html: form action =someAction
's, one for the 'Find School' submit button and one for the 'Register
Me/Update Details' submit button.



I have only seen examples where you have a single html: form action =
someAction tag on a jsp.  Any advice or examples on how I can do it with
the 2 actions that I need on my one JSP



Thanks in advance

yan


KickStartESolutions.com
[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]