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 All,

I am working on a retail store application in which I have to display a error screen on the monitor of a Billing counter if some backend apis are not working. So there is background recursive application which keeps pinging another api for status, if status if unsatisfactory if continuously show error page in webview on monitor so that it can't be used by any person. Once application receives OK response from another api it needs to terminate that error page. So this process keeps going.

I am able to display the error page but once my error page is displayed my background application is not able to proceed further and do recursive check and check for api status again. Once the webview is displayed, My main thread is not going further thread.sleep and recursive call to checkForAPIStatus.

Spring Boot Main File:-



To make it easy as of now instead of api status I have taken a random status from array.

BringupBanner class is as follows:



Can anybody please point out what's wrong here or if there is a better way to achieve this ?

Thanks
1 year ago
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
5 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
9 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

9 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
9 years ago
Thanks a lot Bear Bibeault :)
10 years ago
JSP
Ok that's fine.I was asked this question during the interview.
10 years ago
JSP
I have not worked on the spring.Can you please explain it according to jsp that would be helpful for me
10 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
10 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?
10 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.





10 years ago
Still getting the same null.

My code is as follows



and output on console is

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


10 years ago