Sumit Suresh Rao

Greenhorn
+ Follow
since Feb 16, 2009
Merit badge: grant badges
For More
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
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sumit Suresh Rao

Hi I figured out the problem.

The property handling the field from jsp was a date in action class. Now stuts2 only accepts date in mmddyyyy format. I dint follow this format as a result invocation.invoke() returned result as "input". This was not mapped in my struts.xml hence 404 error

Cheers!!!
10 years ago
@Joe Harry debugging through the application I found out that invocation.invoke() is returning "input" as a result which is not mapped in struts.xml file. But I am not using validation framework anywhere as I am solely depending on javascripts, why would I be getting "input" as result.
10 years ago
I have a very peculiar problem. On a page in my application when I click on save button a struts2 action is called. But the browser gives 404 error saying web page not found, with action name seen on the url. When I refresh the page the action is called. I have token interceptor in the application, hence they may be causing problem was my initial assumption.

But when I deploy the same .war on local on DEV server its functions without any problem.

Any suggessions...
10 years ago
I dont think that would be possible

looking at the defition in schema of persistence. xml you wld get the following


ref : http://openjpa.apache.org/builds/2.2.1/apache-openjpa/docs/jpa_overview_persistence.html

may be someone else can better enlighten us
they are as different as Chalk and Cheese.

Cloning is used to make copy of an Object. Though changes in one will reflect changes in other, depending whether it is shallow copy or a deep copy.

Serialization on the other hand is used save the state of an Object. You will serialize an Object to get a stream and save it somewhere and de-serialize it to get your original Object(if that object doesn't contain any transient variable). Serialization is used majorly when you want to send an Object over the network or when you want to play with a pool of Object.
10 years ago
As Jeff Verdegan said

Java code doesn't just behave randomly



Probably you are doing some basic mistake. Take a deeper look at your code. The data that you have provided is insufficient (i.e. what is accessMethod etc.) sharing your entire class with us might help.
10 years ago
Thanks Abhay,

Works great. Anyone else interested, can refer http://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpSessionListener.html

I did the following


10 years ago
Hi,

Whenever a user logs out I can capture the session out time in my code. But suppose if someone's session was invalidated because of in web.xml, how would I capture the invalidation time.
10 years ago
Thanks @Campbell Ritchie
11 years ago
Thank you Winston Gutkowski.

there is no such thing as a dynamic array



@Campbell, just wanted an array to exhibit dynamic behaviour.
11 years ago
In an interview I was asked to write a code for dynamic array. Though I managed something I was not sure it was optimal. The following is somewhat similar to what I had attempted. Can someone help me iron out problems, if any, in the following code.

11 years ago
In an interview I was asked to write a code for dynamic array. Though I managed something I was not sure it was optimal. The following is somewhat similar to what I had attempted. Can someone help me iron out problems, if any, in the following code.

11 years ago