kc pradeep

Greenhorn
+ Follow
since Mar 05, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by kc pradeep

I need to configure separate queue configuration on each instance of the glassfish cluster environment. I tried looking for any documentation however did not find anything, Can anyone tell me if its possible and if so can you guide me to the documentation or some sample configuration.
10 years ago
I am trying to implement a file upload functionality. One of the requirement is to display a 'Please Wait!!!' message to the user while the upload is going on. My project currently uses JSF 1.2, Tomahawk, JQuery 1.9, JQuery UI 1.10. I am aware that this can be accomplished using a4j with richfaces, however I am not supposed to add any new library to the existing project. Please let me know how this can be done?
12 years ago
JSF
Hi,

I have to display the content of a java.util.Map in a JSP form and user is expected to select one row using a radio button and submit.

I am using a SimpleFormController for this. However I am unable to display the Map values in the form using the displaytag. Can someone help please?
13 years ago
Hi All,

I am trying to write a Spring MVC based application, where an objects location is passed onto the JSP and further processing is done using javascript. I managed to get the list of objects in the dropdown, my requirement is: when the user selects one of the object from the drop down the latitude and longitude value for this object should be assigned to two variables in the javascript.

There is a separate class named Location which has the latitude and longitude. And object of Location is a member of the class being selected in the dropdown.

Please let me know how I can achieve this.

code:

13 years ago
and here is the image
13 years ago
Hi Bill,

There are no errors, when I run the project as 'Run on Server', it goes to url http://localhost:8080/Spring_HelloWorld_browser/ and give the error HTTP Status 404 : The requested resource (/Spring_HelloWorld_browser/) is not available.
13 years ago
I will go through that meanwhile can you help me understand what is wrong with this code? I will copy the code here.

applicationContext.xml


index.jsp


redirect.jsp



Please also see the eclipse view for the project attached with this.
13 years ago
I am trying to implement the Hello world program given in the link HelloWorldSpring, I have followed all the steps and still not getting it to work.

By the way, yes I do have tomcat installed and working. This is my first spring web app program please help
13 years ago
I am trying to parse the html in google apps script, the xPath of the element in HTML is :



How do I access it in the script? I tried the following :



Not sure, if it is the right forum to put the question to. Any help is appreciated.
oops sorry, I got confused with the other rule : static functions can only access static members.
yeah, non static functions can access both, right.
What is the output for the below code ?



Options are
A.0 false 0
B.0 true 0
C.0 0 0
D.Compile error - static variable must be initialized before use.
Answer :
A is the correct answer.
Global and static variable need not be initialized before use. Default value of global and
static int variable is zero. Default value of boolean variable is false. Remember local
variable must be initialized before use.

My question is can printValue() access static variable p?
Hi,

I don't want to compare the exact order, but the order should have some weightage on calculating how similar the two strings are.


Similar String: Most of the words of the string are same and order of words are same except for few (say max 40% of words)
14 years ago
Hi All,

I want to write a function which will should return the measure of similarity between two string passed to it.

Say String A and String B is passed to the function, then it should return the value, from 0 to 100. 0 being totally different string and 100 being exactly same string.

The similarity should take into consideration the order of the words.

Is there any library already for this?

Please help

14 years ago
This is not giving the correct result, I checked in the site RegExr
14 years ago
I have a requirement to replace each ValidDuring('01/18/2011..06/16/2011') in the where condition with (1=1),

So if the query is SELECT * FROM ABCD WHERE ((ValidDuring('2010',date)) and (a>b)) or ValidDuring('01/18/2011..06/16/2011')

then it should be changed to

SELECT * FROM ABCD WHERE ((1=1)and(a>b)) or (1=1)

PS. there are two way of giving input for ValidDuring.

Please let me know how to write a efficient Regex for the same
14 years ago