Baranidharan Ramakoti

Greenhorn
+ Follow
since Aug 14, 2007
Chennai
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 Baranidharan Ramakoti

I am having two WAR Files.

The first one contains a javascript and some utility Java methods along with the View Layer JSP.

Second one contains only the Web UI with some business logic for User Interface.

Both the WAR files are there in the same server.

I need to access the Java utility methods and javascript that is present in the first WAR from the second WAR file.

I cannot add the first WAR as a project reference in the second WAR and put it as a single WAR, as the requirement is strictly to deploy each WAR file separately

Can I use context path and access the Java Utility functions? is it possible to use the same method for getting the Javascript functions?

Can anyone suggest any method to access the Javascript functions and Java methods in the first WAR File?


Thanks,
Barani
10 years ago
What is the use of communicating between two WARs? I have seen one of the Threads regarding this in Javaranch and had found that communication can be done in many ways.

If the utility Java functions inside WAR and other files cannot be accessed, then what is the reason for setting dependencies between two WARs?

Can someone just throw some light on these questions?

Thanks,
Baranidharan Ramakoti
10 years ago
Thanks Ulf for your instant reply.
10 years ago
I am having two WAR Files. The first one contains a javascript and some utility functions along with the View Layer JSP. Second one contains user interfaces. Both the WAR files are there in the same server.

I need to access the utility functions and javascript from the second WAR. I am not sure, how to do this.

I cannot add the first WAR as a project reference in the second WAR and put it as a single WAR, as these two needs to be separately deployed.

Can I use context path and access the Java Utility functions? is it possible to use the same method for getting the Javascript functions?

Can anyone suggest any method to access the Javascript functions?

I am not sure, whether this question is relevant in this thread. I have posted it here, as i am using a JSP and servlet.

Thanks,
Baranidharan
10 years ago
Thanks a lot for immediate replies. Thank you so much. You have helped me in solving a big issue which was chewing my brains for almost a day.

Again I thank you a lot. May God Bless You.


BARANIDHARAN
I have done that. But how to check whether the image is fully loaded or not.

I used:


I just wrote the above code to check it. But it always returns only true and it makes the next button visible even if the next image is not fully loaded.

Please help me

Thanks a lot for your instant reply.
I am designing a web page containing images and I want user to see all the images one by one on an onclick event. I do not want user to miss even a single image.

If the user clicks the next button twice, it should go only to the next image and it should not respond for how many ever clicks he makes, till the next image is loaded.

Is there anyway to do this?

I have tried with getting the image height and width and check with the original height & width of the image. But the image sizes are same.

Please please help me in this issue.

I am totally fed up about trying a lot of things but unsuccessful. I would be grateful if someone helps me.

Hi all,
I am using HTML, CSS and Javascript to build a web site. The first page contains a Javascript slideshow which loads only after the text in that page loads. I want the slideshow to start running before the text in that page appears. I am using onLoad() event in the body tag to load the slideshow. Can anyone please tell me how can I do that?

Also everytime I move to the second page, the image layout in that page changes and the image is displaying below the text, whereas it is supposed to display along side of the text. It is working fine in my local system whereas when I host it on my web server, this problem occurs.

Kindly help me as soon as possible.

thanks a lot.
I think you are creating the frame after the click of a submit button ie., dynamically. May be you need to go through your logic once again. Its highly impossible for another frame to be created if you have already set the target frame as "frame2"
The above one(Omar's) is a much much better one, as it can be done in just a line of code.
Its just an idea. You can have a counter for that. You can check: if the user has clicked it once, then perform the process. Increment counter. If counter>=2 then do not perform the process. Reset the counter only if the page is reloaded.
I need to select multiple words from div section by pressing 'control' and highlight it.
I have used the following code to get the selected text from the page. But I could not apply formatting options for the text. Please help me. Thanks a lot.


In my table, rplogid is a primary key, which is auto-incremented and is of type int. In that case, the query, select Max(rplogid) should return me the last row in the database. I am not using the last row logic.

I also tried arranging the table in descending order using the above mentioned primary key and then getting the first row using "limit 1" clause. I still get the same error.

Please help me out. It is the second day for me trying to solve this issue. Seems to be simple. But its killing my time and eating out my head.
Can anyone please tell me with an example, how to retrieve the last row in the table. I am using MySQL and Hibernate

I have tried with max(rowid), order by desc limit 1. But it doesn't work. I am getting an error,"could not execute Query" You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from' at line 1"

The code is:
String sqlquery="select MAX(rplogid) from rplogtable";
Query query = session1.createQuery(sqlquery);
List lst=query.list();
Integer x=(Integer)lst.get(0);
System.out.println("Value of max(rplogid)="+lst.get(0));
data=(RPLog)session1.get(pkg1.RPLog.class, x);

Please help me. I am struggling with this one for more than a day.
Thanks a lot Mr.Seetharaman and Mr.Bear Bibeault for helping me out solve this issue.
11 years ago
JSP