shekar march chandra

Greenhorn
+ Follow
since Jul 07, 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 shekar march chandra

Hi,

I am deploying entity bean which has a primary key class, but at the time of deployment it says could not load the primary key class.

could anyone of you tell me a solution towards this.

Thanks,
chandra
Hi,

I have developed ejbs and created a jar file for it.

I am developing servlets(which performs a lookup for ejbs),the problem is i am not able to import other project contents(i,e ejb project contents)

say I have an Ejb project by name Ej.All the beans will be in Ej.

Now, I have an Tomcat project by name Bj,I have to import all the contents of Ej project.How to do it ???

I tried to import but not working

Thanks,
Chandra
Hi Ram,

It would be better if u provide alink with example.

Thanks,
chandra
17 years ago
Hi,

Can anybody explain me what are the settings needed for deploying Ejbs in weblogic server.

classpath settings, jar files etc...

I am using weblogic server.

It would be great if anyone can tell me all the details, what are the jar files, classpath settings needed.

Thanks,
Chandra
17 years ago
Hi David,

Really I was wondering how to write Ant script for creating war file.

After your suggestion and help, I was really happy.I followed the procedure told by you and created the war file and got deployed successfully in weblogic server.

Once again, Thanks a lot for your help.

By the way, I had doubts:

1. whats the difference between tomcat project and web project.

2. Is the procedure same even for ejbs.

Thanks,
Chandra
17 years ago
Hi,

David i think you are right. Can u tell me how to write an ant script.

Thanks,
chandra
17 years ago
Hi,

Can anybody have idea, how to create a war file in eclipse.

Thanks,
Chandra
17 years ago
Hi,

First of all, you should know that each and every servlet has a servletconfig object and for the entire web application per jvm you have only one servletcontext object.

servletconfig----------one for servlet.

servletcontext-----------one for web application.

Basically these are used for initializing parameters.

suppose you want something to be accessed by everyone, at that time go for servletcontext.Bcoz, if u keep that in context everyone can get to it.

suppose you want something to be available only to that particular servlet, then opt for servletconfig object.

Thanks,
chandra
17 years ago
Hi,

classdefnotfound error appears because ur classpath is not set properly.

suppose assume your .java file is present in c:\test\oo.java.

u should set your classpath to c:\test.

set CLASSPATH=c:\test.

THis will solve ur problem

Thanks,
Chandra
17 years ago
Hi kumar,

Yes, the answer is right. It creates two objects from the following statement.

String a = new String("AA"); --------------1

First you should be aware that there is something called as Heap(where

objects live) and String Constant pool(especially for string literals

eg:String a = "abc", this will be placed into String constant pool).

Since you have used new keyword in equation 1, it will definitely create

one object in Heap and a will refer to it.

In addition, the literal "AA" will be placed into String Constant Pool.

so u have created two objects

1. one in heap 2. one in String constant pool.

But only one reference variable. i,e : a

I think this will clear ur doubt.

Thanks,
Chandra
17 years ago
Hi Abhijith,

Yes, It is possible to use doGet()as well as doPost() in a single class.

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class Test extends HttpServlet throws IOException, ServletException
{
public void doGet(HttpServletRequest req, HttpServletResponse res)
{
doPost(req,res);
} /* end of doget()*/

public void doPost(HttpservletRequest req, HttpServletResponse res)
{
String name=req.getParameter("username");
res.setContentType("text/html");
PrintWriter out= res.getWriter();
out.println(name):
} /*end of dopost*/

} /* end of class */



In your html file the declaration will be like this

form method="Get" action="dosomething".

By looking at get request, the servlet engine will call appropriate class as mapped in web.xml and invokes doget() method, which inturns calls dopost()method.

I think your doubt is clear. If not reply back .

Thanks,
Chandra
17 years ago
Hi Venu,

I think the second option is good.

Because instead of using scriptlet, it is good to go for Jsp Elements.Thats what I guess.

Thanks,
Chandra
17 years ago
JSP
Hi ppl,

I want to know how to take scjp1.4.

1. where to register and how to obtain the details of exam.

2. which place to take test.

please provide info on this.

Thanks,
march
Hi,

ClassNotFoundError occurs when it is not able to find the class in the right path.

Probability will be high in the package structure.

Make sure the .class file is kept in the proper directory.

Thanks,
Chandra
17 years ago
Hi ppl,

I want to learn javascript.So could anyone tell me good book for javascript.

Thanks,
Chandra