J amodi

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

Recent posts by J amodi

Hi all,

I am using spring mvc and mybatis and maven for my project. I am using xml configuration for mybatis. So I want to place mapper xml file in the project. What should be the ideal location for the file? and what should I include in applicationcontext.xml to include that file ?

Thanks.
Jm
8 years ago

Mark Spritzler wrote:Well, it isn't seeing your Service classes.

What my guess would be is that you aren't setting it up correctly with 2 ApplicationContexts, which is typical in a Spring MVC app.

So the DispatcherServlet servlet creates a child application context, this should have beans that are for the Web Layer only. No Services or below in this config.

The ContextLoaderListener creates a parent application context. This should have your middle tier beans only. Services and below.

With this setup in the web.xml, then the child app context can see all thebeans in the parent app context.

So my guess is you deployed the DispatcherServlet pointing to the config file for the Web Tier beans, which is correct. But you didn't configure the ContextLoaderListener in your web.xml

Post your web.xml

Mark




Hi ..

Thanks for the reply. Please find web.xml. Let me know where and what am I doing wrong ?

8 years ago
Hi all,

I am getting below error when I create application using spring mvc, mybatis and maven



Please find my code..

TeacherController.java


TeacherService.java




TeacherMapper.java





Could anyone tell me what am I doing wrong ?
8 years ago
Hi,

I need to convert binary string (e.g 01110111) to hexadecimal value.

If I am using this code


then it is getting rid of initial 0s After converting in integer. above code will output me only "f" instead of "0f". Could anyone help me to resolve this issue ?

8 years ago
Ok. Fine, could you tell me what are the steps to convert ?


8 years ago
Dear Sir,

I am right now in a hurry, i need to complete something asap. Will you be able to help me out with code ?

thanks
8 years ago
Hi,

I have a code which converts Ascii string to binary .. which is this !!



so if I give my string as "foo".. it gives me binary string as 01100110 01101111 01101111

Now, I need to convert this binary number to ascii value. How do I do this ?

Thanks.
8 years ago
Hi,

Can anyone help me out , how do I get ascii to binary and binary to ascii in java ?

Thanks.
8 years ago
Hi,

I also thought of doing the same, but I am not sure how to do such a code.

Thanks.
Codeeater
8 years ago
Hi,

BigInteger contains a method for shifting, not the rotation.

Thanks.
8 years ago
Hi Jeff,

You are right, Bigdecimal does help me. For the second question, how would i perform rotate operation on BigInteger value ?

Hi Henry,

I am suppose to do binary operation. I am having i/p as hex which i am converting in binary string. then i need to do other operations as mentioned above. I need to do bit rotate operation in Biginteger. Do you have anny idea?

Thanks.
Codeeater
8 years ago
Hi Guys,

I have two problems in general. Please reply asap.

1. I have 128 bit string value.. something like "100000000000000000001111111000000000000000011111100000000000000000000" upto 128 bit long, and I need to do left shift onto it. How would I do that? The problem is java does not take any value which is this much long and if I try to divide this string and then do left shift, answer will be different.

2. Again, if I have a number like 10010, and if I apply left shift on it , it should give me answer like 00101 and not 100100. How would I do this ?

Thanks.
Codeeater
8 years ago
Hi Jeff,

Thanks for your reply. I need to decide the language based on this, because my entire code is based on this feature only.


Thanks.
Code eater
8 years ago
Hi Henry,

Could you give me a example? and about other languages, is this possible using any other language ? with C language ?

Thanks.
8 years ago