shwetha bol

Greenhorn
+ Follow
since Oct 16, 2002
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 shwetha bol

Sorry for posting the result in this forum, just wanted to thank everyone. I successfully completed my scwcd exam.A Big thanks to ranchers for their help.
shwetha
21 years ago
I might be wrong, but as far as i understand , setAttribute is the way of adding the object to any scope.Is there any other method??
Hi,
Here's a small example according to what i understood

Eg for HttpSessionBindingListener

eg for class implementing HttpSessionAttributeListener

Eg of the servlet where these listeners will be
invoked

In the above example, myListener should be configured in web.xml
Hope this helps,
sorry i meant '/' in my previous post
Hi,
thanks for the reply. but i still have the doubt where did '\' after the blue go, its not there in servlet path as well as pathinfo
thanks
In case of mapping request URI to servlet, its been mentioned in SCWCD exam study kit that 'Context Path and servlet paths start with /
but doesn't end with it'
consider following lines from web.xml

what is servlet path? If the request URI is /colorapp/blue/
Is it /blue/ and path info -null (assuming /colorapp is context path.)
Thank you
shwetha
Hi,
1)I found following question in one of the mock tests on web.

--------------------------------------------------
I thought correct ans is 2 and same is true even when executed on Tomcat. But the ans is given as 4, explanation is 'nothing can be printed from doAfterBody', is that true?
what will be the result if TagSupport is replaced with BodyTagSupport
Can anyone clarify
Thanks
shwetha
Hi,
Even i was facing same problem
with one of my applications
I had made 2 mistakes
1. listerner should be configured even
before the element servlet. Please
refer the web.xml dtd for exact
order of various elements in web.xml
2.Since listeners are introduced in
servlet spec v 2.3, if your web.xml
is pointing to older dtds it will create
problem

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
if its '2.2' instead of '2.3' it will not work

Hope this helps