Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!

Radhakrishna Bhat

Greenhorn
+ Follow
since Dec 26, 2007
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 Radhakrishna Bhat

Here is what i do in my applications.

use context-param to store connection strings.

use properties file for Queries.
10 years ago
loads servlet before first request.

Also decides the order of servlets loading declared in web.xml.
10 years ago
When we want some constant kind of thing not to be hard-coded in a servlet and in a situation only this particualar servlet would use it.

And also for data that wont change frequently.
10 years ago
isnt httpsessionlistener best way?
10 years ago
Oh i dint know it was only for classic tags..

Thanks
10 years ago
JSP
Ok. But the body-content of a custom tag is JspFragment right? (After translation). i guess JspFragment cant have scripting code inside them
10 years ago
JSP
In web.xml the url-patterns for filters are

/Radha/*

/Radha/Krishna

/*


If the browser's url is /Radha/Krishna. The filters invocation is like

/Radha/*

/*

/Radha/Krishna


Why?

But as far as i have heard web.xml decides which comes first and last? Also the longest matching URL takes priority right?
10 years ago
You cannot forward after response has been commited.

That illegalStateException is because of that
You cannot forward after response has been commited.

That illegalStateException is because of that
10 years ago
I have a doubt. In <jsp:useBean> body-content we can use scriptlets.
But i believe usebean is also a custom tag and i have heard scripting inside the custom tags is not valid.?
10 years ago
JSP