This week's book giveaway is in the Artificial Intelligence and Machine Learning forum.
We're giving away four copies of Succeeding with AI and have Veljko Krunic on-line!
See this thread for details.
Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!

H Ritwick

Greenhorn
+ Follow
since Mar 15, 2006
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 H Ritwick

I am using struts 1.3
For the first phase of our project I had used DispatchAction and combined addUser,modifyUser,removeUser actions in a ManageUserAction class and a UserFormBean which all works good. Now I need to add some more functionality like changeManager, assignTask action methods. I am planning to add these action methods to use the same action class ManageUserAction but I might need to pass a different form bean for the new action methods I am adding. Right now I am calling differnt action mehtods using a method parameter. I am lost on how to make the action methods use a differnt formbean.

Please let me know if it is a good idea to use the same action class? any hints on how to do the action mapping?

Thanks
12 years ago
For BeanUtils copy to handle non registered converters, you can write custom converters. This had worked for most of the cases for me. But still after bean utils copy, I was also doing few explicit object creations and setting them to dto.

http://jakarta.apache.org/commons/beanutils/api/org/apache/commons/beanutils/converters/package-summary.html

http://www.javaranch.com/journal/200406/BeanUtilsDigesterAndTypeConversion.html
13 years ago
you might want to look at indexed properties.

http://struts.apache.org/1.x/struts-taglib/indexedprops.html
13 years ago
One of the solution may be is to use the HibernateSessionRequestFilter http://www.hibernate.org/43.html in which you commit the transaction and close the session only in the filter.

or if you really want to colse the session before the view is rendered then explicitly copy all the attributes required for the view to a custom dto.
One of the solution is to wrap the define tag with notEmpty tag

http://struts.apache.org/1.2.9/userGuide/struts-logic.html#notEmpty
13 years ago
Should not be a Problem. It all depends upon who files your H1b and how they present your case.
Since your graduation (Bsc) is not equivalent to BS of USA during your H1b education evaluation they will consume 2- 3 years of experience. Then you will be left with 1 year experience which also should be good enough if you have worked for a reputed companay.
13 years ago
I had a similar issue when my action class was extending DispatchAction.

To fix this in my action mapping (struts-config.xml) I had mentioned validate="false" so that form validation is not called by the framework. And in the action method I was expictly calling the form validation
ActionMessages errors = form.validate(mapping, request);

I had found the solution in this forum which had worked for me..Hope this helps..
13 years ago
A Web site can retrieve only the information that it has placed on your machine. It cannot retrieve information from other cookie files, nor any other information from your machine.

more info on http://computer.howstuffworks.com/cookie1.htm

hope this helps
13 years ago
Merrill
Thank you so much for your detailed reply. It worked almost perfect and I was able to resolve all my issues.
Once again your help is greatly appreciated.

notes:
For me since my itemsList was of type List I did not have to write a wrapper.
also in the jsp syntax use a "." after key.
13 years ago
Thanks for your reply.
I converted my map to LinkedHashMap. I have a qn on adding the getter setter in the action form. Is the below getter setter correct.

public Category getStringIndexed(String key) {
return (Category )categoryItemMap.get(key);
}

public void setStringIndexed(String key, String value) {
categoryItemMap.put(key, value);
}

How to use the iterate tag to get the keys and value to display each category and items for that category.

Thanks
13 years ago
Hello
I have a HashMap of categorgy VO as the key and ArrayList of ItemBean as value. This has to be displayed and the few of the properties of both and key and value can be edited. Can someone please suggest which indexed property or variation of mapped property to use. can mapped propery take a vo as the key.?.any help / code sample is appreciated.
Thanks
13 years ago
Thanks for your reply.
DateLocaleConverter is converting 10/12/2006 as Thu Oct 12 00:00:00 PDT 2006. Good news.
I am passing pattern as MM/dd/yyyy and DateLocaleConverter has a parse() method which is using SimpleDateFormat to format the date in the supplied pattern. Anyway, I will try writing a CustomDateConverter and formatting. This should work converting either way right?
Thanks
13 years ago