Noreen Masterson

Greenhorn
+ Follow
since Apr 30, 2002
Merit badge: grant badges
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 Noreen Masterson

sorry if the Q is in the wrong place!!!
anyway- thanx for your help. it was spot on. used the regular expressions in search method
//reg expr /\W/ is a non word
//where a word is made up from [A-Za-z_0-9]
//and /\S\ is non whitespace
if (( keyChar.search(/\W/) != -1) &&(keyChar.search(/\S\) != -1))
alert("char is not alphanumeric or a whitespace")

thanx a million
--Noreen
19 years ago
JSP
hi
i am trying to check each character entered and make sure it is only an alpha-numeric char
function keyCheck(e){
var keyChar = String.fromCharCode(e.which);
//here is where u would have to check the key then
}
document.captureEvents(Event.KEYPRESS);
document.onkeypress = keyCheck;
i know in Java u can use char.isLetterorDigit(myString.charAt(index))
but how can this be done in javascript??
thanx
19 years ago
JSP
Hi folks
i wote my jsp to have a listbox which would display a list of files from a set directory
I am using this in conjunction with a WebSphere server. so what i want to do is be able to see the files on the client machine and load that file onto the browser. <it doesnt really have any server functionality associated with it>
This all worked fine on my local dev environment but once i put it on the server i was no longer able to see the set directory on my local machine.
is there a way to do this that i am missing?
many thanx as always!!!
Noreen
19 years ago
JSP
Hi have my listbox using SELECT
and added in my list using OPTION
i have a button on the jsp too
and would like to have a onclick method
that will pick up the selected item in teh listbox
.....
i know how to do the onckcik function in javascript
but how do i access the list from it?
cheers
20 years ago
JSP
Hi
I am just starting to use JSPs
and have been trying to add a listbox to one
how do i go about this - it should just be a single selection listbox....

All help appreciated
thanx muchly
Noreen
20 years ago
JSP
yes, this looks very much as i thought it would...
however our bean is deployed onto the IBM Websphere Server adn we are using the Webspher commerce suite.
and it seems the jar must be placed into a specific directory -- but i would also assume it needs to be added to a classpath (or some such) that will let the server know to load it....?
any ideas?
20 years ago
JSP
Hi there
bit of a problem - i havent used JSP too much before this week - and i am trying to have one as a client to my session bean....except i dont really know how to go about it
can anyone give me some good tips on starting this, or point me to a good tutorial website?
I know how to do the server lookup to locate the home interface of the session but am unsure about setting up initialcontexts etc - would i be better having a bean to do this and then just start on integrating with the session beans?
This has to be done for tomorrow (3pm GMT) so finding out how to do it quickly is of the essence.
many thanx for any help
noreen
20 years ago
JSP
Hi again
well i dont think i have this AAT gui application
but the good news is i deployed my beans successfully!!!
I had to run all those commands from the machine where the server instance is.... and not from a mapped drive... it was obviously an environment setup issue when run from my local machine (which doesnt have a server instance)
thanx for the help!
20 years ago
hi again -
well i am no further along - i have had a look at my wcsejbimpl.jar file and there is def no mention of an EnterpriseApp.class

this is whats in the modifyIsolationLevel.bat file
@echo off
setlocal
call config_env.bat
java com.ibm.commerce.config.components.EnterpriseApp %*
endlocal
so How do i run this if i have no EnterpriseApp...
PLEASE HELP!
thanx
nm
20 years ago
hey Steve - my problem firstly was it just saying it wouldnt run the ejbdeploy cmd - but i solved that and then i was getting that error-Device not ready. EJBDeploy calls a file called setupCmdLine.bat so in that file - i changed the settings to point to the drive on my machine where i had mapped the server to - it then completed EJBDeploy successfully.
My jars are placed in the CommerceServer\temp directory where my WebSphere server is installed
and my working directory is just "." (without "'s ie the current dir from which i run ejbdeploy command )
the next step after that is the modifyIsolationLevel and here i encounter the problem EnterpriseApp class not found
i have searched on my own machine adn on the server and cant locate anything of this name (which explains why it cant find it!!) so dont know what to do next! =/
If anyone knows anything to solve this all help is appreciated
thanx
Noreen
20 years ago
hi
i am having a bit of trouble deploying my beans to the server. I am trying to use the ejbdeploy command and it keeps telling me the device is not ready. This is probably something simple i am missing but i am at a loss?!?!
thanx
nm
20 years ago
Kyle - u are a godsent angel! =)
thanx muchly
just a quick Q --> is this a websphere issue-- as i have been able to just get an object from an enumeration before (i am unsure if it was something that was taken care of in the framework i was working in then..)
Anyway. many thanx.
nm
20 years ago
hullo again
well through some perseverance (and the help of the debugger)i have found out where my problem is -- the casting exception is coming from when i try to retrieve an object from the Enumeration and cast it as the remote object
Anyhoo... here is what i am trying to do :
Enumeration graphicalAssistantEnum = this.getComponentByProductId(productId);
if (graphicalAssistantEnum.hasMoreElements()){
GraphicalAssistant ga = (GraphicalAssistant)graphicalAssistantEnum.nextElement();
componentDetailsVector.add(ga.getComponentDetails());
}
and my casting exception is coming from the .nextElement call on the enum.... but i have retested my entity adn it is surely getting each instance of the remote object (GraphicalAssistant) and storing them in an enumeration without problem.... it just doesnt seem to work when i try to get it back out....
my head is baffled!
any help appreciated!
nm
20 years ago
hi again --
well i made a few changes to my entity and session beans as i reckon the output from the PNS on the Console def indicates it is retrieving the entity bean....
my aim was that the method i was calling on the entity would return an Enumeration --> but i changed this all to just return a single instance of the object - and it seems to be working correctly.
However i dont understand why it wont return an Enumeration? I have tested my entity using the Test Client and the finder method i have written def returns an enumeration as it adds each instance of the object that matches the query....
in my session bean i call one of the methods in the entity on each obj in the enumeration and add the results to a vector. When i run this in my test client on the WTE, i get the classcast exception and am informed the vector is empty.
AS said above, when i changed this to retrieve just one instance, it is successful... am i missing something?
sorry it has turned a bit more comvaluted!
nm
20 years ago
nope- that didnt work -- but thanx for the suggestion!
still geting the same exception :
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: com.ibm.ejs.container.UncheckedException: ; nested exception is: java.lang.ClassCastException
although this is what is output in the console for the PNS :
[02.05.02 10:31:10:217 BST] 1962 NamingContext E resolve: name = sterling.ebiz.retrieveallcomponents cname = /
[02.05.02 10:31:37:385 BST] c47 BootstrapRequ E operation: get
[02.05.02 10:31:37:666 BST] 1962 NamingContext E resolve: name = sterling.ebiz.graphicalassistant cname = /
nm
20 years ago