Suman Chaudhuri

Greenhorn
+ Follow
since Jun 01, 2004
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 Suman Chaudhuri

What type of security features are provided in Spring ?

a) Is there support for roles and principals ?
b) If I want to restrict a component in that it can be used by a certain role (eg, only Managers), how is this achieved in Spring ?
Can someone tell me what transaction support Spring provides ? How do I :

a) programmatically start/stop transactions in Spring ?
b) start/stop transactions using deployment descriptors ?
Someone in another thread of mine said that they use Weblogic for JMS. Is this because there is no support for messaging in Spring ? Or is it that maybe Weblogic/Websphere have advanced messaging features yet to be developed in the Spring framework ?
Does Spring provide Workflow support ? If so, what does it use ? And is there any GUI that currently facilitates the workflow development ?

Also, is there support for ebXML or RosettaNet in Spring ?
Has anyone used Spring together with Weblogic 8.1 ? Weblogic 8.1 comes with their proprietary Pageflow technology, which is based on Struts. If I chose to use Spring framework for presentation, is that possible ? Has anyone done so successfully ?

Suman
Do you see Spring becoming as mainstream as Struts ? I wonder is Struts is going to become "legacy" code in a few years, with Spring and Tapestry and Echo and other open source projects being the new generation of frameworks ? Or do you think Struts is here to stay ?

I understand that Spring offers a lot more than what Struts does, but do you foresee people porting over to Spring presentation from Struts ?

How much acceptance has Spring had in the past 1 year and where do you think it is headed ?
I know that Spring provides XML files to tie the components together. As inevitably happens, developers start off hand coding all the XML (EJB deployment descriptors anyone ?), and then tools start to emerge that make life easier.

My question is, are there tools currently available that simplify the creation of the XML files ?
Hi all,

I am a newcomer to Spring. Being a pretty advanced Struts developer, how hard is it to learn Spring ? I have not read the book Pro Spring yet, but does the book cover the basics as well as advanced level topics ?

Also, how does Tapestry compare to Spring ?

Does either integrate with JSF ?
Hi,

If I have an Employee class that has a collection of Addresses, and I want to extract Address.address1 from this collection using BeanUtils, how would I go about doing that ? I tried using BeanUtils.getNestedProperty(), but what do I pass in as the 2nd String argument ? It is expecting the nested property, but I have to traverse the collection to get each Address object and then get to the "address1" property. Any tips on this would be helpful.

If someone can give me some code that actually traverses a Collection, picks out a field in the object in that Collection and sets it to, say "", using the commons package, that would be great. de blocks.
15 years ago
I was talking about the Jakarta project : org.apache.commons.beanutils.BeanUtils
15 years ago
Hi,

If I have an Employee class that has a collection of Addresses, and I want to extract Address.address1 from this collection using BeanUtils, how would I go about doing that ? I tried using BeanUtils.getNestedProperty(), but what do I pass in as the 2nd String argument ? It is expecting the nested property, but I have to traverse the collection to get each Address object and then get to the "address1" property. Any tips on this would be helpful.

Also, a note to the admins, I do intend to change my name and have tried twice now, but I get this msg :

"Dag nabbit! Sorry folks, but the Saloon is quite busy right now. Please try again in a few minutes."

So please be patient. I will change it as soon as I am given the chance to do so.

Thanks.
15 years ago
Say I have a class as such :

<pre>
public class Employee {

private String name;
private Address address;
private Collection phones;

//getter and setters for above fields go here

}

public class Address {

private String address1;

//getter and setter for address1
}

public class Phone {

private String number;

//getter and setter for number

}


</pre>

I want to write some reflection code, that given a field name, will drill down to the appropriate class, find the field and set it to "".

For example, say the reflection code class name is DataFilter and it has a "filter" method. Then calling :

a) DataFilter.filter(this, "name") will set the Employee.name = ""

b) DataFilter.filter(this, "Address.address1") will first know that I need to extract the field whose datatype is Address, then look for the "address1" field in Address and set it to ""

c) DataFilter.filter(this, Phone.number) will go thru Employee, and once it cant find a field whose datatype is "Phone", will then look to see if there are any collections, and, in this case, when it finds one, will iterate thru the collection and if there are any objects of type "Phone", will set all the "number" fields of that collection of Phone objects to ""

I am new to Java and this is a bit complex for me. Can someone please help me out ? If someone can show me how to write this, I would really be grateful.

Thank you so much for your time. I really appreciate it.
15 years ago
Say I have a class as such :<br><br>

<pre>
public class Employee {<br><br>

private String name;<br>
private Address address;<br>
private Collection phones;<br><br>

//getter and setters for above fields go here<br><br>

}<br><br>

public class Address {<br><br>

private String address1;<br><br>

//getter and setter for address1<br><br>
}<br><br>

public class Phone {<br><br>

private String number;<br><br>

//getter and setter for number<br><br>

}<br><br><br><br>


</pre>

I want to write some reflection code, that given a field name, will drill down to the appropriate class, find the field and set it to "".<br><br>

For example, say the reflection code class name is DataFilter and it has a "filter" method. Then calling :<br><br>

a) DataFilter.filter(this, "name") will set the Employee.name = ""<br><br>

b) DataFilter.filter(this, "Address.address1") will first know that I need to extract the field whose datatype is Address, then look for the "address1" field in Address and set it to ""<br><br>

c) DataFilter.filter(this, Phone.number) will go thru Employee, and once it cant find a field whose datatype is "Phone", will then look to see if there are any collections, and, in this case, when it finds one, will iterate thru the collection and if there are any objects of type "Phone", will set all the "number" fields of that collection of Phone objects to ""<br><br>

I am new to Java and this is a bit complex for me. Can someone please help me out ? If someone can show me how to write this, I would really be grateful.<br><br>

Thank you so much for your time. I really appreciate it.<br><br>
15 years ago