Handling Date objects in ActionForm gracefully

2004-03-25 Thread Sreenivasa Chadalavada
All,

We are facing a problem when we define java.util.Date field in ActionForm.

Is there any way to override the default behavior provided by Struts?

I very much appreciate your help!!

Thanks and Regards,
Sree/-



This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.



RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Sreenivasa Chadalavada
The date fields in jsp are not mandatory. So there will be null strings in 
the request/session. 

As I understand, Struts tries to create Date object out of the null string 
and chokes on it.

I would like to know if my understanding is correct ?

If this is true are there any solutions for the problem?

Thanks and Regards,
Sree/-



This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.






Robert Taylor rtaylor
@mulework.com
03/25/2004 02:35 PM
Please respond to Struts Users Mailing List

 
To: Struts Users Mailing List [EMAIL PROTECTED]
cc: 
Subject:RE: Handling Date objects in ActionForm gracefully


What's the problem? 

robert

 -Original Message-
 From: Sreenivasa Chadalavada [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 25, 2004 2:28 PM
 To: Struts Users Mailing List
 Subject: Handling Date objects in ActionForm gracefully
 
 
 All,
 
 We are facing a problem when we define java.util.Date field in 
ActionForm.
 
 Is there any way to override the default behavior provided by Struts?
 
 I very much appreciate your help!!
 
 Thanks and Regards,
 Sree/-
 
 
 

 This is a PRIVATE message. If you are not the intended recipient, please 

 delete without copying and kindly advise us by e-mail of the mistake in 
 delivery. NOTE: Regardless of content, this e-mail shall not operate to 
 bind CSC to any order or other contract unless pursuant to explicit 
 written agreement or government initiative expressly permitting the use 
of 
 e-mail for such purpose.
 

 

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





Re: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Sreenivasa Chadalavada
I am thinking of overriding the struts default mechanism.
Override the default behavior of org.apache.commons.beanutils.ConvertUtils 
by registering
a valid converter...

I want to know if the above is possible..

Thanks and Regards,
Sree/-



This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.






Mark Lowe mark.lowe
@boxstuff.com
03/25/2004 02:36 PM
Please respond to Struts Users Mailing List

 
To: Struts Users Mailing List [EMAIL PROTECTED]
cc: 
Subject:Re: Handling Date objects in ActionForm gracefully


Have it as a string and convert it to a date or calendar when you pass 
it back to the model.


On 25 Mar 2004, at 20:28, Sreenivasa Chadalavada wrote:

 All,

 We are facing a problem when we define java.util.Date field in 
 ActionForm.

 Is there any way to override the default behavior provided by Struts?

 I very much appreciate your help!!

 Thanks and Regards,
 Sree/-


 --- 
 -
 This is a PRIVATE message. If you are not the intended recipient, 
 please
 delete without copying and kindly advise us by e-mail of the mistake in
 delivery. NOTE: Regardless of content, this e-mail shall not operate to
 bind CSC to any order or other contract unless pursuant to explicit
 written agreement or government initiative expressly permitting the 
 use of
 e-mail for such purpose.
 --- 
 -


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





RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Sreenivasa Chadalavada
Do you know if the behavior can be overridden?

Thanks and Regards,
Sree/-



This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.






Takhar, Sandeep Sandeep.Takhar
@CIBC.ca
03/25/2004 02:53 PM
Please respond to Struts Users Mailing List

 
To: Struts Users Mailing List [EMAIL PROTECTED]
cc: 
Subject:RE: Handling Date objects in ActionForm gracefully


yes it is.  It should be done once per classloader.

When struts populates the dyna form it is string array to string array 
conversion and uses 
populate method of BeanUtils which eventually calls the converters.

sandeep

-Original Message-
From: Sreenivasa Chadalavada [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 2:47 PM
To: Struts Users Mailing List
Subject: Re: Handling Date objects in ActionForm gracefully


I am thinking of overriding the struts default mechanism.
Override the default behavior of org.apache.commons.beanutils.ConvertUtils 

by registering
a valid converter...

I want to know if the above is possible..

Thanks and Regards,
Sree/-



This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 

e-mail for such purpose.






Mark Lowe mark.lowe
@boxstuff.com
03/25/2004 02:36 PM
Please respond to Struts Users Mailing List

 
To: Struts Users Mailing List 
[EMAIL PROTECTED]
cc: 
Subject:Re: Handling Date objects in ActionForm gracefully


Have it as a string and convert it to a date or calendar when you pass 
it back to the model.


On 25 Mar 2004, at 20:28, Sreenivasa Chadalavada wrote:

 All,

 We are facing a problem when we define java.util.Date field in 
 ActionForm.

 Is there any way to override the default behavior provided by Struts?

 I very much appreciate your help!!

 Thanks and Regards,
 Sree/-


 --- 
 -
 This is a PRIVATE message. If you are not the intended recipient, 
 please
 delete without copying and kindly advise us by e-mail of the mistake in
 delivery. NOTE: Regardless of content, this e-mail shall not operate to
 bind CSC to any order or other contract unless pursuant to explicit
 written agreement or government initiative expressly permitting the 
 use of
 e-mail for such purpose.
 --- 
 -


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





Generating Tiles tags and Struts tags from with in another Custom Tag

2004-03-23 Thread Sreenivasa Chadalavada
All,

I wrote a custom tag that generates JSP code that includes struts tags and 
tiles tags.

They are not getting interpreted by the JSP Container. 

Can you please let me know if it is possible? If it is possible are there 
any examples that
help me understand the life cycle?

Thanks and Regards,
Sree/-



This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.



RE: Generating Tiles tags and Struts tags from with in another Custom Tag

2004-03-23 Thread Sreenivasa Chadalavada
Shirish,

Thanks for answering the e-mail.

One reason I would like to generate Struts, Tiles tags is to implement 
composition.

Take an example of generating a Table structure. I would like to use 
Struts and Tiles because
of all the niceties.  I hope this example makes sense?

If what you are saying is true, then I should follow some of the 
techniques you suggested to solve
the problem.

Thanks and Regards,
Sree/-



This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.






shirishchandra.sakhare
@ubs.com
03/23/2004 09:47 AM
Please respond to Struts Users Mailing List

 
To: [EMAIL PROTECTED]
cc: 
Subject:RE: Generating Tiles tags and Struts tags from with in another 
Custom Tag


If you are writing a tag,The output generated by your tag should be valid 
html.

Because the life cycle is as follows.

1--The ServletContainer gets a request for a particular page(In this case 
your .jsp page)
2--The request being for a JSP page, the servlet container decides to 
pass it on to JspServlet/any helper class which knows how to interpret jsp 
code(Call methods on the Actions(Tags) if there are any tags included etc. 
),I am also not very clear about this part, in the sense that if there is 
any restriction on ServletCOntainers about how to handle the 
interpretation of jsps.

3--Any output that the tags generate will written to the 
HTTPServletResponse object. which means it has to be valid HTML if the 
browser has to display it properly.

In your case, as you can see, the tags you wrote are again generating jsp 
which will be directly going to the client Browser.

May be what you can do is to write a temporary jsp file and then redirect 
to that temporary jsp file.

But why you have to go this way?It looks too contrived/complicated to me.

Why not just spit out proper HTML from your tags?
And the only purpose is to reuse the existing struts/Tiles tags,why not 
extend them, overriding where ever appropriate?

HTH.

Regards,
Shirish

-Original Message-
From: Sreenivasa Chadalavada [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 3:22 PM
To: Struts Users Mailing List
Subject: Generating Tiles tags and Struts tags from with in another
Custom Tag


All,

I wrote a custom tag that generates JSP code that includes struts tags and 

tiles tags.

They are not getting interpreted by the JSP Container. 

Can you please let me know if it is possible? If it is possible are there 
any examples that
help me understand the life cycle?

Thanks and Regards,
Sree/-



This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 

e-mail for such purpose.


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





Analysis and Design using RUP/UML for Struts/HTML/Java Script application

2004-02-19 Thread Sreenivasa Chadalavada
All,

We will be working on a big project that uses Struts/HTML/Java Script as 
the front end.

We use Rational Rose to support analysis and design activities.

From your experience (using Struts) what artifacts/deliverables can be 
used to document
the Presentation Tier? How do we depict the design in Struts? Are there 
any tools that help
design the system?

Please let me know if you know of a SDLC process that addresses 
analysis/design of Struts
based application.

Thanks and Regards,
Sree/-



This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.



How much of java script is preferred in Struts based application?

2004-02-19 Thread Sreenivasa Chadalavada
All,

I heard that most Struts based applications make a round trip for 
conditional dynamic content generation and Validation.

In your experience, can you please let me know what are the advantages and 
disadvantages of
each of the approaches.

I very much appreciate your help in this regard.

Thanks and Regards,
Sree/-



This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.



RE: Analysis and Design using RUP/UML for Struts/HTML/Java Script application

2004-02-19 Thread Sreenivasa Chadalavada
Darrin,

Thanks for the information. I will look into it.

Regards,
Sree/-





Smith, Darrin Darrin.Smith
@OraMetrix.com
02/19/2004 09:23 AM
Please respond to Struts Users Mailing List

 
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
cc: 
Subject:RE: Analysis and Design using RUP/UML for Struts/HTML/Java 
Script 
application


You will find the following useful:

The Struts Framework by Sue Spielman
Developing Enterprise Java Applications With J2EE and UML by Khawar Ahmed
and Cary Umrysh


-Original Message-
From: Sreenivasa Chadalavada [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 19, 2004 8:17 AM
To: Struts Users Mailing List
Subject: Analysis and Design using RUP/UML for Struts/HTML/Java Script
application 


All,

We will be working on a big project that uses Struts/HTML/Java Script as 
the front end.

We use Rational Rose to support analysis and design activities.

From your experience (using Struts) what artifacts/deliverables can be 
used to document
the Presentation Tier? How do we depict the design in Struts? Are there 
any tools that help
design the system?

Please let me know if you know of a SDLC process that addresses 
analysis/design of Struts
based application.

Thanks and Regards,
Sree/-




This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 

e-mail for such purpose.



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





Struts Module switching example

2004-02-12 Thread Sreenivasa Chadalavada
All,

I am trying to switch from 'navbar' module to 'patient' module in my 
application. 

The following is the definition of the URL. 

forward name=patient path=/patient/main.do?main 
contextRelative=true redirect=true/ 

From with in navbar module I am trying to perform the forward. 

It is not working. Can some one shed some light on this topic? Is there a 
detailed documentations on how to work with struts modules? 

Your help is very much appreciated. 

Thanks and Regards, Sree/-