Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

Vidya Ram

Ranch Hand
+ Follow
since Apr 22, 2003
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 Vidya Ram

Hi,

I have to open an excel file (whose name can be in japanese) from a JSP. I had used window.open() for this and was working fine on JBOSS3.2.1. But now we migrated to JOSS 4.0.2 and since then, I am getting http 404 for opening the excel file name in japanese. Looks like the file name is url encoded as it shows something like

The requested resource (/webconsole/testbrix/EN/webconsole/TBUpload/%E3%82%A2%E3%83%97%E3%83%AA%E3%82%B1%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%AE_v4.xls) is not available.

and on the address bar of IE, it shows the URL properly (even the file name in japanese is proper).

Can anybody help? Is there any difference in configuration between JBOSS3.2 and JBOSS 4.0.2

Thanks
14 years ago
Hi all,

I have the same problem. COuld anybody help me with this?

Thanks
Vidya.
14 years ago
Thank you Merrill for the quick reply. I will try it out.

Vidya.
15 years ago
Hi there,

I have to internationalize an existing Struts based application. We have chosen the approach of having locale specific JSPs in separate folders (as our GUI look and feel may change for each customer, otherwise we would have gone for resource bundle approach).

I have all JSPs translated to Japanese. So based on the user language selection, I have to forward to either say JP/someJSP.jsp or EN/someJSP.jsp.

I was wondering if there is any way where with little modification to struts-config.xml alone, this can be acheived.

Otherwise, I have to have something like this in in all my action classes ...

String lang = request.getParameter("Language");
mapping.findForward(lang+"_success");

and in struts-config.xml,

<forward name="EN_success" path="/webconsole/EN/someJSP.jsp"/>
<forward name="JP_success" path="/webconsole/JP/someJSP.jsp"/>

which looks very odd. I'm sure there is some other way...

Could anybody please help on this ASAP?

Thanks
Vidya.
15 years ago
Yeah, I had tried it with Axis runtime and it was working fine. I wanted to make it work with IBM Websphere runtime itself.

Thanks,
Vidya.
15 years ago
I have the following simple class which I was trying to deploy as a webservice using WSAD 5.1.2 (IBM Websphere 5 web service runtime)

