Win a copy of Rust Web Development this week in the Other Languages forum!

John David

Greenhorn
+ Follow
since Aug 17, 2006
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 John David

Hi folks
Could you please hepl in finding, How many ways we can call Statis HTML page from aservlet. Through Request Dispatcher can we forwqaqrd the request to Static HTML ? Please explain me with samle code

Regards
David
11 years ago
Hi Folks
do i need clear SCJP before taking SCWCD?
and another doubt is how can i prove my self that i cleared SCJP without any hard copies?
will my ID can be there in Sun site ? how can i check mySCJP ID online?

please reply me


regards
David
Respected folks,

how can we read a properties file and its contents from pom.xml in maven?
like in ANT we are reading properties file as <property file="X.properties" />;
and we are acessing the values of the properties file like ${ZZZ}.

is there any specific tag in maven to read a properties file?

thanks in advance
Regards
David

[ September 17, 2008: Message edited by: John David ]
[ September 17, 2008: Message edited by: John David ]
13 years ago
respected Folks ,

how can i call the ant's build.xml file from maven's pom.xml ?
is there any way for that ..


regards
david
13 years ago
Hi Rodrigo Tomita
Thanks a lot for your reply. but im not going to create or write a plug in. but im trying to read the command ine parameter and based on that parameter i have to compile specific folders only and rest of them shoud be discarded...

could you please help me out in this issue..

Regards
David
13 years ago
Respected Folks,

i need to send some parameters through command line and i have to read the parameters.depending on that value i have to read specific folder ...

could you please help me out


regards
David
13 years ago
Respected Folks,
could you please explain me the difference between the tags
<xsl:apply-templates> and <xsl:for-each> in XSLT...

awaiting for your reply

Thanks & Regards
David
Respected Folks
couldyou please explain me how to write a properties file and access those values from a java file.
thanks in advance

regards
David
13 years ago
HI FOLKS,
IS SCWCD 1.4 EXAM IS DISCONTNUED ?
DO I NEED TO PREPARE SCWCD 5 ?

CAN YOU PLEASE PROVIDE ME OBJECTIVES OF SCWCD 5 AND THE MAJOR DIFFERENCES BETWEEN 1.4 AND 5..

REGARDS

DAVID
respected Folks

i have to create file with n number of records.
each record contains some last name,firstname, city and state.
what may be the file type i.e extension of the file like doc or txt ?
how to insert those recors in to the file ?

please suggest me with code snippets/examples...

thank you
[ October 10, 2007: Message edited by: John David ]
14 years ago
respected folks!
what will happen if we modify the generated servlet code in the jsp file ?
14 years ago
actually i did not wrote any business logic in bean .
all the problem is with client code which is calling that home object.
my client code is like this


public class JrsClient1 {
public static void main(String ar[]) throws Exception
{

Hashtable env = new Hashtable();

env.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");

System.out.println("after initial context factory");
env.put(Context.PROVIDER_URL,"iiop://localhost:2809");

Context context = new InitialContext(env);

Object ref = context.lookup("ejb/com/americanexpress/JRSStatelessHome");
System.out.println("after lookup");
JRSStatelessHome jhome= (JRSStatelessHome)PortableRemoteObject.narrow(ref,JRSStatelessHome.class);

JRSStateless jrsstateless=jhome.create();
System.out.println( jrsstateless.addJrs());
}

}



the exception im getting is

javax.naming.NameNotFoundException: ejb/com/americanexpress/JRSStatelessHome. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound
at org.omg.CosNaming.Naming
ContextPackage.NotFoundHelper.read(NotFoundHelper.java:48)



pleaseeeeee help mee
14 years ago
I WROTE A STATELESS SESSION BEAN AND A SMALL CLIENT CLASS TO ACCESS THAT BEAN.
IAM GETTING THE FOLLOWING EXCEPTIONS AT RUN TIME

javax.naming.ConfigurationException: The property com.ibm.ws.naming.wsn.factory.initial is not set. The most likely cause is that the jar which contains the file com/ibm/websphere/naming/jndiprovider.properties cannot be found by the class loader.
at com.ibm.websphere.naming.WsnInitialContextFactory.init_implClassCtor(WsnInitialContextFactory.java:190)
at com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(WsnInitialContextFactory.java:108)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:255)
at javax.naming.InitialContext.init(InitialContext.java:231)
at javax.naming.InitialContext.<init>(InitialContext.java:207)
at JrsClient1.main(JrsClient1.java:40)
Exception in thread "main"


CAN ANYBODY EXPLAIN ME WHAT IS THE REAL PROBLEM..
14 years ago
respected jai kiran ..... excellent answer. thanks for your great responce..
15 years ago
can you explain why the return statement in finally block only exicuted?
what happen when the controller encounters the return statement in catch block?
15 years ago