Roopesh Rana

Ranch Hand
+ Follow
since Sep 03, 2012
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Roopesh Rana

Roopesh Rana wrote:

Daniel Demesmaecker wrote:The problem lies in your sessionfactory.
Why don't you simply use Spring Boot, it will do all the configuration for you.
Add the spring-boot-starter dependency, remove your dispatcherservlet, web.xml and application-context.xml and put the following application.properties in your resource folder:



And that should do it



Daniel Demesmaecker wrote: I can't use spring boot, I need to done it in same way

6 years ago

Daniel Demesmaecker wrote:The problem lies in your sessionfactory.
Why don't you simply use Spring Boot, it will do all the configuration for you.
Add the spring-boot-starter dependency, remove your dispatcherservlet, web.xml and application-context.xml and put the following application.properties in your resource folder:



And that should do it



I can't use spring boot, I need to done it in same way

6 years ago
springDispatcher-servlet.xml



web.xml



applicationContext.xml



AdmissionDaoImpl.java



Exception:

6 years ago

Wayan Saryada wrote:You need to use / import java.util.Date instead of java.sql.Date in your code.



Roopesh Rana wrote:  I used java.util.Date as well as java.sql.Date also



Exception :

6 years ago

Wayan Saryada wrote:Hi Roopesh,

The exception happened because your string date is not valid according to your SimpleDateFormat pattern.





Exception :

6 years ago

I am trying to convert a string into date


Exception :

6 years ago

there is one string with just ADA.*

(*) will be replaced with a number  
6 years ago
My string start with "ADA."

Number would be change like "ADA.1", "ADA.2".

contains("ADA.") will not work, if my String is "MADA." show contains will return true.


6 years ago
Hi All,

I have a string "ADA.3". After "." number could be anything.

I need regex for this.

6 years ago
Hi All,

I have newly created HashMap, this is empty Map, now I want to insert one key value pare in this.

My Employee class return hashCode - 255.

My HashMap size is 0 to 15 currently.

so i want to know, how HashMap will handle it.


Regards
6 years ago


exception is :

7 years ago
I am trying to read excel file through java code.
My code is :



But I am getting exception

Exception is :

7 years ago
Hi All,

I want to remove one entry from <util:map> tag in xml using java code.

My xml is :


There is multiple <util:map> tags.
Thanks , That was the problem.
7 years ago