berender mavi

Ranch Hand
+ Follow
since Feb 18, 2011
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 berender mavi

Hi,

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.

Thanks,
Manish
3 years ago
Hi Guys,

I am trying to build a simple sp[ring mvc in which there is only a single jsp login page.But i am not been able to view it on running the application as i am getting following warnings in console :

WARNING: No mapping found for HTTP request with URI [/SpringBlogger/WEB-INF/jsp/login.jsp] in DispatcherServlet with name 'SpringBlogger'

web.xml :




SpringBlogger-servlet.xml




HomeController.java:-



login.jsp :-



i know this type of issues already mentioned in some other threads but i am not getting my problem resolved as i already include <mvc:annotation-driven/> but still getting the same error.

Please let me know what i am missing.


Thanks,
Manish
7 years ago
Hi EveryOne,

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.


Thanks,
Manish
Hi Pyla,

Here is the LoginForm.java

7 years ago
Hi Guys,

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 ?

strust-config.xml is as follows :-




and web.xml is



login.jsp :




LoginAction.java:-




Thanks,
Manish
7 years ago
Thanks a lot Bear Bibeault :)
8 years ago
JSP
Ok that's fine.I was asked this question during the interview.
8 years ago
JSP
I have not worked on the spring.Can you please explain it according to jsp that would be helpful for me
8 years ago
JSP
Hi Guys,

Can anybody explain me what is an application context and how it is different from servlet context.

Please help.


Thanks
8 years ago
JSP
Yes winston my question is same as you guessed it.Sorry if my post was not clear to you

how does the JVM recognize those parameters?
8 years ago
Hi All,

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 ?


Thanks.





8 years ago
Still getting the same null.

My code is as follows



and output on console is

8 years ago
Hi All,

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.

Please help.Thanks
8 years ago
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.


8 years ago
Hi all

I am new to struts.currently i have project what i want to do in it is to disable the page caching and i added the following lines to all jsp pages



but even after adding that when after logout when i press the back button it asks for referesh or resubmit and on pressing ok it take me to home page.I don't want this.

second problem is when i logged in to my home page and press back button why it is taking me back to the login page.

I don't wan to disable the back button.


Please suggest the way.


Thanks
8 years ago