Ketan Parekh

Greenhorn
+ Follow
since Sep 15, 2005
Merit badge: grant badges
For More
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 Ketan Parekh

Intially we were trying to use the spring @Async with grails but we were not successful it seemed like grails was not able recognise it. I looked at that plugin mentioned in the Grails Doc and were able to do it. Thanks Greg Appreciate for your help.

Now we are writing the unit test but some how the instance variable "def backgroundService" is not getting injected. Is there a way to mock it (since its plugin we were not able to mock it) or to inject it so I can unit test my method ?

+Ketan B. Parekh
13 years ago
Hi,

I am using grails 1.3.4. We have a scenario where a user uploads a file on the web page and hits the submit button. The controller calls the grails service class and calls a method xyz(). The xyz() method is required to be asynchronous. We want the control to return back and while the xyz() method does some processing. The service class method has been annotated with @Async but we see the flow synchronised.

It seems like the grails service class is not recognizing the spring annotation.

Am I missing something or anyone has other ideas on how to make the method perform async ?

Thanks,
+Ketan Parekh
13 years ago
Yes, I Agree people with great technical competency and solid fundamentals are more in demand then having latest skillsets. They can learn those new skill sets in a short time.

14 years ago
Hi I have create a web project through eclipse.

I am trying to run junit test case which runs jetty server and publishes the web application in jetty server.

my question is this possible(its possible through eclipse ide jetty server plugin by clicking start server button). if its possible then can you please give me a sample code.

my web app structure is :-

Java Resources
src
Build

WebContent
WEB-INF
Meta-INF


it is not recognising WebContent folder

my code is



Thanks in advance,
[ November 20, 2008: Message edited by: Martijn Verburg ]
15 years ago
I am not able to open scja.com
Hi all,

I am trying to connect to serial port com4 but it gives me exception that It cannot load the win32com.dll

Exception :- Error loading win32com: java.lang.UnsatisfiedLinkError: C:\Windows\System32\win32com.dll: Can't load this .dll (machine code=0x0) on a IA 32-bit platform
I am running a enumerator to get all the ports and trying to connect to port COM4 but enumerator is returned null with the above error message.

I tried putting comm.jar in JAVA_HOME\lib, JAVA_HOME\jre\ext
javax.common.properties in JAVA_HOME\lib , JAVA_HOME\jre\lib
and win32com.dll in windows\system32, JAVA_HOME\bin

I am using windows vista OS and jdk1.5.0_16.




Any Help is Appreciated.

thanks,
Ketan.B.Parekh
15 years ago
Thanks Merill, how i will definately look at it.
15 years ago
Hi,

I have a drop down in struts which is not editable. I have requirement to make it editable like google suggest(auto suggest). I use <html:select> tag and <html ptions> to create drop down. I set the list in action class and retrieve it in jsp page.

Can one suggest me or guide how to have drop down like google suggest, I am using struts 1.2.x. In struts 2 there is auto drop down compoment but i donno how to implement it in struts 1.2

Thanks
15 years ago
thanks Sujeevan,

In my case I am calling a DAO class to get db results and return the results stored in list in form of normal java bean class.


if I was returning a jave bean class then I should use Beanutils.copy to copy java bean to actionform bean ? and since i am returning a list, i retrieve the javabean class from list in jsp and then assign values using expression <%=%>, than how to select the drop down list value.

Thanks,
Ketan.B.Parekh
15 years ago
I did not get you. do i need to set it in the Action? If possible can you give me some example.
15 years ago
hi,

I have a jsp page which displays results from database, in that page i have drop down which i populate through a list stored in session object.

I do not know how to make select a value in drop down with the value i retrieve from database.

I am using <html:select>
<html ptions collection=""......>
</html:select>

if anyone can help, its appreciated.

Thanks.
[ July 14, 2008: Message edited by: Ketan Parekh ]
15 years ago
Thanks Sid, it really worked.
15 years ago
Hi folks, i am populating a drop down from database in a jsp page.

The values retrieved are longer so the drop down width size increases to the highest length of the value and it makes the form look dirty.

is there any way to solve this problem. how can i shrink the drop down box, if possible can the box being displayed on clicking drop down be bigger than the actual dropdown width.

my code is

<html:select property="name" onchange="getname(this)">

<html ptions collection="nameDetails" property="nameID" labelProperty="Name" />
</html:select>


Thanks,
Ketan.B.Parekh
15 years ago
Thanks brother for the reply. I had earlier tried this way it was not working as mentioned in the post. But there was problem in the driver which connect sql server through jdbc odbc bridge, that if the column name are not in the order as defined in the table defination while retreiving resultset.

It worked finally well after arranging in the table defination order.