perry arora

Ranch Hand
+ Follow
since Sep 18, 2003
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 perry arora

Hi friends.,


I am attaching the copy of my ejb-jar.xml, and the code also whic i am using to , fetch the value of an <b>Environment variable named interestrate</b>


<session>
<env-entry>
<description>Reflect the present interest rate</description>
<env-entry-name>interestrate</env-entry-name>
<env-entry-type>java.lang.Float</env-entry-type>
<env-entry-value>9.0</env-entry-value>
</env-entry>

</session>


Code used to acess the variable

Context initialcontext = new InitialContext();
(Float)initialcontext.lookup("java:comp/env/interestrate")

But i am getting a Java.NameNotFoundException

I am able to access the local session bean using the ejb-ref under the context java:comp/env/ejb/local .

But when i am trying to use the above code for accessing the environment variable , in a method of the stateless session bean i am not able to


Need you help

Thxs

Perry
hi friends

What i am doing is that i am diaplying an html content from a jsp,
that content has a call to a java script function which is defined in some another java script file which i am including in the html code.

know when i run the html code . with out includinh it in a jsp file it if running fine
But when i try it and want my jsp to give the same result wheni run it ina browser it not working
I tried to debug and found that the java script function which i am trying to call , is not being properly called!
The reason which i thing may be is that when i was using the plain html file to run , then the java script file that has the defination of that fucntion was there in the same folder,
But in case of jsp .. i dont know where we put that javascript file so that it is visible to that jsp...
i know that we have a location to place all the class files which the jsp is using but do we place the java script file in the same place ,
Hey can any one tell me where we need to put the file...
or any one who is expert in javascript can help me !!!
thxs
i will b waiting for reply
bye
hi friends
me still striving in java script and html.//. new to it..

hey can an y one guide me how to populate the textarea .
what i need is that i am fetching the data from the data base and need to
put that data in a text area to the client in the read only mode..
well the jsp can fetch the data for me from the data base but the string or stringBuffer in which i will store the data fetched from the data base \

can i use that to populate the text area
For e.g StringBuffer abc.,
have the data can i do
<textarea name="abc" value=abc>
</textarea>
i think it will not work.. so what the possible way out ,,., can i assign the property value to any other external data source or !!!
hey plzzzzzzzz help me ,,
bye
and thxs

Originally posted by Eric Pascarello:
Saving to a databse can not be done with JavaScript. You need a server side language to do it. There are many tutorials online to save information to a database from a form.
The form is basic HTML.



hey thxs for reply .. i got this much but byy need it that i need to display and implement the functionalities like .. Bold and italic for fonts in that window which will be opned for this text area!!!
Can
CAn any 1 help me .. its urgent.. the window which will open will have a text area to enter info, with that we have options to bold the text or choose italics,,. we have two buttons SAVE and CANCEL
What i have planned is that on SAVE i will call a jsp and it will save the data
hi friends need your help.!!!1

in problem badly,.,

i have never worked on java scripts and now i have develop a java script code
its goes like this .. that when a user click ona link then a new window shoud open and in that new window i shoud have a big text area to write in and two buttons Save and Cancel doing their normal job....
and also .. i need to save the data to the underlying data base ....

hey plzz any one guide me or if u have the script plz post it
b bye and thxs a lot
thxs

Bu i need some more information!
Can any one give it..
Plzz
thxs
bye
friends i got a site that performs validation named
http://www.stg.brown.edu/cgi-bin/xmlvalid/xmlvalid.pl
is there any better way i mean to say any utitlity etc etc
or any other good site

b bye
hi i am new at working with XML
But the problem i am facin gis that i developed a j2ee application and deployed! on OC4J( oracle container for java).. but since i made some coding mistakes in XML files
the server flooded my screen with errors .. well i can very well fig out what the errors are but . it took me time to once again create all the jar files after recoding the XML files...
What i was thinking was since the server also validates the XML file in the jar files against a DTD which it has a copy locally with it.. so is there any tool or
Way to verify the jar file created againsta that DTD before creating the final jar files or befor Deploying!!!

PLz i need your help
THXS
thxs kylie and rest of all for replying!
thats what was confusing me that if they both perform the same thing then wats the use of having both !
Kylie does it makes any difference on the performance if we ejb-ref or jndi
and also coud you tell me how to link the ejb-ref to a specific JNDI at the tim eof deployment .. i only know that we need to use some SYMBOLIC links for that!

thxs!
b bye
hi friends need you r help.

Previously i was really confused about the JNDI namefor an ejb. and the ejb-reference for an EJB
But after trying hard i got some notes from a Book (pdf) on a Site ,Quickly i will frame What i wanna discuss and need your help on.
What is got from that book is that the ejb-ref name is a kind of Nick name for the ejb itself. and what happenes is that when we
develop the application we and we use an reference or accessing the EJB. that we call as an ejb-ref for that EJB.
Now there coud be a possibility that the person who is developing the bean . may not deploy it under the same JNDI location as we have refered while coding the bean and know that person has only the class files which he can not modify , or lets we dont wanna him to modify our coding, and By default all the lookup for the bean are prefered under the location "java:comp/env/ejb" this is whtat being recoomened by the EJb specification,.
in that case our ejb-refernce can be mapped to the JNDI name (Exact JNDI name ) by the deployer using some technology called as SYMBOLIC LINKS>!! so..
The reason i have givensuch a long details of my view as i WANT some one to .. tell me that whether i have got the right thing or not..
buz i was not able to .. figure out the reason that why do we need both the JNDI name and ejb-refernce for the EJB's when the job can be done with the either!!!..

SO plz ANY ONE WHO IS CONFIDENT IN THIS SUBJECT HELP HELP ME!!
I HAVE POSTED THIS TWICE BEFORE BUT NO ONE HELPED ME!..

Originally posted by Lasse Koskela:
The configuration method is completely vendor specific. Yes, most vendors use an XML file but some might use a .properties file just as well.
I'd suggest you turn to one of our product forums for questions regarding the details.



thxs for clearing that
But plz tell me that do we have to write any code or .. we can staright way retirive a DataSource that is implementing the connection pooling behind the scenes , as i have checked in the Oracle9IAs, that have many different-2 implementation of the data sources ., and we have to lookup for the one which we needed... so all the Application servers have some method or we may have to write a code to implement that in our application

Originally posted by Lasse Koskela:
The configuration method is completely vendor specific. Yes, most vendors use an XML file but some might use a .properties file just as well.
I'd suggest you turn to one of our product forums for questions regarding the details.

hi friends!

Need your help.

How to we give information about the data base to the J2ee server, or i should say that how do we tell the information baout the Datasource which the j2ee server uses to communicate with the Database..
I want to confirm about what i have learned and what i have used so far.
In each and every server we have an .xml file for defining the data source , which in other words provides information to the j2ee server about the database!
I have used the OC4J( for e.g) the oracle container for java, in this we have an config file name data-source.xml , and in that we have few properties for the <datasource> tag to be defined, in those properties we have one property named,. "url" in which i have used the value as "jdbc racle:thin:@localhost:1521 aorcl" which i think serves a URL for the connecting to the data base..

I THINK I HAVE GOT RIGHT!.

and this is the only information which we provide to the Server about the databasE!>>
and regarding the connection Pooling that is being handled by the driver it seld what do we do implement that!
Please if any one coud help in what else we need to check about the data base which we are using except this. and What is Connection Pooling..
tnxs in advance!
thxs a lot
Mr. Kyle Brown's
i visited your home page and it was GREAT!