This week's book giveaway is in the General Computing forum.
We're giving away four copies of Learning Regular Expressions and have Ben Forta on-line!
See this thread for details.
Win a copy of Learning Regular Expressions this week in the General Computing forum!

Arvind Giri

Ranch Hand
+ Follow
since Jun 26, 2005
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 Arvind Giri

Try it:

But, what if a server have different aliases(e.g. mail.xxx.com and xxxmail.com may be same server) and application needs to know which url was requested.
Yes Guys! You are right!

I got confused with <path> element which requires full path.
A tag file can be placed anywhere in the jar. But it must have a tld, which should be there in META-INF or its sub-folder.
It would be valueBound valueBound valueUnbound valueUnbound.

coz,


Statement:
Result: valueBound


Statement:
Result: valueBound valueUnbound


Statement:
Result: valueUnBound
Congrates Sharad


Soon I'll catch you in SCBCD forum.
Hey! I got the answer, its very ridiculous.

I developed a simple tag and didn't specify the body-content.

myTags.tld



TestTagHandler.java



test.jsp



and I am getting following exception




Does that mean that default value of body-content is JSP( Irrespective of type of tag(be it simple or classic)), But simple tag don't support JSP as body-content?
Hey Satou,
Now I am confused. Could you please tell me where it is mentioned that there is no default value.
Please reply.
Congrates Manish , Its a very good score


However, I think that it's always a run-time call irrespective of the contents of the included resource? Pls correct me if i'm wrong.



Yes it is always a run time call, But static content are inserted on as it is basis at run time.

e.g. if your html page contains




Then you will see <%= 1 %> in your browser.

However had it been a jsp file then the output would be generated from jsp and that would be inserted in the output stream. So the output would be 1 not <%= 1 %>;

Hope it answers your question ?
[ November 23, 2006: Message edited by: Arvind Giri ]
wait.....

After invocation of the next filter in the chain.

means after filterChain.doFilter() statement in filter.


Q1.
The scenario is : (for example) Filter2 after doing some processing with the response object give it to Filter1.
With respect to step 5 ,it means to tell that now filter2 may examine response headers even after giving it to filter1.



With respect to step 5 it means that when control will return to filter2 from call stack of filters and servlets(and servlet has generated response),
then filter 2 may/should examine response header. i.e. after filterChain.doFilter() statement.



Q2. Does the rule of step 5 also apply to request object?(because it is not explicitly mentioned about request object)

(OR) Simply put , Is the below statement valid ?

"After invocation of the next filter in the chain, the filter may examine request headers"



Hope now you are able to figure it out.
According to jsp 2.0 specs , default value of body-content is JSP(Page Number: 166(1-133)). and for tag directive it defaults to scriptless(Page Number: 196(1-163)).