This week's book giveaway is in the Security forum.
We're giving away four copies of Securing DevOps and have Julien Vehent on-line!
See this thread for details.
Win a copy of Securing DevOps this week in the Security forum!

harshvardhan ojha

Ranch Hand
+ Follow
since Jul 26, 2007
harshvardhan likes ...
Android Java MySQL Database
Cows and Likes
Cows
Total received
1
In last 30 days
0
Total given
0
Likes
Total received
18
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 harshvardhan ojha

knowing a language means, knowing syntax and what it has to offer.

For saying you know a language you should have knowledge of its implementation, limitations, pros and cons while using it.

To use a language in a large project, you should have command over
1. algorithms
2. design patterns
3. frameworks
4. knowledge about overall architecture

and domain knowledge is something which will help you to decide better.
4 years ago
but configuration is a class. You are effectively doing this:


And i don't see a problem in that.
Anusha, set response headers in a filter like


or you can set it in your jsp as meta tags also.
5 years ago
JSP
Hi, are you asking for code review?
5 years ago
use something like this 0\d{9}
5 years ago
m4 will refer to m2 object, as you kept it in m3 and asking it to return that object.
also for this reason line number 9, will give you NullPointerException as m2 has no object which you are asking it to return.
At line 8, you are calling no arg constructor that you have defined at line 2.
Ulf, how can we identify a user next time using URL rewriting? I don't think user will bookmark my URL or I can't keep my session active for so long.
5 years ago
JSP
what happened when you ran startup.bat from command prompt? Give me the console output.
5 years ago
then the only option you are left with is cookies, BTW cookies are the reliable way. Any specific requirement?
5 years ago
JSP
Vaibhav, use cookies for remember me and single sign on. I am not very sure but you can also use client IP to identify and validate him.
5 years ago
JSP
Use StandardJavaFileManager to get Your Java Object.
You can find example here compiler.
5 years ago
Hi Sravan, please put your java code in code tag.
5 years ago