tarun mall

Greenhorn
+ Follow
since Nov 23, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
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 tarun mall

Here are my findings by googling.

Whenever we create WAR it includes all the classes in the project in WEB-INF/classes and hence JSP is able to find it. But it doesn't copy the classes in jars to WEB-INF/classes and hence my JSP is not able to find the classes inside JAR. So somehow I need to add somewhere a configuration that copies classes in JAR(from classpath) to WEB-INF/classes or includes JAR directly to WEB-INF/lib.
7 years ago
JSP
Hi friends,

Our application structure is like, we have 5 web projects and a project for Jars. All the jars which are required to any project, we keep those jars in Jars-Project and then add them in classpath.
Now the problem is I have to integrate a third party utility in my application. They provided few jars required by there project and a folder containing files, css, scripts and images for JSP. When I put all the jars in WEB-INF/lib and call the JSP it is working fine. But when I put all the jars in Jars-Project and include them in class path, its finding none of them. The problem with putting in lib is, there are many jars which are already in our Jar-Project. I dont want to keep them at two places and cause redundancy.

I think I didn't understand the concept of WEB-INF/lib completely. What I think is whenever we put all jars in WEB-INF/lib eclipse adds them to the buildpath of the project. So in case if we add them directly to build-path it should work.
7 years ago
JSP
Hi friends I was reading an android tutorial and I found following line:



What is the meaning of MyPreferencesActivity.class

I also looked into this thread: http://www.coderanch.com/t/383653/java/java/does-ClassName-class-mean-static but the link of the java reference provided in the thread is not working.
7 years ago

Arunkumar Chinnadurai wrote:
Hi all,

I have create on jsp application.i have do all business logics in controller. while running my application if i give refresh(F5) the same request calling again...
first time it show any alert msg mean if i give refresh(F5). it will call again the aler. how to rectify this.



Sharing the code will help us understand your problem better.
7 years ago
JSP

Francis Zabala wrote:Hello again,

Has anyone tried to connect a client to a server using HTTPS and using Hessian binary protocol to communicate?

I saw something that worked but unfortunately its on php:



The code above does work and is able to communicate with the server.

Can you please help us? Thanks.

Regards,
Francis



What kind of help are you expecting here?
7 years ago

muruga dhanapal wrote:Hi All,
I have recently joined a Tier1 company and I have a total experience of 3+ years. Am gonna work in web technology where they are using Web-service which is totally new to me. I have little knowledge of struts2 and spring but am not aware of web-service. please suggest me what should I do. Expecting your valuable responses.Thanks in Advance.



I am guessing that you joined some company in India ;) they do so, recruite and then decide the technology ;).
Anyway you can easily google and download the pdf by name 'JavaWSTutorialJAXWS', this would be a good start for you.
7 years ago

riris wijaya wrote:hy all, i can't figure out the logic of this



The position of A and B is random. And A and B is linked by *. What is the logic of this?? do i have to make an array 10 x 10, and access the index randomly to put A??? or what??




The solution is pretty easy ;)

1. Fill A's row till B's column
2. Fill B's column till A's row
7 years ago
Hi Anand,
If its your first time, I'll suggest you to go through some book instead of reading through web pages. There are pretty good pdf's available on oracle site. You can google them too if you wish.
7 years ago
According to my understanding, providing jar to server and accessing jar from some code running on server are two different things.
If your server is trying to connect some other sever or DB and it requires the jar then you have to provide the jar to server in some lib folder inside server, depends on what server you are using.
If you are trying to access some jar from some code that is deployed on server than all you need to do is keep the jar in classpath and start the code, the code will look into it. One more thing, I dont think any code EVER look for jars, jars are considered just as collection of java code/classes. So it doesn't matter if you put jar in same format or extract it and then put.
7 years ago
Hi friends,

I wrote the following code which is not working as expected.



What I expect from this code is to print Tarun on console, but I am getting null on console. I tried to debug it and found that the String object in tosetUp() method and object in testmethod() are different. From where did this new object came? According to me the new object shouldn't come and if I am getting the flow right then I should get a NullPointer.
Can anyone please help?

Thanks
7 years ago
Hi friends,
I have few projects in my workspace, there is one project which contains only jars (iajaxb.jar and autoidjaxb.jar are in same project, please refer to the attached image). I tried to import that jar into a different project.
I am getting a conflict (a yellow mark over the name of the jar) and manifest.mf file also not able to detect from which project the jar are. I mentioned about those jars in .classpath file.
I am attaching a snapshot of dependencies section of manifest.mf from RAD IDE.

Can anyone please help me in removing the conflict.

I am able to get the warning message now:

The Manifest Class-Path for archive XYZ.war contains an entry, iajaxb.jar, that is not resolvable to a file or module in the Enterprise Application: [/XYZEAR]:XYZEAR, MANIFEST.MF XYZ/WebContent/META-INF L/XYZ/WebContent/META-INF/MANIFEST.MF EAR Validator Message

7 years ago