I had a requirement in my project in which i have to provide data in a file to the other application. Data will come through DB on the basis on the basis of date range. I am using SYBASE db. Record count in databse in 8 lacs.
After fetching the data from SYBASE it gets added to List using my organization's internal api. But when i run this process it gives me below error:
If i am not wrong I am getting this error because process is trying to assign 8 lacs objects into the Arraylist.
Can anybody provide alternative ways in which i perform my logic which can run better without going outofmemory.
I am looking for a good book(Struts/Hibernate/Spring) or any site which contains good programming assignment so i can try them and get hands on these technologies. I have tried examples from the books but now i want some asignments or you can say requirement so i can implement them.
Please let me know if you are aware of such books or sites.
I am trying to build up a simple login app using struts1. but every time i am clicking on login button i am getting http 404 requested resource (/login) not found. I have tried by googling and do some changes in xml files (both web.xml and struts-config.xml) but could not getting through.
The requested resource (/login) is not available.
Can any body take a look on files and let me know what i am doing wrong ?
Recently i was asked a question in an interview that when we provide command line parameter like -Xms or -Xmx while running a java program How jvm actually reads those parameters or How does jvm parse the parameters ?
I am using a init param named as Name in servlet parameter.But when i am running follwing code in doGet
getting null.why ? can you please tell me?
my web.xml is as follows:
one more thing when i am overriding the init() method and using the same code in it.
why am getting 2 times printing for one statement in init().First time i am getting the correct result from web.xml but in second printing it's again null.
i am using a dojo datepicker in my jsp page (struts2 tags).I am using tomcat 7.0.23.when i run the code i am able to see the datepicker in both firefox and internet explorer but when i deployed the same code on linux server(apache-tomcat-6.0.14) datepicker is visible in firefox but in i.e only label(Start Date/endDate) of datepickers are shown no textfield and calendar icon is shown.I have tried with apache-tomcat-7.0.25 on the server but get the same result.please find below a part of jsp file.