shweta mathur

Ranch Hand
+ Follow
since Sep 23, 2002
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by shweta mathur

I want to transfer some parameter from XSL to a servlet. Is there any way to go about it ?
I am not able to use getParameter from request object, if I call the servlet from XSL.
Help required !!!
20 years ago
In my case, the clock started as soon as the agreement page came. I guess Sun doesn't want us to read their agreement !!
If they want us to read the agreement, they should start the clock only when we r done with the agreement.
Hi All,
I am new to Struts but wanted to use Struts for development of my website. I have been reading lot of reviews of Struts books and wanted to know abt the book -The Struts Framework: Practical Guide for Programmers. by Sue Spielman.
I am asking especially abt this book becoz itz a 135 page bok & I love such small books. I have read a few tutorials abt struts and so by now I am a bit familiar with the jargons ActionServlet, ActionForm, ActionMapping, action class and the structure of struts-config.xml & web.xml. Also read abt Tiles(how to use definitions etc )Believe me nothing more than that !!
Now my question is whether Sue Spielman will help me giving a boost in starting developing my site in just 2-3 days ??
I understand that I can get the API details and all on net, so I was interested in buying a book which does **NOT** act like a sleeping pill but tells me what all Struts can provide in web-development & how can I exploit it at all the stages of my website development.

Please help me.
Or shud I buy Struts in Action or O'reilly book ??
20 years ago
Yeah, k Oyedeji u shud tell us, what worked ?Did 'Thomas's streamer funda' worked???
I am looking for a job in UK for around a yr, but no success. The recruitment agents here have thousands of reasons to say "We'll call u back whenever the next oppurtunity comes". Sometimes I feel these ppl advertise the job requirements AFTER they have selected the person.!!
If the streamer funda worked, I will start making a big streamer from today !!
20 years ago
Hey Faisal,
Congratulations for the great score !! And ofcourse for the baby..!!
20 years ago
Hi Manish,
Congratulations for the great score !!

Hey, I wud suggest you to take SCBCD first, becoz there is going to be a new version of SCWCD soon, so I guess u shud take the new version exam. Till then u can take SCBCD.
But, ya that is possible if you already know JSP/servlets as without that learning EJB wud be a bit difficult.
Do u have experience in JSP/servlets/EJB ?
20 years ago
Yeah, it can.. I don't think there will be any problem in your class. Inner classes are just helper classes to the main class. You can define an abstract class and then extend it.
See the following example. I just extended your class to do something and it works fine.

In B.m1
In m2
In m3
Congratulations Chi Lin !!!
20 years ago
Hey Pradeep,
Thanks a ton for your help, it worked !!!
My First EJB...
20 years ago
I am very new to EJB.....may be itz a very basic question but
how do I give the usename as guest in jndi lookup ??
My client is as follows

public class Client_41 {
public static void main(String [] args) {
try {
Context jndiContext = getInitialContext();
Object ref = jndiContext.lookup("CabinHomeRemote");
CabinHomeRemote home = (CabinHomeRemote)
CabinRemote cabin_1 = home.create(new Integer(1));
cabin_1.setName("Master Suite");

Integer pk = new Integer(1);

CabinRemote cabin_2 = home.findByPrimaryKey(pk);
} catch (java.rmi.RemoteException re){re.printStackTrace();}
catch (javax.naming.NamingException ne){ne.printStackTrace();}
catch (javax.ejb.CreateException ce){ce.printStackTrace();}
catch (javax.ejb.FinderException fe){fe.printStackTrace();}
public static Context getInitialContext()
throws javax.naming.NamingException {
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
p.put(Context.PROVIDER_URL, "t3://localhost:7001");
return new javax.naming.InitialContext(p);

20 years ago
But, I have already specified permission to everyone

In ejb-jar.xml

In weblogic-jar.xml

What am I still missing ?
20 years ago
I just deployed my first Cabin EJB (from Monson-Haefel book) on weblogic 8.1.
But when I try to run the client, I get the following error

C:\bea\work\ejbbook\ex04_1>java com.titan.clients.Client_41
java.rmi.AccessException: [EJB:010160]Security Violation: User: '<anonymous>' ha
s insufficient permission to access EJB: type=<ejb>, application=titanejb, modul
e=titanejb, ejb=CabinEJB, method=create, methodInterface=Home, signature={java.l
at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.j
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
at com.titan.cabin.CabinEJB_o1ckw5_HomeImpl_811_WLStub.create(Unknown So
at com.titan.clients.Client_41.main(

CAn anybody pls let me know how do I remove this access problem...
20 years ago
Hi Pradeep,
You can send a mail to to request a new certificate and ID card. Include your name and Prometric Candidate ID number.
Refer this for details
I gave my SCJP and SCWCD some 6-7 months back and received the certificates(with expiry dates) and the logos for each exam.
A few days back, when I came to know that Sun has changed the expiry date rule, I wrote to them, and Hurray I have received the new certificates without the EXPIRY DATE..
Also I received the new Java Technology logo. I guess I should now remove those two old logos and put this new logo on my resume. Yeah, I guess now they have made a single logo for all Java related exams...
Hi Manish,
For assertions read
Also Linked Hash Maps/Sets are added in 1.4
Refer link
If you can afford some time, this is an excellent guide for that last minute preparation A concentrated guide by Ashraf Faoud-
[ September 20, 2003: Message edited by: shweta mathur ]