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
@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.
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.
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.
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.
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.
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.
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.