Win a copy of Head First Android this week in the Android forum!

hardik sanghani

Greenhorn
+ Follow
since Nov 27, 2014
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
4
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by hardik sanghani

Hello,



i m write this object "itemsInCartDetailed" in JSON and send back to jsp.

in java script



this give me perfect output
but
question is How can i extract this stored map in java-script.

I tried



but this is not working.
6 years ago
Two different browser, Firefox and chrome.
6 years ago
Thanks for reply , Prasad Krishnegowda

I tested this by using two different browser.

thank you
Hardik
6 years ago
Hello friends,

I am creating shopping cart application.
see below method that accept product id and add to linkedhashset. this is fine with single user but when second use is logged in and add something in cart then cart become same for both user.

Example:
Request 1 : Add to cart Mouse
Request 2 : Add to cart Monitor

when both user click on view cart then output will be Mouse and monitor both.



Please suggest how can i make separate cart for each user.

Thank you
hardik
6 years ago
I found way but I dont know this is proper way to manage session in spring MVC.

And I found that @SessionAttributes("registration") is not share-able among the controllers.

http://fruzenshtein.com/spring-mvc-session-advanced/
6 years ago
Hello Friends



does this mean.

Request 1 : store all data in "registration" - Session attribute
Request 2 : ??? where spring store this data
Request 3 : ??? where spring store this data and so on.

Here Session attribute is "registration", I need to create multiuser application I dont know how to manage session in spring mvc.

Please reply
Many thanks in advance.
Hardik
6 years ago
@Jesper de Jong and Jayesh A. Lalwani,

@Jesper de Jong, I found another approach to achieve this, I declare Custom tag class in spring.xml and inject Product Service. Its working fine

@Jayesh A. Lalwani. Thank you for suggestion, I also read in other site that this is good if we use JSP / Servlet application.

Thank you
Hardik
6 years ago
Hello friends,

I am creating custom tag which accept product id and gives summary of product. I am using Spring MVC and Custom tag. I created custom tag class and implementing Service in class but it will return null pointer exception because spring doesn't know about custom tag class.

How can i let know spring that I am using custom tag and allow access for Service and DAO.



Thank you
Hardik
6 years ago
Hello friends,

I am trying to implement tiles in spring and hibernate application, I added all required dependency in pom.xml as below:



When I run the appliction the following error displayed, I spent too much time to solve this error, like changed the version, removing some dependencies, but still I am not able solve this

7 years ago
Hi friends,

I have good skill in spring and hibernate but I cant recognize which jar is for which purpose, Is there anyway to know which jar is for which purpose. ?

Thank you
Hardik
7 years ago
Hi Friends,

I excluded slf4j from hibernate validation jar and many other jars(I dont know name of other jar).

Please check how I excluded conflicted jar files from project snapshot in eclipse.

Once I removed conflicted jar files , eclipse throws errors of hibernate validation. How can I restore those related dependency using eclipse.

I hope all you can understand what i mean to say.

Thank you
Hardik
hello friends,

Can any one explain this code

GenericDaoImpl is the constructor.

Please explain these line of code in detail.

Thank you
Hardik

7 years ago