Vijay Bharghav bheemineni

Greenhorn
+ Follow
since Aug 31, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Vijay Bharghav bheemineni

Hi All,

Till today I was thinking "request" and "response" objects are thread safe, because Servlet creates these object for every new request. Even "Head First" series says "request" and "response" objects are thread safe. But today when I am reading Servlet Specs "SRV2.3.4", I found that they are not thread safe.

Please comment.

Regards,
Vijay Bheemineni.
Thanks Rufus for clearing my doubt.

Vijay Bheemineni.
Can one please explain what is the use of "AT_END","NESTED","AT_BEGIN". I read about them in Tag handlers, Tag files and variable attribute tag but couldn't understand.

Thanks.
Thanks Bear, so you mean to say there is no way stopping users from accessing the content which is under "Root" but not under "/WEB-INF".
16 years ago
JSP
Hi ,

Recently I had developed website, which I would be hosting online on Tomcat Server soon. I don't want users to access my resources under Root Context for example "Images","CSS", "Java Script" extra.

I know all resources under "/WEB-INF" are restricted but I don't want to keep them over there.

I can implement filters and based on URL I can reject the request but I want to find if there is any better way of doing this?.

Please advice.

Thanks in advance.

Vijay Bheemineni.
16 years ago
JSP
Thanks Jharna and Ravi.

Vijay Bheemineni.
Hi Java Ranchers,

Do we need to study all the standard tags mentioned in specs?, such as "<jsp lugin>","<jsp arams>","<jsp:fallback>","<jsp utput>".

Thanks.

Vijay Bheemineni.
Hi Luis,

The second option doesn't throw error. It will display blank. Below are notes from JSP spec.

To evaluate expr-a[expr-b]
Evaluate expr-a into value-a
If value-a is null then return null.
Evaluate expr-b into value-b
if �value-b� is null then return null.

Below answer's your second query.
Points from JSP 2.3.3

JSP pages are mostly used in presentation, and in that usage, experience suggests that it is most important to be able to provide as good a presentation as possible,even when there are simple errors in the page. To meet this requirement, the EL does not provide warnings, just default values and errors.

Thanks.

Vijay Bheemineni.
Ravi,

Your statements are correct except I am skeptical about "else it is done at the time of client request" . As far as I remember the specs says that vendor can instantiate servlet's during start of the servlet container or at the time of client request if <load-on-startup> is not mentioned.

Can any body clarify this?

Thanks.
Vijay Bheemineni.
Bhupendra, you are correct. If scope is not mentioned then its "Page" scope. Ravi explained in detail regarding this in the post related to this query.
I agree with Ravi. People who try to get certificate through mal practices or illegal practices don't have any subject knowledge, there certificates are just to show off to there managers or for appraisal or decoration piece.

What's real purpose of certification? real purpose of certification is to get good understanding of the concepts. I write certifications because it helps me to understand concepts and helps to get my basic's right. The concepts I read help me to write my program in better and efficient way. These concepts help me to understand whats actually happening at the back end.

Yes there might be few instances as you might have pointed out but just report those incidents to SUN and stop worrying, SUN will take care of them. You get prepared for the certification in the hard way. Nothing can beat the happiness and Joy you feel once you get certified in the ethical way.

All the best Manikanth, SUN Certification's are worth taking, you can show the world you can do any thing if given chance.
Deepthi,

Call up Sun Customer Support, definitely they will be able to help you out.

Vijay Bheemineni.
Thanks John, I would have never thought 3 would be right answer, If I wouldn't had seen this post.

Vijay Bheemineni.