Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!

Balasubramani Dharmalingam

Ranch Hand
+ Follow
since Dec 06, 2004
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 Balasubramani Dharmalingam

This seems the problem in version of commons validator jar. Could you please give me the version of the struts that you are using.
10 years ago
What is the value for parameter author you are passing. Author is not having any space so author.indexOf(' ') is returning -1. So it is giving IndexOutOfBoundException in next line.
10 years ago
Value for the 'isELIngnored' is false only from Servlet 2.4. I believe you are using Servlet 2.3 DTD in your web.xml. Change it to '2_4' then it will take false as default value.
10 years ago
JSP
Please send me full question..
See this link http://docs.codehaus.org/display/AW/Tutorials. It will guide you to write a simple aspect oriented code in Java using Aspectwerkz.
10 years ago
Add the following bolded line in your code. If you get "Values: true" in your JSP then you are getting data from table else you are not.

10 years ago
JSP
I think you are getting some exception and suppressing the same.Please add the following code inside the catch block in your JSP and confirm there is no any exception in executing the query.

10 years ago
JSP


Use encodedURL. Then it should work..
10 years ago
It is not a special functionality of IOException.

IOException is an Checked Exception.
ArithmethicException, NullPointerException etc are Unchecked Exception.

You cannot put the catch block for Checked Exception unless some method calls of try block or try block throws the same exception.

In your code try block contains only myref.test() but it is not throwing IOException, So it fails..
[ April 10, 2008: Message edited by: Balasubramani Dharmalingam ]
Yes it is valid method and it will return you the scope where the attribute has been set with that particular name.

It is available in PageContext.
Can you give us some more details. What is your question ?
10 years ago
Congrats..

Great Score
10 years ago
"varstatus" attribute in forEach will give you an index of the element in iterating List.


For first iteration its value will be 1
For second iteration its value will be 2..
10 years ago
JSP
Variable sb is not yet initialized, default value will be null. So you are getting null pointer exception. Replace the sb declaration with following code.Then it should work
10 years ago
What is the output that you are expecting from the above code ?

It is working fine.


So for

First Iteration

i = 1

a[1] = 0

array = {1,0,3,4,5,6,7,8}

Second Iteration

i=0

a[0] = 0

array = {0,0,3,4,5,6,7,8}

Third Iteration

i=3

a[3]=0

array = {0,0,3,0,5,6,7,8}

...
..
...

After completing the eight iteration value in the array will be
{0,0,3,0,5,0,7,0}
10 years ago