shweta mathur

Ranch Hand
+ Follow
since Sep 23, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
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 shweta mathur

Hi,
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 !!!
18 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 ??
18 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 !!
18 years ago
Hey Faisal,
Congratulations for the great score !! And ofcourse for the baby..!!
18 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 ?
18 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.

o/p
In B.m1
In m2
In m3
Congratulations Chi Lin !!!
18 years ago
Hey Pradeep,
Thanks a ton for your help, it worked !!!
My First EJB...
18 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)
PortableRemoteObject.narrow(ref,CabinHomeRemote.class);
CabinRemote cabin_1 = home.create(new Integer(1));
cabin_1.setName("Master Suite");
cabin_1.setDeckLevel(1);
cabin_1.setShipId(1);
cabin_1.setBedCount(3);

Integer pk = new Integer(1);

CabinRemote cabin_2 = home.findByPrimaryKey(pk);
System.out.println(cabin_2.getName());
System.out.println(cabin_2.getDeckLevel());
System.out.println(cabin_2.getShipId());
System.out.println(cabin_2.getBedCount());
} 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);
}
}

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

In ejb-jar.xml
<method-permission>
<role-name>everyone</role-name>
<method>
<ejb-name>CabinEJB</ejb-name>
<method-name>*</method-name>
</method>
</method-permission>

In weblogic-jar.xml
<security-role-assignment>
<role-name>everyone</role-name>
<principal-name>ejbbook</principal-name>
<principal-name>guest</principal-name>
<principal-name>system</principal-name>
</security-role-assignment>


What am I still missing ?
18 years ago
Hi,
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
ang.Integer}.
at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.j
ava:108)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
ef.java:284)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
ef.java:244)
at com.titan.cabin.CabinEJB_o1ckw5_HomeImpl_811_WLStub.create(Unknown So
urce)
at com.titan.clients.Client_41.main(Client_41.java:20)


CAn anybody pls let me know how do I remove this access problem...
18 years ago
Hi Pradeep,
You can send a mail to who2contact@sun.com to request a new certificate and ID card. Include your name and Prometric Candidate ID number.
Refer this for details
http://suned.sun.com/US/certification/faq/#recert
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 http://java.sun.com/j2se/1.4.2/docs/guide/lang/assert.html
and
http://www.ii.uib.no/~khalid/pgjc/jcbook/JC2_Ch05-assertions-excerpt.pdf
Also Linked Hash Maps/Sets are added in 1.4
Refer link http://www-106.ibm.com/developerworks/java/library/j-mer0821/
If you can afford some time, this is an excellent guide for that last minute preparation A concentrated guide by Ashraf Faoud- http://www.valoxo.ch/jr/scjp2v1final.zip
[ September 20, 2003: Message edited by: shweta mathur ]