package com.ws.evaluate.simple
public class SimpleService {
public int primitiveArrays( int[] id ){
return id[0];

}
I get the following exception:

java.lang.Exception: WSWS3034E: Error: The OperationDesc for primitiveArrays was not matched to a method of com.ws.evaluate.simple.SimpleService. Debug:name:
services/SimpleService
style: rpc
use: literal
implClass: class com.ws.evaluate.simple.SimpleService
defaultNS: null
endpointURL: null
OperationDesc[0]:
name: primitiveArrays
returnQName: primitiveArraysReturn
returnType: {http://www.w3.org/2001/XMLSchema}int
returnClass: null
elementQName:{http://simple.evaluate.ws.com}primitiveArrays
soapAction: null
style: rpc
use: literal
numInParams: 1
method:null
ParameterDesc[0]:
name: id
typeEntry: null
mode: IN
isReturn: false
typeQName: {http://simple.evaluate.ws.com}ArrayOf_xsd_int
javaType: class com.ws.evaluate.simple.ArrayOf_Xsd_Int
inHeader: false
outHeader: false
minOccursIs0:false
maxOccursIs1:true

at com.ibm.ws.webservices.engine.InternalException.(InternalException.java:124)
... 29 more


Its generating the ArrayOf_Xsd_Int.java ,its serializer/deserializer and helper classes properly.

Can anybody help me solve this problem?

Thanks,
Vidya.
15 years ago
I have the following simple class which I was trying to deploy as a webservice using WSAD 5.1.2 (IBM Websphere 5 web service runtime)

package com.ws.evaluate.simple
public class SimpleService {
public int primitiveArrays( int[] id ){
return id[0];

}
I get the following exception:

java.lang.Exception: WSWS3034E: Error: The OperationDesc for primitiveArrays was not matched to a method of com.ws.evaluate.simple.SimpleService. Debug:name:
services/SimpleService
style: rpc
use: literal
implClass: class com.ws.evaluate.simple.SimpleService
defaultNS: null
endpointURL: null
OperationDesc[0]:
name: primitiveArrays
returnQName: primitiveArraysReturn
returnType: {http://www.w3.org/2001/XMLSchema}int
returnClass: null
elementQName:{http://simple.evaluate.ws.com}primitiveArrays
soapAction: null
style: rpc
use: literal
numInParams: 1
method:null
ParameterDesc[0]:
name: id
typeEntry: null
mode: IN
isReturn: false
typeQName: {http://simple.evaluate.ws.com}ArrayOf_xsd_int
javaType: class com.ws.evaluate.simple.ArrayOf_Xsd_Int
inHeader: false
outHeader: false
minOccursIs0:false
maxOccursIs1:true

at com.ibm.ws.webservices.engine.InternalException.<init>(InternalException.java:124)
... 29 more


Its generating the ArrayOf_Xsd_Int.java ,its serializer/deserializer and helper classes properly.

Can anybody help me solve this problem?

Thanks,
Vidya.

[ December 02, 2004: Message edited by: Vidya Ram ]
[ December 02, 2004: Message edited by: Vidya Ram ]
15 years ago
Hello !

I have an application where I have to show a pop up on click of a button and the values user enter in the pop-up are to be processed backend and written to database. Immediately, I need to refresh the parent where that information written by pop-up has to be read from databse and displayed.

When I did all this in pop-up itself (I mean, I called submit on pop-up, then opener.document.reload() and then window.close() all on the click of save button in the pop-up javascript) , I got deadlock or timeout exception on database because the pop-up and parent were both trying to access the data at same time...

Things work fine if I give setTimeOut of atleast 100ms on the call to opener.document.reload(), but I don't want to take a risk because I'm not sure about the backend process time.

Hence I want to accomplish this by passing the form fields of pop-up onto the parent and closing the pop-up then itself and soon after, processing those form values and updating on databse and refreshing the parent page from parent itself.

I'm not getting the way to know in the parent that the pop-up is closed so that processing can be started immediately. Could anybody help me on this?

Thanks,
Vidya.
16 years ago
JSP
I have a web server and a client applet to have chat functionality between server and client. If I run the applet on a different machine other than where the server is, it works just fine.
But if I try to run the applet from the same machine ie., http:\\localhost ort\chat.html, then applet fails to load and I get a series of java.io.FileNotFoundException for many of the library jar files.
Not only that, it has so many inconsistent behavior in different machines (but atleast it gets loaded in all those machines). BTW, its a signed applet.
I am really confused about this behavior of my applet... it will be really helpful if somebody can help me out in solving this problem.
Thanks,
Vidya.
16 years ago
Thank you all.
By the way, Howard, I bought your book and I must admit that the last 3-4 chapters (on profiling, administration and tuning)really helped me in achieving this score.
Vidya.
[ November 12, 2003: Message edited by: Vidya Ram ]
I passed 287 with 87% yesterday. Javaranch did help me a lot in the preparation. The discussions about this exam in this forum were very useful for me. The exam was really very close to the ICE test.
I would like to know if the results will be stored anywhere in the IBM site. Since we don't get certificate for individual tests, is the score report that we get immediately after the exam the only proof?
Thanks,
Vidya.
Hi,
Can anybody confirm me whether there will be a hint about the number of correct answers for each question in the test 287 similar to the ICE test?
Thanks,
Vidya.
Congratulations Saliya.
One small doubt...will there be a hint about the correct number of answers in the test 287 similar to the ICE test?
Thanks,
Vidya.
Congrats Timothy on the great achievement. Could you please share your experience about exam 287, I mean, the way you prepared, the difficulty level of the exam.
Do you feel a person with no working knowledge of J2ee/Websphere can ever pass the test by just studying and playing with them for sometime?
I need these info as I am planning to take up the exam 287 soon and I don't have working knowledge of ejb,websphere etc.
I would greatly appreciate any feedback.
Thanks,
Vidya.