Sharanya Sharma

Ranch Hand
+ Follow
since Jul 26, 2004
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 Sharanya Sharma

Hi,

Thanks for the reply.

I overlooked the constructor and thought it was an arg constructor.. Sometimes I need a second eye to look in to things

Yae, I wanted to know how can we retrieve the parameters set at the servlet config level in the DD using impicit objects.

Rgds,
Sharanya
Hi,

Can anybody help me by answering the questions

Sharanya
Hi Pallavi,

Before answering your questions let me say that I am also a learner and I am just putting my 2 cents.

coming to your questions.
1)Classes having EL functions should be public and they can not be private. Because the JSP's will not be able to access the functions. The function can/cannot have no-argument constructor as the functions that we are using in the EL are static and static functions do not need an instance of the class to be created and hence the presence of a constructor does not matter.

2) As EL cannot instantiate the class they can use only static functions.

I think if we try to access an instance method of a class from EL which is not instantiated, we get error. I am not sure of this part and someone has to confirm it. Let me check this (hands on ) and get back to you.

Thx,
Sharanya
Hi,

As we know the implicit object "initparam" references to the context init param. I was curious to know how do we get config(mapped to JSP in the DD) init params through EL implicit objects.

In the Scriptless JSPs chapter pg 419 Q4 the TheBean class has a constructor and hence does not have a no-arg constructor. As we know that if the usebean has to create new instance of the bean class the class should have the no-arg constructor. I think none of the options can create new instance of the "TheBean" given in question. Can anybody tell me if I my understanding is wrong.

Thx,
Sharanya
Hi,

can anyone please confirm on the option 'C'.

Thx,
Sharanya
Hi,

In the "Be The Container" Pg 245 the question was asked to check out what happens when each of the servlets are invoked twice by the client. But in the answers the result when it is first accessed is alone given.
I don't see any difference between the first access and the second access to these servlets and they will produce the same result. Please let me know if I am wrong and if the result for the second access is different from the first.

In the question7 on pg267 option C says that session attributes are available to any servlet on the same servletContext. Does that mean servlets in the same servletcontext and part of the same session?


Thx
Sharanya
Hi Kathy,

Thanks for the reply. I think I understood the concept now.

-Sharanya
Hi All,

I read the discussions on idempotent in this forum.

Can you please clarify me on what would be the case if we had used a "post" method instead of "get" in the example given in page 112-113 in HFSJ.

And also if my understanding is right that "get" and "head" methods are idempotent while post, put and delete are not.

Thanks
Sharanya
Thanks,

I thought as for HFEJB there will be answers for this too in the orielly site. I will check for the answers in the archives.

-Sharanya
Hi All,

I just got my copy of HFS&JSP. Can any one of you let me know where can I get the answers to the sharpen your pencil questions. I checked the Orielly site and wickedlysmart as well, but couldn't find it.

Thanks
Sharanya
Hi,

I have made a jar file out of an application in tomcat. While trying to deploy it using the console. I am getting the following error.

Here jspbook is the name of the application(archive)

Exception:weblogic.management.ApplicationException: prepare failed for jspbookWeb Module: jspbookWeb Error: Context path 'jspbookWeb' is already in use by the module: jspbookWeb application: jspbook

[Deployer:149033]preparing application sample on cgServer
[Deployer:149033]failed application sample on cgServer
[Deployer:149034]An exception occurred for task [Deployer:149026]Deploy application sample on cgServer.: Exception:weblogic.management.ApplicationException: prepare failed for jspbookWeb Module: jspbookWeb Error: Context path 'jspbookWeb' is already in use by the module: jspbookWeb application: jspbook .

Please help me .

Thx
Sharanya
16 years ago
Hi,

Congrtas!! Thats a very gr8 score ..
Did u take 1.3 version or 1.4 version

-Sharanya
16 years ago
Hi,

I have taken exam on August 13, 2004, but I am surprised I haven't yet got the kit.I live in CA, USA, so I guess it not should take much time as for an international mail.
I mailed SUN at the FAQ column in the Cert manager and also to the prometric.. I was wondering if there is any phone number or any 1-800 number where I can call and enquire.

Please let me know

Thx,
Sharanya
16 years ago
Hi,

can u please mail me the books at kallu_koundinya@rediffmail.com

Thx
16 years ago
Hi,

I am learning to use simple custom tags.

But my code is not compiling at the line of importing SimpleTagSupport class. But in the jar file I have the SimpleTagSupport class.

Please let me know why is this problem.

I am using tomcat 5.0.28 and J2sdk1.4.2

Thx
Sharanya
16 years ago
JSP